Пример #1
0
        void IKinect.Init()
        {
            // initialize the KinectData object
            if (_kinect != null && _kinect.GetSensor() == null)
            {
                Log.Error("Init cannot be completed. Kinect not active");
                return;
            }

            _gestureProcessor = new GestureProcessor(this, _kinect);
            Log.Info("Gesture processor created");

            _trackingEngine = new TrackingEngine(_kinect, this);

            _trackingEngine.Strategy = TrackingEngine.RECOGNIZED_FIRST;
            //_featureProcessor.StartProcess();
            if (_vocCom != null)
            {
                _vocCom.Start(_kinect.GetSensor());
            }
            else
            {
                Log.Error("Could not load voice commands.");
            }
            Log.Info("Voice Commands loaded.");
        }
Пример #2
0
        void IKinect.Uninit()
        {
            _gestureProcessor = null;
            if (_kinect == null)
            {
                return;
            }
            var kinectSensor = _kinect.GetSensor();

            if (kinectSensor != null)
            {
                kinectSensor.Stop();
            }
        }
Пример #3
0
        void IKinect.Init()
        {
            // initialize the KinectData object
            if(_kinect != null && _kinect.GetSensor() == null)
            {
                Log.Error("Init cannot be completed. Kinect not active");
                return;
            }

            _gestureProcessor = new GestureProcessor(this, _kinect);
            Log.Info("Gesture processor created");

            _trackingEngine = new TrackingEngine(_kinect,this);

            _trackingEngine.Strategy = TrackingEngine.RECOGNIZED_FIRST;
            //_featureProcessor.StartProcess();
            if (_vocCom != null)
                _vocCom.Start(_kinect.GetSensor());
            else
                Log.Error("Could not load voice commands.");
            Log.Info("Voice Commands loaded.");
        }
Пример #4
0
 void IKinect.Uninit()
 {
     _gestureProcessor = null;
     if (_kinect == null) return;
     var kinectSensor = _kinect.GetSensor();
     if (kinectSensor != null) kinectSensor.Stop();
 }