Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielgatis/docscan
Docscan is a document scanner. Take a photo of your documents and frame it.
https://github.com/danielgatis/docscan
document-scanner image-processing python
Last synced: 15 days ago
JSON representation
Docscan is a document scanner. Take a photo of your documents and frame it.
- Host: GitHub
- URL: https://github.com/danielgatis/docscan
- Owner: danielgatis
- License: mit
- Created: 2020-08-17T15:23:08.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T14:13:07.000Z (almost 2 years ago)
- Last Synced: 2024-09-30T17:45:16.620Z (about 1 month ago)
- Topics: document-scanner, image-processing, python
- Language: Python
- Homepage:
- Size: 9.29 MB
- Stars: 91
- Watchers: 6
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
# Docscan
[![Downloads](https://pepy.tech/badge/docscan)](https://pepy.tech/project/docscan)
[![Downloads](https://pepy.tech/badge/docscan/month)](https://pepy.tech/project/docscan/month)
[![Downloads](https://pepy.tech/badge/docscan/week)](https://pepy.tech/project/docscan/week)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://img.shields.io/badge/License-MIT-blue.svg)Docscan is a document scanner. Take a photo of your documents and frame it.
### Installation
Install it from pypi
```bash
pip install docscan
```### Usage as a cli
Scan from a remote image
```bash
curl -s http://input.png | docscan > output.png
```Scan from a local file
```bash
docscan path/to/output.png path/to/input.png
```### Usage as a library
In `app.py`
```python
import sys
from docscan.doc import scansys.stdout.buffer.write(scan(sys.stdin.buffer.read()))
```
Then run
```
cat input.png | python app.py > out.png
```### License
Copyright (c) 2020-present [Daniel Gatis](https://github.com/danielgatis)
Licensed under [MIT License](./LICENSE.txt)
### Buy me a coffee
Liked some of my work? Buy me a coffee (or more likely a beer)