Emgu.CV.CascadeClassifier.CascadeClassifier C# (CSharp) Method

CascadeClassifier() public method

Create a CascadeClassifier from the specific file
public CascadeClassifier ( String fileName ) : System
fileName String The name of the file that contains the CascadeClassifier
return System
        public CascadeClassifier(String fileName)
        {
            FileInfo file = new FileInfo(fileName);
             if (!file.Exists)
            throw new FileNotFoundException(Properties.StringTable.FileNotFound, file.FullName);

             _ptr = CvInvoke.CvCascadeClassifierCreate(fileName);

             if (_ptr == IntPtr.Zero)
             {
            throw new NullReferenceException(String.Format(Properties.StringTable.FailToCreateHaarCascade, file.FullName));
             }
        }