Intersection over Union (IoU) for object detection