Table of Contents

TTMSFNCWXOCR Class

Optical character recognition component that extracts text from images. It exposes the configuration, jobs, and events of TTMSFNCWXCustomOCR as published members for use at design time.

API unit family: TMSFNCWXOCR Inherits from: TTMSFNCWXCustomOCR

Syntax

TTMSFNCWXOCR = class(TTMSFNCWXCustomOCR)

Properties

Name Description
Language Specifies the recognition language as a three-letter language code, for example eng for English. (inherited from TTMSFNCWXCustomOCR)
ResultList Provides the accumulated results of completed recognition jobs. A new result is appended each time a job finishes. (inherited from TTMSFNCWXCustomOCR)
WorkerCount Specifies how many background workers process recognition jobs in parallel. More workers can increase throughput at the cost of memory. (inherited from TTMSFNCWXCustomOCR)

Methods

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

Events

Name Description
OnFinishOCR Occurs when a recognition job completes successfully and the result is available. (inherited from TTMSFNCWXCustomOCR)
OnOCRError Occurs when a recognition job fails, providing a message that describes the failure. (inherited from TTMSFNCWXCustomOCR)
OnOCRInitialized Occurs once the recognition engine and worker pool have finished initializing and are ready to accept jobs. (inherited from TTMSFNCWXCustomOCR)
OnProgressOCR Occurs repeatedly while a recognition job is running to report its progress. (inherited from TTMSFNCWXCustomOCR)