Click or drag to resize

CascadeClassifierDetectMultiScale Method (Mat, Int32, Double, Double, Int32, HaarDetectionType, NullableSize, NullableSize, Boolean)

Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public virtual Rect[] DetectMultiScale(
	Mat image,
	out int[] rejectLevels,
	out double[] levelWeights,
	double scaleFactor = 1.1,
	int minNeighbors = 3,
	HaarDetectionType flags = ,
	Nullable<Size> minSize = null,
	Nullable<Size> maxSize = null,
	bool outputRejectLevels = false
)

Parameters

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

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

levelWeights
Type: SystemDouble

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

Return Value

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