def get_scale_factors(bbox1:tuple, bbox2:tuple):
    """Get x and y scaling factors between 2 bounding boxes.

    Args:
        bbox1 (tuple): xmin1, ymin1, xmax1, ymax1
        bbox2 (tuple): xmin2, ymin2, xmax2, ymax2

    Returns:
        tuple: (x,y) scale factor.
    """
    xmin1, ymin1, xmax1, ymax1 = bbox1
    xmin2, ymin2, xmax2, ymax2 = bbox2
    width1 = xmax1-xmin1
    width2 = xmax2-xmin2
    height1 = ymax1-ymin1
    height2 = ymax2-ymin2
    try:
        return float(width2/width1), float(height2/height1)
    except ZeroDivisionError:
        return (1,1)