def getcolor(event,x,y,flags,param):
if event == cv2.EVENT_LBUTTONDBLCLK:
HSV = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
color=HSV[y,x]
print color
fle.write(str(color)+"\n")
# Create a black image, a window and bind the function to window
评论列表
文章目录