Table of Contents

Property Cancel

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

Cancel

If set to true by any event subscriber, OCR will be canceled.

public bool Cancel { get; set; }

Property Value

bool

Examples

ocrEngine.OcrStarting += (sender, e) =>
{
    // Skip OCR on pages beyond the first 5
    if (e.PageIndex >= 5)
        e.Cancel = true;
};
Share