def get_bbox(bbox):
    """Get bbox of type (xmin, ymin, xmax, ymax) from a bbox of type
    (x, y, w, h)"""
    xmin, ymin, w, h = bbox
    xmin = round(xmin)
    ymin = round(ymin)
    xmax = round(xmin + w) - 1
    ymax = round(ymin + h) - 1
    return [xmin, ymin, xmax, ymax]