Ejemplo n.º 1
0
        public FrontFaceVerifier(string template)
        {
            if (string.IsNullOrEmpty(template))
            {
                throw new ArgumentException("template can't be null", "template");
            }

            if (!System.IO.File.Exists(template))
            {
                throw new System.IO.FileNotFoundException("template file not found", template);
            }

            var ipl = OpenCvSharp.IplImage.FromFile(template, LoadMode.GrayScale);
            _verifier = new FaceProcessingWrapper.FrontFaceVerifier(ipl);
        }
        public FrontFaceVerifier(string template)
        {
            if (string.IsNullOrEmpty(template))
            {
                throw new ArgumentException("template can't be null", "template");
            }

            if (!System.IO.File.Exists(template))
            {
                throw new System.IO.FileNotFoundException("template file not found", template);
            }


            var ipl = OpenCvSharp.IplImage.FromFile(template, LoadMode.GrayScale);

            _verifier = new FaceProcessingWrapper.FrontFaceVerifier(ipl);
        }