The clustering algorithm of K-means is a widely used clustering algorithm, which characteristic is efficient and simple to implement. In this study, it takes the clustering algorithm of K-means as the starting point, which also explains the improvement of the clustering algorithm of K-means clustering, discussing the application of K-means on the realization of fruit image segmentation.