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
frameInputArrayThe input image.
classIdsint[]Class indexes in result detection.
confidencesfloat[]A set of corresponding confidences.
boxesRect[]A set of bounding boxes.
confThresholdfloatA threshold used to filter boxes by confidences.
nmsThresholdfloatA threshold used in non maximum suppression.