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