{"id":13793293,"url":"https://github.com/ShivangKakkar/OCRBot","last_synced_at":"2025-05-12T20:30:54.831Z","repository":{"id":46370162,"uuid":"396423419","full_name":"ShivangKakkar/OCRBot","owner":"ShivangKakkar","description":"https://t.me/StarkBots","archived":false,"fork":false,"pushed_at":"2022-12-04T03:56:35.000Z","size":16,"stargazers_count":26,"open_issues_count":0,"forks_count":23,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T00:02:45.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShivangKakkar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-15T16:56:15.000Z","updated_at":"2024-02-08T21:07:48.000Z","dependencies_parsed_at":"2023-01-23T01:31:25.046Z","dependency_job_id":null,"html_url":"https://github.com/ShivangKakkar/OCRBot","commit_stats":null,"previous_names":["starkbotsindustries/ocrbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivangKakkar%2FOCRBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivangKakkar%2FOCRBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivangKakkar%2FOCRBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivangKakkar%2FOCRBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShivangKakkar","download_url":"https://codeload.github.com/ShivangKakkar/OCRBot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253816670,"owners_count":21968862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T23:00:18.065Z","updated_at":"2025-05-12T20:30:54.529Z","avatar_url":"https://github.com/ShivangKakkar.png","language":"Python","readme":"# OCR Bot [@Image_To_Text_OCR_Bot](https://t.me/Image_To_Text_OCR_Bot)\n\n\u003e A star ⭐ from you means a lot to us!\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://www.github.com/StarkBotsIndustries/OCRBot\"\u003e\u003cimg src=\"https://telegra.ph/file/243d5cb02e7aa0384358f.jpg\" width=\"5000\"\u003e\u003c/a\u003e\u003c/p\u003e\n\nTelegram bot to extract text from image\n\n[![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)\n\n## Usage\n\n### Deploy to Heroku\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/StarkBotsIndustries/OCRBot)\n\n1. Tap on above button and fill `API_ID`, `API_HASH`, `BOT_TOKEN`.\n2. Then tap \"Deploy App\" below it. Wait till deploying is complete (will take atmost 2 minutes).\n3. After deploying is complete, tap on \"Manage App\"\n4. Check the logs to see if your bot is ready!\n\n### Local Deploying\n\n1. Clone the repo\n   ```markdown\n   git clone https://github.com/StarkBotsIndustries/OCRBot\n   ```\n\n2. Now head to [this page](https://github.com/UB-Mannheim/tesseract/wiki) and install Tesseract installer. \n   \n3. Use it to  install Tesseract and copy the PATH to where it is installed. \n\n4. Now uncomment out [this line](https://github.com/StarkBotsIndustries/OCRBot/blob/master/OCRBot/ocr.py#L8). Fill the inverted commas with your own PATH.\n   \n5. Edit `Config.py` and fill the needed variables\n\n6. Enter the directory\n   ```markdown\n   cd OCRBot\n   ```\n  \n7. Install all requirements using pip.\n   ```markdown\n   pip3 install -r requirements.txt\n   ```\n\n8. Run the file\n   ```markdown\n   python3 main.py\n   ```\n\n## Environment Variables\n\n#### Mandatory Vars\n\n- `API_ID` - Get this from [my.telegram.org](https://my.telegram.org/auth)\n- `API_HASH` - Get this from [my.telegram.org](https://my.telegram.org/auth)\n- `BOT_TOKEN` - Get this from [@BotFather](https://t.me/BotFather)\n\n## Functions\n\n\u003e More features soon, this is a minimal example :)\n\n1) Extract text from image\n2) Send any amount of images at once, and it will work the same.\n\n## To-Do\n\n\u003e That's on you mainly...\n\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\n## Credits\n\n- [Dan Tès](https://github.com/delivrance) for his [Pyrogram](https://docs.pyrogram.org) Library\n\n## Support\n\nChannel :- [@StarkBots](https://t.me/StarkBots)\n\nGroup Chat :- [@StarkBotsChat](https://t.me/StarkBotsChat)\n\n## :)\n\n[![ForTheBadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/)\n\n[![ForTheBadge built-with-love](http://ForTheBadge.com/images/badges/built-with-love.svg)](https://github.com/StarkBotsIndustries)\n\n[![ForTheBadge makes-people-smile](http://ForTheBadge.com/images/badges/makes-people-smile.svg)](https://github.com/StarkBotsIndustries)\n","funding_links":[],"categories":["Telegram Bot List","Python"],"sub_categories":["List of Source Codes"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShivangKakkar%2FOCRBot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FShivangKakkar%2FOCRBot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShivangKakkar%2FOCRBot/lists"}