def click(event, x, y, flags, param): global current_landmark if event == cv2.EVENT_LBUTTONUP: current_landmark = [x, y]