https://github.com/ShivangKakkar/OCRBot
https://t.me/StarkBots
https://github.com/ShivangKakkar/OCRBot
Last synced: 6 days ago
JSON representation
https://t.me/StarkBots
- Host: GitHub
- URL: https://github.com/ShivangKakkar/OCRBot
- Owner: ShivangKakkar
- License: agpl-3.0
- Created: 2021-08-15T16:56:15.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T03:56:35.000Z (over 2 years ago)
- Last Synced: 2025-02-09T00:02:45.631Z (3 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 26
- Watchers: 1
- Forks: 23
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- BotList - OCR [Image to Text - Text extraction from Images (Telegram Bot List / List of Source Codes)
README
# OCR Bot [@Image_To_Text_OCR_Bot](https://t.me/Image_To_Text_OCR_Bot)
> A star ⭐ from you means a lot to us!
Telegram bot to extract text from image
[](https://github.com/ellerbrock/open-source-badges/)
## Usage
### Deploy to Heroku
[](https://heroku.com/deploy?template=https://github.com/StarkBotsIndustries/OCRBot)
1. Tap on above button and fill `API_ID`, `API_HASH`, `BOT_TOKEN`.
2. Then tap "Deploy App" below it. Wait till deploying is complete (will take atmost 2 minutes).
3. After deploying is complete, tap on "Manage App"
4. Check the logs to see if your bot is ready!### Local Deploying
1. Clone the repo
```markdown
git clone https://github.com/StarkBotsIndustries/OCRBot
```2. Now head to [this page](https://github.com/UB-Mannheim/tesseract/wiki) and install Tesseract installer.
3. Use it to install Tesseract and copy the PATH to where it is installed.4. Now uncomment out [this line](https://github.com/StarkBotsIndustries/OCRBot/blob/master/OCRBot/ocr.py#L8). Fill the inverted commas with your own PATH.
5. Edit `Config.py` and fill the needed variables6. Enter the directory
```markdown
cd OCRBot
```
7. Install all requirements using pip.
```markdown
pip3 install -r requirements.txt
```8. Run the file
```markdown
python3 main.py
```## Environment Variables
#### Mandatory Vars
- `API_ID` - Get this from [my.telegram.org](https://my.telegram.org/auth)
- `API_HASH` - Get this from [my.telegram.org](https://my.telegram.org/auth)
- `BOT_TOKEN` - Get this from [@BotFather](https://t.me/BotFather)## Functions
> More features soon, this is a minimal example :)
1) Extract text from image
2) Send any amount of images at once, and it will work the same.## To-Do
> That's on you mainly...
[](http://makeapullrequest.com)
## Credits
- [Dan Tès](https://github.com/delivrance) for his [Pyrogram](https://docs.pyrogram.org) Library
## Support
Channel :- [@StarkBots](https://t.me/StarkBots)
Group Chat :- [@StarkBotsChat](https://t.me/StarkBotsChat)
## :)
[](https://www.python.org/)
[](https://github.com/StarkBotsIndustries)
[](https://github.com/StarkBotsIndustries)