In this simple script we extract the image colors by using python and KMeans
clustring method
pip install -r requirements.txt
- Pie Chart
- CLI
- Telegram Bot
- Rest API
- Video Files
--src Your Target File Path #default: sample.jpg
--clusters Number of KMeans Cluster #default: 5
--dest Your Target File Path #default: results
python main.py --src PATH_TO_YOUR_IMAGE --clusters 5 --dest FOLDER_NAME
You Only Need To Install Uvicorn
Library For Python By:
pip install uvicorn
or
pip install -r requirements.txt
and run
python server.py
Firstly, You Need To Get API_TOKEN
from Bot_Fother
and put it in .env
File Then You Just Need To Run:
python bot.py