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
imgMatSource image. CV_8UC1 and CV_8UC4 types are supported for now.
hitThresholddoubleThreshold for the distance between features and SVM classifying plane.
winStrideSize?Window stride. It must be a multiple of block stride.
paddingSize?Mock parameter to keep the CPU interface compatibility. It must be (0,0).
scaledoubleCoefficient of the detection window increase.
groupThresholdintCoefficient 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
imgMatSource image. CV_8UC1 and CV_8UC4 types are supported for now.
foundWeightsdouble[]hitThresholddoubleThreshold for the distance between features and SVM classifying plane.
winStrideSize?Window stride. It must be a multiple of block stride.
paddingSize?Mock parameter to keep the CPU interface compatibility. It must be (0,0).
scaledoubleCoefficient of the detection window increase.
groupThresholdintCoefficient 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.