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 -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.3.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file docscan-1.0.3.tar.gz.

File metadata

  • Download URL: docscan-1.0.3.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

Hashes for docscan-1.0.3.tar.gz
Algorithm Hash digest
SHA256 de6de2a5570b5ca54d7ecb507e150ba9c916a3e69f1a8e1de903916a41740210
MD5 e6323cd7399b34017f932ae167339e99
BLAKE2b-256 92e9e013187c355e8a4ffe63a1b6d86695caef9b839e818e235f911856038db9

See more details on using hashes here.

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