Number of clusters to split the set by. Basically, it specifies the number of colors of the resulting image.
323456789101112131415161718192021
Criteria
Specifies when to terminate the algorithm.
That is, the maximum number of iterations and/or the desired accuracy.
Accuracy is specified as Epsilon while max iteration as Max Iteration.
The number of times the algorithm is executed using different initial settings.
10123456789101112131415161718192021
Initial
Initialization of starting points. Check out the documentation
for further information on each type. The flag cv2.KMEANS_USE_INITIAL_LABELS is excluded here for simplicity.
*Disclaimer*: This site is not in any way associated with the OpenCV organization.
Visit OpenCV.org for an updated documentation for the
latest functions.
This site is built on the sheer annoyance and repetitive frustration the author experienced while
tuning parameters on OpenCV. It is casually maintained in my spare time. You can DM me on
Github for any feature suggestions.