For no particular reason, I've become interested in the underlying computer vision concepts that are used in book scanning.
Using the code that OG200 posted, as a starting point, I've actually managed to get a working setup of Python with OpenCV2.
(had to jump through a few hoops to do that, and intend to post what I found).
I can do things like calibration using a chessboard to find intrinsic parameters, manipulate images etc. The one area where I'm having difficulty is
with correcting for perspective distortion.
The process as I roughly understand it:
InQuad : Find the coordinates of the 4 outer corners of the chessboard being used for calibration
OutQuad : Supply the coordinates of where you think the 4 outer corners of the chessboard should be mapped to (to show up without perspective distortion)
transform <== getPerspectiveTransform(inQuad, outQuad)
transformed_Image <== warpPerspective(transform, image-to-work-on)
I'm having trouble understanding how to calculate the OutQuad coordinates and would appreciate some help/an example in this area.
Thanks
TKR
