Skip to content

IOcrEngine interface

View as Markdown

Namespace: PdfNetStack.Ocr
Assembly: PdfNetStack.Ocr.dll
Package: PdfNetStack.Ocr

Recognizes text in images. Implementations must be safe to call from several threads.

public interface IOcrEngine : IDisposable

Implements

IDisposable

Recognize(OcrBitmap, OcrRequest, CancellationToken)

Section titled “ Recognize(OcrBitmap, OcrRequest, CancellationToken)”

Recognizes one upright 8 bit gray image; boxes come back in its pixel coordinates.

OcrImageResult Recognize(OcrBitmap image, OcrRequest request, CancellationToken cancellationToken)

image OcrBitmap

The image, text upright.

request OcrRequest

The script to read.

cancellationToken CancellationToken

Stops the work between lines.

OcrImageResult