How to flatten images of book page
This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
How to flatten images of book page | Mario Valle | 21 Mar 15:35 |
How to flatten images of book page | Rob Antonishen | 21 Mar 16:17 |
How to flatten images of book page | Steve Kinney | 21 Mar 21:42 |
How to flatten images of book page | Mario Valle | 22 Mar 03:41 |
How to flatten images of book page | Liam R E Quin | 22 Mar 02:15 |
How to flatten images of book page
The new cage tool is fantastic to solve the following problem, but I need suggestions how to be more effective.
I take a photo with the smartphone of a book page. I need two hands for this. The page does not lies flat (see https://dl.dropbox.com/u/2571325/before.jpg) because no more hands available to keep the page flat (and no glass sheet at hand...). Using the cage tool with 3 nodes above and 3 below the text produces an acceptable result (see https://dl.dropbox.com/u/2571325/after.jpg).
Question: Is there any better method? Any GIMP plugin or even Android app to solve this problem?
I can trace the deformed rectangle that enclose the page text, but then I don't know how to pass this info to the cage tool and ask to make it a real rectangle.
Thanks for your help! mario
Ing. Mario Valle Swiss National Supercomputing Centre (CSCS) | http://mariovalle.name/ v. Trevano 131, 6900 Lugano, Switzerland | Tel: +41 (91) 610.82.60
How to flatten images of book page
I wrote a plugin to correct such distortion by drawing two paths: http://registry.gimp.org/node/19214
Here is a sample I ran on the page you provided: http://www.majhost.com/gallery/ffaat/gimp/more2/corrected.jpg
I had to use it twice, once to correct the horizontal page bending, and once to correct the camera barreling after rotating the image.
-Rob A>
On Thu, Mar 21, 2013 at 11:35 AM, Mario Valle wrote:
The new cage tool is fantastic to solve the following problem, but I need suggestions how to be more effective.
I take a photo with the smartphone of a book page. I need two hands for this. The page does not lies flat (see https://dl.dropbox.com/u/** 2571325/before.jpg ) because
no more hands available to keep the page flat (and no glass sheet at hand...). Using the cage tool with 3 nodes above and 3 below the text produces an acceptable result (see https://dl.dropbox.com/u/** 2571325/after.jpg ).Question: Is there any better method? Any GIMP plugin or even Android app to solve this problem?
I can trace the deformed rectangle that enclose the page text, but then I don't know how to pass this info to the cage tool and ask to make it a real rectangle.
Thanks for your help! mario
-- Ing. Mario Valle
Swiss National Supercomputing Centre (CSCS) | http://mariovalle.name/ v. Trevano 131, 6900 Lugano, Switzerland | Tel: +41 (91) 610.82.60 ______________________________**_________________ gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/**mailman/listinfo/gimp-user-**list
How to flatten images of book page
On 03/21/2013 12:17 PM, Rob Antonishen wrote:
I wrote a plugin to correct such distortion by drawing two paths: http://registry.gimp.org/node/19214
Here is a sample I ran on the page you provided: http://www.majhost.com/gallery/ffaat/gimp/more2/corrected.jpg
I had to use it twice, once to correct the horizontal page bending, and once to correct the camera barreling after rotating the image.
Very nice!
In similar cases I have used the Perspective Tool in "Corrective (Backward) mode to square up warped photos-of-photos and documents, sometimes followed by running Filters > Distorts > Lens Distortion against all or part of the image.
The Distortion Correction Between Paths plugin adds another useful tool to the "bent document correction" arsenal; my initial experiments seem to indicate it will be especially effective with photos of pages in books and similar geometries.
:o)
Steve
How to flatten images of book page
On Thu, 2013-03-21 at 16:35 +0100, Mario Valle wrote:
The new cage tool is fantastic to solve the following problem, but I need suggestions how to be more effective.
I take a photo with the smartphone of a book page. I need two hands for this.
Don't forget that you probably also have feet...
Liam
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
How to flatten images of book page
Fantastic! Thanks
The only addition is to run perspective tool afterwards to correct side
parallelism.
Thanks again!
mario
On 21-Mar-13 17:17, Rob Antonishen wrote:
I wrote a plugin to correct such distortion by drawing two paths: http://registry.gimp.org/node/19214
Here is a sample I ran on the page you provided: http://www.majhost.com/gallery/ffaat/gimp/more2/corrected.jpg
I had to use it twice, once to correct the horizontal page bending, and once to correct the camera barreling after rotating the image.
-Rob A>
On Thu, Mar 21, 2013 at 11:35 AM, Mario Valle > wrote:
The new cage tool is fantastic to solve the following problem, but I need suggestions how to be more effective.
I take a photo with the smartphone of a book page. I need two hands for this. The page does not lies flat (see https://dl.dropbox.com/u/__2571325/before.jpg ) because no more hands
available to keep the page flat (and no glass sheet at hand...). Using the cage tool with 3 nodes above and 3 below the text produces an acceptable result (see
https://dl.dropbox.com/u/__2571325/after.jpg ).Question: Is there any better method? Any GIMP plugin or even Android app to solve this problem?
I can trace the deformed rectangle that enclose the page text, but then I don't know how to pass this info to the cage tool and ask to make it a real rectangle.
Thanks for your help! mario
-- Ing. Mario Valle
Swiss National Supercomputing Centre (CSCS) | http://mariovalle.name/ v. Trevano 131, 6900 Lugano, Switzerland | Tel: +41 (91) 610.82.60
_________________________________________________ gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/__mailman/listinfo/gimp-user-__list
Ing. Mario Valle Swiss National Supercomputing Centre (CSCS) | http://mariovalle.name/ v. Trevano 131, 6900 Lugano, Switzerland | Tel: +41 (91) 610.82.60