Skip to content
EvalSuite
Documentation menu

Object detection

Box IoU

Implementeddetection.box_iou

Definition

Intersection over union of two axis-aligned bounding boxes.

Formula

IoU = area(A ∩ B) / area(A ∪ B)

Range: [0, 1]

Inputs and outputs

  • boxes A [x1, y1, x2, y2]
  • boxes B [x1, y1, x2, y2]

Returns: pairwise IoU matrix

Assumptions

  • Boxes must satisfy x2 ≥ x1 and y2 ≥ y1; invalid boxes raise a validation error.

Limitations

No metric-specific limitations are documented yet. Interpret the value alongside the task, data, and other metrics.

Python API

PythonSince v0.3.0
import evalsuite as es

es.box_iou(boxes_a, boxes_b)                    # (n, m) matrix, xyxy
es.box_iou(boxes_a, boxes_b, box_format="xywh")

References

Primary references for this entry have not been added yet.

Implementation status