Free Support Forum -

Recognize image in Aspose.OMR for .NET - index was outside the bounds of the array

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)


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. (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


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.


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?


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.