Live data from Hacker News

Page Dewarping

mzucker.github.io

1–10 of 75 posts

Re: Page Dewarping

#2
This 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

#3
post #2

This 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.)

Re: Page Dewarping

#5
I love well-illustrated writeups. Even a reader without mathematics or programming knowledge can understand what steps the author took. His model actually seems to better represent the warped paper than a cylinder would. (though I don't know the actual specifics of the CTM model)

I 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

#6
post #2

This 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.)

Or now, some frames of a live photo.

Re: Page Dewarping

#7
I wonder if someone has tried to dewarp whole book from a video when flipping through it. I imagine that could be handy way to copy the whole book.

Re: Page Dewarping

#8
This is great! My wife is a music teacher and often scans sheet music so that it's more portable. She has been asking me for a while for something exactly like this. I'll have to tweak it to work on sheet music, since I imagine his methods to identify lines of text won't work for the music staff out of the box.
Post reply on HN