Calculate the Intersection over Union (IoU) between two bounding boxes.
Intersection over Union =
Area of Overlap
Area of Union
0
-
= 0.00
Drag, scale, or skew the rectangles to see how IoU changes in real-time
Box | Bottom-Left (x1, y1) | Top-Right (x2, y2) |
---|---|---|
Truth Box ✅ | (0, 0) | (0, 0) |
Predicted Box 🧠 | (0, 0) | (0, 0) |
The reference rectangle representing the actual object location
The predicted rectangle representing the model's detection
Intersection over Union (IoU) measures the overlap between two bounding boxes. It's calculated as the area of intersection divided by the area of union. Values range from 0 (no overlap) to 1 (perfect overlap).