C# code
Aspose.OCR.License license = new Aspose.OCR.License();
OcrEngine ocrEngine = new OcrEngine();
ocrEngine.ClearNotifies();
ocrEngine.Config.ClearRecognitionBlocks();
ocrEngine.Config.AddRecognitionBlock(RecognitionBlock.CreateTextBlock(0, 0, 800, 30));
ocrEngine.Config.DetectTextRegions = false;
ocrEngine.Image = ImageStream.FromFile(@“D:\btest.png”);
if (ocrEngine.Process())
{
foreach (IRecognizedPartInfo info in ocrEngine.Text.PartsInfo)
{
IRecognizedTextPartInfo textInfo = (IRecognizedTextPartInfo)info;
Console.WriteLine(“Block: {0} Text: {1}”, info.Box, textInfo.Text);
}
}
Output in attachemnt called output
Hello Ikram,
Thank you for your reply.
The DPI thing makes sense to me.
However, even if I feed the Aspose OCR library with the same image (but 300x300 DPI or even 600x600) the output is the same.
Can you confirm that this work on your end ?
If there any other trick i am missing ?
Cheers,
Dragos
Hi Dragos,
Thank you for your understanding.
Please share a sample in high resolution so we could perform a few tests on our side and get back to you with updates.
see attached the image with high resolution and the output and the C# code
the library manages to extract some text, but it pretty much scrambled
Thank you for looking into this,
Dragos
Hello team,
Any updates on the above issue ? With the current status of evaluation I’m afraid the OCR module fails to do what it says it can do …
Regards,
Dragos
Hi Dragos,
I am afraid, we haven’t yet received any updates regarding the ticket logged earlier as OCR-34109. As discussed earlier in this thread, if you have some real time document scans and you wish to get the text from a specific part of the image (not from complete image), you can use the custom recognition blocks. It should produce desired results against high resolution scans.
We are sorry for the inconvenience.
The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.