This tool can be used to generate color palette image from the given image.
Activate python virtualenv and run following command to install the requirements:
pip install -r requirements.txt
After activating the virtualenv, make sure you have "img.png" image present and run the following command:
python script.py
After running the script, a color palette image will be generated based on the color frequency in input image.