发表于|更新于|科研工具

|总字数:112|阅读时长:1分钟|浏览量:|

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

版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 遐说

请喝果茶

  • Wechat

    Wechat

  • Alipay

    Alipay


最新文章

2026第一场日出日落-黄山

[徒步]宁波九龙爱心线

[徒步]仙居公盂徒步+丽人谷溯溪(多图)

文献引用批量标注蓝色-Zotero/EndNote

[出差]内蒙草原风光