Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ProcessOcrEngine

OfficeIMO.Ocr.Process

Namespace
OfficeIMO.Ocr.Process
Assembly
OfficeIMO.Ocr.Process
Source revision
063fe3ee9839 with working tree changes
Implements
IOcrEngine
Modifiers
sealed

Runs an external executable that implements the OfficeIMO OCR JSON file protocol.

Inheritance

  • object
  • ProcessOcrEngine

Constructors

public ProcessOcrEngine(ProcessOcrEngineOptions options) #

Creates a process-backed OCR engine from an immutable option snapshot.

Parameters

options OfficeIMO.Ocr.Process.ProcessOcrEngineOptions required

Methods

public async Task<OcrResult> RecognizeAsync(OcrRequest request, CancellationToken cancellationToken = default) #

Recognizes text and optional detailed spans from one raster payload.

Parameters

request OfficeIMO.Ocr.OcrRequest required
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<OcrResult>

Properties

public string Id { get; } #

Stable provider identifier used in diagnostics and provenance. The value must remain unchanged for the lifetime of this configured engine instance, and the untrimmed value must not exceed OcrEngineRunner.MaximumEngineIdCharacters characters.

public OcrEngineCapabilities Capabilities { get; } #

Stable capabilities exposed by this configured engine instance.