09-28-2004 08:32 PM
10-01-2004 11:17 AM
05-12-2006 11:55 AM
Hello guys,
I'm still having a very similar problem as Michael. I have to make a "Pattern Matching application".
I have to save a template image after having used "IMAQ Rotate", "IMAQ Shift", "IMAQ Find Circular Edge" on a image (pixel res.1280x960).After this elaboration the image is right extract the sub-image that I want to save as a template. To do that I use "IMAQ Extract" function and the image becomes 280x370, then I process the results with "IMAQ Clear Overlay ", "IMAQ Setup Learn Pattern 2" and "IMAQ Learn Pattern 2", before to save the image with "IMAQ Write PNG File". When a test my program with the template images saved in this way the "Pattern Matching" doesn't recognize them.
I tried to save template images using Vision Assistant and using these ones the "Pattern Matching algorithm" works ok and I have the results that I want.
Please explain me a way to save template images in LabView (I'm using 7.1.1 version for this application).
Best regards.
Michele Rossi
AUROS
Software e Tecnologie per Automazione
05-12-2006 12:49 PM
Try using "IMAQ Write Image and Vision Info" instead of writing a PNG file. This includes all the pattern training information along with the image.
Bruce
05-14-2006 01:19 PM
Thank you Bruce,
I have already tried your suggestion, but if I use "IMAQ Write Image and Vision Info" in my LabView PC program and “IMAQ Read Image And Vision Info” in the real-time target program, the CVS answers me with this error code: “-1074395989 --> IMAQ Vision: (Hex 0xBFF604AB) Unable to read data” and I can’t have the results that I would.
I tried to simulate the situation with a test program that works with off-line “png images” (in other words, loading images previously taken and saved on PC) and the template images that I save with my program.
I found that the same functions used in LabView under Window XP operating system works well and recognizes the template in the bigger image but its give me error under Phar-Lap operating system if I try to use them in NI-CVS 1455.
Thank you in advance for your suggestion.
Best regards.
Michele
AUROS
Software e Tecnologie per Automazione
05-15-2006 07:23 PM
05-16-2006 06:43 AM
Hi Allen,
Thank you for your suggestion.
I have tested the file path and it’s right, so , my conclusions after much more tests are that:
1) In LabView 7.1.1 something is different in saving "png" images vs. NI Vision Assistant 7.1.1 (“IMAQ Write Image” and “IMAQ Write Image And Vision Info” doesn’t save the images with all peculiarity like the function used inside the NI Vision Assistant 7.1.1)
2) There is a problem in IMAQ Vision RT 7.1.1 and, also in IMAQ Vision RT 7.1.2, in reading image files (“IMAQ Read Image And Vision Info" doesn’t works correctly, so, I’m obliged to use ” IMAQ Read Image” to compare an image with a template but loosing all the information in the template images).
I’m very busy in this time because I’m doing tests on the machine where I have to install this vision software and I’m late in making other software control code result of the time that I lost in trying to solve this problem but I will try to send you my VI’s in a shortest time, give me a little time to make some modification to simplified them.
Michele
AUROS
Software e Tecnologie per Automazione
05-17-2006 03:04 AM
Michele
AUROS
Software e Tecnologie per Automazione