Performs non-maximum suppression given boxes and corresponding scores
indices = cv.Net.NMSBoxes(bboxes, scores, score_threshold, nms_threshold)
indices = cv.Net.NMSBoxes(..., 'OptionName',optionValue, ...)
Input
- bboxes a set of bounding boxes to apply NMS.
- scores a set of corresponding confidences.
- score_threshold a threshold used to filter boxes by score.
- nms_threshold a threshold used in non maximum suppression.
Output
- indices the kept indices of bboxes after NMS.
Options
- Eta a coefficient in adaptive threshold formula:
nms_threshold_{i+1} = eta * nms_threshold_{i}
. default 1.0
- TopK if
> 0
, keep at most TopK
picked indices.
default 0