OCR Bot
A Telegram bot to extracting text from images. All languages supported.
Deploy to Heroku
Local Deploying
-
Clone the repo
git clone https://github.com/samadii/OCRBot
-
Now head to this page and install Tesseract installer.
-
Use it to install Tesseract, Then Go to this line and add the PATH where Tesseract is installed.
-
Fill this PATH with the path of the tessdata folder.
-
Enter the directory
cd OCRBot
-
Install all requirements using pip.
pip3 install -r requirements.txt
-
Run the file
python3 bot.py
Environment Variables
Mandatory Vars
API_ID
- Get this from my.telegram.orgAPI_HASH
- Get this from my.telegram.orgBOT_TOKEN
- Get this from @BotFather