{"id":18084969,"url":"https://github.com/coderofsalvation/imagegrep-bash","last_synced_at":"2025-04-12T20:10:37.942Z","repository":{"id":30111351,"uuid":"33661170","full_name":"coderofsalvation/imagegrep-bash","owner":"coderofsalvation","description":"grep word in pdf or image based on OCR","archived":false,"fork":false,"pushed_at":"2020-05-28T19:08:08.000Z","size":22,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T14:21:43.038Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/coderofsalvation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://gumroad.com/l/hGYGh"}},"created_at":"2015-04-09T09:44:48.000Z","updated_at":"2024-08-12T19:17:01.000Z","dependencies_parsed_at":"2022-08-17T19:35:18.057Z","dependency_job_id":null,"html_url":"https://github.com/coderofsalvation/imagegrep-bash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fimagegrep-bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fimagegrep-bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fimagegrep-bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fimagegrep-bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderofsalvation","download_url":"https://codeload.github.com/coderofsalvation/imagegrep-bash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625493,"owners_count":21135513,"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-10-31T15:08:49.763Z","updated_at":"2025-04-12T20:10:37.908Z","avatar_url":"https://github.com/coderofsalvation.png","language":"Shell","funding_links":["https://gumroad.com/l/hGYGh"],"categories":[],"sub_categories":[],"readme":"imagegrep-bash\n==============\nunix 'grep' a word inside pdf or image based on OCR\n\n# Usage\n\n    ./imagegrep foo.pdf invoice eng \u0026\u0026 echo \"grab your wallet!\"\n\n\u003ccenter\u003e \n  \u003cimg alt=\"\" src=\"http://www.gifbin.com/bin/092014/1410513359_cat_vs_lemon.gif\" style=\"height:110px\"/\u003e\n  no repo is complete without a catgif!\n\u003c/center\u003e\n\n# Install\n\n    wget https://raw.githubusercontent.com/coderofsalvation/imagegrep-bash/master/imagegrep \n    chmod 755 imagegrep\n    ./imagegrep foo.pdf invoice eng \n\n# Requirements\n\n  * tesseract-ocr\n  * imagemagick \n\nthese packages can be installed using apt-get or yum\n\n# Why \n\nTo automate, categorize files and their destination folder.\nOCR usually fails in many cases, but sometimes knowing one word (and its length) is enough.\nImagegrep can be used this to scrape gmail and copy invoice-attachments to a preferred folder on my harddrive.\n\n    # not covered here: gmail to local maildir using 'offlineimap'\n    # not covered here: use mu ('maildir-utils' package) to extract pdf attachments\n\n    find mailbox/latest/*.pdf | while read file; do \n      ./imagegrep \"$file\" invoice eng    \u0026\u0026\\\n         echo \"grab your wallet!\"        \u0026\u0026\\\n         mv foo.pdf ~/admin/invoices/.\n    done\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fimagegrep-bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderofsalvation%2Fimagegrep-bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fimagegrep-bash/lists"}