Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

HELP!!! not funcioning pattern matchin

Hi everybody,

i'm tringing for about 2 days to create a functioning pattern matching. But there is always the error"IMAQ match pattern - invalid template descriptor".

My intention is to save a learned pattern. I want to match this saved pattern with the added VI. It is necessary, because I do want to search for the pattern after a few days. And therefor I do not want to "relearn" the pattern

Can anyone help me?

best regards

jotthape

Message Edited by jotthape on 05-20-2005 05:23 AM

0 Kudos
Message 1 of 7
(3,781 Views)
When reading the pattern file, you need to use the "IMAQ Read Image and Vision Info" VI, not the "Read File" VI. This will solve that problem.
0 Kudos
Message 2 of 7
(3,774 Views)
Hello Brian,

I tested the "Read Image and Vision Info.vi" but the same error occured.
It took me 1 day to test different versions but the only way the pattern matching funcions is to learn the pattern before matching it. In chapter 5-15 of the Vision user manual is described that the trainig can be made offline.

What else can I try?

jotthape
0 Kudos
Message 3 of 7
(3,764 Views)
OK, I did make 2 other changes that I forgot to mention, but didn't realize that they were needed. The pattern matching VIs were replaced with newer versions. Here is a library that has every thing you need, and it works.
0 Kudos
Message 4 of 7
(3,763 Views)
Hello Brian,

thank you for your libary. I'm sorry but it doesn't work on labview 6.
I have installed labview 7.1 but to use the vision tools, I have to upgrade this package.
During the time I'm waiting for the update, I want to test it in Labview 6. So can you describe me what are the 2 changes you made in the patterntest-program? I saw that you changed the error handling. But why does this change I made likewise in the patterntest (labview6)-version does not funcion?

Sorry for asking but can you help me still times?

Best regards

jothape
0 Kudos
Message 5 of 7
(3,745 Views)
The error flow isn't causing your problem, but you should wire the error clusters to ensure proper sequencing. I have seen funny things happen when this isn't done. The only functional difference is that I am using different pattern matching functions. These are some kind of updates from NI. You may want contact them and see if you can get the newer ones. I do not have these in LV6, and I can't get there from my version.
0 Kudos
Message 6 of 7
(3,737 Views)
It turns out you were using LabVIEW 6.1 because the attached VIs would not open in LabVIEW 6. The reason you were not able to match was because you had learned using IMAQ Learn Pattern2 but you were trying to do the IMAQ Setup Match Pattern and IMAQ Match Pattern instead of IMAQ Setup Match Pattern 2 and IMAQ Match Pattern 2. I replaced the vis with these versions and I get a successful match.

I have attached the modified VI.
0 Kudos
Message 7 of 7
(3,709 Views)