| ABBYY Mobile OCR Engine 4 |
Go to: Contents | Native Library API Reference | Functions | Callback Functions
This is a callback function that should be implemented on the client side. It delivers to the client the information about the approximate percentage of analysis or recognition and warnings or errors that have occurred during processing.
int (*TFineProgressCallbackFunction)( int processedPercentage, DWORD warning, void* warningData );
If this function returns zero, the recognition is cancelled.
Here is a sample implementation of the callback function:
int TFineProgressCallbackFunction( int processedPercentage, DWORD warning, void* warningData )
{
fprintf( TraceFile, "%d%% of the work is done.\n", processedPercentage );
if( warning == FWC_ProbablyBadImage) {
fprintf( TraceFile, "The image quality is too low.\n" );
}
if( processedPercentage < 50 && ( warning == FWC_SlowRecognition ) != 0 ) {
return 0;
} else {
return 1;
}
}
FineAnalyzeImage
FinePrebuildWordsInfo
FineRecognizeBlocks
FineRecognizeImage
FineRecognizeRegion
FineRecognizeBusinessCard