Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 685 Bytes

README.md

File metadata and controls

37 lines (31 loc) · 685 Bytes

Extract Color Scheme

Exctract color scheme from given PNG or JPG file using Kmeans algorithm

Run Application

Clone the repo

git clone https://github.com/zereaykut/Extract-Color-Scheme
cd Extract-Color-Scheme

Create python environment

python -m venv venv

Activate environment in Mac/Linux

source venv/bin/activate

Activate environment in Windows

.\venv\Scripts\activate

Install required packages

pip install -r requirements.txt

Run application
-c : number of color outputs
-i : image path
-n : name of json output file

python exctract_color_scheme.py -c 6 -i sample.jpg -n sample