Skip to content

A simple document scanner built using OpenCV and imutils

Notifications You must be signed in to change notification settings

VMoskov/DocumentScanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DocumentScanner

A simple document scanner built using OpenCV and imutils

Installation

  1. Clone the repository
git clone https://github.com/VMoskov/DocumentScanner.git
  1. Install the required packages
pip install -r requirements.txt

Usage

  1. Run the script with the following command
python document_scanner.py --image images/<file_name>.jpg

or just

python document_scanner.py -i images/<file_name>.jpg
  1. The scanned document will be displayed on the screen
  2. Press 0 to close the window

Example

Original image:
Original Image
Image with edges:
Image with Edges
Detected document:
Detected Document
Scanned document:
Scanned Document

More examples with real-life documents

  1. Paper with text:
    Original Image
    Image with Edges
    Detected Document
    Scanned Document

  2. Colored payment slip:
    Original Image
    Image with Edges
    Detected Document
    Scanned Document

About

A simple document scanner built using OpenCV and imutils

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages