Intersection over Union (IoU) for object detection is a measure of overlap between two bounding boxes (or other shapes) in an image. It is calculated by dividing the area of overlap between the two bounding boxes by the total area of the two bounding boxes. The resulting value is a number between 0 and 1, where 0 indicates no overlap and 1 indicates a perfect overlap. IoU is commonly used to evaluate the accuracy of object detection algorithms.