Finds rectangular regions in the given image that are likely to contain objects the cascade has been trained for and returns those regions as a sequence of rectangles.

Namespace: Emgu.CV.GPU
Assembly: Emgu.CV.GPU (in Emgu.CV.GPU.dll) Version: (


public Rectangle[] DetectMultiScale<TColor>(
	GpuImage<TColor, byte> image,
	double scaleFactor,
	int minNeighbors,
	Size minSize
where TColor : struct, new(), IColor
Visual Basic
Public Function DetectMultiScale(Of TColor As {Structure, New, IColor}) ( _
	image As GpuImage(Of TColor, Byte), _
	scaleFactor As Double, _
	minNeighbors As Integer, _
	minSize As Size _
) As Rectangle()
Visual C++
generic<typename TColor>
where TColor : value class, gcnew(), IColor
array<Rectangle>^ DetectMultiScale(
	GpuImage<TColor, unsigned char>^ image, 
	double scaleFactor, 
	int minNeighbors, 
	Size minSize


Type: Emgu.CV.GPU..::..GpuImage<(Of <(<'TColor, Byte>)>)>
The image where search will take place
Type: System..::..Double
The factor by which the search window is scaled between the subsequent scans, for example, 1.1 means increasing window by 10%. Use 1.2 for default.
Type: System..::..Int32
Minimum number (minus 1) of neighbor rectangles that makes up an object. All the groups of a smaller number of rectangles than min_neighbors-1 are rejected. If min_neighbors is 0, the function does not any grouping at all and returns all the detected candidate rectangles, which may be useful if the user wants to apply a customized grouping procedure. Use 4 for default.
Type: System.Drawing..::..Size
Minimum window size. By default, it is set to the size of samples the classifier has been trained on (~20x20 for face detection). Use Size.Empty for default

Type Parameters


[Missing <typeparam name="TColor"/> documentation for "M:Emgu.CV.GPU.GpuCascadeClassifier.DetectMultiScale``1(Emgu.CV.GPU.GpuImage{``0,System.Byte},System.Double,System.Int32,System.Drawing.Size)"]

Return Value

An array of regions for the detected objects

See Also