/pyImageColorAnalysisTool

A Tool designed to analysis color distribution of image based on k-means cluster.

Primary LanguagePython

pyImageColorAnalysisTool

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

Usage

Download

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

Install requirements

pip install -r requirements

Run

python main.py

Example

Origin Image

Result

主要颜色及占比:
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%

Author

Dorad, cug.xia@gmail.com