private void PlayBtn_Click(object sender, EventArgs e) { _videoRecognitionResults = new VideoRecognitionResults(); var progress = new Progress <VideoRecognitionResult>(OnImageDetected); PlayBtn.Enabled = false; VideoReaderThreadManager.Start(VideoFile, progress); }
private void PlayBtn_Click(object sender, EventArgs e) { _couplingCounterLabel.Text = "0"; _progressBar.Value = 0; _playBtn.Enabled = false; _videoRecognitionResults = new VideoRecognitionResults(); var progress = new Progress <VideoRecognitionResult>(OnImageDetected); Detector.ProcessVideo(_videoFile, progress); }