CascadeClassifier. DetectMultiScale Method (Mat,Int32[] ,Double[] , Double, Int32, HaarDetectionType, Nullable< Size> , Nullable< Size> , 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.CPlusPlus.Mat
Matrix of the type CV_8U containing an image where objects are detected.
rejectLevels
Type:System.Int32[]

[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:System.Double[]

[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: System.Double
Parameter specifying how much the image size is reduced at each image scale.
minNeighbors (Optional)
Type: System.Int32
Parameter specifying how many neighbors each candidate rectangle should have to retain it.
flags (Optional)
Type: OpenCvSharp.HaarDetectionType
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: System.Nullable<Size>
Minimum possible object size. Objects smaller than that are ignored.
maxSize (Optional)
Type: System.Nullable<Size>
Maximum possible object size. Objects larger than that are ignored.
outputRejectLevels (Optional)
Type: System.Boolean

[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