OpenCvSharp.CascadeClassifier.CascadeClassifier C# (CSharp) Method

CascadeClassifier() public method

Loads a classifier from a file.
public CascadeClassifier ( string fileName ) : System
fileName string Name of the file from which the classifier is loaded.
return System
        public CascadeClassifier(string fileName)
        {
            if (String.IsNullOrEmpty(fileName))
                throw new ArgumentNullException(nameof(fileName));
            if (!File.Exists(fileName))
                throw new FileNotFoundException("\""+ fileName + "\"not found", fileName);
            ptr = NativeMethods.objdetect_CascadeClassifier_newFromFile(fileName);  
        }

Same methods

CascadeClassifier::CascadeClassifier ( ) : System