Skip to content

amit-y11/the_ocr_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optical Character Recognition Bot

logo

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 :)

Deploy

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 -m ocrbot