pyImageColorAnalysisTool

This tool is designed to analysis color distribution of image based on k-means cluster.

Usage

Download

1
git clone https://github.com/Doradx/pyImageColorAnalysisTool.git

Install requirements

1
pip install -r requirements

Run

1
python main.py

Example

Origin Image

Result

1
2
3
4
5
6
7
8
9
10
11
主要颜色及占比:
RGB(59,119,137):16.40%
RGB(27,93,25):16.00%
RGB(187,141,121):15.60%
RGB(219,231,204):12.40%
RGB(122,47,186):12.00%
RGB(161,238,104):11.60%
RGB(15,200,34):4.00%
RGB(229,67,60):4.00%
RGB(9,211,167):4.00%
RGB(244,60,173):4.00%

Github

Github

Author

Dorad, ddxid@outlook.com