def _to_absolute(detection, box):
    """Convert detection relative to box to absolute coordinates."""
    x0, y0, x1, y1, p = detection
    bx0, by0, *_ = box
    return x0 + bx0, y0 + by0, x1 + bx0, y1 + by0, p