def on_click(plane, event, x, y, flags, param): if event == cv2.EVENT_LBUTTONUP: print((x, y), plane.get_plane_point(x, y))