This is a document scanner
Project description
Docscan
Docscan is a document scanner. Take a photo of your documents and frame it.
Installation
Install it from pypi
pip install docscan
Usage as a cli
Scan from a remote image
curl -s http://input.png | docscan > output.png
Scan from a local file
docscan path/to/output.png path/to/input.png
Usage as a library
In app.py
import sys
from docscan.doc import scan
sys.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
Licensed under MIT License
Buy me a coffee
Liked some of my work? Buy me a coffee (or more likely a beer)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
docscan-1.0.6.tar.gz
(6.1 kB
view details)
Built Distribution
File details
Details for the file docscan-1.0.6.tar.gz
.
File metadata
- Download URL: docscan-1.0.6.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 921d749a43ccf50f7467c0bceb67887104bc7c84e6a6265893ee910a9bbd4d2e |
|
MD5 | 82f62d6632481b3c0154ee29cfc6e345 |
|
BLAKE2b-256 | ffcf3b94f4217393b8dda8508f5b3532722034aeca59ffad34c9ebd161901e85 |
File details
Details for the file docscan-1.0.6-py3-none-any.whl
.
File metadata
- Download URL: docscan-1.0.6-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a8a2cde3f0077623ea0a581afa09fd326c9005f5db98fba5a7f60efa899f65c |
|
MD5 | 28dccfe750a528b6688a093ad192837e |
|
BLAKE2b-256 | efbec9cb26d5370457a03340e1cf67071a470b2b3cccb0f0aec2f5c8604c2225 |