def get_mouse_point(event,x,y,flags,param): global point if event == cv2.EVENT_LBUTTONUP: print("Point {0},{1} selected".format(x,y)) point = (x,y)