Table of Contents

Method Detect

Namespace
OpenCvSharp.Dnn
Assembly
OpenCvSharp.dll

Detect(InputArray, out int[], out float[], out Rect[], float, float)

Given the @p input frame, create input blob, run net and return result detections.

public void Detect(InputArray frame, out int[] classIds, out float[] confidences, out Rect[] boxes, float confThreshold = 0.5, float nmsThreshold = 0)

Parameters

frame InputArray

The input image.

classIds int[]

Class indexes in result detection.

confidences float[]

A set of corresponding confidences.

boxes Rect[]

A set of bounding boxes.

confThreshold float

A threshold used to filter boxes by confidences.

nmsThreshold float

A threshold used in non maximum suppression.