/perspective-correction

perspective correction for document image

Primary LanguageC++

###Installation Guide###

####1. Prepare your OpenCV environment####

#####Linux#####

Installing Opencv2.2 in Ubuntu 11.04

Installing OpenCV 2.4.1 in Ubuntu 12.04 LTS

#####Mac#####

Installing the OpenCV library on Mac OS X Lion using Homebrew

####2. Prepare the CMake build environment####

$ sudo apt-get install cmake

####3. Clone the project to local####

$ git clone git@github.com:browny/perspective-correction.git
$ cd perspective-correction

####4. Take out-of-source CMake build####

$ mkdir release
$ cd release
$ cmake ..
$ make

####5. Enjoy####

$ cd bin
$ ./main test.jpg

1. Locate the 4 red corners to the boundary of document. 
2. Press 'H' to convert.

####6. Exit####

Press 'Esc' to close window and quit

####7. Demo####