{"id":26022281,"url":"https://github.com/FrancescElies/image-to-scan","last_synced_at":"2025-03-06T09:54:54.790Z","repository":{"id":50160004,"uuid":"198072876","full_name":"FrancescElies/image-to-scan","owner":"FrancescElies","description":"command line tool that transforms a photo of a document to a scanned document","archived":false,"fork":true,"pushed_at":"2022-12-26T21:36:31.000Z","size":4886,"stargazers_count":27,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T17:43:58.170Z","etag":null,"topics":["command-line-tool","image-manipulation","image-processing","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"KMKnation/Four-Point-Invoice-Transform-with-OpenCV","license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FrancescElies.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":"2019-07-21T15:23:06.000Z","updated_at":"2024-12-01T02:53:02.000Z","dependencies_parsed_at":"2023-01-31T02:00:49.246Z","dependency_job_id":null,"html_url":"https://github.com/FrancescElies/image-to-scan","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescElies%2Fimage-to-scan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescElies%2Fimage-to-scan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescElies%2Fimage-to-scan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescElies%2Fimage-to-scan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FrancescElies","download_url":"https://codeload.github.com/FrancescElies/image-to-scan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242187658,"owners_count":20086218,"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":["command-line-tool","image-manipulation","image-processing","python"],"created_at":"2025-03-06T09:54:50.009Z","updated_at":"2025-03-06T09:54:54.766Z","avatar_url":"https://github.com/FrancescElies.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# image-to-scan\n\nIf you have an image of a document and you would like to crop\neverything outside the document and correct the angle from which the\nphoto was taken, in that case this command line tool might be for you.\n\n\n\u003cdetails\u003e\n\u003csummary\u003eNotes\u003c/summary\u003e\n\u003cpre style=\"display:block; font-family:monospace; margin: 1em 0; white-space: pre;\"\u003e\nOriginally forked from \u003ca href=\"https://github.com/KMKnation/Four-Point-Invoice-Transform-with-OpenCV\"\u003eKMKnation/Four-Point-Invoice-Transform-with-OpenCV\u003c/a\u003e\n\nThis code is inspired from \u003ca href=\"https://www.pyimagesearch.com/2014/08/25/4-point-opencv-getperspective-transform-example/\"\u003e4 Point OpenCV getPerspective Transform Example\u003c/a\u003e\n\u003c/pre\u003e\n\u003c/details\u003e\n\n\n## Installation ##\n- Via [pipx](https://pipxproject.github.io/pipx/) `pipx install image_to_scan` if you want to install inside an isolated environment.\n- Via pip `pip install image_to_scan` to an enviroment of your choice.\n- Download an executable for windows, linux or macos from the [release page](https://github.com/FrancescElies/image-to-scan/releases)\n\n`image-to-scan` depends on `opencv` and `numpy` which together will take around `200MiB`\n\nIf installed with `pip` or `pipx` you should be able to call `image-to-scan` from the command line.\n\n## Run it ##\n\nRun `image-to-scan tests/samples/02/original.jpg`\n\n\u003cTable\u003e\n    \u003ctr\u003e\n        \u003cth\u003eOriginal Image\u003c/th\u003e\n        \u003cth\u003eOutput Image\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/FrancescElies/image-to-scan/master/tests/samples/02/original.jpg\" alt=\"original\" width=\"400\" height=\"500\" align=\"middle\"/\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/FrancescElies/image-to-scan/master/tests/samples/02/original-scanned.jpg\" alt=\"Warped\" width=\"400\" height=\"500\" align=\"middle\"/\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003ccode\u003etests/samples/02/original.jpg\u003c/code\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ccode\u003etests/samples/02/original-scanned.jpg\u003c/code\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/Table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFrancescElies%2Fimage-to-scan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFrancescElies%2Fimage-to-scan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFrancescElies%2Fimage-to-scan/lists"}