예제 #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);
        }