We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Omr RecognizeImage error: Index was outside the bounds of the array

I have designed another template with bigger bubble size (51x51px)
but when i want to test it with .net Correction Control a different problem occurs !

when running this line of code:
control.RecognizeImage();

the following exception will occur:

An unhandled exception of type ‘System.NullReferenceException’ occurred in Aspose.OMR.dll

what is the meaning of this?!?

i have uploaded sample .omr and .png files here : test2.zip (256.9 KB)

@ydcnet

Please spare us little time as we are looking into the details of this case. We will get back to you soon on it.

hello,
any new update about NullReferenceException in dll ?
i have sent the bug report about 6 days ago …

@ydcnet

The initial issue about NullReferenceException was resolved by suggestion of considering additional ReferenceType.

Furthermore, related to your latest response above, we are investigating the ticket accordingly and will share our feedback with you soon.

as you can see in the file i sent in this post the template has fifth reference point and “ReferenceType”: “Rotation” set for it as you said in previous posts …
here is the full code of defining reference points:

{
“Type”: “ReferencePointElement”,
“Name”: “ReferencePoint0”,
“Width”: 133,
“Height”: 133,
“Top”: 66,
“Left”: 110,
“ReferenceType”: “Corner”
},
{
“Type”: “ReferencePointElement”,
“Name”: “ReferencePoint1”,
“Width”: 133,
“Height”: 133,
“Top”: 66,
“Left”: 2231,
“ReferenceType”: “Corner”
},
{
“Type”: “ReferencePointElement”,
“Name”: “ReferencePoint5”,
“Width”: 133,
“Height”: 266,
“Top”: 660,
“Left”: 2231,
“ReferenceType”: “Rotation”

			},
			{
				"Type": "ReferencePointElement",
				"Name": "ReferencePoint2",
				"Width": 133,
				"Height": 133,
				"Top": 1503,
				"Left": 110,
				"ReferenceType": "Corner"
			},
			{
				"Type": "ReferencePointElement",
				"Name": "ReferencePoint3",
				"Width": 133,
				"Height": 133,
				"Top": 1503,
				"Left": 2231,
				"ReferenceType": "Corner"
			},

but the ‘System.NullReferenceException’ will be occurred in Aspose.OMR.dll with these settings and template files that i uploaded for you …

@ydcnet

We are checking these details and will be reaching you out with feedback shortly.