private void TrainTabSelected() { CameraCapture.StopCam(); CameraCapture.ImageBoxOutput = imageBoxCameraTrain; CameraCapture.StartTrainCam(); buttonStart.Enabled = false; buttonStop.Enabled = true; }
private void buttonStop_Click(object sender, EventArgs e) { CameraCapture.StopCam(); if (timer != null) { timer.Stop(); } buttonStop.Enabled = false; buttonStart.Enabled = true; }
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; }
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; }
private void buttonCapture_Click(object sender, EventArgs e) { CameraCapture.Train(textBoxName.Text); }