Free Support Forum - aspose.com

Aspose OCR java not working for me if TIFF sample is used

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

I have attached a sample tiff file here.
test.zip (46.8 KB)

@karthi988

Would you please share the value of imagePath variable at your side? In the meanwhile, we are testing the scenario in our environment and will share our feedback with you shortly.

The value for image path is :
D:\Users\806807\Aspose\input\test.tiff

@karthi988

We have logged an issue as OCRJAVA-91 in our issue tracking system for further investigation. We will look into ticket details and let you know as soon as we have some definite updates regarding its resolution. Please be patient and give us some time.

We are sorry for the inconvenience.

Ok. Thankyou.