def click(event, x, y, flags, param):
if event == cv2.EVENT_LBUTTONDBLCLK:
seed = (x, y)
print(seed)
seeds = detect(img, seed)
cv2.imshow('seeds', seeds)
while(1):
k = 0xFF & cv2.waitKey(1)
if k == 27:
cv2.destroyAllWindows()
break
评论列表
文章目录