Exemplo n.º 1
0
        private void DoTracking()
        {
            FaceTracking ft = new FaceTracking(this);

            if (simpleToolStripMenuItem.Checked)
            {
                ft.SimplePipeline();
            }
            else
            {
                ft.AdvancedPipeline();
            }
            this.Invoke(new DoTrackingCompleted(
                            delegate
            {
                Start.Enabled    = true;
                Stop.Enabled     = false;
                MainMenu.Enabled = true;
                if (closing)
                {
                    Close();
                }
            }
                            ));
        }
Exemplo n.º 2
0
        private void DoTracking()
        {
            var ft = new FaceTracking(this);

            ft.SimplePipeline();
            Invoke(new DoTrackingCompleted(() =>
            {
                foreach (CheckBox moduleCheckBox in m_modulesCheckBoxes)
                {
                    moduleCheckBox.Enabled = true;
                }
                Start.Enabled    = true;
                Stop.Enabled     = false;
                MainMenu.Enabled = true;

                Mirror.Enabled             = true;
                NumDetectionText.Enabled   = true;
                NumLandmarksText.Enabled   = true;
                NumPoseText.Enabled        = true;
                NumExpressionsText.Enabled = true;

                RegisterUser.Enabled   = false;
                UnregisterUser.Enabled = false;

                if (m_closing)
                {
                    Close();
                }
            }));
        }