the_ocr_bot
the_ocr_bot copied to clipboard
Telegram bot to convert image to text using python
Optical Character Recognition Bot
A Telegram bot to extract text from image using python
About
You can send an image containing text to this bot and it will respond quickly with the extracted text from the picture!
Start chat with this bot on telegram
Requirements
-
Bot token from Bot Father, If you don't know how to get bot token, read this
-
OCR api key, get your api key from here
Installation
You can fork the repo and deploy it on Heroku :)
OR
- Clone this repository using
git clone https://github.com/amit-y11/the_ocr_bot
- Enter the directory and install all the requirements using
cd the_ocr_bot
pip3 install -r requirements.txt
- Make a .env file and paste your API_KEY and BOT_TOKEN
API_KEY = "Your Api key from https://ocr.space/ocrapi"
BOT_TOKEN = "Your Bot Token"
Run Your Bot using the following command :
python3 bot.py