Skip to content

shovon/simplescanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Optical Scanner

Instead of using an actual scanner, use this program to extract document content from a photograph, removing all the background, and adjusting the document perspective. Who needs scanners, anyways?

This is still a work in progress.

original original

Usage

./simplescanner <source image> <dest image>

Compiling

You will need

  • CMake v2.8
  • OpenCV (works on OpenCV v3.1.1, but the code itself should work on v2.4, but I haven't tried)
  • C++ 11

Once those are installed, outside the cloned code, create a build folder, and then:

$ cmake -DCMAKE_CXX_FLAGS=-std=c++11 <path to source folder>
$ make

And you should be all good to go.

Credit

Automatic perspective correction for quadrilateral objects -- http://opencv-code.com/tutorials/automatic-perspective-correction-for-quadrilateral-objects/
perspective correction for quadrilateral markers -- http://qtandopencv.blogspot.ca/2013/10/perspective-correction-for.html
Canny Edge Detector -- http://docs.opencv.org/2.4/doc/tutorials/imgproc/imgtrans/canny_detector/canny_detector.html
Answer to: OpenCV C++/Obj-C: Detecting a sheet of paper / Square Detection -- http://stackoverflow.com/a/8863060/538570

About

A simple optical scanner. Practically rendering scanners obsolete... Almost.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published