Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

TesseractOcr

OfficeIMO.Ocr.Tesseract

Namespace
OfficeIMO.Ocr.Tesseract
Assembly
OfficeIMO.Ocr.Tesseract
Source revision
063fe3ee9839 with working tree changes
Modifiers
static

Automatic local Tesseract discovery with reusable session support.

Inheritance

  • object
  • TesseractOcr

Methods

public static async Task<TesseractOcrSession> CreateSessionAsync(TesseractOcrSessionOptions? options = null, CancellationToken cancellationToken = default) #

Discovers Tesseract, validates it, and provisions missing curated language data when enabled.

Parameters

options OfficeIMO.Ocr.Tesseract.TesseractOcrSessionOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<TesseractOcrSession>
public static async Task<OcrResult> RecognizeFileAsync(string imagePath, TesseractOcrSessionOptions? options = null, CancellationToken cancellationToken = default) #

Recognizes a supported image file with automatic runtime discovery.

Parameters

imagePath string required
options OfficeIMO.Ocr.Tesseract.TesseractOcrSessionOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<OcrResult>