Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Circle not appearing on my image.

Hey guys, im tried drawing a circle on the midpoint of my line but there's no circle. It created a gap between the lines instead. Please advice thanks!

image description

below the code i used.

M = cv2.moments(ske)

centroid_x = int(M['m10']/M['m00'])

centroid_y = int(M['m01']/M['m00'])

cv2.circle(ske,(centroid_x,centroid_y), 5, (0,0,255), -1)