Table of Contents

Method DetectMultiScale

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

DetectMultiScale(Mat, double, Size?, Size?, double, int)

Performs object detection with a multi-scale window.

public virtual Rect[] DetectMultiScale(Mat img, double hitThreshold = 0, Size? winStride = null, Size? padding = null, double scale = 1.05, int groupThreshold = 2)

Parameters

img Mat

Source image. CV_8UC1 and CV_8UC4 types are supported for now.

hitThreshold double

Threshold for the distance between features and SVM classifying plane.

winStride Size?

Window stride. It must be a multiple of block stride.

padding Size?

Mock parameter to keep the CPU interface compatibility. It must be (0,0).

scale double

Coefficient of the detection window increase.

groupThreshold int

Coefficient to regulate the similarity threshold. When detected, some objects can be covered by many rectangles. 0 means not to perform grouping.

Returns

Rect[]

Detected objects boundaries.

DetectMultiScale(Mat, out double[], double, Size?, Size?, double, int)

Performs object detection with a multi-scale window.

public virtual Rect[] DetectMultiScale(Mat img, out double[] foundWeights, double hitThreshold = 0, Size? winStride = null, Size? padding = null, double scale = 1.05, int groupThreshold = 2)

Parameters

img Mat

Source image. CV_8UC1 and CV_8UC4 types are supported for now.

foundWeights double[]
hitThreshold double

Threshold for the distance between features and SVM classifying plane.

winStride Size?

Window stride. It must be a multiple of block stride.

padding Size?

Mock parameter to keep the CPU interface compatibility. It must be (0,0).

scale double

Coefficient of the detection window increase.

groupThreshold int

Coefficient to regulate the similarity threshold. When detected, some objects can be covered by many rectangles. 0 means not to perform grouping.

Returns

Rect[]

Detected objects boundaries.