Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No cv.Point in Python OpenCV on latest stable Debian

When trying to draw a circle on an image using cv.Circle, I realized that there is no cv.Point function to create a cvPoint in Python OpenCV. I'm using the latest stable version of Debian and I installed all the Python OpenCV packages with Synaptic. How do I create a cvPoint to use with the cv.Circle function?

like image 703
user1028730 Avatar asked May 28 '12 20:05

user1028730


1 Answers

Use tuples. Here is example of filled green circle:

cv2.circle(img, (x1, y1), 3, (0, 255, 0), -1)
like image 117
Andrey Kamaev Avatar answered Nov 15 '22 14:11

Andrey Kamaev