예제 #1
0
        /// <summary>
        /// Execute startup tasks
        /// </summary>
        /// <param name="sender">object sending the event</param>
        /// <param name="e">event arguments</param>
        private void WindowLoaded(object sender, RoutedEventArgs e)
        {
            Logger.Init(this.richTextBox_console);

            InitializeSensor();
            InitializeDMX();

            populateDropDowns();

            LightThread.StartLights();

            // Start speech recognizer after KinectSensor started successfully.
            this.mySpeechRecognizer = SpeechRecognizer.Create();

            if (null != this.mySpeechRecognizer)
            {
                this.mySpeechRecognizer.Start(sensor.AudioSource);
                Logger.Log("VR started.");
            }


            try { TableVision.LoadBallSignatures(); }
            catch (Exception ex) { Logger.Log("Unable to load ball signatures: " + ex.ToString()); }
        }
예제 #2
0
 private void button_detect_Click(object sender, RoutedEventArgs e)
 {
     TableVision.DetectBalls();
 }