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; }
public void ProcessFrame(MediaFrameReference frame) { var softwareBitmap = FrameRenderer.ConvertToDisplayableImage(frame?.VideoMediaFrame); RenderFrame(softwareBitmap); }