Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Python by (12.7k points)

Hello, all. Let's assume I have an image and a co-ordinator (x,y). I don't know how to draw a point on that image with this co-ordinate, using Python OpenCV. Does anyone help me with my doubt?

Thank you

1 Answer

0 votes
by (26.4k points)

Using OpenCV module, you can make use of cv2.circle().

image = cv.circle(image, centerOfCircle, radius, color, thickness)

For plotting a single point on image, you can keep radius as 0 and for filled circle, you can give thickness as negative number

import cv2

image = cv2.circle(image, (x,y), radius=0, color=(0, 0, 255), thickness=-1)

Want to learn more about python? Come and join: python training course

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Dec 10, 2020 in Python by laddulakshana (12.7k points)

Browse Categories

...