def get_box_points(box):
    """
    Takes in box points of form ((x1,y1), (x2, y2)) and converts it to form
    [x1, y1, x2, y2].
    """
    box_points = []
    x1, y1 = box[0]
    x2, y2 = box[1]

    box_points.append(x1)
    box_points.append(y1)
    box_points.append(x2)
    box_points.append(y2)
    return box_points