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 CaptureHelper(FaceDeteiveThread captureThread, FaceCompreaSet faceCompreaSet)
 {
     this._captureThread  = captureThread;
     this._faceCompreaSet = faceCompreaSet;
 }