Intersection over Union (IoU) of Two Rectangles
In object detection, IoU (Intersection over Union) is used to evaluate how well a predicted box overlaps with the ground-truth box. Given two axis-aligned rectangles, each given by two opposite corner...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
