Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 690 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 690 Bytes

Scanner

License: MIT openCV version
A script to extract document from an image and make a scanner like render

How to use

Specify a file with a document on it:

# option: --color, --output
python3 scanner.py [option] test/doc_normal.jpg

How it works

  • Read image
  • Transform into grayscale
  • Extract the document by apply a threshold
  • Find contour and fix the picture perspective
  • Render in color or black and white

processing