Introduction - If you have any usage issues, please Google them yourself
Kmeans-based image segmentation algorithm, first of all get the image, and then determine the classification, and calculate the various categories mean, and thus obtain the classification of each pixel.