OCR on a Multipage TIFF Image File (C++)
This function process several images stored in a TIFF file. The OCR results are stored in a text file.
This function uses a OCR output handler that is defined now:
void myOutputHandler(int infotype,int param)
{
int i;
switch(infotype)
{
case OT_TEXT:
fprintf(file,"%c",(char) param);
break;
case OT_ENDL:
fprintf(file,"\\n");
break;
case OT_ENDZ:
fprintf(file,"\\n\\n");
}
}