Python OpenCV | cv2.arrowedLine() methodOpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.arrowedLine() method is used to draw arrow segment pointing from the start point to the end point. Syntax: cv2.arrowedLine(image, start_point, end_point, color, thickness, line_type, shift, tipLength)Param
3 min read
Python OpenCV | cv2.ellipse() methodOpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.ellipse() method is used to draw a ellipse on any image. Syntax: cv2.ellipse(image, centerCoordinates, axesLength, angle, startAngle, endAngle, color [, thickness[, lineType[, shift]]]) Parameters: image: I
3 min read
Python OpenCV | cv2.circle() methodOpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.circle() method is used to draw a circle on any image. The syntax of cv2.circle() method is: Syntax:Â cv2.circle(image, center_coordinates, radius, color, thickness) Parameters:Â image: It is the image on w
3 min read
Python OpenCV | cv2.putText() methodOpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.putText() method is used to draw a text string on any image. Syntax: cv2.putText(image, text, org, font, fontScale, color[, thickness[, lineType[, bottomLeftOrigin]]]) Parameters:image: It is the image on w
5 min read
Draw a triangle with centroid using OpenCVPrerequisite: Geometric shapes using OpenCV Given three vertices of a triangle, write a Python program to find the centroid of the triangle and then draw the triangle with its centroid on a black window using OpenCV. Examples: Input: (100, 200) (50, 50) (300, 100) Output: (150, 116) Libraries Needed
2 min read