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

BookScanWizard 2.0

Discussion about Steve DeVore's Book Scan Wizard, a power-user package to automate scan processing.
steve1066d
Posts: 296
Joined: 27 Nov 2010, 02:26
E-book readers owned: PRS-505
Number of books owned: 1250
Location: Minneapolis, MN
Contact:

BookScanWizard 2.0

Post by steve1066d » 03 Feb 2013, 21:19

I've got a beta new version of BookScanWizard. I've been working on it a while and it is much improved over the old version, especially with usability.

http://bookscanwizard.sourceforge.net/beta

bsw.jpg
Here's some of the new features:
  • It can read and write PDF files
  • NormalizeLIghting is much improved. It can take to grey or white scans, and use them to adjust the other pages. It is useful if the lighting isn't consistent across a page. It will also normalize the lighting between the two sides.
  • Instead of always inserting config at the cursor position, when you do things like fix perspective or crop, it will automatically save the config to the correct spot. You can specify multiple crops or perspectives and the code will insert the new crow at the right position.
  • There is a new "tip of the day" which provides help for important, but not obvious features and options.
  • There is a thumbnail panel to help select pages.
  • Added an AddBorder command to add additional whitespace around an image.
  • Added a scaling slider to resize the preview window.
  • Added a dialog to dynamically change levels, gamma, or saturation by using sliders instead of guessing numbers.
  • There is an expanded metadata page which will allow saving information, such as the title, author, date, etc to a pdf or to the Internet Archive.
  • There's a status bar that shows the size of the current page along with the selected region.
  • In general, the configuration will mostly create itself without nearly as much typing.
  • There a new mode where it will monitor a directory for new files then when it receives an end of book qr code for both left and right sides, it will save the scans to a directory.
There's a video that goes over the basics. I'll try to add other videos with the other features.
https://www.youtube.com/watch?v=GbMgpsVA1Ss

Also, remember this is beta code, so expect a few glitches. I'm definitely in interested in hearing about bugs you find.
Steve Devore
BookScanWizard, a flexible book post-processor.

User avatar
daniel_reetz
Posts: 2776
Joined: 03 Jun 2009, 13:56
E-book readers owned: Used to have a PRS-500
Number of books owned: 600
Country: United States
Contact:

Re: BookScanWizard 2.0

Post by daniel_reetz » 05 Feb 2013, 01:01

Downloading!

bimbo111
Posts: 46
Joined: 11 Aug 2012, 12:12
E-book readers owned: iPad
Number of books owned: 0
Country: Denmark

Re: BookScanWizard 2.0

Post by bimbo111 » 06 Feb 2013, 13:57

Hey Steve.

I'm new to bsw, but can't really use the program, it seems. I'm getting this error (attached) everytime a try to do something. I've read that it should be possible to increase the available memory by executing the jar like so:
command line wrote: java -Xmx1024m -jar BookScanWizard.jar

But if i do that i get this error:
command line wrote: Exception in thread "main" java.lang.UnsupportedClassVersionError: net/sourcefor
ge/bookscanwizard/BSW : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: net.sourceforge.bookscanwizard.BSW. Program will
exit.
What should i do? :)
Attachments
Unavngivet.png
Error
Unavngivet.png (16.2 KiB) Viewed 7631 times

bimbo111
Posts: 46
Joined: 11 Aug 2012, 12:12
E-book readers owned: iPad
Number of books owned: 0
Country: Denmark

Re: BookScanWizard 2.0

Post by bimbo111 » 06 Feb 2013, 14:23

Seems to have fixed it, by executing it with this app:

http://sourceforge.net/projects/launch4j/?source=dlp

This way i could increase the memory from a gui.

steve1066d
Posts: 296
Joined: 27 Nov 2010, 02:26
E-book readers owned: PRS-505
Number of books owned: 1250
Location: Minneapolis, MN
Contact:

Re: BookScanWizard 2.0

Post by steve1066d » 06 Feb 2013, 15:17

You get the UnsupportedClassVersionError if you are using too old of a Java Runtime.

The beta requires version 7 (the old version used 1.6).

http://www.oracle.com/technetwork/java/ ... index.html

(You need the JRE version)

I'm hoping to come up with a way of installing and running this without webstart, and without needing to preinstall Java.. but there isn't any simple ways of doing that and support Linux and Macs, as well as Windows.
Steve Devore
BookScanWizard, a flexible book post-processor.

evamvid
Posts: 5
Joined: 08 Feb 2013, 01:08
E-book readers owned: Kindle Touch
Number of books owned: 0
Country: USA

Re: BookScanWizard 2.0

Post by evamvid » 08 Feb 2013, 22:00

I installed BSW 2.0 beta and tried to use the webstart, but windows came up with a message saying the security certificate was valid but had expired. Normally, I would ignore it, but given the recent mess with Java, I decided to cancel it. How does this get fixed?

steve1066d
Posts: 296
Joined: 27 Nov 2010, 02:26
E-book readers owned: PRS-505
Number of books owned: 1250
Location: Minneapolis, MN
Contact:

Re: BookScanWizard 2.0

Post by steve1066d » 09 Feb 2013, 01:52

I resigned the jai jar files, which will remove the warning about the expired certificate.

However, you will still receive this dialog:
bsw_warning.jpg
bsw_warning.jpg (38.66 KiB) Viewed 7530 times
It lists an unknown publisher because I'm using a self-signed certificate.

Alternatively, you can use the manual installation. Its a bit more work, but if you are comfortable with the command line it should be fine.

However, there really isn't any additional security risks running BSW using Webstart. The Java exploit was to get around showing that warning dialog and silently do things without you knowing.
Steve Devore
BookScanWizard, a flexible book post-processor.

firefly2000
Posts: 1
Joined: 15 Jan 2013, 15:10
Number of books owned: 100
Country: United States

Re: BookScanWizard 2.0

Post by firefly2000 » 18 Feb 2013, 00:38

I tried BSW 2.0 on a Mac running Mountain Lion (OS 10.8) and JRE 1.7. Everything seemed to be working pretty well until I hit the Submit button and got the following Java error message:

java.util.concurrent.ExecutionException:java.lang.ArithmeticException: / by zero

I tried to submit again after removing some changes to the script that I had made (sorry, I don't remember quite what), and got a different error message:

java.util.concurrent.ExecutionException:java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!

Steve, any idea what might be going on? Thanks in advance for your time.

steve1066d
Posts: 296
Joined: 27 Nov 2010, 02:26
E-book readers owned: PRS-505
Number of books owned: 1250
Location: Minneapolis, MN
Contact:

Re: BookScanWizard 2.0

Post by steve1066d » 18 Feb 2013, 15:04

Can you post your configuration script?
Steve Devore
BookScanWizard, a flexible book post-processor.

bimbo111
Posts: 46
Joined: 11 Aug 2012, 12:12
E-book readers owned: iPad
Number of books owned: 0
Country: Denmark

Re: BookScanWizard 2.0

Post by bimbo111 » 26 Feb 2013, 12:42

Hi Steve. I've had no problems with stability since i installed windows 8.

I'm having another problem though. Look these attached photos. When i use normalize lighting i get black borders around the edges. It seems to me that when i apply normalize lighting it crops before it fixes perspective, even though it's the other way around in the script. What to do?

Really like the software btw! Though i think i need a faster computer for this kind of image processing. :)
Attachments
Unavngivet2.png
Unavngivet.png

Post Reply