Example #1
0
 public void StopRecording()
 {
     if (m_webCam != null)
     {
         m_webCam.Stop();
     }
 }
Example #2
0
 private void Keyboard_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyboardDevice.Modifiers == ModifierKeys.Shift && e.Key == System.Windows.Input.Key.P)
     {
         if (ME_test.Visibility != Visibility.Visible)
         {
             ME_test.Visibility = Visibility.Visible;
             webcam.Stop();
             ME_test.Play();
         }
         else
         {
             ME_test.Stop();
             ME_test.Visibility = Visibility.Collapsed;
             webcam.Start(0);
         }
     }
 }
Example #3
0
        public void Stop()
        {
            //Decouple this using events and observer pattern
            webcam.Stop();
            MainWindowView view = MainWindowView.GetInstrance();

            view.CameraStartStopButtonText = "Start";
            WebCamOpen = false;
        }
Example #4
0
        void webcam1_ImageCaptured(object source, WebcamEventArgs e)
        {
            _FrameImage.Image = e.WebCamImage;

            if (bCapture == true)
            {
                imgCapture.Image = imgVideo.Image;
                bCapture         = false;
                SaveImageCapture(imgCapture.Image);
                webcam1.Stop();
                //Azure
                Form1.UploadFileToAzure();
            }
        }
Example #5
0
 public void Stop()
 {
     webcam.Stop();
 }
 private void bntStop_Click(object sender, RoutedEventArgs e)
 {
     webcam.Stop();
     imgVideo.Source = null;
 }
 private void camStop(object obj)
 {
     webCam.Stop();
 }
Example #8
0
 public void Stop() => camera.Stop();
Example #9
0
        private void Keyboard_KeyUp(object sender, KeyEventArgs e)//V
        {
            if (e.KeyboardDevice.Modifiers == ModifierKeys.Shift && e.Key == System.Windows.Input.Key.D1)
            {
                if (TextBox1.Visibility == Visibility.Visible)
                {
                    TextBox1.Visibility = Visibility.Collapsed;
                }
                else
                {
                    TextBox1.Visibility = Visibility.Visible;
                }
            }

            if (e.KeyboardDevice.Modifiers == ModifierKeys.Shift && e.Key == System.Windows.Input.Key.D2)
            {
                if (ctext.Visibility == Visibility.Visible)
                {
                    ctext.Visibility = Visibility.Collapsed;
                }
                else
                {
                    ctext.Visibility = Visibility.Visible;
                }
            }
            if (e.KeyboardDevice.Modifiers == ModifierKeys.Shift && e.Key == System.Windows.Input.Key.R)//C
            {
                webcam.Stop();
                webcam.Start(0);
            }
            if (e.KeyboardDevice.Modifiers == ModifierKeys.Shift && e.Key == System.Windows.Input.Key.P)//V
            {
                if (ME_Test.Visibility != Visibility.Visible)
                {
                    ME_Test.Visibility = Visibility.Visible;
                    webcam.Stop();
                    ME_Test.Play();
                }
                else
                {
                    ME_Test.Stop();
                    ME_Test.Visibility = Visibility.Collapsed;
                    webcam.Start(0);
                }
            }
            if (e.KeyboardDevice.Modifiers == ModifierKeys.Shift && e.Key == System.Windows.Input.Key.F3)//V
            {
                Image_IsSound.Visibility = Visibility.Visible;
                if (NoSoundEffects == 0)
                {
                    NoSoundEffects       = 1;
                    Image_IsSound.Source = new BitmapImage(new Uri("Images/NoSound.png", UriKind.Relative));
                    timer3.Start();
                }
                else
                {
                    NoSoundEffects       = 0;
                    Image_IsSound.Source = new BitmapImage(new Uri("Images/SoundIcon.png", UriKind.Relative));
                    timer3.Start();
                }
            }
            if (e.KeyboardDevice.Modifiers == ModifierKeys.Shift && e.Key == System.Windows.Input.Key.D3)//V
            {
                if (Label_ByteData.Visibility == Visibility.Visible)
                {
                    Label_ByteData.Visibility = Visibility.Collapsed;
                }
                else
                {
                    Label_ByteData.Visibility = Visibility.Visible;
                }
            }
            if (e.KeyboardDevice.Modifiers == ModifierKeys.Shift && e.Key == System.Windows.Input.Key.D4)//V
            {
                if (Label_SendingBytes.Visibility == Visibility.Visible)
                {
                    Label_SendingBytes.Visibility = Visibility.Collapsed;
                }
                else
                {
                    Label_SendingBytes.Visibility = Visibility.Visible;
                }
            }
            if (e.Key == System.Windows.Input.Key.T) //V
            {
                vmodel.FirstDepth = Model.vSM.depth; //+погрешность
            }
        }
Example #10
0
 public void Tat()
 {
     mywebcam.Stop();
 }
Example #11
0
 private void Stop()
 {
     m_webCamCapture.Stop();
 }
Example #12
0
 public void Stop()
 {
     webcam.Stop();
     camara = false;
 }
Example #13
0
 /// <summary>
 /// остановка камеры
 /// </summary>
 public void Stop()
 {
     camera.Stop();
 }