{"id":15821204,"url":"https://github.com/flexoid/image-ocr-search","last_synced_at":"2025-04-01T06:37:32.240Z","repository":{"id":240993813,"uuid":"802893876","full_name":"flexoid/Image-OCR-search","owner":"flexoid","description":"Image Search CLI application with OCR","archived":false,"fork":false,"pushed_at":"2024-05-19T14:55:55.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-12T07:43:33.164Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flexoid.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-19T14:54:07.000Z","updated_at":"2024-05-21T18:58:26.000Z","dependencies_parsed_at":"2024-05-21T21:06:28.967Z","dependency_job_id":null,"html_url":"https://github.com/flexoid/Image-OCR-search","commit_stats":null,"previous_names":["flexoid/image-ocr-search"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2FImage-OCR-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2FImage-OCR-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2FImage-OCR-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2FImage-OCR-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexoid","download_url":"https://codeload.github.com/flexoid/Image-OCR-search/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246598151,"owners_count":20802973,"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-05T07:21:00.313Z","updated_at":"2025-04-01T06:37:32.222Z","avatar_url":"https://github.com/flexoid.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Search CLI application with OCR\n\nThis CLI application provides an image-search functionality using Optical Character Recognition (OCR). It's written in Python 3, uses the `EasyOCR` library for image scanning, and a PostgreSQL database for storing scan results. You can index an image directory recursively and perform full-text search over the available scan results.\n\nPersonally, I find it very useful for searching all my screenshots stored in the Desktop directory.\n\n## Installation\n\n1. Clone the repository.\n\n2. Change into the directory.\n\n3. Install virtualenv:  \n   `pip3 install virtualenv`\n4. Create a virtual environment:  \n   `virtualenv venv`\n\n5. Activate the virtual environment:  \n   On Windows, use: `venv\\Scripts\\Activate`  \n   On macOS and Linux, use: `source venv/bin/activate`\n\n6. Install the required dependencies:  \n   `pip3 install -r requirements.txt`\n\n7. Create a `.env` file using the provided example and update the parameters, such as the database connection details and OCR languages:\n\n   ```\n   cp .env.example .env\n   ```\n\n## Basic Usage\n\n- To index or scan a directory recursively, use:  \n   `python3 main.py load_and_index directory_path --since \"interval\"`  \n   The `--since` parameter is optional. It selects files modified within a certain interval in a human-readable format, like \"2 months ago\", \"3 weeks\", \"1 year\", etc.\n\n- To perform a full-text search over the available scan results, use:  \n   `python3 main.py search your_query`  \n   It outputs the list of files that contain the requested text.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexoid%2Fimage-ocr-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexoid%2Fimage-ocr-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexoid%2Fimage-ocr-search/lists"}