Free Support Forum - aspose.com

Issue while performing the recognize image in Aspose OMR

I am getting an error while performing the recognize image function. It throws that
The index was outside the bounds of the array.

image.png (66.7 KB)

@kirubel

Would you please share the narrowed down code snippet sample with us. We will test the scenario in our environment and address it accordingly. Also, please share the sample template file with us.

Files.zip (1.6 MB)

ACT_SS.png (677.5 KB)

Please check them.

And I am using the Demos code which you have provided on github

@Kirusoft_Dev

We are testing it and will get back to you shortly.

@asad.ali How long is this going to take? We have been patiently waiting to get this resolved by ASPOSE. Please advice ASAP.

@Kirusoft_Dev

We were able to replicate the issue in our environment and logged it as OMRNET-48 in our issue tracking system for further investigation. We will look into details of the issue and keep you posted with the status of its rectification. Please spare us little time.

We are sorry for the inconvenience.

@asad.ali We have been waiting for your response for more than 4 days, Any update?

@Kirusoft_Dev

Thank you for being patient.

The recognition is failed because reference points are too small for engine to properly recognize. Unfortunately, this is caused by high image dpi. We have created internal tasks to provide more meaningfull error responses and fix issue with high resolution template images.

For now, you can change the size or the resolution of the template image (ACT_SS.png) to the lower value and re-draw reference points again. They should increase in size and that should be enough to recognize such images. We have attached demonstration template image with bigger reference points in the archive, along with updated .omr file.

Demo.zip