{"id":24886419,"url":"https://github.com/kshrugalj/lex-med","last_synced_at":"2025-08-16T08:19:33.739Z","repository":{"id":270109600,"uuid":"909357400","full_name":"kshrugalj/Lex-Med","owner":"kshrugalj","description":"This is for my LexMed project that I had done. ","archived":false,"fork":false,"pushed_at":"2024-12-28T13:37:26.000Z","size":92814,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T10:30:54.753Z","etag":null,"topics":["mupdf","ocr-python","python","tesseract-ocr"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kshrugalj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-12-28T13:11:07.000Z","updated_at":"2024-12-28T13:43:25.000Z","dependencies_parsed_at":"2024-12-28T14:37:03.028Z","dependency_job_id":null,"html_url":"https://github.com/kshrugalj/Lex-Med","commit_stats":null,"previous_names":["kshrugalj/lex-med"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kshrugalj/Lex-Med","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshrugalj%2FLex-Med","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshrugalj%2FLex-Med/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshrugalj%2FLex-Med/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshrugalj%2FLex-Med/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kshrugalj","download_url":"https://codeload.github.com/kshrugalj/Lex-Med/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshrugalj%2FLex-Med/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270684545,"owners_count":24627822,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["mupdf","ocr-python","python","tesseract-ocr"],"created_at":"2025-02-01T15:15:03.581Z","updated_at":"2025-08-16T08:19:33.716Z","avatar_url":"https://github.com/kshrugalj.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OCR Text Extraction with PyTesseract and MuPDF\n\nThis repository demonstrates a Python-based solution for Optical Character Recognition (OCR) to extract text from PDF files that may not be machine-readable and convert them into plain text files. The project uses the `pytesseract` library for OCR and `mupdf` for PDF file handling.\n\n## Features\n- Extract text from PDFs with non-selectable text using OCR.\n- Convert images or scanned PDF pages to readable text.\n- Save the extracted text into `.txt` files for easy access and usage.\n\n## Requirements\n\n### Prerequisites\nEnsure you have the following installed on your system:\n- Python 3.7+\n- Tesseract-OCR\n\n### Python Libraries\nInstall the required Python libraries using pip:\n\n```bash\npip install pytesseract mupdf\n```\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/your-username/ocr-text-extraction.git\n   cd ocr-text-extraction\n   ```\n2. Ensure `tesseract` is installed and available in your PATH.\n   - For Windows: [Download Tesseract-OCR](https://github.com/tesseract-ocr/tesseract)\n   - For macOS: Install via Homebrew:\n     ```bash\n     brew install tesseract\n     ```\n   - For Linux: Install via your package manager:\n     ```bash\n     sudo apt-get install tesseract-ocr\n     ```\n\n## Usage\n\n1. Place the PDF files you want to process into the `input_pdfs/` directory.\n2. Run the script:\n\n   ```bash\n   python ocr_extraction.py\n   ```\n3. The extracted text files will be saved in the `output_txt/` directory with the same base name as the input PDF.\n\n## Code Example\nRefer to main.py\n\n\n## Directory Structure\n```\n.\n├── input_pdfs/        # Place your PDF files here\n├── output_txt/        # Extracted text files will be saved here\n├── ocr_extraction.py  # Main script for processing\n└── README.md          # Project documentation\n```\n\n## Contributing\nContributions are welcome! Please fork this repository and submit a pull request for any improvements or new features.\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n- [PyTesseract](https://pypi.org/project/pytesseract/) for OCR capabilities.\n- [MuPDF](https://pymupdf.readthedocs.io/) for efficient PDF rendering.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshrugalj%2Flex-med","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkshrugalj%2Flex-med","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshrugalj%2Flex-med/lists"}