Property OcrLanguages
- Namespace
- LMKit.Document.Conversion
- Assembly
- LM-Kit.NET.dll
OcrLanguages
Gets or sets the languages the OCR engine should recognize when
OcrEngine is supplied. Defaults to null, in which case the OCR
engine uses its own configured default language (or its language detection, when
enabled). Supply one or more Language values to bias OCR toward the
document's language, which improves recognition accuracy. Ignored when
OcrEngine is null or when a vision-language strategy is used.
public IList<Language> OcrLanguages { get; set; }
Property Value
Examples
using LMKit.Document.Conversion;
using LMKit.Extraction.Ocr;
using LMKit.TextGeneration;
var options = new DocumentToMarkdownOptions
{
Strategy = DocumentToMarkdownStrategy.TextExtraction,
OcrEngine = new LMKitOcr(),
OcrLanguages = new[] { Language.French }
};