Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Compare two images and display results

Guys i am New to labview.Just 1 month.I am trying to match two images.Below are  the details

1.Take a snap shot of the metal object.Call it as 'A' and save it in a folder.Ex-Pressure plate of the car

2.from the web camera take the snap shot of some other object like clutch plate by labview

3.Now the snap shot must be compared with the image A

4.If the snap shot and the Image A are one and the same then the name  A must be displayed on the screen

 

 I am using Labview 2014.Windows 10

This is what programme looks like 

Take Snapshot>save in a folder with name(A)>Take Snap shot from Web Cam>Compare Web Cam Snap and A>If both are same, Display A on the screen

I have build the programme but its not working

please guys help me outSmiley Sad

Please find the attached file and help me out in working fine

0 Kudos
Message 1 of 16
(12,512 Views)

Go to NI example finder in LabVIEW and search for Golden Template.  It should be what you are looking for to do a part comparison.

 

Web camera may not have the resolution needed for an accurate inspection.

 

 

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
Message 2 of 16
(12,485 Views)

Thank you Mr.Simons for your quick reply.The example you suggested compares one saved image with the other.My task is that

1.I have to take snap shots of many metals

2.all the metals have same colour

3.colour matching will not help me at all

4.later web camera is placed in a fixed location  and  the metals are placed over the conveyer belt which passes below camera

5.As the Camera detects a metal ,it must compare the detected metal with those which are saved earlier and display the name of that metal on the screen 

0 Kudos
Message 3 of 16
(12,466 Views)

If they are all the same color, how do you tell them apart?  Are you looking at the shape?  In this case, you would need to use pattern matching or classification tools.  It can be difficult, though, because the same shape will look different when it is rotated or shifted due to lighting changes and perspective.

 

If the shapes are random, there is really no way to do this.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 16
(12,457 Views)

Can you provide some images?

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
Message 5 of 16
(12,452 Views)

Thank you Mr.Bruce Ammons and Simons for your concern. Please find the attachments of metal images. Looking forward for your help. Thank YouSmiley Happy

Download All
0 Kudos
Message 6 of 16
(12,436 Views)
0 Kudos
Message 7 of 16
(12,424 Views)

snap shots2

Download All
0 Kudos
Message 8 of 16
(12,423 Views)

JPG are not the best file format for image processing because they are compressed.  Can you create a BMP file?  Have you looked into the geometric matching algorithms?  Are you using Vision Builder or NI Vision?  If you are using NI Vision I can create a test script for you.

 

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
Message 9 of 16
(12,402 Views)

yes. I am using Motion and Vision Pellets in NI Labview. Please suggest some solution

0 Kudos
Message 10 of 16
(12,319 Views)