I am trying to do Zonal OCr in scanned pdf files. Somehow it doesnot give the correct result. The region selected is different from the region that is OCRd. Could you suggest some code for this? My code works fine for tiff files. Here is the sample code-
Code: Select all
Call GdViewer1.GetRectCoordinatesOnDocument(LeftArea, TopArea, WidthArea, HeightArea)
Call oGdPictureImaging.SetROI(LeftArea, TopArea, WidthArea, HeightArea)
oGdPictureImaging.OCRTesseractReinit()
oGdPictureImaging.OCRTesseractSetPassCount(1)
sOCR = oGdPictureImaging.OCRTesseractDoOCR(m_ImageID, TesseractDictionary.TesseractDictionaryEnglish, "C:\OCR", "")
Thanks
Charu