Function opencv::dnn::nms_boxes_batched
source · pub fn nms_boxes_batched(
bboxes: &Vector<Rect>,
scores: &Vector<f32>,
class_ids: &Vector<i32>,
score_threshold: f32,
nms_threshold: f32,
indices: &mut Vector<i32>,
eta: f32,
top_k: i32
) -> Result<()>
Expand description
Performs batched non maximum suppression on given boxes and corresponding scores across different classes.
§Parameters
- bboxes: a set of bounding boxes to apply NMS.
- scores: a set of corresponding confidences.
- class_ids: a set of corresponding class ids. Ids are integer and usually start from 0.
- score_threshold: a threshold used to filter boxes by score.
- nms_threshold: a threshold used in non maximum suppression.
- indices: the kept indices of bboxes after NMS.
- eta: a coefficient in adaptive threshold formula:
.
- top_k: if
>0
, keep at most @p top_k picked indices.
§C++ default parameters
- eta: 1.f
- top_k: 0