Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makschernetskyi/img_color_simplifier
image colors number reducer
https://github.com/makschernetskyi/img_color_simplifier
Last synced: about 2 months ago
JSON representation
image colors number reducer
- Host: GitHub
- URL: https://github.com/makschernetskyi/img_color_simplifier
- Owner: makschernetskyi
- Created: 2023-11-19T13:06:38.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-19T20:17:49.000Z (about 1 year ago)
- Last Synced: 2023-11-19T21:27:32.575Z (about 1 year ago)
- Language: Python
- Size: 676 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Image colors simplifier 🍭
This script (which maybe extended to a form of a simple application)
can simplify colors in an image to exactly n colors which can be set as
```clusters_number``` in the ```simplificator.py``` 🐍 file.To run the script set path to the file in ```simplificator.py``` and run
the file itself.The script is written not using any scientific or ML libraries so there is a high
probability, that you won't need to install any dependencies, but they
are still provided in ```requirements.txt``` file.## 📽️ Demo 📽️
### example 1 - Tagetes
### original![original](./demos/img_5.jpg)
### 3 colors
![3_colors](./demos/img_520231119204401.jpg)
### 8 colors
![8_colors](./demos/img_520231119202311.jpg)
### 16 colors
![16_colors](./demos/img_520231119210347.jpg)
### example 2 - Viburnum
### original![original](./demos/img_1.jpg)
### 8 colors
![8_colors](./demos/img_120231119202942.jpg)
## Applications and remarks
Why would one need it? I thought it might be useful for example for pixel- or minecraft art
where we have very limited color palette. Another idea is to use it with screens with limited amount
of available colors.This is the first version of the project it will be optimized over time
and might evolve into an application getting an interface