A simple bot to extract text from images with python
Text from image (OCR)
A bot that extract text from images using the Tesseract OCR.
Usage
What do I need?
- A AWS key configured locally, see here.
- NodeJS. I tested with v8.9.0.
- A Telegram account.
Installing
# Install the Serverless Framework
$ npm install serverless -g
# Install the necessary plugins
$ npm install
# Get a bot from Telegram, sending this message to @BotFather
$ /newbot
# Put the token received into a file called serverless.env.yml, like this
$ cat serverless.env.yml
TELEGRAM_TOKEN:
# Deploy it!
$ serverless deploy
# With the URL returned in the output, configure the Webhook
$ curl -X POST https://.amazonaws.com/dev/set_webhook
Now, just start a conversation with the bot 🙂
Acknowledgement
GitHub
https://github.com/wevertonms/ocr_text_bot