CascadeClassifierDetectMultiScale Method (Mat, Int32, Double, Double, Int32, HaarDetectionType, NullableSize, NullableSize, Boolean) 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,
	out int[] rejectLevels,
	out double[] levelWeights,
	double scaleFactor = 1.1,
	int minNeighbors = 3,
	HaarDetectionType flags = HaarDetectionType.Zero,
	Nullable<Size> minSize = null,
	Nullable<Size> maxSize = null,
	bool outputRejectLevels = false
)

Parameters

image
Type: OpenCvSharp.CPlusPlusMat
Matrix of the type CV_8U containing an image where objects are detected.
rejectLevels
Type: SystemInt32

[Missing <param name="rejectLevels"/> documentation for "M:OpenCvSharp.CPlusPlus.CascadeClassifier.DetectMultiScale(OpenCvSharp.CPlusPlus.Mat,System.Int32[]@,System.Double[]@,System.Double,System.Int32,OpenCvSharp.HaarDetectionType,System.Nullable{OpenCvSharp.CPlusPlus.Size},System.Nullable{OpenCvSharp.CPlusPlus.Size},System.Boolean)"]

levelWeights
Type: SystemDouble

[Missing <param name="levelWeights"/> documentation for "M:OpenCvSharp.CPlusPlus.CascadeClassifier.DetectMultiScale(OpenCvSharp.CPlusPlus.Mat,System.Int32[]@,System.Double[]@,System.Double,System.Int32,OpenCvSharp.HaarDetectionType,System.Nullable{OpenCvSharp.CPlusPlus.Size},System.Nullable{OpenCvSharp.CPlusPlus.Size},System.Boolean)"]

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.
outputRejectLevels (Optional)
Type: SystemBoolean

[Missing <param name="outputRejectLevels"/> documentation for "M:OpenCvSharp.CPlusPlus.CascadeClassifier.DetectMultiScale(OpenCvSharp.CPlusPlus.Mat,System.Int32[]@,System.Double[]@,System.Double,System.Int32,OpenCvSharp.HaarDetectionType,System.Nullable{OpenCvSharp.CPlusPlus.Size},System.Nullable{OpenCvSharp.CPlusPlus.Size},System.Boolean)"]

Return Value

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

Reference