Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -1074395235 occurred at IMAQ Learn Pattern 2

Error -1074395235 occurred at IMAQ Learn Pattern 2
The template image does not contain enough contrast.

Possible reason(s):

IMAQ Vision: (Hex 0xBFF6079D) The template image does not contain enough contrast.

IMAQ Vision Version : 7.0
LV : 7.0
NI-IMAQ : 2.6

HOW CAN I FIX This Error?
0 Kudos
Message 1 of 6
(5,189 Views)
Here's the lame, obvious answer:

Provide an image with more contrast!!!

Okay, here's a more serious answer:

Can you post an example image that you are trying to use as a template? Seeing an example would make it easier to offer suggestions. If the contrast is really low, then you will need to figure out a way to get better contrast. Perhaps include a larger area in your template so that areas with more contrast can be used.

If it is a quirk of the pattern matching routine, you can always try out the old version. It is in the same LLB and has the same name without the 2. If you try this, make sure you replace ALL of your pattern matching routines (setup, learn, search) with the old versions. You will get mysterious error messages if you try to mi
x the two versions.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 6
(5,186 Views)
Hallo Bruce,
I do have the same problem: The whole application quits when this error occures! (even so in an executable)

It would't be easy to measure the contrast (e.g. Standard Deviation) and reject low contrast images before using the function. But there is no comment on the documentation how large contrast has to be. Do you have further informations?

Philipp
0 Kudos
Message 3 of 6
(5,186 Views)
Has this been resolved yet?  I have the same problem when I try to learn an image with low contrast.  After labview reports the error (shown above), it crashes and I have to restart labview.  Ideally NI should fix this crash problem, but in the meantime Is there some way to trap the error so it doesn't crash?



0 Kudos
Message 4 of 6
(5,061 Views)

Hallo,

in pattern matching there is a restriction that a template should have at least two distinct grayscale levels. A grayscale level is accepted as "distinct" if it has

at least 10 pixels in the image. One way to get around this problem is to set all the background pixels in the image to a constant value.

0 Kudos
Message 5 of 6
(4,988 Views)
For anybody in the future who has this problem... I just solved mine by unwiring the "learn mask" terminal.
0 Kudos
Message 6 of 6
(4,480 Views)