Method SoftNMSBoxes
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
SoftNMSBoxes(IEnumerable<Rect>, IEnumerable<float>, out float[], float, float, out int[], int, float, SoftNMSMethod)
Performs soft non maximum suppression given boxes and corresponding scores. Reference: https://arxiv.org/abs/1704.04503
public static void SoftNMSBoxes(IEnumerable<Rect> bboxes, IEnumerable<float> scores, out float[] updatedScores, float scoreThreshold, float nmsThreshold, out int[] indices, int topK = 0, float sigma = 0.5, SoftNMSMethod method = SoftNMSMethod.SOFTNMS_GAUSSIAN)
Parameters
bboxesIEnumerable<Rect>a set of bounding boxes to apply Soft NMS.
scoresIEnumerable<float>a set of corresponding confidences.
updatedScoresfloat[]a set of corresponding updated confidences.
scoreThresholdfloata threshold used to filter boxes by score.
nmsThresholdfloata threshold used in non maximum suppression.
indicesint[]the kept indices of bboxes after NMS.
topKintkeep at most @p top_k picked indices.
sigmafloatparameter of Gaussian weighting.
methodSoftNMSMethodGaussian or linear.