Daniel Reetz, the founder of the DIY Book Scanner community, has recently started making videos of prototyping and shop tips. If you are tinkering with a book scanner (or any other project) in your home shop, these tips will come in handy. https://www.youtube.com/channel/UCn0gq8 ... g_8K1nfInQ

Flattening a wrinkled page

Don't know where to start, or stuck on a certain problem? Drop by and tell us about it. Feel like helping others? Start here.
Post Reply
Jerry7171
Posts: 1
Joined: 13 Jul 2018, 10:42
E-book readers owned: Kindle, iPad Pro
Number of books owned: 200
Country: United States

Flattening a wrinkled page

Post by Jerry7171 » 14 Jul 2018, 08:53

I have a page from the house I now live in. I wisely snapped a photo of it a few years ago but since have misplaced it. I don't know if this is the proper forum to ask, but as I'm getting into book scanning, I thought someone here might have some advice.

How can I flatten this document in this photo? It is a bit wrinkled and I'm at a loss. If it was just curved it would be easy. I hadn't planned on creating a more presentable image of this piece of my home's history at the time I photographed it, or I would have done the obvious things like setting it under glass, etc.

I've included a copy of the photo to illustrate what I'm working with.

Thanks!
Attachments
IMG_0029.JPG

dpc
Posts: 285
Joined: 01 Apr 2011, 18:05
Number of books owned: 0
Location: Issaquah, WA

Re: Flattening a wrinkled page

Post by dpc » 14 Jul 2018, 11:39

I'd probably just grab smaller sections of the document and skew them individually in Photoshop to try to get something that appears more flat, then stitch these processed sections back together into an image that represents the 8.5x11" page. There seem to be about six separate horizontal sections of the page that you could process on their own and you can just crop the margins and replace them with white-filled rects.

You'll also need to tweak the brightness level by decreasing the number of levels in Photoshop or perhaps Scan Tailor can help with this if you choose to do this processing step on the entire page.

If it's not too much trouble, post the result of your flattened page here.

L.Willms
Posts: 129
Joined: 21 Sep 2016, 10:51
E-book readers owned: Tolino Shine
Country: Germany
Location: Frankfurt/Main, Germany

Re: Flattening a wrinkled page

Post by L.Willms » 15 Jul 2018, 07:24

Jerry7171 wrote:
14 Jul 2018, 08:53
How can I flatten this document in this photo? It is a bit wrinkled and I'm at a loss.
You could put it under a sheet of glass, or you could try to iron it, but not hot.

Or fold the folds or creases in reverse direction, but doing it gently.

cday
Posts: 226
Joined: 19 Mar 2013, 14:55
Number of books owned: 0
Country: UK

Re: Flattening a wrinkled page

Post by cday » 15 Jul 2018, 13:44

Nuance Omnipage enhancement tools include a 3D Deskew function which uses a grid that can be adjusted to provide some degree of correction, but at a quick look isn't sophisticated enough to provide full correction. Possibly there are more powerful tools available.

Combined with a certain amount of standard image editing (conversion to grayscale, cropping, levels adjustment applied to selected areas, and pasting white areas over selected darker areas) I get the following result in a quick test:


IMG_0029e.jpg

Just a very quick proof of concept test, a better result might be possible, but not enough control to straighten the bottom of the image although some further improvement might be possible.

Edit:

Comparing the above image with the original above, with a little more time it might well be possible to produce rather more obvious deskewing, but really a more powerful deskew tool would be helpful.

dpc
Posts: 285
Joined: 01 Apr 2011, 18:05
Number of books owned: 0
Location: Issaquah, WA

Re: Flattening a wrinkled page

Post by dpc » 15 Jul 2018, 15:00

Another option: Since you only have a single page to worry about, just deskew the photo and create the text sections yourself in Word. Paste the photo into the document and you're done.

zbgns
Posts: 21
Joined: 22 Dec 2016, 06:07
E-book readers owned: Tolino, Kindle
Number of books owned: 600
Country: Poland

Re: Flattening a wrinkled page

Post by zbgns » 17 Jul 2018, 00:21

This is my attempt. I used Scan Tailor Experimental and manual mode in ("curved lines") in "Geometric Distortions" section. More patient adjustments of the grid may provide a little bit better result. Maybe Abbyy FineReader and its "Straighten lines" function may do it better? I do not know.

The bottom part is the most challenging. It seems that correcting it would require advanced graphics editor and careful work.
Attachments
IMG_0029.jpg

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests