10-08-2019 12:25 PM
Hello, I have a problem parsing images. I need to read an image and find balls (as in the image), I'm using Vision Acquisition to determine the center of the ball, but when some balls are together the VA identifies as if it were just one thing.
So how can I find their center when the balls are closer?
And why the brightness and focus are adjusted automatically?
10-08-2019 01:58 PM
>> So how can I find their center when the balls are closer?
Look at red channel only, increase threshold, use erosion (will reduce object size and at some point will separate objects), try circle search .
>> And why the brightness and focus are adjusted automatically?
Auto focus and brightness are turned on in camera settings.
10-08-2019 02:37 PM
your first answer worked, but i don't now how i configure my camera to isn't auto regulate.
The problem is when i put more than one ball sometimes the brightness is high and someties low, this do my data acquisition unstable.
10-08-2019 03:10 PM
Do you have this camera in max Devices&interfaces -> IMAQdx devices? There is camera attributes tab with all parameters. Check Exposure and focus.
If you save them in MAX, but it resets them for your acquisition, they should be accessible through IMAQdx enumerate attributes and can be set by property node (active attribute name and value).