Palette generator for VoxelShop
This script extracts dominant colors of a illustration and generates a color palette for VoxelShop.
For example, the script generates the following palette from the following icon.
โ
- cv2
- numpy
- sklearn (for k-means)
The following command generates a 10x16 palette <prefix>_palette.png
.
python main.py <imgpath>