Table of Contents

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

bboxes IEnumerable<Rect>

a set of bounding boxes to apply Soft NMS.

scores IEnumerable<float>

a set of corresponding confidences.

updatedScores float[]

a set of corresponding updated confidences.

scoreThreshold float

a threshold used to filter boxes by score.

nmsThreshold float

a threshold used in non maximum suppression.

indices int[]

the kept indices of bboxes after NMS.

topK int

keep at most @p top_k picked indices.

sigma float

parameter of Gaussian weighting.

method SoftNMSMethod

Gaussian or linear.