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
- Host: GitHub
- URL: https://github.com/davewhit3/bill-detector
- Owner: davewhit3
- License: mit
- Created: 2019-06-24T09:34:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T03:34:27.000Z (about 3 years ago)
- Last Synced: 2025-05-19T07:08:10.088Z (9 months ago)
- Topics: ai, numpy, ocr-recognition, python3
- Language: Python
- Homepage:
- Size: 1.62 MB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```