Namespace LMKit.Extraction.Ocr
Classes
- LMKitOcr
Provides high-throughput OCR functionality optimized for business documents, with advanced page layout analysis, automatic language and orientation detection, and automatic model download support. Implements IDisposable to release native OCR resources.
- 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, a display name, and an optional Attachment for contextual metadata.
- OcrProgressEventArgs
Provides data for page-level progress events during OCR-based document conversion operations such as PdfSearchableMaker and ImageToSearchablePdf.
- 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 OCR parameters and allows cancellation.
- OcrUnderline
One underline the OCR engine found under a text line and lifted from the page before recognizing it: the words above read clean, and the mark is kept as a detection.
- VlmOcr.VlmOcrResult
Represents the detailed result of a vision-language OCR operation.
Enums
- OcrUnderline.Trait
What the page around a mark says about it, as the engine read it from the pixels.
- OcrUnderlineOptions
The optional behaviours of the engine's underline pass, the one that lifts underlines off a page before recognizing it and reports them as OcrUnderline detections. Nothing here changes which strokes are erased from the image the recognizer reads, except ErasePieces.
- VlmOcrIntent
Specifies the desired outcome of a VlmOcr operation.