Draw a Line
In OpenCV
, the cv2.line()
function is used to draw a line on an image. The function takes five required parameters:
- the image to be modified;
- the starting point of the line (specified as a tuple of x and y coordinates);
- the ending point of the line (specified as a tuple of x and y coordinates);
- the color of the line (specified as a tuple of Red, Green, Blue values);
- the thickness of the line.
Uppgift
Swipe to start coding
- Use the correct function to draw a line on
image1
.
Lösning
Mark tasks as Completed
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 10
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Suggested prompts:
Ställ mig frågor om detta ämne
Sammanfatta detta kapitel
Visa verkliga exempel
Awesome!
Completion rate improved to 9.09
Draw a Line
In OpenCV
, the cv2.line()
function is used to draw a line on an image. The function takes five required parameters:
- the image to be modified;
- the starting point of the line (specified as a tuple of x and y coordinates);
- the ending point of the line (specified as a tuple of x and y coordinates);
- the color of the line (specified as a tuple of Red, Green, Blue values);
- the thickness of the line.
Uppgift
Swipe to start coding
- Use the correct function to draw a line on
image1
.
Lösning
Mark tasks as Completed
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 10