Show / Hide Table of Contents

Interface IOCRSession

Represents an active OCR session with fixed recognition options. Create via CreateSessionAsync(IReadOnlyDictionary<string, object>, CancellationToken).

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

Methods

| Edit this page View Source

RecognizeAsync(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.

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