Skip to main content

This is a document scanner

Project description

Docscan

Downloads Downloads Downloads License

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)

Buy Me A Coffee

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.5.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

docscan-1.0.5-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page