LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Colour verification via usb webcam

Hi all,

 

Bit of a newbie to Labview. can do most simple things but having some trouble when it comes to things that are a little more advanced.

 

basically I am looking to use a usb webcam for colour verification in a project that I am working on. the part will be placed under the webcam and a snaphot will be taken and as a result of this the part would be moved to the appropriate bin.

 

have my webcam working in vision assistant and it can take snapshots of the part but after that i am a bit stumped as to what to do as my experience with vision systems etc is limited.

any help would be appreciated 

0 Kudos
Message 1 of 8
(3,154 Views)

Well, color is such a subjective thing... very dependend on the lighting!

 

So IF you can make sure that the images are comparable at all, you are searching for color histograph.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 8
(3,144 Views)

well i have the lighting issue solved as i have a led ring light around the webcam so shadows/ colour change shouldnt be a problem. but just have no idea how to go about it. have an idea about how it should work but no idea how to implement it. basically take a sample picture/s and store these on computer.

the webcam then takes a shot of the part and compares it to the image already stored and if they are a match the part will pass. would that be correct??

0 Kudos
Message 3 of 8
(3,138 Views)

A simple compare between those images will not likely to result in what you are looking for except you can make sure that

a) the DUT is always on the same position (coordinates and rotation and size) in the image per pixel

b) the color always looks alike per pixel information (RGB?)

 

I doubt that this is achievable. So i would go for color histogram and make some "intervall" around the expected color values. If the DUT is within the intervall, it passes, otherwise, it fails.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 8
(3,125 Views)

sounds like what im looking for and how would i go about this?? complete newbie to this side of labview im afraid

0 Kudos
Message 5 of 8
(3,111 Views)

Color histogram is one function part of the Vision Development package.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 6 of 8
(3,102 Views)

A simple way to deal with light and drifts and a simple white light calibration don't work:

Place color standards (could be a good device as a 'gold standard') in the same field of view and compare the results.

Depending on your DUT surface even small changes in light angle can change the result!!

 

Keep in mind that usual colour webcams calculate the color from three more or less narrow spectral sensitive pictures. ...

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 7 of 8
(3,094 Views)
0 Kudos
Message 8 of 8
(3,001 Views)