Interface ITextLayoutSession
Represents an active text layout session with fixed processing parameters. Create via CreateSessionAsync(IReadOnlyDictionary<string, object>, CancellationToken).
Inherited Members
Namespace: Zaya.OCR.Services
Assembly: Zaya.OCR.dll
Syntax
public interface ITextLayoutSession : IDisposable
Methods
| Edit this page View SourceProcessAsync(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. |