Since I’m currently doing KMeans Clustering for my AI class, here are some resources I found helpful:
sklearn.cluster.KMeans:
https://scikit-learn.org/stable/modules/generated/sklearn.cluster.KMeans.html
Example code of kMeans segmentation:
Image Segmentation using KMeans:
Open CV Tutorial: https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_ml/py_kmeans/py_kmeans_opencv/py_kmeans_opencv.html
Open CV Full Tutorial with Python: