Show / Hide Table of Contents

Interface ITextLayoutSession

Represents an active text layout session with fixed processing parameters. Create via CreateSessionAsync(IReadOnlyDictionary<string, object>, CancellationToken).

Inherited Members
IDisposable.Dispose()
Namespace: Zaya.OCR.Services
Assembly: Zaya.OCR.dll
Syntax
public interface ITextLayoutSession : IDisposable

Methods

| Edit this page View Source

ProcessAsync(IOCRResult, CancellationToken)

Processes an OCR result and merges individual words into structured text blocks.

Declaration
Task<ITextResult> ProcessAsync(IOCRResult result, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IOCRResult result

The raw OCR result containing recognized words.

CancellationToken cancellationToken

Token to cancel the processing operation.

Returns
Type Description
Task<ITextResult>

The processed text result containing ordered text blocks.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX