05-24-2010 06:57 AM
Hey!
So the first VI is used for automatic creation of golden and pattern template. This VI creates template from an input image, puts mask over it (Default,Ignore,Edge) and saves it to a specific location.
The other VI- the one for inspection uses vision assistant. In VA I use the input picture form a camera, make pattern matching using the template created in the previous VI(pattern), I set coordinate system on the best match, and then use this c.s. To reposition the template created in the previous VI(golden) to make golden template inspection.
So, this algorithm works fine most of the time, but sometimes there is a problem with golden template inspection. Match is found, c.s is set, but when I use the template created in the previous VI, the region where there is no mask(pixels set to 0 in mask) are shown/presented as a defect. This happens quite often(one of ten inspections). Why is this region shown as a defect since there is no defect there. I made an inspection on the same peace several times and sometimes there is a defect and other times everyting is ok.
I am not allowed to post printscreens or VI's, since this is a commercial project. I am sorry, but please help me, ask questions etc. I have to solve this problem.
Thank you!
Matej
Solved! Go to Solution.
05-24-2010 07:06 AM
05-24-2010 07:57 AM
In this rar file there is the input picture from camera, matching template with vision info and golden template with vision info.
http://www.box.net/shared/v74t9mebkr
One thing that I discovered from my last post is, that if I put Moms "Wait for ms next multiple" (delay) in each sequence, the algorithm works fine. What happens?
Tnx
Matej
05-24-2010 07:58 AM
05-24-2010 08:13 AM
I get this. You are you complicating it . You can directly attach the images use "add attachments" seen Below the post button.
05-24-2010 08:16 AM
05-24-2010 08:28 AM
05-25-2010 01:58 AM
06-07-2010 07:38 AM
Dear mate47,
I saw your first post, that you can't upload anything confidential but I think we would succeed in solving your problem faster if we had at least the small 4 step script that you described. Can you prepair that script that will reproduce your issue for us please!
Thanks!
David Varga
Applications Engineer
NIH
06-07-2010 08:11 AM
Dear DavidVr,
I noticed that if I split one template in two everything works fine. So I think the problem was that I saved Pattern matching template and golden tamplate in the same file, althougt the picture was the same. So now when I run the VI for automatic creation of templates it saves the two temlates as a two seperate files and everything is OK. Thank you!
Matej