# Solutions to "Just KNIME It!" Challenge 22 - Season 2

**URL:** <https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22-season-2/71959>\
**Category:** Just KNIME It!\
**Tags:** justknimeit\
**Created:** [August 23, 2023, 2:16pm UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22-season-2/71959 "2023-08-23T14:16:14Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![HeatherPikairos](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/h/a88e4f/32.png) [@HeatherPikairos](https://forum.knime.com/u/HeatherPikairos)\
**Post date:** [August 25, 2023, 8:46am UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22-season-2/71959/5 "2023-08-25T08:46:32Z")

</div>

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:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/e/b/ebfd30ac3f0b75c19bd87cac1eb2c346ba01c4ee.jpeg)

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/3/a/3a3710004ed2c15952c1d5db49112c4c0f172469.jpeg)

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/7/7/779222d6f8d4bb9e479d631b50efec9f925e9995.jpeg)

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:

> **[20230824 Pikairos Just KNIME It Season 2 Challenge 22 Help the Caddie (Part 2)...](https://hub.knime.com/heatherpikairos/spaces/Public/latest/Just%20KNIME%20It/Season%202/20230824%20Pikairos%20Just%20KNIME%20It%20Season%202%20Challenge%2022%20Help%20the%20Caddie%20(Part%202)~fLFcl7fJ0rYdnR9M)**
>
> Last week you helped caddie Tom by identifying golf balls in the provided images. Tom is impressed by your work and asks you to improve your workflow, such tha…

Thanks  
Heather

---

_[View the full topic](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22-season-2/71959)._
