yaoqingyuan / scanner

Scans documents using your camera :)

Home Page:http://xiaoyan5.web.engr.illinois.edu/cs445/project/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scanner

Scans documents using your camera :)

Installation

# install python modules
pip3 install -r requirements.txt
# install tesseract (OCR dependency)
# Example: MacOS
# See https://github.com/tesseract-ocr/tesseract for more details
brew install tesseract --with-all-languages

Run the Scanner

python3 main.py <your_image_file>

The output will be stored in ./result/ directory

Demo

Input Image: input

Boundary Recognition: contour

Transform using homography: transofrm

Recognize text location: text location

Remove text from background: background

Translate and transform the translated text using reverse homography: translated

Merge the text back to the background final

About

Scans documents using your camera :)

http://xiaoyan5.web.engr.illinois.edu/cs445/project/

License:GNU General Public License v3.0


Languages

Language:Python 100.0%