In this tutorial, we will use an example to show you how to use cv2.circle() to draw circles on images in python opencv.
1.Read an image
import cv2 image = cv2.imread('C:/Users/N/Desktop/Test.jpg')
2.Use cv2.circle() to draw three circles
cv2.circle(image,(100, 0), 25, (0,255,0)) cv2.circle(image,(0, 100), 25, (0,0,255)) cv2.circle(image,(100, 100), 50, (255,0,0), 3)
3.Show image and Release resources
cv2.imshow('Test image',image) cv2.waitKey(0) cv2.destroyAllWindows()