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: resultspython main.py --src PATH_TO_YOUR_IMAGE --clusters 5 --dest FOLDER_NAMEYou Only Need To Install Uvicorn Library For Python By:
pip install uvicornor
pip install -r requirements.txtand run
python server.pyFirstly, You Need To Get API_TOKEN from Bot_Fother and put it in .env File Then You Just Need To Run:
python bot.py