Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to fine tune ROIs of LEDs of a camera image?

Instead of using the Detect Object to find all the LEDs, you could have the Detect Object look for one LED at a time in a region. If an object is found, use the center of mass to to build a more exact region and do a measure color on that. If the LED isn't found, you could log an error, or look for the next LED to inspect. I attached a modified example that has an array of approximiate positions (initialized in the setup state...go to the setup state by selecting View>>View Complete Inspection Setup and clicking on the Setup state shown on the left hand to see the step that initializes this).

Based on these approximate positions, a Detect Object looks for a single LED and if it's found, use the center of mass to build an exact region and measure the color in this region.

 

Hope this helps,

Brad

Message 11 of 11
(1,911 Views)