How Far the Box Can Drift

Using Vision ModelsHard+30 XP+30

How Far the Box Can Drift

A ground-truth box around a parked car is 120120120 pixels wide and 808080 pixels tall.

A detector returns a box of exactly the same size, 120×80120 \times 80120×80, at exactly the same vertical position — but shifted ddd pixels to the right. The two rectangles therefore share a vertical band that narrows as ddd grows.

This benchmark is strict: a detection counts as correct only when

IoU  =  area of the intersectionarea of the union  ≥  0.75\mathrm{IoU} \;=\; \frac{\text{area of the intersection}}{\text{area of the union}} \;\ge\; 0.75IoU=area of the unionarea of the intersection​≥0.75

What is the largest whole number of pixels ddd can be while the detection still counts as correct?

Answer with a whole number of pixels.

IoU
0.51
offset

Intersection over Union: the shared area divided by the total area covered. 1.0 is perfect, 0 is no overlap.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.