iou#
- iou(boxes1, boxes2)[source]#
Computes pairwise intersection-over-union between box collections.
- Parameters
boxes1 (np.ndarray) – A numpy array with shape [N, 4] holding N boxes.
boxes2 (np.ndarray) – A numpy array with shape [M, 4] holding M boxes.
- Returns
A numpy array with shape [N, M] representing pairwise iou scores.
- Return type
np.ndarray