Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

TesseractOcrSession

OfficeIMO.Ocr.Tesseract

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

Reusable, fully resolved Tesseract OCR session for raster images from any document format.

Inheritance

  • object
  • TesseractOcrSession

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Methods

public Task<OcrResult> RecognizeAsync(byte[] image, string mediaType, string? sourceName = null, CancellationToken cancellationToken = default) #

Recognizes one supported raster payload.

Parameters

image byte[] required
mediaType string required
sourceName string? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<OcrResult>

Properties

public TesseractOcrRuntimeEvidence Runtime { get; } #

Resolved runtime and trained-data evidence.

public IOcrEngine Engine { get; } #

The reusable engine-neutral OCR engine.