public void Init(FaceCompreaSet faceCompreaSet)
 {
     this._faceCompreaSet = faceCompreaSet;
     this._faceCompreaSet.FaceTemplates = faceCompreaSet.FaceTemplates;
     this._faceCompare1 = FaceFactory.Create(this._faceCompreaSet.FaceCompareType);
     this._faceCompare1.CreateFaceEngne();
     this._faceCompreaThread = new FaceCompreaThread(this._faceCompreaSet, this._faceCompare1);
     this._faceDeteiveThread = new FaceDeteiveThread(this._faceCompreaThread, this._faceCompreaSet);
     this._faceCaller        = new Thread(new ThreadStart(this._faceCompreaThread.Execute));
     this._captureCaller     = new Thread(new ThreadStart(this._faceDeteiveThread.Execute));
     this._captureHelper     = new CaptureHelper(this._faceDeteiveThread, this._faceCompreaSet);
 }
Example #2
0
 public FaceDeteiveThread(FaceCompreaThread faceCompreaThread, FaceCompreaSet faceCompreaSet)
 {
     this._faceCompreaThread = faceCompreaThread;
     this._faceCompreaSet    = faceCompreaSet;
     this._stop = false;
     if (faceCompreaSet.FaceCompareType == FaceCompareType.FaceCompareV4)
     {
         this._faceDetectV4 = new FaceDetectV4();
         this._faceDetectV4.CreateDetectFaceEngine();
         return;
     }
     this._winFaceCore = new WinFaceCore();
     this._winFaceCore.CreateFaceEngine();
 }
Example #3
0
 public FaceCompreaThread(FaceCompreaSet faceCompreaSet, IFaceCompare faceCompare)
 {
     this._stop             = false;
     this._faceCompreaSet   = faceCompreaSet;
     this._ifaceCompareBase = faceCompare;
 }
Example #4
0
 public CaptureHelper(FaceDeteiveThread captureThread, FaceCompreaSet faceCompreaSet)
 {
     this._captureThread  = captureThread;
     this._faceCompreaSet = faceCompreaSet;
 }