Hi,
I am trying to evaluate Aspose OCR java (Using the trial version ) by using different image formats. It is working fine for jpg, bmp, png formats. But while pushing Tiff format I am getting the following exception:
Exception in thread “main” java.lang.RuntimeException: File not found
at com.aspose.ocr.AsposeOCR.f(Unknown Source)
at com.aspose.ocr.AsposeOCR.RecognizePage(Unknown Source)
at com.aspose.ocr.AsposeOCR.RecognizePage(Unknown Source)
at com.aspose.ocr.AsposeOCR.RecognizePage(Unknown Source)
at com.cts.oi.OcrSample.main(OcrSample.java:40)
Note that I am using the same image, just changing the format.
This is the snippet code I used :
AsposeOCR api = new AsposeOCR();
String imagePath = inputDataDir +File.separator + currentFile.getName();
try {
String result = api.RecognizePage(imagePath);
System.out.println("Result: " + result);
} catch (IOException e) {
e.printStackTrace();
}
Plese let me know the cause of this issue.
Thankyou