All Projects → danielgatis → docscan

danielgatis / docscan

Licence: MIT license
Docscan is a document scanner. Take a photo of your documents and frame it.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to docscan

rn-doc-scanner-android
React-Native Document Scanner for Android
Stars: ✭ 19 (-52.5%)
Mutual labels:  document-scanner
Document-Scanner-and-OCR
A simple document scanner with OCR implemented using Python and OpenCV
Stars: ✭ 31 (-22.5%)
Mutual labels:  document-scanner
doc-skanner
An Android application that makes it possible to automatically scan and digitize documents from photos.
Stars: ✭ 92 (+130%)
Mutual labels:  document-scanner
DocumentScanner
Simple document scanner built with the Apple's Vision framework
Stars: ✭ 53 (+32.5%)
Mutual labels:  document-scanner
MRZScanner
Library for scanning documents via MRZ (Machine Readable Zones) using  Vision API
Stars: ✭ 40 (+0%)
Mutual labels:  document-scanner

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

Also you can send the file as a FormData (multipart/form-data):

    <form action="http://localhost:5000" method="post" enctype="multipart/form-data">
       <input type="file" name="file"/>
       <input type="submi"t value="upload"/>
    </form>

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].