コード例 #1
0
        private void OnVideoPlayerControllerOnFrameReaded(object sender, System.Drawing.Imaging.BitmapData e)
        {
            var result = _detectorSelector.SelectedDetectorFactory.GetDetector().Detect(e);

            _logController.AddMessage("Frame processed");
            OnObjectDetected(result);
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: MLSTART/Intensiv
        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("Старт программы.");
        }
コード例 #3
0
 private void _btnStart_Click(object sender, EventArgs e)
 {
     _logController.AddMessage("Started");
     _recognitionController.StartRecognition();
     _videoPlayerController.Start();
 }