# OpenCV-Python 系列 五十六 | 理解K-Means聚类

### 理论

#### 如何起作用？

$$minimize ;bigg[J = sum_{All: Red_Points}distance(C1,Red_Point) + sum_{All: Blue_Points}distance(C2,Blue_Point)bigg]$$

### 附加资源

1. Machine Learning Course, Video lectures by Prof. Andrew Ng (Some of the images are taken from this)