def draw_circles(self):
"""
Draw a circle for each contour in self.candidates
"""
# Just false positives
if len(self.candidates) < 4:
return
for con in self.candidates:
if con.width:
cv2.circle(self.image,
(con.cX, con.cY),
int(con.width/2),
(255, 255, 255),
2)
评论列表
文章目录