Yep, just a quick set of commands and it's up and running:
- Code: Select all
git clone git://tanoshi.sourcerepo.com/tanoshi/BookCorrection.git andigit_dewarp
cd andigit_dewarp/BookCorrection/
mkdir build
cd build
cmake ..
make -j 4
./BookCorrection
The line detection is really good (mine used to die when the image had tons of noise, but a median blur filter took care of that), so the dewarping should benefit from that. The only big problem I faced was when I tried to load a full-sized image into your program: it froze for literally 5 minutes, and then loaded the image.
Your laser detection works really well. How do you do it (mine gets sloppy near the crease, and I can't read C++ very well, so I can't find out >.< )?