https://github.com/pd-mera/dominant-color-kmeans
Using K-means to get dominant colors of an image
https://github.com/pd-mera/dominant-color-kmeans
Last synced: 3 months ago
JSON representation
Using K-means to get dominant colors of an image
- Host: GitHub
- URL: https://github.com/pd-mera/dominant-color-kmeans
- Owner: PD-Mera
- Created: 2022-12-08T05:32:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-10T14:38:31.000Z (over 2 years ago)
- Last Synced: 2025-01-08T19:46:54.462Z (5 months ago)
- Language: Python
- Homepage:
- Size: 109 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Find Dominant Color of an image using K-means
This project simply using list of RGB pixels to clustering dominant colors using K-means
## Environments and Dependencies
- Python 3.10.6
Install
``` bash
python -m pip install --upgrade pip
pip install -r requirements.txt
```## Install package
``` bash
git clone https://github.com/PD-Mera/Dominant-Color-Kmeans.git
cd Dominant-Color-Kmeans
pip install -e .
```## Demo
Simply modify inputs in `color_kmeans.py` and run
``` bash
python color_kmeans.py
```## Results


