0.jpeg (6.2 KB)
And my output is
Hr rrbrr
Code :–>
String imagepath=“D:\\Qualcomm\\pdfaspose\\img\\0.jpeg”;
OcrEngine ocrEngine = new OcrEngine();
ocrEngine.setImage(ImageStream.fromFile(imagepath));
ocrEngine.getConfig().setDoSpellingCorrection(true);
ocrEngine.getConfig().setRemoveNonText(true);
ocrEngine.getConfig().addRecognitionBlock(RecognitionBlock.createTextBlock(182, 218, 160, 66));
if (ocrEngine.process())
{
System.out.println(ocrEngine.getText());
}
@rabin.samanta
Thanks for contacting support.
We have checked the image file which you have shared and noticed that it was of 96DPI. Please note that in order to use API with better results, the source image should be of minimum 300DPI and font size should be 12pt.
Furthermore, supported fonts by the API include Arial, Times New Roman, Courier New, Verdana, Tahoma and Calibri with regular, bold and italic font styles. Please try your scenario with larger DPI image and in case you still face any issue, feel free to contact us.