Method NMSBoxesBatched
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
NMSBoxesBatched(IEnumerable<Rect>, IEnumerable<float>, IEnumerable<int>, float, float, out int[], float, int)
Performs batched non maximum suppression on given boxes and corresponding scores across different classes.
public static void NMSBoxesBatched(IEnumerable<Rect> bboxes, IEnumerable<float> scores, IEnumerable<int> classIds, float scoreThreshold, float nmsThreshold, out int[] indices, float eta = 1, int topK = 0)
Parameters
bboxesIEnumerable<Rect>a set of bounding boxes to apply NMS.
scoresIEnumerable<float>a set of corresponding confidences.
classIdsIEnumerable<int>a set of corresponding class ids. Ids are integer and usually start from 0.
scoreThresholdfloata threshold used to filter boxes by score.
nmsThresholdfloata threshold used in non maximum suppression.
indicesint[]the kept indices of bboxes after NMS.
etafloata coefficient in adaptive threshold formula
topKintif
>0, keep at most @p top_k picked indices.
NMSBoxesBatched(IEnumerable<Rect2d>, IEnumerable<float>, IEnumerable<int>, float, float, out int[], float, int)
Performs batched non maximum suppression on given boxes and corresponding scores across different classes.
public static void NMSBoxesBatched(IEnumerable<Rect2d> bboxes, IEnumerable<float> scores, IEnumerable<int> classIds, float scoreThreshold, float nmsThreshold, out int[] indices, float eta = 1, int topK = 0)
Parameters
bboxesIEnumerable<Rect2d>a set of bounding boxes to apply NMS.
scoresIEnumerable<float>a set of corresponding confidences.
classIdsIEnumerable<int>a set of corresponding class ids. Ids are integer and usually start from 0.
scoreThresholdfloata threshold used to filter boxes by score.
nmsThresholdfloata threshold used in non maximum suppression.
indicesint[]the kept indices of bboxes after NMS.
etafloata coefficient in adaptive threshold formula
topKintif
>0, keep at most @p top_k picked indices.