def points_2_xywh(box):
    """ Converts [xmin, ymin, xmax, ymax] to [xmin, ymin, width, height]. """

    box = [box[0], box[1], box[2] - box[0], box[3] - box[1]]
    box = [int(round(x)) for x in box]
    return box