Interface IOCRSession
Represents an active OCR session with fixed recognition options. Create via CreateSessionAsync(IReadOnlyDictionary<string, object>, CancellationToken).
Inherited Members
Namespace: Zaya.OCR.Services
Assembly: Zaya.OCR.dll
Syntax
public interface IOCRSession : IDisposable
Methods
| Edit this page View SourceRecognizeAsync(IRawImage, CancellationToken)
Recognizes text from the provided raw image.
Declaration
Task<IOCRResult> RecognizeAsync(IRawImage image, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| IRawImage | image | The raw image to recognize text from. |
| CancellationToken | cancellationToken | Token to cancel the recognition operation. |
Returns
| Type | Description |
|---|---|
| Task<IOCRResult> | The OCR result containing recognized words and confidence. |