CascadeClassifierDetectMultiScale Method (Mat, Double, Int32, HaarDetectionType, NullableSize, NullableSize) OpenCvSharp Class Library
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public virtual Rect[] DetectMultiScale(
	Mat image,
	double scaleFactor = 1.1,
	int minNeighbors = 3,
	HaarDetectionType flags = HaarDetectionType.Zero,
	Nullable<Size> minSize = null,
	Nullable<Size> maxSize = null
)

Parameters

image
Type: OpenCvSharp.CPlusPlusMat
Matrix of the type CV_8U containing an image where objects are detected.
scaleFactor (Optional)
Type: SystemDouble
Parameter specifying how much the image size is reduced at each image scale.
minNeighbors (Optional)
Type: SystemInt32
Parameter specifying how many neighbors each candidate rectangle should have to retain it.
flags (Optional)
Type: OpenCvSharpHaarDetectionType
Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade.
minSize (Optional)
Type: SystemNullableSize
Minimum possible object size. Objects smaller than that are ignored.
maxSize (Optional)
Type: SystemNullableSize
Maximum possible object size. Objects larger than that are ignored.

Return Value

Type: Rect
Vector of rectangles where each rectangle contains the detected object.
See Also

Reference