Table of Contents

Event OrientationDetected

Namespace
LMKit.Integrations.Tesseract
Assembly
LM-Kit.NET.dll

Occurs when page orientation is detected during OCR processing.

public event Action<int> OrientationDetected

Returns

Action<int>
Occurs when page orientation is detected during OCR processing.

Examples

var ocr = new TesseractOcr();
ocr.OrientationDetected += rotationAngle =>
{
    Console.WriteLine($"[OCR] Detected page rotation: {rotationAngle}°");
};

Remarks

This event fires only when EnableOrientationDetection is true. The rotation angle represents the detected page rotation in degrees (0, 90, 180, or 270). A value of 0 indicates no rotation was detected or confidence was too low.