Ejemplo n.º 1
0
 public FaceDP(string webPath)
 {
     _cascadeClassifier = new CascadeClassifier(webPath + "\\Classifier\\haarcascade_frontalface_default.xml");
     _dataStoreAccess   = new DataStoreAccess(webPath + "\\DB\\faceDB.db3");
     _cropFaces         = null;
     _unknowFace        = new Image <Bgr, byte>(webPath + "\\Images\\unknown.bmp");
     _recognizer        = new FaceRecognitionService(webPath + "\\DB\\faceDB.db3", webPath + "\\bin\\TrainedFaces.yaml");
     _computerVison     = new CComputerVison();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// face's data processing initialize
        /// </summary>
        public FaceDP()
        {
            //"/haarcascade_frontalface_alt_tree.xml"
            //"/haarcascade_frontalface_default.xml"
            string str = System.Environment.CurrentDirectory;

            _cascadeClassifier = new CascadeClassifier("./Classifier/haarcascade_frontalface_default.xml");
            _dataStoreAccess   = new DataStoreAccess("../DB/faceDB.db3");
            _cropFaces         = null;
            _unknowFace        = new Image <Bgr, byte>("./unknown.bmp");
            _recognizer        = new FaceRecognitionService("../DB/faceDB.db3", "./TrainedFaces.yaml");
            _computerVison     = new CComputerVison();
        }