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

Free Support Forum - aspose.com

Problem:ocr Result not true

hi
please help me.
i used ocr for image (1.png) but the result is not true,plz help
code:
OcrEngine ocrEngine = new OcrEngine();

    ocrEngine.setImage(ImageStream.fromFile(imagePath));
if (ocrEngine.process())
{
System.out.println(ocrEngine.getText());
}

(please write sample code step by step)
--------------------------------------
jar= aspose-ocr-2.8.0.jar and jdk= 1.8
result >> rseycggsg (notcorrect)
thanks.



Hi,

Thank you for your inquiry.

We have evaluated the attached images on our end. We have used the latest version Aspose.OCR for Java 2.8.0. While testing it was found that the image provided by you has very low DPI value i.e. 96. Please note that the current implementation of the Aspose.OCR APIs work well with images having resolution of at least 300 DPI and the accuracy rate tends to decrease by decreasing the resolution. Your provided image has resolution of 96 DPI therefore it will not be possible to get 100% accuracy.

For your query regarding step by step code. Please, note that following are the simple steps involved while performing OCR operation:

  1. Initialize an instance of OcrEngine
  2. Set the Image property by loading the image from file path location
  3. Process the image
  4. Use the recognized text

For more information, please access the link: Performing OCR on an Image.

Hope the above information helps. In case of any issues, need further clearance please be sure to let us know, we will be glad to assist you.

thanks.