Ejemplo 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;
 }
Ejemplo n.º 2
0
 private FaceTrackingWrapper()
 {
     webcam = new WebcamAccessor();
     liveDriver = null;
     image = null;
 }
Ejemplo n.º 3
0
 public static void DestoryLiveDriver(LiveDriver liveDriver)
 {
     ILiveDriverGlobals_DestroyLiveDriver(liveDriver.NativePtr);
 }