OpenCV: K-Means Clustering in OpenCV
docs.opencv.org › master › d1Jan 08, 2013 · Learn to use cv.kmeans() function in OpenCV for data clustering; Understanding Parameters Input parameters. samples: It should be of np.float32 data type, and each feature should be put in a single column. nclusters(K): Number of clusters required at end; criteria: It is the iteration termination criteria. When this criteria is satisfied ...