{"id":13826208,"url":"https://github.com/danielgatis/docscan","last_synced_at":"2025-04-04T18:10:39.837Z","repository":{"id":37679150,"uuid":"288215477","full_name":"danielgatis/docscan","owner":"danielgatis","description":"Docscan is a document scanner. Take a photo of your documents and frame it.","archived":false,"fork":false,"pushed_at":"2024-11-12T14:35:26.000Z","size":9744,"stargazers_count":98,"open_issues_count":0,"forks_count":19,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-28T17:11:41.664Z","etag":null,"topics":["document-scanner","image-processing","python"],"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/danielgatis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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},"funding":{"github":["danielgatis"],"custom":["https://www.buymeacoffee.com/danielgatis"]}},"created_at":"2020-08-17T15:23:08.000Z","updated_at":"2025-03-16T18:30:57.000Z","dependencies_parsed_at":"2025-01-18T18:13:05.777Z","dependency_job_id":"b1fb6d33-4363-4b43-aa41-54b0cdab6ecf","html_url":"https://github.com/danielgatis/docscan","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"94b3c953ecfc825fedceb8d85d858fe48a3d9ef7"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fdocscan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fdocscan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fdocscan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fdocscan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielgatis","download_url":"https://codeload.github.com/danielgatis/docscan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226215,"owners_count":20904465,"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":["document-scanner","image-processing","python"],"created_at":"2024-08-04T09:01:33.915Z","updated_at":"2025-04-04T18:10:39.817Z","avatar_url":"https://github.com/danielgatis.png","language":"Python","funding_links":["https://github.com/sponsors/danielgatis","https://www.buymeacoffee.com/danielgatis"],"categories":["Python"],"sub_categories":[],"readme":"# Docscan\n\n[![Downloads](https://pepy.tech/badge/docscan)](https://pepy.tech/project/docscan)\n[![Downloads](https://pepy.tech/badge/docscan/month)](https://pepy.tech/project/docscan/month)\n[![Downloads](https://pepy.tech/badge/docscan/week)](https://pepy.tech/project/docscan/week)\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://img.shields.io/badge/License-MIT-blue.svg)\n\nDocscan is a document scanner. Take a photo of your documents and frame it.\n\n\u003cp style=\"display: flex;align-items: center;justify-content: center;\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/danielgatis/docscan/master/examples/doc-1.jpg\" width=\"100\" /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/danielgatis/docscan/master/examples/doc-1.out.png\" width=\"100\" /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/danielgatis/docscan/master/examples/doc-2.png\" width=\"100\" /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/danielgatis/docscan/master/examples/doc-2.out.png\" width=\"100\" /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/danielgatis/docscan/master/examples/doc-3.jpg\" width=\"100\" /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/danielgatis/docscan/master/examples/doc-3.out.png\" width=\"100\" /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/danielgatis/docscan/master/examples/doc-4.jpg\" width=\"100\" /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/danielgatis/docscan/master/examples/doc-4.out.png\" width=\"100\" /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/danielgatis/docscan/master/examples/doc-5.jpg\" width=\"100\" /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/danielgatis/docscan/master/examples/doc-5.out.png\" width=\"100\" /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/danielgatis/docscan/master/examples/doc-6.jpg\" width=\"100\" /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/danielgatis/docscan/master/examples/doc-6.out.png\" width=\"100\" /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/danielgatis/docscan/master/examples/doc-7.jpg\" width=\"100\" /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/danielgatis/docscan/master/examples/doc-7.out.png\" width=\"100\" /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/danielgatis/docscan/master/examples/doc-8.jpg\" width=\"100\" /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/danielgatis/docscan/master/examples/doc-8.out.png\" width=\"100\" /\u003e\n\u003c/p\u003e\n\n\n### Installation\n\nInstall it from pypi\n\n```bash\n    pip install docscan\n```\n\n### Usage as a cli\n\nScan from a remote image\n```bash\n    curl -s http://input.png | docscan \u003e output.png\n```\n\nScan from a local file\n```bash\n    docscan path/to/output.png path/to/input.png\n```\n\n### Usage as a library\n\nIn `app.py`\n\n```python\nimport sys\nfrom docscan.doc import scan\n\nsys.stdout.buffer.write(scan(sys.stdin.buffer.read()))\n\n```\n\nThen run\n```\n    cat input.png | python app.py \u003e out.png\n```\n\n### License\n\nCopyright (c) 2020-present [Daniel Gatis](https://github.com/danielgatis)\n\nLicensed under [MIT License](./LICENSE.txt)\n\n### Buy me a coffee\nLiked some of my work? Buy me a coffee (or more likely a beer)\n\n\u003ca href=\"https://www.buymeacoffee.com/danielgatis\" target=\"_blank\"\u003e\u003cimg src=\"https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgatis%2Fdocscan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielgatis%2Fdocscan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgatis%2Fdocscan/lists"}