DnnInvokeNMSBoxes Method (Rectangle, Single, Single, Single, Single, Int32) |
http://www.emgu.com
Performs non maximum suppression given boxes and corresponding scores.
Namespace:
Emgu.CV.Dnn
Assembly:
Emgu.CV.Platform.NetStandard (in Emgu.CV.Platform.NetStandard.dll) Version: 4.3.0.3890
Syntaxpublic static int[] NMSBoxes(
Rectangle[] bboxes,
float[] scores,
float scoreThreshold,
float nmsThreshold,
float eta = 1f,
int topK = 0
)
Public Shared Function NMSBoxes (
bboxes As Rectangle(),
scores As Single(),
scoreThreshold As Single,
nmsThreshold As Single,
Optional eta As Single = 1F,
Optional topK As Integer = 0
) As Integer()
public:
static array<int>^ NMSBoxes(
array<Rectangle>^ bboxes,
array<float>^ scores,
float scoreThreshold,
float nmsThreshold,
float eta = 1f,
int topK = 0
)
static member NMSBoxes :
bboxes : Rectangle[] *
scores : float32[] *
scoreThreshold : float32 *
nmsThreshold : float32 *
?eta : float32 *
?topK : int
(* Defaults:
let _eta = defaultArg eta 1f
let _topK = defaultArg topK 0
*)
-> int[]
Parameters
- bboxes
- Type: System.DrawingRectangle
A set of bounding boxes to apply NMS. - scores
- Type: SystemSingle
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. - eta (Optional)
- Type: SystemSingle
A coefficient in adaptive threshold - topK (Optional)
- Type: SystemInt32
If >0, keep at most top_k picked indices.
Return Value
Type:
Int32The indices of the boxes to keep after NMS
See Also