Measure overlap between predicted and labeled boxes precisely. Explore metrics, thresholds, and visual comparisons confidently. Improve evaluation accuracy with clear outputs and charts.
| Scenario | Predicted Box | Ground Truth Box | Intersection Area | Union Area | IoU | Interpretation |
|---|---|---|---|---|---|---|
| Moderate overlap | (120, 90, 320, 260) | (150, 110, 340, 280) | 28900 | 38800 | 0.744845 | Strong localization quality. |
| Loose alignment | (50, 60, 180, 200) | (110, 100, 250, 240) | 5600 | 30800 | 0.181818 | Weak overlap and poor fit. |
| Perfect overlap | (40, 40, 140, 160) | (40, 40, 140, 160) | 12000 | 12000 | 1.000000 | Exact match. |
| No overlap | (10, 10, 60, 60) | (100, 100, 180, 180) | 0 | 8900 | 0.000000 | No detection agreement. |
Intersection Area = max(0, min(x2) − max(x1)) × max(0, min(y2) − max(y1))
Union Area = Area of Predicted Box + Area of Ground Truth Box − Intersection Area
IoU = Intersection Area ÷ Union Area
Dice Score = 2 × Intersection Area ÷ (Predicted Area + Ground Truth Area)
Generalized IoU = IoU − ((Smallest Enclosing Area − Union Area) ÷ Smallest Enclosing Area)
IoU stands for Intersection over Union. It measures the overlap between a predicted bounding box and the labeled ground truth box. Higher values mean the prediction is positioned more accurately.
A good IoU depends on the task. Many benchmarks treat 0.50 as acceptable, while stricter evaluations may expect 0.75 or more. Higher-risk applications often require stronger localization.
IoU becomes zero when the predicted box and ground truth box do not overlap at all. In that case, the intersection area is zero, so the overlap score also becomes zero.
Both measure overlap, but they use different formulas. IoU divides intersection by union, while Dice doubles the intersection and divides by the combined areas. Dice often produces slightly larger values.
GIoU helps when boxes barely overlap or do not overlap. It adds a penalty based on the smallest enclosing box, making it more informative than plain IoU in weak-localization cases.
Yes. Choose the position and size format, then select center origin. The calculator converts those values into corners automatically before computing overlap metrics and related statistics.
Image dimensions allow the calculator to estimate coverage percentages. That helps you understand how much of the image each box occupies and how large the overlap is relative to the frame.
No. Confidence reflects model certainty, while IoU measures spatial accuracy. A model may be highly confident yet still place the box poorly, which leads to a low overlap score.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.