def expand_bbox(bbox):
    """Create a bigger box surrounding the inner one."""
    pad = 75  # Pad the QR-Code bounding box by this many pixels
    return (
        min(bbox[0], bbox[2]) - pad,
        min(bbox[1], bbox[3]) - pad,
        max(bbox[0], bbox[2]) + pad,
        max(bbox[1], bbox[3]) + pad)