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

First build with automatic dewarping

Scan Tailor specific announcements, releases, workflows, tips, etc. NO FEATURE REQUESTS IN THIS FORUM, please.
Post Reply
Tulon
Posts: 687
Joined: 03 Oct 2009, 06:13
Number of books owned: 0
Location: London, UK
Contact:

First build with automatic dewarping

Post by Tulon » 28 Dec 2010, 11:24

Here is the build: http://depositfiles.com/files/r15711m4c
There are still some rough edges, but automatic dewarping itself seems to work well.

Note: don't use this build - it crashes on pages with little or no text. There is a newer build later in this thread.
without_dewarping.jpg
Without dewarping
without_dewarping.jpg (96.86 KiB) Viewed 17118 times
with_dewarping.jpg
Automatic dewarping
with_dewarping.jpg (89.29 KiB) Viewed 17118 times
P.S: Up to date source code is in Git.
Last edited by Tulon on 30 Dec 2010, 09:50, edited 1 time in total.
Scan Tailor experimental doesn't output 96 DPI images. It's just what your software shows when DPI information is missing. Usually what you get is input DPI times the resolution enhancement factor.

Shaknum
Posts: 91
Joined: 16 Aug 2010, 13:10

Re: First build with automatic dewarping

Post by Shaknum » 28 Dec 2010, 12:40

Tulon, this is amazing. The quality of this feature is unsurpassed, I don't know how you do it. I've been trying this out on some scans I've been saving for a while, expectantly awaiting this mile stone, and I've had a lot of success with them. You will probably be getting a lot of these types of messages in the near future, and I don't feel entitled to any response, however if this is useful to you I thought I'd share one of the tricky images I have, that you are likely to have difficulty with in the future. As you can see in the following picture:
Screen shot 2010-12-28 at 11.30.59 AM.png
Auto Dewarp Difficulty
There is some difficulty when the end of the last line of text is indented, this causes the image to dewarp into a trapeziod. Anyway, thanks for the fantastic work, this thing is really robust. I hope the above image is helpful to you, and not a pain in the butt. Let me know if you want the source image. Thanks again.

Tulon
Posts: 687
Joined: 03 Oct 2009, 06:13
Number of books owned: 0
Location: London, UK
Contact:

Re: First build with automatic dewarping

Post by Tulon » 28 Dec 2010, 13:02

Shaknum wrote:There is some difficulty when the end of the last line of text is indented, this causes the image to dewarp into a trapeziod.
Normally that's not a problem, provided the vertical boundaries got detected correctly. On the next tab in debugging mode, you would see those blue lines extended up to the vertical boundaries. If the vertical boundaries got detected incorrectly, or if it still somehow produces a trapezoid, I can take a look if you provide me with the source scan.

BTW, multicolumn text is not supported by this algorithm. The reason it works in this particular case is that text lines in your columns are aligned and close together.
Scan Tailor experimental doesn't output 96 DPI images. It's just what your software shows when DPI information is missing. Usually what you get is input DPI times the resolution enhancement factor.

Hamid
Posts: 10
Joined: 04 Mar 2014, 00:53

Re: First build with automatic dewarping

Post by Hamid » 28 Dec 2010, 13:40

Oh my god! That's a nice present for us Tulon. Thank you so much.

ibr4him
Posts: 102
Joined: 18 Oct 2010, 10:36

Re: First build with automatic dewarping

Post by ibr4him » 29 Dec 2010, 00:50

Re-he-heally awesome! :)

Will just wait for someone to build a Mac version.

Thanks a ton, Tulon.

bnz

Re: First build with automatic dewarping

Post by bnz » 29 Dec 2010, 04:07

Indeed. Very awesome. I too hope that a binary Mac version comes along somehow. I had some success building it on my own, but somehow the jpeg import was broken then.

knappen
Posts: 35
Joined: 29 Jul 2010, 20:21

Re: First build with automatic dewarping

Post by knappen » 29 Dec 2010, 22:49

Ah, great!

I thought that you had given up completing this.

Thanks for this and have a happy new year.

eL_PuSHeR
Posts: 125
Joined: 28 Jun 2010, 15:25

Re: First build with automatic dewarping

Post by eL_PuSHeR » 30 Dec 2010, 03:31

Thank you very much Tulon.

Tulon
Posts: 687
Joined: 03 Oct 2009, 06:13
Number of books owned: 0
Location: London, UK
Contact:

Re: First build with automatic dewarping

Post by Tulon » 30 Dec 2010, 06:43

Another build, fixing a crash on pages with little or no text: http://depositfiles.com/files/yjfu8mz8d
Scan Tailor experimental doesn't output 96 DPI images. It's just what your software shows when DPI information is missing. Usually what you get is input DPI times the resolution enhancement factor.

dtic
Posts: 435
Joined: 06 Mar 2010, 18:03

Re: First build with automatic dewarping

Post by dtic » 31 Dec 2010, 05:14

:) Great! Thank you Tulon and happy new year.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests