API Reference
Class
TesseractOcr
Automatic local Tesseract discovery with reusable session support.
Inheritance
- Object
- TesseractOcr
Methods
public static async Task<TesseractOcrSession> CreateSessionAsync(TesseractOcrSessionOptions options = null, CancellationToken cancellationToken = null) #Returns:
Task<TesseractOcrSession>Discovers Tesseract, validates it, and provisions missing curated language data when enabled.
Parameters
- options OfficeIMO.Ocr.Tesseract.TesseractOcrSessionOptions = null
- cancellationToken System.Threading.CancellationToken = null
public static async Task<OcrResult> RecognizeFileAsync(String imagePath, TesseractOcrSessionOptions options = null, CancellationToken cancellationToken = null) #Returns:
Task<OcrResult>Recognizes a supported image file with automatic runtime discovery.
Parameters
- imagePath System.String
- options OfficeIMO.Ocr.Tesseract.TesseractOcrSessionOptions = null
- cancellationToken System.Threading.CancellationToken = null
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object