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: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public CvSeq HaarDetectObjects( CvArr image, CvMemStorage storage, double scaleFactor, int minNeighbors, HaarDetectionType flags )
Parameters
- image
- Type: OpenCvSharpCvArr
Image to detect objects in. - storage
- Type: OpenCvSharpCvMemStorage
Memory storage to store the resultant sequence of the object candidate rectangles. - scaleFactor
- Type: SystemDouble
The factor by which the search window is scaled between the subsequent scans, for example, 1.1 means increasing window by 10%. - minNeighbors
- Type: SystemInt32
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. - flags
- Type: OpenCvSharpHaarDetectionType
Mode of operation. Currently the only flag that may be specified is CV_HAAR_DO_CANNY_PRUNING. If it is set, the function uses Canny edge detector to reject some image regions that contain too few or too much edges and thus can not contain the searched object. The particular threshold values are tuned for face detection and in this case the pruning speeds up the processing.
Return Value
Type: CvSeq[Missing <returns> documentation for "M:OpenCvSharp.CvHaarClassifierCascade.HaarDetectObjects(OpenCvSharp.CvArr,OpenCvSharp.CvMemStorage,System.Double,System.Int32,OpenCvSharp.HaarDetectionType)"]
See Also