Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how to compare two picture using labview7.1

hi,
i have a problem to compare picture. How i can compare the default picture with the capture picture by webcam by using labview7.1. this because i want to find out the different of the object inside the picture.
0 Kudos
Message 1 of 13
(4,641 Views)
Subtract one picture from the other (vision>Image processing>operators). If you have a clear object moving over a darker background, it will appear as a clear spot on the resulting image.

CC
Chilly Charly    (aka CC)

         E-List Master - Kudos glutton - Press the yellow button on the left...
        
Message 2 of 13
(4,628 Views)
thx for yr suggestion... i will try it.... thx..
0 Kudos
Message 3 of 13
(4,626 Views)
HI,

use attached vi as sub vi which takes both the images as inputs, compares them and displays status as same or different.

Hope it works.

Nirmal
Message 4 of 13
(4,573 Views)
thank for your help.... i will test it
0 Kudos
Message 5 of 13
(4,561 Views)
I had a curiosity about my example. I had using subtract method to compare my example. When I connect a VI like in figure 1 if the result is equal to zero the led will alight, but when I connect like in figure 2 the led put off in either result. i use all the same type of wire. what wrong in figure 2? why the led no alight when the result of subtraction is equal to zero? pls help me. thx
(attachment figure 2 below)
(attachment figure in the next msg)
0 Kudos
Message 6 of 13
(4,447 Views)
attachment figure 1
0 Kudos
Message 7 of 13
(4,446 Views)
this is two image that use in this VI
the distance for bracket1 511.11 and the bracket2 512.61.
0 Kudos
Message 8 of 13
(4,442 Views)
0 Kudos
Message 9 of 13
(4,442 Views)
Hi,
As i have observed by putting a probe on the wire going to indicator "distance", the value is 511.109 but as you have made it round off to 2 decimals, it looks to be as 511.11. So while substracting 511.109 will be in effect & thats why the result is not equal to zero.

Hope it helps.

Thanx & regards,
Nirmal
Message 10 of 13
(4,286 Views)