Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OcrRequest

Namespace OfficeIMO.Ocr
Assembly OfficeIMO.Ocr
Source revision 378fa9b4b0cb with working tree changes
Modifiers sealed

One engine-neutral recognition request. Document formats map their source objects into this contract without making OCR providers depend on Reader, PDF, Word, Excel, PowerPoint, or another format package.

Inheritance

  • Object
  • OcrRequest

Usage

Explore 8 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.

Accepted by parameters 8

Constructors

public OcrRequest() #

Properties

public OcrOperation Operation { get; set; } #

Requested operation. Existing callers and providers default to text recognition.

public Byte[] Payload { get; set; } #

Validated raster payload supplied to the engine.

public String MediaType { get; set; } #

IANA media type for OcrRequest.Payload.

public String? FileName { get; set; } #

Original or synthetic file name, used only as provider input metadata.

public String? SourceId { get; set; } #

Stable caller-owned identifier for the source document or artifact.

public String? SourceName { get; set; } #

Human-readable source path or logical name.

public String? CandidateId { get; set; } #

Stable caller-owned identifier for this recognition candidate.

public String? CandidateKind { get; set; } #

Caller-defined candidate kind such as image, page, slide, or worksheet-image.

public Int32? PageNumber { get; set; } #

One-based page or frame number within the source payload, when applicable.

public Int32? PixelWidth { get; set; } #

Raster width in pixels, when known.

public Int32? PixelHeight { get; set; } #

Raster height in pixels, when known.

public OcrRegion? Region { get; set; } #

Source region represented by the payload, when the caller extracted only part of an artifact.

public OcrCoordinateUnit RegionCoordinateUnit { get; set; } #

Coordinate unit used by OcrRequest.Region.

public String? Language { get; set; } #

Requested language tag or provider-specific language expression, when configured.

public IReadOnlyDictionary<String, String> ProviderOptions { get; set; } #

Provider-specific scalar options supplied by the host.