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

Contenido del Curso

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.
Tarea

Swipe to start coding

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

Solución

Mark tasks as Completed
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 10

Pregunte a AI

expand
ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

course content

Contenido del Curso

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.
Tarea

Swipe to start coding

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

Solución

Mark tasks as Completed
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 10
Lamentamos que algo salió mal. ¿Qué pasó?
some-alt