Page Dewarping
mzucker.github.io
Page Dewarping
1–10 of 75 posts
Re: Page Dewarping
#2Re: Page Dewarping
#3This problem is fundamentally different with stereo images; there is a hope of reconstructing the exact 3D geometry of the page before flattening, rather than inferring from content. An iPhone app that did this would do well.
Re: Page Dewarping
#4This code had the same idea, and is open-source!
Re: Page Dewarping
#5I wish he went into more details on the steps taken after dewarping. You can tweak the image levels to get good contrast, but surprisingly there aren't any shadows from underleveling or loss of detail from overleveling. I wonder if the author ran OCR on the scans after, and speaking of OCR, IIRC Leptonica is one of the dependencies of Tesseract so it must do some similar pre-processing.
Edit: reading more carefully, he mentions that he used adaptive thresholding from OpenCV.
Re: Page Dewarping
#6This problem is fundamentally different with stereo images; there is a hope of reconstructing the exact 3D geometry of the page before flattening, rather than inferring from content. An iPhone app that did this would do well.
I've always thought it should be possible using a short video of the camera orbiting the page from different angles. (Assuming a static scene of course.)