Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory error in IMAQ read single digit

Hi,

 

I'm getting memory error (-1074396158) in IMAQ read single digit.vi.

I don't know where to look for info about this error and don't have any idea of what can that be.

 

vi attached.

 

thanks,

Paulo

0 Kudos
Message 1 of 3
(3,151 Views)

Hi Paulo,

 

What are you trying to do exactly ?

 

Are you sure your ROI is well defined ? Isn't it too big ?

 

Your ROI should include only one digit which has to be detected.

 

Regards,

 

 

 

 

0 Kudos
Message 2 of 3
(3,113 Views)

Hi Maxime,

 

Thanks for your reply.

As you can see in the vi attached to my previous post, there's only one digit in the picture and the ROI is defined to be the size of the picture.

The digit detection is done previously to the function and I make sure to call it with a picture with only one digit.

Because of this, I decided to define the ROI as the size of the entire picture, but it is returning that error.

 

Meanwhile I decreased my ROI to a size more close to the size of the digit, the error is now gone, but it is returning 8 instead of 0...

The shape of the digit is quite good, so I don't understand why it is not detecting the right value.

Do you have any documentation on this function? How is it doing the detection and important considerations to ROI definition and image shape?

In attach you can find the new vi, with a smaller ROI, so without the error, but with wrong digit detection.

You can run it, because the picture if saved in the image control.

 

Thanks,

Paulo

0 Kudos
Message 3 of 3
(3,108 Views)