Ejemplo n.º 1
0
        private void FpsChanged(object sender, FpsChangedEventArgs ea)
        {
            this.Dispatcher.Invoke(() =>
            {
                lblFrameRate.Content = String.Format("Frame Rate: {0}", Math.Round(ea.Fps));

                string accuracy = _captureController.FrameReader.TrackingAccuracy;

                if (!_captureController.SessionManager.isSweeping)
                {
                    if (accuracy == "HIGH")
                    {
                        lblSceneTrackingAccuracy.Content    = accuracy;
                        lblSceneTrackingAccuracy.Foreground = Brushes.Green;
                    }
                    else if (accuracy == "MID")
                    {
                        lblSceneTrackingAccuracy.Content    = accuracy;
                        lblSceneTrackingAccuracy.Foreground = Brushes.YellowGreen;
                    }
                    else
                    {
                        lblSceneTrackingAccuracy.Content    = "RESETING";
                        lblSceneTrackingAccuracy.Foreground = Brushes.Red;
                    }
                }
            });
        }
Ejemplo n.º 2
0
 private void StartCapture(object sender, FpsChangedEventArgs ea)
 {
     this.Dispatcher.Invoke(() =>
     {
     });
 }