Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I find the white ball when the background is white?

Is there any way to automatically find the edge of the white ball or Center point of the white ball ?

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

Hi Tienzuen,

You're probably going to use the Find Circular Edge function to detect the ball, then get center/radius from there. This is a pretty common problem so you'll likely find various approaches with a search through our forums. I've put some links below:

 determine center and radius of circles

https://forums.ni.com/t5/LabVIEW/determine-center-and-radius-of-circles/td-p/3220312

Best way to find the center of a circle

https://forums.ni.com/t5/LabVIEW/Best-way-to-find-the-center-of-a-circle/m-p/3881524

Find Circular Edge

https://forums.ni.com/t5/Machine-Vision/Find-Circular-Edge/td-p/3633768

Jiwhan S.
Technical Support Engineer
National Instruments
0 Kudos
Message 2 of 3
(1,813 Views)

Hi.

You should try to do dark field illumination to get the edge of the ball easier to identify.

It will help the algorithm to extract the edges. 

Look at Darkfield illumination

https://www.ni.com/en-us/innovations/white-papers/12/a-practical-guide-to-machine-vision-lighting.ht...

https://www.visiononline.org/userAssets/aiaUploads/file/CVP_Beginning-Lighting-for-Machine-Vision_Da...

Amit Shachaf
0 Kudos
Message 3 of 3
(1,806 Views)