OCR engine hangs on process indefinately

I am trying to create a simple sample in WPF using your OCR.net library. I am using .net 4.0 under Visual Studio 2012. The code seems to run fine until I get to actually running engine.process, where it hangs forever. I have tried multiple tiff/bmp files and the same thing always happens. Heres my code :

OcrEngine engine = new OcrEngine();
engine.Config.UseDefaultDictionaries = true;
string resFile = “C:\Temp\Aspose.OCR.Resources.zip”;
engine.Languages.AddLanguage(Aspose.OCR.Language.Load(“english”));
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.ShowDialog(this);
if (openFileDialog.FileName != null)
{
    engine.Image = ImageStream.FromFile(openFileDialog.FileName);
    try
    {
        using (engine.Resource = new FileStream(resFile, FileMode.Open))
        {
            try
            {
                // Get an instance of INotifier
                INotifier processorWord = Notifier.Word();
                // Write a delegate to handle the Elapsed event
                processorWord.Elapsed += delegate
                {
                    // Display the recognized text on screen
                    Console.WriteLine(processorWord.Text);
                };
                // Add the word processor to the OcrEngine
                engine.AddNotifier(processorWord);

                if (engine.Process())
                {
                    string result = engine.Text.ToString();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
    }
    catch (Exception ex)
    {
        throw;
    }
}

Hi Adam,


Thanks for your inquiry. Could you please share sample working solution so we have a look into the issue and suggest you accordingly.

Sorry for the inconvenience faced.

Best Regards,

Attached is a very basic sample of the problematic code. Its a VS2012 project, WPF .Net 4.0.


Theres also a sample bmp in the root (2.bmp) that I have tried with no result.

Hi there,


Thanks for providing additional information. We are working over your query and will update you soon.

Best Regards,

Hi there,

Sorry for the inconvenience faced. I have managed to reproduce the reported issue on my side. I have logged the issue in our bug tracking system for further investigation and resolution, the issue ID is OCR-33206, and also linked your request to this issue and you will be notified via this thread as soon as it is resolved.

Please feel free to contact us for any further assistance.

Best Regards,

Hi Adam,


Just to keep you informed that we have closed the ticket logged earlier as OCR-33206 in our bug tracking system because we were unable to replicate the said issue with revision of Aspose.OCR for .NET available at the time of investigation. If you are still interested in Aspose.OCR APIs, we would request you to try the latest version 2.0.0 of Aspose.OCR for .NET on your side.

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