Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Draw a Line | Fundamentals of Image Manipulation with Python
Fundamentals of Image Manipulation with Python
course content

Kurssisisältö

Fundamentals of Image Manipulation with Python

book
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.
Tehtävä

Swipe to start coding

  1. Use the correct function to draw a line on image1.

Ratkaisu

Mark tasks as Completed
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 10
AVAILABLE TO ULTIMATE ONLY
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt