How Can We Help?

SimpleOCR:SDK Functions – OCRSetProgressHandler

You are here:
< All Topics

OCRProgressHandler OCRSetProgressHandler(OCRProgressHandler handler)

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

Return Value

Previously selected progress handler.

Parameters

handler

New OCR 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.

Contact Us for FREE Consultation on Your OCR Project
=
Table of Contents

Title

Go to Top