Event LanguageDetected
- Namespace
- LMKit.Integrations.Tesseract
- Assembly
- LM-Kit.NET.dll
Occurs when a language is detected during OCR processing, typically when EnableLanguageDetection is enabled. Subscribers can use this callback to inspect or log the detected Language before the OCR engine proceeds.
public event Action<Language> LanguageDetected
Returns
- Action<Language>
- Occurs when a language is detected during OCR processing, typically when is enabled. Subscribers can use this callback to inspect or log the detected before the OCR engine proceeds.
Examples
var ocr = new TesseractOcrEngine();
ocr.LanguageDetected += detectedLang =>
{
Console.WriteLine($"[OCR] Detected language: {detectedLang}");
};