Task
I wanted a bot that brings old black and white photos to life right in a chat, without a separate app, sign-ups or photo editors.
Solution
The bot is written in Python. Colorization is done by a neural network through OpenCV DNN with a pretrained Caffe model, and I added chat through the OpenAI API so you can simply talk to the bot.
What was done
- Built a Telegram photo colorization bot in Python
- Connected an OpenCV DNN neural network with a Caffe model for colorization
- Added chat through the OpenAI API
- Kept everything inside Telegram with no separate app
Result
Send a photo and get a color version a few seconds later, all inside Telegram. Nothing to install.
Technologies
PythonOpenCVOpenAI