def bbox(results):
    """Return the bounding box of the QR code given the results."""
    corners = results[0].position if results else []
    return (
        min(c[0] for c in corners),
        min(c[1] for c in corners),
        max(c[0] for c in corners),
        max(c[1] for c in corners))