OfficeDocumentOcrExecutionOptions
OfficeIMO.Reader
Controls bounded execution of an optional OCR engine over a document read result.
Inheritance
- object
- OfficeDocumentOcrExecutionOptions
Usage
Explore 4 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
Accepted by parameters 3
Constructors
public OfficeDocumentOcrExecutionOptions() #Methods
public OfficeDocumentOcrExecutionOptions Clone() #Creates an independent execution configuration snapshot.
Inherited Methods
Properties
public string? Language { get; set; } #Language or provider-specific language expression requested for every candidate.
public int MaxCandidates { get; set; } #Maximum candidates considered in one execution. Defaults to 100.
public long MaxInputBytesPerCandidate { get; set; } #Maximum payload size passed to the engine for one candidate. Defaults to 25 MiB.
public long MaxTotalInputBytes { get; set; } #Maximum combined payload size passed to the engine. Defaults to 100 MiB.
public int MaxDegreeOfParallelism { get; set; } #Maximum concurrent engine calls. Defaults to 1 and is forced to 1 for engines that do not advertise concurrency.
public TimeSpan CandidateTimeout { get; set; } #Maximum duration allowed for one engine call. Defaults to two minutes.
public TimeSpan TotalTimeout { get; set; } #Shared deadline for admitting and waiting for engine calls, including nested documents. Defaults to five minutes. Local normalization and projection can finish after this deadline.
public int MaxDocuments { get; set; } #Maximum documents visited by ApplyOcrTreeAsync, including the root. Defaults to 100.
public int MaxNestedDepth { get; set; } #Maximum nested depth visited by ApplyOcrTreeAsync; the root has depth zero. Values from zero through 64 are accepted; defaults to eight.
public int MaxTotalRecognizedCharacters { get; set; } #Maximum recognized text characters retained across the entire execution. Defaults to 4 Mi characters.
public int MaxTotalSpans { get; set; } #Maximum detailed spans retained across the entire execution. Defaults to 100,000.
public int MaxTotalSpanCharacters { get; set; } #Maximum span text and metadata characters retained across the entire execution. Defaults to 4 Mi characters.
public int MaxRecognizedCharactersPerCandidate { get; set; } #Maximum recognized text characters accepted from one engine response. Defaults to 1,000,000.
public int MaxSpansPerCandidate { get; set; } #Maximum detailed spans accepted from one engine response. Defaults to 100,000.
public int MaxSpanCharactersPerCandidate { get; set; } #Maximum aggregate characters retained across span text and span metadata. Defaults to 4 Mi characters.
public int MaxResultMetadataCharactersPerCandidate { get; set; } #Maximum aggregate characters retained in result provider, model, and language metadata. Defaults to 16 Ki characters.
public int MaxProviderDiagnosticsPerCandidate { get; set; } #Maximum provider diagnostics retained from one engine response. Defaults to 1,000.
public int MaxProviderDiagnosticCharactersPerCandidate { get; set; } #Maximum aggregate provider diagnostic code, message, and source characters. Defaults to 1 Mi characters.
public int MaxProviderDiagnosticAttributesPerCandidate { get; set; } #Maximum aggregate provider diagnostic attributes retained per candidate. Defaults to 10,000.
public int MaxProviderDiagnosticAttributeCharactersPerCandidate { get; set; } #Maximum aggregate provider diagnostic attribute key and value characters. Defaults to 1 Mi characters.
public bool ContinueOnError { get; set; } #Whether one provider failure should become a diagnostic while remaining candidates continue.
public bool RequirePayloadHashMatch { get; set; } #Whether a declared asset payload hash must match before bytes are passed to an engine.
public IReadOnlyDictionary<string, string> ProviderOptions { get; set; } #Provider-specific scalar options copied into every engine request.
public OfficeDocumentOcrEnrichmentOptions EnrichmentOptions { get; set; } #Controls how recognized text is merged into the shared read result.