IoU divides the overlap area of two boxes by their combined area. A detection counts as correct when its IoU with the ground-truth box clears a threshold, often 0.5. It also drives non-max suppression and tracker matching.