We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.OCR for Java 2.0 example error

I’m evaluating the Aspose OCR and got the following error when running the downloaded example. Please help…

PerformOCROnImage.java:36: error: cannot find symbol
ocr.setResource(new ZipFileStream(resourcesFilePath));
symbol: class ZipFileStream
location: class PerformOCROnImage
PerformOCROnImage.java:43: error: cannot find symbol
symbol: method setNeedRotationCorrection(boolean)
location: class OCRConfig
2 errors


We are really sorry for the inconvenience caused to you.

The problem is caused due to an old API call used in the Github hosted examples for Aspose.OCR for Java. We have recently updated the public API and working to make necessary changes in the source code examples hosted on Github.

In the meanwhile, we would request you to please manually download the Aspose.OCR for Java 2.0.0 & its corresponding resource file (if you haven’t already these files) and setup the environment to give the API a try on your end. You can find the updated source code samples on this documentation link. In case you face any difficulty, please feel free to write back.