Optical Character Recognition (OCR) telegram bot built using python that extracts texts found inside pictures.
/start
the bot @pix2txt_bot- Just send a picture to the bot as you normally would without a caption -- captions & any other texts outside of the picture are unnecessary.
- It also supports forwarded picture messages.
- If you want further help, just send
/help
-
create a virtual environment, source it and install -- upgrade if you wish -- all dependencies found inside requirements.txt by doing
pip install -U -r requirements.txt
-
get your own API_ID & API_HASH from https://my.telegram.org/auth
-
create a telegram bot using @botfather
-
get bot's token from @botfather
-
create a
.env
file in the root directory and place the above details inside it as such:TOKEN = xxxxxxx API_ID = xxxxxx API_HASH = xxxxxxxx
-
run it just as any python application by
python src/botter.py
It only recognizes LATIN characters.