OpenCV: K-Means Clustering in OpenCV
docs.opencv.org › master › d1Jan 08, 2013 · Now we will see how to apply K-Means algorithm with three examples. 1. Data with Only One Feature . Consider, you have a set of data with only one feature, ie one-dimensional. For eg, we can take our t-shirt problem where you use only height of people to decide the size of t-shirt. So we start by creating data and plot it in Matplotlib