Learn Before
Concept

Intersection over Union (IoU)

In object detection, the similarity between two bounding boxes is measured using their Jaccard index, which is commonly referred to as the intersection over union (IoU). Treating the pixel area of any bounding box as a set of pixels, the IoU is calculated as the ratio of their intersection area to their union area: J(A,B)=ABABJ(\mathcal{A},\mathcal{B}) = \frac{|\mathcal{A} \cap \mathcal{B}|}{|\mathcal{A} \cup \mathcal{B}|}. The IoU value ranges from 00 to 11, where 00 indicates that the bounding boxes have absolutely no overlap, and 11 indicates that the two bounding boxes are exactly equal.

Image 0

0

1

Updated 2026-05-20

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L