Hey guys, I saw that you have kmeans clustering in your firmware, but it doesn’t seem to be exposed on the python side (or used elsewhere in the github repo?).
Is there any chance you could expose this function in python, so that it could be called on an image?
I’m trying segment ~450x40 pix grayscale images into three colors, without predefining/hardcoding the thresholds, as they’re subject to change
Otsu / get_threshold() works great if the number of colors is two
I tried to use this Jenks Natural Breaks clustering (jenks-python/jenks.py at master · llimllib/jenks-python · GitHub), but ran out of memory (what I wouldn’t give for an H7 Plus )
Anyway, kmeans or Jenks would be super useful to have available, even if they run slow