public FaceRecognitionLibrary(string nameOrConnectionString)
     : this()
 {
     _faceDetectionAlgorithm = new FaceDetectionAlgorithm();
     _faceRecognitionAlgorithm = new FaceRecognitionAlgorithm(nameOrConnectionString, _faceDetectionAlgorithm);
     _fromFileDatabaseFiller = new FromFileDatabaseFiller(_faceRecognitionAlgorithm);
 }
 public FaceRecognitionLibrary(string faceHaarCascadePath, string eyeHaarCascadePath, string nameOrConnectionString)
     : this()
 {
     _faceDetectionAlgorithm = new FaceDetectionAlgorithm(faceHaarCascadePath, eyeHaarCascadePath);
     _faceRecognitionAlgorithm = new FaceRecognitionAlgorithm(nameOrConnectionString, _faceDetectionAlgorithm);
 }
 public FromFileDatabaseFiller(FaceRecognitionAlgorithm faceRecognitionAlgorithm)
 {
     _faceRecognitionAlgorithm = faceRecognitionAlgorithm;
     _tempDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase).Replace("file:\\", "") + "\\Files\\Temp";
 }
Exemple #4
0
 public FromFileDatabaseFiller(FaceRecognitionAlgorithm faceRecognitionAlgorithm)
 {
     _faceRecognitionAlgorithm = faceRecognitionAlgorithm;
     _tempDirectory            = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase).Replace("file:\\", "") + "\\Files\\Temp";
 }