https://github.com/amirzenoozi/image-color-analyzer
A Simple Color CLI Analyzer For Images
https://github.com/amirzenoozi/image-color-analyzer
analyzer chart cli color color-analysis color-palette color-scheme fastapi kmeans kmeans-algorithm kmeans-clustering kmeans-clustering-algorithm matplotlib numpy opencv python python-script python3 telegram-bot uvicorn
Last synced: about 1 month ago
JSON representation
A Simple Color CLI Analyzer For Images
- Host: GitHub
- URL: https://github.com/amirzenoozi/image-color-analyzer
- Owner: amirzenoozi
- License: agpl-3.0
- Created: 2022-02-28T06:28:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-08T12:52:46.000Z (about 3 years ago)
- Last Synced: 2025-01-21T08:24:25.984Z (3 months ago)
- Topics: analyzer, chart, cli, color, color-analysis, color-palette, color-scheme, fastapi, kmeans, kmeans-algorithm, kmeans-clustering, kmeans-clustering-algorithm, matplotlib, numpy, opencv, python, python-script, python3, telegram-bot, uvicorn
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Color Analyzer By Using Python
In this simple script we extract the image colors by using python and `KMeans` clustring method## Requierments
```bash
pip install -r requirements.txt
```## Features
- [x] Pie Chart
- [x] CLI
- [x] Telegram Bot
- [x] Rest API
- [ ] Video Files## CLI Options
```bash
--src Your Target File Path #default: sample.jpg
--clusters Number of KMeans Cluster #default: 5
--dest Your Target File Path #default: results
```## How To Use
```bash
python main.py --src PATH_TO_YOUR_IMAGE --clusters 5 --dest FOLDER_NAME
```## How To Serve API Server
You Only Need To Install `Uvicorn` Library For Python By:
```bash
pip install uvicorn
```or
```bash
pip install -r requirements.txt
```and run
```bash
python server.py
```## How To Serve Telegram Bot
Firstly, You Need To Get `API_TOKEN` from `Bot_Fother` and put it in `.env` File Then You Just Need To Run:
```bash
python bot.py
```