예제 #1
0
 public SpeechEngine(KinectHandler handler)
 {
     _kinectHandler             = handler;
     _commands                  = new GrammarBuilder();
     _grammar                   = new Grammar(_commands);
     _grammar.SpeechRecognized += new EventHandler <SpeechRecognizedEventArgs>(_grammar_SpeechRecognized);
 }
예제 #2
0
 public SpeechEngine(KinectHandler handler)
 {
     _kinectHandler = handler;
     _commands = new GrammarBuilder();
     _grammar = new Grammar(_commands);
     _grammar.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(_grammar_SpeechRecognized);
 }
예제 #3
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");
        }
예제 #4
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");
        }