Click or drag to resize

CvDnnNMSBoxes Method (IEnumerableRect, IEnumerableSingle, Single, Single, Int32, Single, Int32)

Performs non maximum suppression given boxes and corresponding scores.

Namespace:  OpenCvSharp.Dnn
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void NMSBoxes(
	IEnumerable<Rect> bboxes,
	IEnumerable<float> scores,
	float scoreThreshold,
	float nmsThreshold,
	out int[] indices,
	float eta = 1f,
	int topK = 0
)

Parameters

bboxes
Type: System.Collections.GenericIEnumerableRect
a set of bounding boxes to apply NMS.
scores
Type: System.Collections.GenericIEnumerableSingle
a set of corresponding confidences.
scoreThreshold
Type: SystemSingle
a threshold used to filter boxes by score.
nmsThreshold
Type: SystemSingle
a threshold used in non maximum suppression.
indices
Type: SystemInt32
the kept indices of bboxes after NMS.
eta (Optional)
Type: SystemSingle
a coefficient in adaptive threshold formula
topK (Optional)
Type: SystemInt32
if `>0`, keep at most @p top_k picked indices.
See Also