Code Monkey home page Code Monkey logo

the_ocr_bot's Introduction

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

the_ocr_bot's People

Contributors

amit-y11 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

the_ocr_bot's Issues

ImportError: attempted relative import with no known parent package

I'm not able to run the bot because of this import error

ubuntu@mybase-vnic:~/the_ocr_bot$ python3 ocrbot/bot.py 
Traceback (most recent call last):
  File "/home/ubuntu/the_ocr_bot/ocrbot/bot.py", line 3, in <module>
    from .config import BOT_TOKEN
ImportError: attempted relative import with no known parent package
ubuntu@mybase-vnic:~/the_ocr_bot$ 

I've set up the .env correctly but I don't know why this error is happening

help me

hi.
in ocr.space i see this platform support persian language but in bot persian language is not exist.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.