一、OpenCV控制鼠标 import cv2 import numpy as np def mouse_callback(event,x,y,flags,userdata): print(event,x,y