A simple python script to extract the most common colors from an image.
- Python 3
- Numpy
- Matplotlib
- sklearn
- colorsys
- pillow
- yaml
git clone https://github.com/XinChen-stars/Color_Extractor.git
python3 color_extractor.py
Settings of the image can be modified in color_extraction.py
. Important settings are:
image_folder
- image source folderimage_name
- image name with extensioncolor_folder
- color output folderyaml_name
- color output yaml file namenum_colors
- number of colors to extractresize_factor
- resize factor of the image,avoiding large images
Find more beautiful image on:
- wallhaven - The best wallpapers website