def zoom(crop, factor):
    """Resizes a cropped bounding box about the centre."""
    x, y, w, h = crop
    cx, cy = x + w / 2, y + h / 2

    return (int(cx - factor * w / 2), int(cy - factor * h / 2), int(factor * w), int(factor * h))