Table of Contents

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

bboxes IEnumerable<Rect>

a set of bounding boxes to apply NMS.

scores IEnumerable<float>

a set of corresponding confidences.

classIds IEnumerable<int>

a set of corresponding class ids. Ids are integer and usually start from 0.

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.

eta float

a coefficient in adaptive threshold formula

topK int

if >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

bboxes IEnumerable<Rect2d>

a set of bounding boxes to apply NMS.

scores IEnumerable<float>

a set of corresponding confidences.

classIds IEnumerable<int>

a set of corresponding class ids. Ids are integer and usually start from 0.

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.

eta float

a coefficient in adaptive threshold formula

topK int

if >0, keep at most @p top_k picked indices.