Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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