def keypoint_outside_bbox(kp, bb):
    """
    Check if keypoint is outside box
    :param kp: co ordinates of keypoint(x, y) 
    :param bb: bounding box details (x_top_left, y_top_left, x_bottom_right, y_bottom_right)
    :return: True if keypoint is outside of bounding box, else False
    """
    x = kp.pt[0]
    y = kp.pt[1]
    x_top_left, y_top_left, x_bottom_right, y_bottom_right = bb
    return not ((x > x_top_left) and (x < x_bottom_right)
                and (y > y_top_left) and (y < y_bottom_right))