Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OcrEngineRunner

OfficeIMO.Ocr

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

Coordinates bounded calls to a shared OCR engine instance.

Inheritance

  • object
  • OcrEngineRunner

Methods

public static OcrEngineExecution CreateExecution(IOcrEngine engine) #

Captures one validated identity and capability snapshot for a logical OCR operation.

Parameters

engine OfficeIMO.Ocr.IOcrEngine required
public static string GetValidatedEngineId(IOcrEngine engine) #

Reads and validates the stable identifier exposed by an OCR engine.

Parameters

engine OfficeIMO.Ocr.IOcrEngine required

Returns

string
public static Task<OcrResult> RecognizeAsync(IOcrEngine engine, OcrRequest request, TimeSpan timeout, CancellationToken cancellationToken = default) #

Runs one recognition request within a total timeout. Engines that do not advertise concurrent-request support are serialized across every Reader, PDF, and caller integration using this method.

Parameters

engine OfficeIMO.Ocr.IOcrEngine required
request OfficeIMO.Ocr.OcrRequest required
timeout System.TimeSpan required
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<OcrResult>

Fields

public const int MaximumEngineIdCharacters #

Maximum accepted length of an OCR engine identifier before surrounding whitespace is removed.

Value: 256