cvtools.evaluation.bbox_overlaps module

cvtools.evaluation.bbox_overlaps.bbox_overlaps(bboxes1, bboxes2, mode='iou')[源代码]

Calculate the ious between each bbox of bboxes1 and bboxes2.

参数:
  • bboxes1 (ndarray) -- shape (n, 4)
  • bboxes2 (ndarray) -- shape (k, 4)
  • mode (str) -- iou (intersection over union) or iof (intersection over foreground)
返回:

shape (n, k)

返回类型:

ious(ndarray)