Table of Contents

TTMSFNCWXCustomOCR Class

Base class that performs optical character recognition on images. It accepts an image from several sources, runs recognition through a pool of background workers, reports progress, and exposes the recognized text and layout. Use the published TTMSFNCWXOCR descendant on a form.

API unit family: TMSFNCWXOCR Inherits from: TTMSFNCCustomWEBComponent

Syntax

TTMSFNCWXCustomOCR = class(TTMSFNCCustomWEBComponent)

Properties

Name Description
ResultList Provides the accumulated results of completed recognition jobs. A new result is appended each time a job finishes.

Methods

Name Description
RecognizeBase64 Starts recognizing an image supplied as a Base64-encoded string.
RecognizeBitmap Starts recognizing the contents of the given bitmap.
RecognizeBytes Starts recognizing an image supplied as raw bytes.
RecognizeFile Starts recognizing the image stored in the given file.
RecognizeURL Starts recognizing the image located at the given URL.
Terminate Stops the current workers and restarts the worker pool, cancelling any in-progress recognition.