cv.circle () function usage (draw a circle in the original image)

CV CV2 AS Import 
IMG = cv.imread ( '0.jpg')
cv.imshow ( 'IMG', IMG)
Print (img.shape)
cv.circle (IMG, (520,430), 300, (255,0,0 ), 8) in the original image img # in encircled, the center point of its ring (520,430), radius = 300, color (255,0,0), thickness 8 =
cv.imshow ( 'IMG1', img)
cv.imwrite ( 'f.png', img) # circle pictures stored
cv.waitKey ()
cv.destroyAllWindows ()

the effect of:

 

Guess you like

Origin www.cnblogs.com/tangjunjun/p/11671935.html