To understand how accurate the proposed regions are, we use a metric named Intersection over Union (IoU). IoU can be visualized as follows:
Note that, in the preceding picture, the blue box (lower one) is the ground truth and the red box (the upper rectangle) is the region proposal.
The intersection over the union of the region proposal is calculated as the ratio of the intersection of the proposal and the ground truth over the union of the region proposal and the ground truth.