Evaluating Aspose.OCR

i’m evaluating the ocr for .net

i have a simple image with numbers

but it doesnt seem to be reading it correctly at all

do you think you can help here?

this is my code

var engine = new OcrEngine();
engine.Image = ImageStream.FromFile(@“C:\Users\gs\Desktop\price.bmp”);
string resourceFilePath = Path.GetFullPath(“C:\Workspace\Aspose.OCR.Resources.zip”);
engine.Languages.AddLanguage(Language.Load(“english”));
using (engine.Resource = new FileStream(resourceFilePath, FileMode.Open))
{
try
{ // Process the whole image
if (engine.Process())
{ // Get the complete recognized text found from the image
Console.WriteLine("Text recognized: " + engine.Text);
}
} catch (Exception ex)
{ Console.WriteLine("Exception: " + ex.ToString()); } } Console.ReadLine();


try it with any image with just decimal numbers


This message was posted using Email2Forum by Tahir Manzoor.

Attaching my sample image as well.

Hi Ganesh,


Thank you for considering Aspose products.

We have evaluated your presented scenario on our end while using the latest version of Aspose.OCR for .NET 2.0.0. Unfortunately, we are unable to retrieve the correct text from the supplied image. We have logged the problem in our bug tracking system under the ticket OCR-33814 for further investigation & correction purposes. Please spare us little time to properly analyze the problem cause on our end. In the meanwhile, we will keep you posted with updates in this regard.

We are sorry for the inconvenience caused to you.

Thanks for the prompt response. Will wait for your investigation. Many thanks again!

Any updates?

Hi Ganesh,


Thank you for your patience.

The ticket attached to this thread is not resolved yet. We have scheduled the ticket for the upcoming release of Aspose.OCR for .NET, that will be published near the mid of September 2014. We have recorded a note for the concerned development team member to share the insight of this problem. As soon as we receive more updates, we will post here for your kind reference.

Hi Ganesh,


This is to bring in your knowledge that we have analyzed the problem for the ticket logged earlier as OCR-33814. The reason behind incorrectly recognized data is the image size of your provided sample. At the moment, the recommended image resolution for OcrEngine is 300dpi, so if you process an image with better resolution, the accuracy of the recognized data would be higher.

We have enlarged your provided sample to 200% (as attached) and processed it for OCR to get accurate results. Please give it a try on your end as well.

C#

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

// Load Image
ocr.Image = ImageStream.FromFile(imageFile);

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

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

The issues you have found earlier (filed as OCR-33814) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

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