本文链接:https://blog.csdn.net/daoer_sofu/article/details/102514622
kmeans分类
tmp = frame.reshape((-1,3))...(tmp)
criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 10, 1.0)
_,label,center = cv2.kmeans...(tmp,2,None,criteria,10,cv2.KMEANS_RANDOM_CENTERS) // 其中第二个参数,分类个数
center = np.uint8(center)
tmp = center...kmeans 2均值
?
kmeans 4个均值
?
kmean 10均值
?