def bounding_boxes_xyxy2xywh(bbox_list):
    """
    Transform bounding boxes coordinates.
    :param bbox_list: list of coordinates as: [[xmin, ymin, xmax, ymax], [xmin, ymin, xmax, ymax]]
    :return: list of coordinates as: [[xmin, ymin, width, height], [xmin, ymin, width, height]]
    """
    new_coordinates = []
    for box in bbox_list:
        new_coordinates.append([box[0],
                                box[1],
                                box[2] - box[0],
                                box[3] - box[1]])
    return new_coordinates