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?
Use tuples. Here is example of filled green circle:
cv2.circle(img, (x1, y1), 3, (0, 255, 0), -1)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With