import cv2 img = cv2.imread('image.png', 0) ret, thresh = cv2.threshold(img, 127, 255, 0) contours, ...

这段程序是用来找出图像中的轮廓,并且根据样点来画出轮廓。因此,可以在这段程序中加入以下语句,以画出样点坐标处的圆:cv2.circle(image, (i[0], i[1]), radius, color, thickness)

猜你喜欢

转载自blog.csdn.net/weixin_35749786/article/details/129451153