Table of Contents

Namespace LMKit.Extraction.Ocr

Classes

OcrCompletedEventArgs

EventArgs for when OCR has completed (either successfully or faulted). If an exception occurred, Result will be null and Exception will be set.

OcrEngine

Represents an Optical Character Recognition (OCR) engine capable of processing image data and extracting text. Concrete implementations must override RunAsync(OcrParameters, CancellationToken) to perform actual OCR. Exposes events that fire just before and just after OCR executes, and allows cancellation.

OcrParameters

Encapsulates all parameters required to perform OCR on an image, including the raw image data and an optional Attachment for context.

OcrResult

Represents the result of an OCR operation, encapsulating the recognized text and its optional positional layout within the source image.

OcrStartingEventArgs

EventArgs for when OCR is about to start. Carries the optional attachment and allows cancellation.