An open API service indexing awesome lists of open source software.

https://github.com/davewhit3/bill-detector

Bill detection. Usage OCR algorithm to read content
https://github.com/davewhit3/bill-detector

ai numpy ocr-recognition python3

Last synced: 8 months ago
JSON representation

Bill detection. Usage OCR algorithm to read content

Awesome Lists containing this project

README

          

# Document Scanner

### An interactive document scanner built in Python using OpenCV

The scanner takes a poorly scanned image, finds the corners of the document, applies the perspective transformation to get a top-down view of the document, sharpens the image, and applies an adaptive color threshold to clean up the image.

### Install
```bash
virtualenv env
source env/bin/activate
pip install -r requirements.txt
```

### Usage
```
python main.py --image sample_images/paragon-fiskalny-nip.jpg
```

* Scan doc
```
python scan.py (--images | --image ) [-i]
```
* The `-i` flag enables interactive mode, where you will be prompted to click and drag the corners of the document. For example, to scan a single image with interactive mode enabled:
```
python scan.py --image sample_images/desk.JPG -i
```
* Alternatively, to scan all images in a directory without any input:
```
python scan.py --images sample_images
```