public TrackingEngine(KinectData kinect, KinectHandler kinectHandler) { if (Log == null) { return; } Log.Info("Starting TrackingEngine"); _kinect = kinect; _kinectHandler = kinectHandler; Strategy = RECOGNIZED_FIRST; if (_kinect != null) { Log.Info("Attaching to Kinect"); var kinectSensor = _kinect.GetSensor(); if (kinectSensor != null) { kinectSensor.AllFramesReady += TrackingEngineAllFramesReady; } _recognitionEngine = new RecognitionEngine(kinect, this); } _activeTID = -1; Log.Info("Tracking Engine Started"); LoadUsers(); Log.Info("Users loaded"); }
public TrackingEngine(KinectData kinect, KinectHandler kinectHandler) { if (Log == null) return; Log.Info("Starting TrackingEngine"); _kinect = kinect; _kinectHandler = kinectHandler; Strategy = RECOGNIZED_FIRST; if (_kinect != null) { Log.Info("Attaching to Kinect"); var kinectSensor = _kinect.GetSensor(); if (kinectSensor != null) kinectSensor.AllFramesReady+=TrackingEngineAllFramesReady; _recognitionEngine = new RecognitionEngine(kinect,this); } _activeTID = -1; Log.Info("Tracking Engine Started"); LoadUsers(); Log.Info("Users loaded"); }