Hi Everyone
I’ve adapted my solution from last week to loop through images with different numbers of golf balls, including no balls at all.
In my solution, the optimum number of clusters is equivalent to the number of balls. Therefore, I have made a table of results including the original image, a couple of plots and the number of balls column:
The results show that the workflow successfully counts the correct number of balls for each image and can handle different image sizes
Here is my link to the workflow:
Thanks
Heather