private void FoundBlobs(object sender, BlobsFoundArgs e) { BlobPreview.Invoke((MethodInvoker) delegate { BlobPreview.Image = new Bitmap(e.Blobs.Last().Blob); }); ocrProcessor.ProcessWorksAsync(e.Blobs); }
private void DetectedBlobs(object sender, DetectedBlobsArgs e) { BlobPreview.InvokeAction(() => BlobPreview.Image = new Bitmap(e.Blobs.First())); ocrEngine.ProcessImages(e.Blobs); }