SimpleOCR:SDK Functions – OCRSetProgressHandler
OCRProgressHandler OCRSetProgressHandler(OCRProgressHandler handler)
When the ocr engine processes a document, a user defined function of type OCRProgressHandler, is called several times.
Previously selected progress handler.
New OCR Progress handler function.
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.