I am using an evaluation version of .NET OCR 3.1.0
I a looking to implement a solution immediately please look at the attached file to see if you get the same out put errors as i do for user defined recognition blocks. I have tried a few methods as in the code below. Note the correct result is returned when i try to retrieve all text from the image.
I have sourced the coordinates of the rectangle using MS Paint on the same image.
Please let me know so i know if i can purchase the Library.
Correct output = "Evaluation"
What i am getting = "G"
OcrEngine ocrEngine = new OcrEngine();
//Clear notifier list
ocrEngine.ClearNotifies();
//Clear recognition blocks
ocrEngine.Config.ClearRecognitionBlocks();
//Add 2 rectangle blocks to user defined recognition blocks
ocrEngine.Config.AddRecognitionBlock(RecognitionBlock.CreateTextBlock(80, 55, 224, 44));
//Ignore everything else on the image other than the user defined recognition blocks
ocrEngine.Config.DetectTextRegions = false;
ocrEngine.Config.AdjustRotation = AdjustRotationMode.Disabled;
//Set the Image property by loading the image from file path location or an instance of MemoryStream
ocrEngine.Image = ImageStream.FromFile(@“C:\Users\jeff\Desktop\Invoice DPFs\TW Strata Care2.jpg”);
//Run recognition process
if (ocrEngine.Process())
{
Aspose.OCR.IRecognizedText text = ocrEngine.Text;
string temp = text.ToString();
MessageBox.Show(temp);
foreach (IRecognizedPartInfo info in ocrEngine.Text.PartsInfo)
{
IRecognizedTextPartInfo textInfo = (IRecognizedTextPartInfo)info;
MessageBox.Show("Block: " + info.Box + " Text: " + textInfo.Text + “”);
}
}
Hi Jeff,
Thank you for your inquiry.
Please note that we are able to observe the said issue. The issue has been logged into our issue tracking system with ID OCR-34255. Our product team will further look into it. We will update about the progress via this thread.
The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.