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 -o path/to/output.png path/to/input.png
Scan from all images in a folder
docscan -p path/to/inputs
Usage as a server
Start the server
docscan-server
Open your browser to
http://localhost:5000?url=http://image.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
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.2.tar.gz
(6.0 kB
view details)
File details
Details for the file docscan-1.0.2.tar.gz
.
File metadata
- Download URL: docscan-1.0.2.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a004198e3a5e090bddc02ff6a2a34fdbfa5d325e862781c44080e51376f8f0e3 |
|
MD5 | 3bd0d5fc87b9a31c1334f04bc8be84e6 |
|
BLAKE2b-256 | e4578797dc9b748acf18214b1b631561fa385337388a1ac35808f8ac1398278d |