{"id":19611676,"url":"https://github.com/hardyyb2/imagepdf_data_extractor","last_synced_at":"2025-07-11T02:33:34.584Z","repository":{"id":106169922,"uuid":"376008807","full_name":"hardyyb2/ImagePDF_data_extractor","owner":"hardyyb2","description":"Extract relevant data from Image-based PDFs","archived":false,"fork":false,"pushed_at":"2021-08-13T08:22:11.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-02T19:54:11.113Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hardyyb2.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":"2021-06-11T11:52:40.000Z","updated_at":"2023-03-09T00:00:52.000Z","dependencies_parsed_at":"2023-06-15T21:45:32.063Z","dependency_job_id":null,"html_url":"https://github.com/hardyyb2/ImagePDF_data_extractor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hardyyb2/ImagePDF_data_extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardyyb2%2FImagePDF_data_extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardyyb2%2FImagePDF_data_extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardyyb2%2FImagePDF_data_extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardyyb2%2FImagePDF_data_extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hardyyb2","download_url":"https://codeload.github.com/hardyyb2/ImagePDF_data_extractor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardyyb2%2FImagePDF_data_extractor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264713011,"owners_count":23652702,"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-11-11T10:42:28.455Z","updated_at":"2025-07-11T02:33:34.567Z","avatar_url":"https://github.com/hardyyb2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDF Data Extractor\n\nPDF data extractor can be used to extract any kind of required data from image based PDFs.\n\n**Current Purpose** - Currently it is being used to extract phone numbers from the PDFs.\n\n## SETUP\n\n### All steps should be followed from project root :\n\n- Install latest _Python_ release (3.9.5 at the time of writing).  \n  [Download Python](https://www.python.org/downloads/)\n- Add _Python_ to your system path if on windows  \n  [Add to Path ](https://www.educative.io/edpresso/how-to-add-python-to-path-variable-in-windows)\n- Install _pip_\n  - [Windows](https://phoenixnap.com/kb/install-pip-windows)\n  - [Mac](https://stackoverflow.com/questions/17271319/how-do-i-install-pip-on-macos-or-os-x)\n- Install virtualenv with  \n   `pip install virtualenv`\n- Create a virtual env in the project root with  \n  `virtualenv env`\n- Install all dependencies with  \n  `pip install -r requirements.txt`\n- Install _tesseract_ on your system\n  - [Windows](https://stackoverflow.com/questions/46140485/tesseract-installation-in-windows)\n  - `brew install tesseract` on Mac\n\n## GET STARTED\n\n- After installing all the dependencies activate the virtual enviroment with\n  - `source env/bin/activate` on Mac\n  - `env\\Scripts\\activate` on Windows\n- After activation, in the command line enter  \n  `export FLASK_APP=app` and `export FLASK_ENV=development`\n- Now run with  \n  `flask run`\n- Server runs at `localhost:5000`\n\n## HOW TO USE\n\n- Once the server is running on `localhost:5000`, open in browser, upload the PDF and submit.\n  \u003e Average time - 1 min/mb (PDF file)\n- Alternatively, send a **HTTP POST** request to **/phonenumbers** with _form-data_ field named _'file'_ and attach the PDF to it.\n\n## HOW IT WORKS\n\n- The given PDF is scanned and converted to **png** images using **PyMuPDF** library.\n- These images are then evaluated with **pytesseract** which uses **tesseract-OCR** under the hood to recognize letters from images (OCR technology).\n- We then pass the extracted text through our function which filters out phone numbers.\n\n\u003e Various other functions can be used to extract other kinds of data from PDF.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardyyb2%2Fimagepdf_data_extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardyyb2%2Fimagepdf_data_extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardyyb2%2Fimagepdf_data_extractor/lists"}