def GetBoxCenter(box):
    """ Computes coordinates of the center of a box.

    param: box: The box coordinates in form of ((x1,y1),(x2,y2)), where the first tuple is the coordinates of the left top corner of the box,
                the second tuple is the coordinates of the right bottom corner.
    returns: Center coordinates (x,y)
    """
    return box[0][0]+(box[1][0]-box[0][0])//2, box[0][1]+(box[1][1]-box[0][1])//2