예제 #1
0
 private void TrainTabSelected()
 {
     CameraCapture.StopCam();
     CameraCapture.ImageBoxOutput = imageBoxCameraTrain;
     CameraCapture.StartTrainCam();
     buttonStart.Enabled = false;
     buttonStop.Enabled  = true;
 }
예제 #2
0
 private void buttonStop_Click(object sender, EventArgs e)
 {
     CameraCapture.StopCam();
     if (timer != null)
     {
         timer.Stop();
     }
     buttonStop.Enabled  = false;
     buttonStart.Enabled = true;
 }
예제 #3
0
 private void buttonStart_Click(object sender, EventArgs e)
 {
     CameraCapture.StartMainCam();
     timer          = new DispatcherTimer();
     timer.Tick    += ShowInformation;
     timer.Interval = new TimeSpan(0, 0, 0, 0, 1);
     timer.Start();
     buttonStart.Enabled = false;
     buttonStop.Enabled  = true;
 }
예제 #4
0
 private void MainTabSelected()
 {
     CameraCapture.StopCam();
     CameraCapture.ImageBoxOutput = imageBoxCameraMain;
     CameraCapture.StartMainCam();
     timer          = new DispatcherTimer();
     timer.Tick    += ShowInformation;
     timer.Interval = new TimeSpan(0, 0, 0, 0, 100);
     timer.Start();
     buttonStart.Enabled = false;
     buttonStop.Enabled  = true;
 }
예제 #5
0
 private void buttonCapture_Click(object sender, EventArgs e)
 {
     CameraCapture.Train(textBoxName.Text);
 }