Skip to content

Latest commit

 

History

History

scanner

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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