Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

defect in golden comparison

Solved!
Go to solution

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

0 Kudos
Message 1 of 10
(4,999 Views)
Can you attach the image and the template that you have used?
0 Kudos
Message 2 of 10
(4,997 Views)

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

0 Kudos
Message 3 of 10
(4,987 Views)
I ment 10 ms, not M0ms 🙂
0 Kudos
Message 4 of 10
(4,986 Views)

blo.JPG

 

I get this. You are you complicating it . You can directly attach the images use "add attachments" seen Below the post button.

0 Kudos
Message 5 of 10
(4,983 Views)
here they are..
0 Kudos
Message 6 of 10
(4,980 Views)
I dont see any difference difference other than the file size in your attached first two picture. Can you explain what you are trying to find out? I also feel the pattern is two similar in the whole image and will add confusion when you use pattern matching. Can you give details like what is your final goal?
0 Kudos
Message 7 of 10
(4,968 Views)
Open them in Template editor and you will see the difference.
0 Kudos
Message 8 of 10
(4,939 Views)

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

0 Kudos
Message 9 of 10
(4,832 Views)
Solution
Accepted by topic author mate47

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

0 Kudos
Message 10 of 10
(4,827 Views)