Skip to content

A simple image Document Scanner using OpenCV in Python.

License

Notifications You must be signed in to change notification settings

freAK14/Doc-Scanner-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doc-Scanner-Python

Document Scanner using OpenCV

How to use:

  • Run the script
python final_scanner.py
  • Select the image you want to get scanned.

What it does ?

The script takes an image as input using the dialog box and then scans the document from the image by applying few image processing techniques and gives the output image with scanned effect

How does it do this?

Initially we need to resize the images so OpenCV can handle it(since images captured by mobile phones are usually very hize in resolution)and then the following functions are applied:

  • Guassian Blur to smoothen image.
  • Canny Edges to detect the edges.
  • Find contours and boundary of the page.
  • Map the end points of contours to 960*720 window.
  • Apply perspective transform to get scanned or bird eye view of the image.

Requirements

  • OpenCV
  • tkinter
  • NumPy

References

About

A simple image Document Scanner using OpenCV in Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages