Table of Contents

Property Exception

Namespace
LMKit.Extraction.Ocr
Assembly
LM-Kit.NET.dll

Exception

If OCR threw an exception, this property holds it. Null if OCR succeeded or was canceled.

public Exception Exception { get; }

Property Value

Exception

Examples

ocrEngine.OcrCompleted += (sender, e) =>
{
    if (e.Exception != null)
        Console.WriteLine($"OCR error: {e.Exception.Message}");
};
Share