SimpleOCR:SDK Functions – OCRSetProgressHandler

You are here:
< All Topics

OCRProgressHandler OCRSetProgressHandler(OCRProgressHandler handler)

When the engine processes a document, a user defined function of type OCRProgressHandler, is called several times.

Return Value

Previously selected progress handler.

Parameters

handler

New Progress handler function.

Comments

An OCRProgressHandler has the following form:

int AProgressHandler(int percent);

with percent, the percentage of the job completed at the time of the call. This value is between 0 and 100.

Defining such a function allows an application to display a progress bar. With this function, it’s also possible to interrupt the OCR process. If the progress handler returns a non zero value, the OCR process is stopped.

Previous SimpleOCR:SDK Functions – OCRSetOutputHandler
Next SimpleOCR:SDK Functions – OCRSetTemplate
Table of Contents
Contact Us for FREE Consultation on Your OCR Project
Go to Top