Event LanguageDetected
- Namespace
- LMKit.Integrations.Tesseract
- Assembly
- LM-Kit.NET.dll
Occurs when a language is detected during OCR processing.
public event Action<Language> LanguageDetected
Returns
Examples
var ocr = new TesseractOcr();
ocr.LanguageDetected += detectedLang =>
{
Console.WriteLine($"[OCR] Detected language: {detectedLang}");
};
Remarks
This event fires only when EnableLanguageDetection is true
and a valid VisionModel with vision capabilities is configured.
Subscribers can use this callback to inspect or log the detected language
before the OCR engine proceeds with recognition.