Esempio n. 1
0
 private bool StartLiveDriver(string licensePath, string modelPath)
 {
     string license = File.ReadAllText(licensePath);
     liveDriver = LiveDriverGlobals.CreateLiveDriver(license);
     if(liveDriver == null) {
         return false;
     }
     liveDriver.CurrentTrackingModel = modelPath;
     if(!liveDriver.Start()) {
         return false;
     }
     image = liveDriver.CreateImage();
     isStarted = true;
     Calibrate();
     return true;
 }
Esempio n. 2
0
 private FaceTrackingWrapper()
 {
     webcam = new WebcamAccessor();
     liveDriver = null;
     image = null;
 }
Esempio n. 3
0
 public static void DestoryLiveDriver(LiveDriver liveDriver)
 {
     ILiveDriverGlobals_DestroyLiveDriver(liveDriver.NativePtr);
 }