def get_midpoint(bounding_box):
    """ Get middle points of given frame
    Arguments:
    ----------
    bounding_box : (width,height) or (x, y, w, h)
    """
    if(len(bounding_box) == 2):
        width, height = bounding_box
        y = float(height) / float(2)
        x = float(width) / float(2)
        return (int(x), int(y))
    if(len(bounding_box) == 4):
        x, y, w, h = bounding_box
        w = int(w)/2
        h = int(h)/2
        return(int(x) + int(w), int(y) + int(h))