def adjust_bbox(bbox, img_shape, pad_scale=0.0):
    """adjust box according to img_shape and pad_scale 

    Args:
        bbox (list):[x1, y1, x2, y2]
        img_shape (tuple): (height, width)
        pad_scale (float): scale for padding

    Returns:
        bbox (list)
    """
    bbox = square(bbox, img_shape)
    bbox = padding(bbox, img_shape, pad_scale)
    return bbox
adjust box according to img_shape and pad_scale 

    Args:
        bbox (list):[x1, y1, x2, y2]
        img_shape (tuple): (height, width)
        pad_scale (float): scale for padding

    Returns:
        bbox (list)
    
contrib/QualityInspector/qinspector/utils/bbox_utils.py