CvHaarClassifierCascadeFromDirectory Method OpenCvSharp Class Library

Note: This API is now obsolete.

Loads a trained cascade classifier from file or the classifier database embedded in OpenCV (cvLoadHaarClassifierCascade)

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

[ObsoleteAttribute]
public static CvHaarClassifierCascade FromDirectory(
	string directory,
	CvSize origWindowSize
)

Parameters

directory
Type: SystemString
Name of directory containing the description of a trained cascade classifier.
origWindowSize
Type: OpenCvSharpCvSize
Original size of objects the cascade has been trained on. Note that it is not stored in the cascade and therefore must be specified separately.

Return Value

Type: CvHaarClassifierCascade

[Missing <returns> documentation for "M:OpenCvSharp.CvHaarClassifierCascade.FromDirectory(System.String,OpenCvSharp.CvSize)"]

Remarks

The function is obsolete. Nowadays object detection classifiers are stored in XML or YAML files, rather than in directories. To load cascade from a file, use cvLoad function.
See Also

Reference