{"id":20656765,"url":"https://github.com/bensouchet/ipex","last_synced_at":"2025-10-10T21:47:14.865Z","repository":{"id":65043182,"uuid":"580381562","full_name":"BenSouchet/ipex","owner":"BenSouchet","description":"Image Paper EXtractor - Detect Sheets of Paper in Photographs, Extract \u0026 Straighten them!","archived":false,"fork":false,"pushed_at":"2023-01-14T11:39:56.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T11:26:58.084Z","etag":null,"topics":["computer-vision","detection-algorithm","document","image-processing","opencv4","python-3","scanner-app"],"latest_commit_sha":null,"homepage":"","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/BenSouchet.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}},"created_at":"2022-12-20T12:25:17.000Z","updated_at":"2022-12-23T11:27:18.000Z","dependencies_parsed_at":"2023-02-09T19:15:21.747Z","dependency_job_id":null,"html_url":"https://github.com/BenSouchet/ipex","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSouchet%2Fipex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSouchet%2Fipex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSouchet%2Fipex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSouchet%2Fipex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenSouchet","download_url":"https://codeload.github.com/BenSouchet/ipex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242762736,"owners_count":20181267,"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":["computer-vision","detection-algorithm","document","image-processing","opencv4","python-3","scanner-app"],"created_at":"2024-11-16T18:17:12.757Z","updated_at":"2025-10-10T21:47:09.835Z","avatar_url":"https://github.com/BenSouchet.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IPEX : Image Paper EXtractor\n\n### Detect Sheets of Paper in Photographs, Extract \u0026 Straighten them!\n\nA `Python 3` command line script to detect \u0026 extract sheets of paper in images, the script use **OpenCV** and **NumPy**.\n\n## Usage\n\nEnsure you have a valid and working `python3`, `opencv` \u0026 `numpy` (Normally NumPy is a dependency of OpenCV, so you don't need to worry).\n\n_Info : The script has been developed and tested on Python `3.11.0` \u0026 OpenCV `4.6.0`._\n\nAfter cloning (or downloading) this repository:\n```sh\npython3 ipex.py -i ~/Desktop/IMG_3212.png\n```\nThe paper sheets images extracted will be saved into a newly created folder inside `./results/`, if nothing has been generated please check the log in your terminal.\n\n### Multiple images\n\nYou can pass one or more images/photographs to the script like this:\n```sh\npython3 ipex.py -i ~/Desktop/IMG_3205.png ./contract.jpg ~/Documents/invoice.jpeg\n```\nInside the result subfolder, extracted paper sheets will be named `paper_001.png`, `paper_002.png`, `paper_003.png`, ...\n\n## Debug\n\nYou can visualize some steps of the sheet detection by adding the argument `-d` or `--debug` to the script call:\n```sh\npython3 ipex.py -i ~/Documents/homework_03.jpeg -d\n```\nThis will add debug images into the result subfolder.\n\n## Errors / Warnings\n\nIn case of an error you should see a formated log message in your terminal telling you exactly what is the issue.\nIf the script crash or something don't work you can open an issue [here](https://github.com/BenSouchet/ipex/issues).\n\n## Improvements\n- use `numpy.ascontiguousarray` on images arrays to use them as output or dest array, reducing allocations\n- Adding more timing debug to detect bottle necks in the process\n- Expose `is_document` and `max_quality` to script arguments\n\n## Author / Maintainer\n\n**IPEX** has been created and is currently maintained by [Ben Souchet](https://github.com/BenSouchet).\n\n## Licenses\n\nThe code present in this repository is under [MIT license](https://github.com/BenSouchet/ipex/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbensouchet%2Fipex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbensouchet%2Fipex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbensouchet%2Fipex/lists"}