Event OcrStarting
- Namespace
- LMKit.Extraction.Ocr
- Assembly
- LM-Kit.NET.dll
Raised just before OCR begins. Subscribers can inspect the attachment and, if they wish, set Cancel = true to abort.
public event EventHandler<OcrStartingEventArgs> OcrStarting
Returns
- EventHandler<OcrStartingEventArgs>
- Raised just before OCR begins. Subscribers can inspect the attachment and, if they wish, set = true to abort.
Examples
ocrEngine.OcrStarting += (sender, e) =>
{
Console.WriteLine($"Starting OCR on page {e.PageIndex}");
// Optionally cancel: e.Cancel = true;
};