Hello everyone, This is my solution.
Explanation:
-
The scaling of the x-axis and y-axis is not necessary, just for faster calculation speed. Converting channels from 3 to 1 can avoid subsequent multi-channel filtering.
-
If I only counted the number of balls, I found three methods.
-
I personally prefer the first method, as it can be seen in the interactive view of the “Connected Component Analysis” node that no additional processing is required.Just set the necessary options.
Best wishes