Пример #1
0
        public Scenario1_ExampleOperations()
        {
            this.InitializeComponent();

            UpdateChessParameters();

            SavingDetectedCorners = true;

            _previewRenderer = new FrameRenderer(PreviewImage);
            _outputRenderer  = new FrameRenderer(OutputImage);

            _helper = new OpenCVHelper();

            _FPSTimer = new DispatcherTimer()
            {
                Interval = TimeSpan.FromSeconds(1)
            };
            _FPSTimer.Tick += UpdateFPS;
        }
Пример #2
0
        public void ProcessFrame(MediaFrameReference frame)
        {
            var softwareBitmap = FrameRenderer.ConvertToDisplayableImage(frame?.VideoMediaFrame);

            RenderFrame(softwareBitmap);
        }