def on_mouse(event, x, y, flags, param):
    global clicked
    if (event == cv2.EVENT_LBUTTONUP):
        clicked = True
def on_mouse(event, x, y, flags, param):
    global clicked
    if (event == cv2.EVENT_LBUTTONUP):
        clicked = True