Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to locate bright object if its background is bright as well when IMAQ Count Objects used?

Hello,

we am using IMAQ Count Objects 2 vi to count balls of BGA device, after balls detected as objects, we need examine each ball for defect analysis.since 4 boundaries of the device demonstrates as higher intensity as well comparing with balls. so it causes the bright objects which located around the boundaries can not be detecetd as bright objects when IMAQ count objects 2 vi used. I use grayscale image as input for IMAQ count objects 2 vi, threshould is set to 100, the result image as below:

IMAQ count objetcs

 

from above img we can see the balls which has rectangular box are the objects detecetd. but the bright objects which are distributed around the edge of the devcie can not be detected (no red color rectangular box displayed). anybody can help to give advice how to process so we can detect these balls as bright objects.   appreciate for your helps. Thanks  

0 Kudos
Message 1 of 3
(3,284 Views)

Hello

Two options.

Either you have to work on the light, in order to try to separate objects from the background (try different angles, try backlight if possible).

Or change your detection method. Did your tried match pattern? Or maybe you can try to detect the small black dots in the center of your balls with the count objets vi.

 

Regards

NTA_LabView_certified_Developper.jpg
0 Kudos
Message 2 of 3
(3,282 Views)

Set your threshold value higher.  It looks like the objects you want to detect are very bright, so set the threshold around 200, maybe even higher.  It will eliminate the gradient area around the border and should isolate your objects near the border.

 

You might need to do some additional processing.  It looks like a few of the objects are very close to the edge.  I think IMAQ Separate might do the job.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 3 of 3
(3,279 Views)