Processing Takes More and Never completes

HI Team,

I am trying to understand the whether Aspose.OCR is better product for solving our problem of reading the data in a Image file.

I have tried sample which was given in the programmer guide. but, my processing call goes on and on never completes. what is problem here ?

here is Link Code which I have Used

Please let me know the if you need any more information.

Thanks,

Naveen T

Hi Naveen,

Thank you for considering Aspose component.

Please share your sample image so we could evaluate your presented problem on our end.

Please find attached

Hi Naveen,

Thank you for sharing your sample image.

I have evaluated your presented issue with your sample while using the latest version of Aspose.OCR for .NET 1.7.0. The process took a while before it returned the results, and unfortunately the results are incorrect as per attached output. Probable reason for long execution and incorrect results is the text font size in the sample image. I have logged an investigation in our bug tracking system to look further into this matter. The ticket Id for your future reference is OCR-33609. Please spare us little time to properly analyze the issue on our end and to provide a fix at earliest. In meanwhile we will keep you posted with updates on this.

Sample Source:


// image document on which OCR is to be performed
string imageFile = (MyDir + “aspose_sample.png”);

// Initialize OcrEngine
OcrEngine ocr = new OcrEngine();

// Configure to use Default Dictionaries
ocr.Config.UseDefaultDictionaries = true;
// Load Image
ocr.Image = ImageStream.FromFile(imageFile);

// Add language
ocr.Languages.AddLanguage(Language.Load(“english”));

// OutPut file to store results
TextWriter outPut = new StreamWriter(MyDir+“output.txt”);

// Load the resource file
using (ocr.Resource = new FileStream(resourceFileName, FileMode.Open))
{
try
{
// Process the whole image
if (ocr.Process())
{
outPut.WriteLine(ocr.Text);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception: " + ex.Message);
}
outPut.Close();
}


I would recommend you to use the latest version Aspose.OCR for .NET v1.7.0 for your testing in case you are using any other version. Please note that each version of Aspose.OCR product uses a specific resource file. You can download the resource file for v1.7.0 from here.

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.