private void OnVideoPlayerControllerOnFrameReaded(object sender, System.Drawing.Imaging.BitmapData e) { var result = _detectorSelector.SelectedDetectorFactory.GetDetector().Detect(e); _logController.AddMessage("Frame processed"); OnObjectDetected(result); }
public MainForm(LogController logController, VideoPlayerController videoPlayerController, RecognitionController recognitionController, SettingsControl settingsControl) { InitializeComponent(); _logController = logController; _videoPlayerController = videoPlayerController; _log = new LogControl(_logController); _setting = settingsControl; _videoPlayer = new VideoPlayerControl(_logController, _videoPlayerController, recognitionController); _pnlLog.Controls.Add(_log); _pnlSettings.Controls.Add(_setting); _pnlVideo.Controls.Add(_videoPlayer); _logController.AddMessage("Старт программы."); }
private void _btnStart_Click(object sender, EventArgs e) { _logController.AddMessage("Started"); _recognitionController.StartRecognition(); _videoPlayerController.Start(); }