Nicomsoft OCR: Developer's Guide |
//FileNames, FilesCnt definitions //... int CfgObj, OcrObj, ImgObj, i; Engine_InitializeAdvanced(&CfgObj, &OcrObj, &ImgObj); //called only once for (i = 0; i < FilesCnt; i++) { Img_LoadFile(Img, FileNames[i]); //load image Img_OCR(ImgObj, OCRSTEP_FIRST, OCRSTEP_LAST, OCRFLAG_NONE); //perform OCR //call Img_GetImgText or other function(s) to get results } Engine_Uninitialize(); //called only once