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.

Moderator: peterZ

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 »

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: 379
Joined: 01 Apr 2011, 18:05
Number of books owned: 0
Location: Issaquah, WA

Re: Flattening a wrinkled page

Post by dpc »

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: 134
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 »

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: 447
Joined: 19 Mar 2013, 14:55
Number of books owned: 0
Country: UK

Re: Flattening a wrinkled page

Post by cday »

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: 379
Joined: 01 Apr 2011, 18:05
Number of books owned: 0
Location: Issaquah, WA

Re: Flattening a wrinkled page

Post by dpc »

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: 61
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 »

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