def METHOD_NAME(event, x, y, flags, params):
    kps = params[1]
    bbx = params[0]
    img = params[2]
    if event == cv2.EVENT_LBUTTONDOWN:
        if len(bbx) == 0:
            bbx.append((x, y))
            center_coordinates = (x, y)
            radius = 10
            color = (0, 255, 0)
            thickness = 2
            cv2.circle(img, center_coordinates, radius, color, thickness)
            font = cv2.FONT_HERSHEY_SIMPLEX
            cv2.putText(img, str(x) + ',' + str(y), (x, y), font, 1, (255, 255, 255), 2)
            cv2.imshow('image', img)
            print("please select the opposite corner of the bounding box on the image")
        elif len(bbx) == 1:
            bbx.append((x, y))
            center_coordinates = (x, y)
            radius = 10
            color = (0, 255, 0)
            thickness = 2
            cv2.circle(img, center_coordinates, radius, color, thickness)
            font = cv2.FONT_HERSHEY_SIMPLEX
            cv2.putText(img, str(x) + ',' + str(y), (x, y), font, 1, (255, 255, 255), 2)
            start_point = bbx[0]
            end_point = bbx[1]
            color = (0, 255, 0)
            thickness = 2
            image_plt = cv2.rectangle(img, start_point, end_point, color, thickness)
            cv2.imshow('image', image_plt)
            print("please select the first keypoint on the image")
    if event == cv2.EVENT_RBUTTONDOWN:
        if len(kps) == 0 and len(bbx) == 2:
            kps.append((x, y))
            center_coordinates = (x, y)
            radius = 10
            color = (0, 0, 255)
            thickness = 2
            cv2.circle(img, center_coordinates, radius, color, thickness)
            font = cv2.FONT_HERSHEY_SIMPLEX
            cv2.putText(img, str(x) + ',' + str(y), (x, y), font, 1, (255, 255, 255), 2)
            cv2.imshow('image', img)
            print("please select the second keypoint on the image")
        elif len(kps) == 1 and len(bbx) == 2:
            kps.append((x, y))
            center_coordinates = (x, y)
            radius = 10
            color = (0, 0, 255)
            thickness = 2
            cv2.circle(img, center_coordinates, radius, color, thickness)
            font = cv2.FONT_HERSHEY_SIMPLEX
            cv2.putText(img, str(x) + ',' + str(y), (x, y), font, 1, (255, 255, 255), 2)
            start_point = kps[0]
            end_point = kps[1]
            color = (0, 0, 255)
            thickness = 2
            cv2.line(img, start_point, end_point, color, thickness)
            cv2.imshow('image', img)
            print("Done, press any key on keyboard to continue augmentation")