What is the IoU (intersection over union) of the two boxes?
box A: x1=0, y1=0, x2=4, y2=4 box B: x1=2, y1=2, x2=6, y2=6
- 0.14
- 0.25
- 0.50
- 0.29
Intersection is 2x2 = 4; union is 16 + 16 - 4 = 28; 4 / 28 = 0.14.
Play AI & ML ▸
box A: x1=0, y1=0, x2=4, y2=4 box B: x1=2, y1=2, x2=6, y2=6