From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Compare webcam image/video to reference image

Hi,

 

I have a webcam that records 12 different diodes that glow in 3 different colors. The problem I want to solve is to check if the diodes are glowing or not. My idea is to have a reference image of when they are glowing and check if the live image is the same as the reference. 

 

Don't really know what to do.. Do anyone have any ideas? 

 

0 Kudos
Message 1 of 2
(2,826 Views)

 

Imaq functions:

Extract Color plane (intensity) - of both reference and real-time

Subtract

Threshold

Find Circles (or Particle filter and Particle analysis if LED is not circle) - 

GetColorPixelValue in orignal image at particle location - determine color

 

You can run vision assistant - it will help you build alogortihm and can create subVI for you

 

If LED locations are fixed, you need just  Get Color Pixel Value VI and threshold values

 

0 Kudos
Message 2 of 2
(2,804 Views)