{"id":50330425,"url":"https://github.com/pythonicshariful/phone-number-extractor","last_synced_at":"2026-05-29T09:03:05.800Z","repository":{"id":317338486,"uuid":"1066976830","full_name":"pythonicshariful/phone-number-extractor","owner":"pythonicshariful","description":"A Python script that extracts phone numbers from images using Tesseract OCR and Regex. Automatically organizes processed images into success and failed folders, and saves results to a CSV file.","archived":false,"fork":false,"pushed_at":"2025-09-30T08:09:08.000Z","size":86,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-30T10:09:45.788Z","etag":null,"topics":["automation","dataextraction","ocr-python","phonenumberextraction","pytesseract","python","regex"],"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/pythonicshariful.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-30T08:04:31.000Z","updated_at":"2025-09-30T08:14:32.000Z","dependencies_parsed_at":"2025-10-01T09:06:04.354Z","dependency_job_id":null,"html_url":"https://github.com/pythonicshariful/phone-number-extractor","commit_stats":null,"previous_names":["pythonicshariful/phone-number-extractor"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/pythonicshariful/phone-number-extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicshariful%2Fphone-number-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicshariful%2Fphone-number-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicshariful%2Fphone-number-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicshariful%2Fphone-number-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythonicshariful","download_url":"https://codeload.github.com/pythonicshariful/phone-number-extractor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicshariful%2Fphone-number-extractor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33644313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"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":["automation","dataextraction","ocr-python","phonenumberextraction","pytesseract","python","regex"],"created_at":"2026-05-29T09:03:05.131Z","updated_at":"2026-05-29T09:03:05.792Z","avatar_url":"https://github.com/pythonicshariful.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phone Number Extractor from Images\n\nThis Python script uses **Tesseract OCR** and **Regex** to extract phone numbers from images.  \nIt processes all images inside an `images` folder and saves results into a CSV file.  \n\n- ✅ If phone numbers are found → image is moved to `success/`  \n- ❌ If no phone number or error → image is moved to `failed/`  \n- 📊 A `numbers.csv` file is generated with extracted numbers and source filenames.  \n- 🔄 The main `images` folder will be emptied after processing.  \n\n---\n\n## 📂 Folder Structure\n\n```\nproject/\n│── main.py\n│── README.md\n│── numbers.csv (generated automatically)\n│── images/        # put your input images here\n│── success/       # created automatically\n│── failed/        # created automatically\n```\n\n---\n\n## ⚙️ Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/pythonicshariful/phone-number-extractor.git\n   cd phone-number-extractor\n   ```\n\n\n\n2. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. Install **Tesseract OCR**:\n   - Windows: [Download here](https://github.com/tesseract-ocr/tesseract/wiki)\n   - Linux (Ubuntu/Debian):\n     ```bash\n     sudo apt install tesseract-ocr\n     ```\n   - macOS (Homebrew):\n     ```bash\n     brew install tesseract\n     ```\n\n5. Update the path to `tesseract.exe` inside `main.py` if needed:\n   ```python\n   pytesseract.pytesseract.tesseract_cmd = r\"C:\\Program Files\\Tesseract-OCR\\tesseract.exe\"\n   ```\n\n---\n\n## ▶️ Usage\n\n1. Place your images inside the `images/` folder.  \n   Supported formats: `.png`, `.jpg`, `.jpeg`\n\n2. Run the script:\n   ```bash\n   python main.py\n   ```\n\n3. Results:\n   - Extracted phone numbers → `numbers.csv`\n   - Successfully processed images → `success/`\n   - Failed images → `failed/`\n\n---\n\n## 🛠 Requirements\n\n- Python 3.8+\n- Tesseract OCR\n- Python libraries:\n  ```txt\n  pillow\n  pytesseract\n  tqdm\n  ```\n\nInstall them with:\n```bash\npip install pillow pytesseract tqdm\n```\n\n---\n\n## 📜 License\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonicshariful%2Fphone-number-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythonicshariful%2Fphone-number-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonicshariful%2Fphone-number-extractor/lists"}