Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

ProcessOcrEngine

Namespace OfficeIMO.Ocr.Process
Assembly OfficeIMO.Ocr.Process
Source revision dce3df7a1b5d 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 requiredposition: 0

Methods

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

Recognizes text and optional detailed spans from one raster payload.

Parameters

request OfficeIMO.Ocr.OcrRequest requiredposition: 0
cancellationToken System.Threading.CancellationToken = default optionalposition: 1

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.