コード例 #1
0
        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");
        }
コード例 #2
0
        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");
        }