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

## PostProcessor v1.0 released!

General discussion about software packages and releases, new software you've found, and threads by programmers and script writers.
Carlos Pombo
Posts: 4
Joined: 04 Mar 2014, 00:52

### Re: PostProcessor v1.0 released!

@ rob
Hi.
Sorry. Already trashed my test files including RAW ones.
Used above jrichards page, after tuning it to minimize side cover color and glare, to show u tight croped/trimed letters.
All files including jrichards original inside zip. zip too big to upload here
http://www.yousendit.com/transfer.php?a ... QnVGa1E9PQ

@ jrichards forgive me to use your photo without your permission... it is within context you know...

Thanks
Carlos

jrichards
Posts: 22
Joined: 04 Mar 2014, 00:52

### Re: PostProcessor v1.0 released!

NP. Anything to help get make things better

rob
Posts: 773
Joined: 03 Jun 2009, 13:50
Number of books owned: 4000
Country: United States
Location: Maryland, United States
Contact:

### Re: PostProcessor v1.0 released!

OMG, did my software do THAT?! Horrible! I'll have to figure out why!
The Singularity is Near. ~ http://halfbakedmaker.org ~ Follow me as I build the world's first all-mechanical steam-powered computer.

### Re: PostProcessor v1.0 released!

Similar problem as above:

Images are in c:\book\left and c:\book\right
Post Processor software is in c:\PPP which is where I'm running it from

C:\PPP>java -Xmx1024M -jar PostProcessor.jar R /book/right/
un/media/jai/codec/FileSeekableStream
at postprocess.Main.process(Main.java:345)
at postprocess.Main.main(Main.java:662)

I also tried:
C:\PPP>java -Xmx1024M -jar PostProcessor.jar R /book/right
C:\PPP>java -Xmx1024M -jar PostProcessor.jar R c:\book\right
C:\PPP>java -Xmx1024M -jar PostProcessor.jar R c:\book\right\

Any help would be appreciated.

Other than that, all is great! I just scanned my first book - 300 pages in about 10 minutes. The photos look fantastic, I can't wait to send them into abbyy and start reading on my ebook!

-John

rob
Posts: 773
Joined: 03 Jun 2009, 13:50
Number of books owned: 4000
Country: United States
Location: Maryland, United States
Contact:

### Re: PostProcessor v1.0 released!

Hi John,

You will need to install the Java Advanced Imaging library, which you can find at https://jai.dev.java.net/binary-builds.html ... look for the jai-1_1_3-lib-windows-i586.exe link (for Windows), or read the DOWNLOAD link under 1.1.3 for other platforms.

If you are on OSX, then the JAI should already be installed. In that case, let me know and we'll figure out how to further troubleshoot the problem.
The Singularity is Near. ~ http://halfbakedmaker.org ~ Follow me as I build the world's first all-mechanical steam-powered computer.

rob
Posts: 773
Joined: 03 Jun 2009, 13:50
Number of books owned: 4000
Country: United States
Location: Maryland, United States
Contact:

### Re: PostProcessor v1.0 released!

I've released PostProcessor v1.2, and updated the original link. This version has a bit of an improvement in detecting the page area and text block on an image. Also, it solves the problem where the edges (especially the right and bottom edges) of the text block were cut off.

I highly recommend that everyone upgrades to this version.
The Singularity is Near. ~ http://halfbakedmaker.org ~ Follow me as I build the world's first all-mechanical steam-powered computer.

### Re: PostProcessor v1.0 released!

Thanks for the quick reply! I've gone and downloaded java advanced imaging library, which required me to install JDK 1.6 first. Then I tried to run the newest version (1.2) of your post processing software and I get the same (or similar) error:

C:\POST>java -Xmx1024M -jar postprocessor.jar r c:\both\right
un/media/jai/codec/FileSeekableStream
at postprocess.Main.process(Main.java:421)
at postprocess.Main.main(Main.java:764)
Caused by: java.lang.ClassNotFoundException: com.sun.media.jai.codec.FileSeekabl
eStream
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)
... 3 more

### Re: PostProcessor v1.0 released!

This was a different attempt with absolute paths, it looked like it was going to start reading the first file (001.jpg):

C:\POST>java -Xmx1024M -jar c:\post\postprocessor.jar r c:\post\both\right\
/sun/media/jai/codec/FileSeekableStream
at postprocess.Main.process(Main.java:421)
at postprocess.Main.main(Main.java:764)
Caused by: java.lang.ClassNotFoundException: com.sun.media.jai.codec.FileSeekabl
eStream
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)
... 3 more

rob
Posts: 773
Joined: 03 Jun 2009, 13:50
Number of books owned: 4000
Country: United States
Location: Maryland, United States
Contact:

### Re: PostProcessor v1.0 released!

Hmm, ok, so there seems to be two problems. The first is a path issue. Did you have your images in C:\both\right, or C:\post\both\right?

The second one is more puzzling. FileSeekableStream is in JAI, and you installed JAI. So my guess is that java is not finding the JAI. My guess is that either the installer didn't install JAI in the right place, or maybe the java executable that gets run is not the one containing the JAI.

Try this: java -version

Does it come up with 1.6 something? If so, then great. If not, then you'll have to alter your path (for XP, should be in My Computer > Properties > Advanced > Environment Variables, under System Variables, look for Path) to point to java.exe in your Java 6 bin directory.

If it's coming up with 1.6, then most likely it is installed in C:\Program Files\Java\jre1.6.something. Go to that directory, and then into lib\ext. Is there a jai_core.jar file in there? If not, then you will need to install JAI again: go back to the JAI download page, but this time, download jai-1_1_3-lib-windows-i586-jre.exe

When you run the installer, make sure that when it shows the destination folder, it shows C:\Program Files\Java\jre1.6.something.

After the installer is complete, take a look again in the lib\ext directory, and jai_core.jar should now be there.

Then try running the postprocessor again!
The Singularity is Near. ~ http://halfbakedmaker.org ~ Follow me as I build the world's first all-mechanical steam-powered computer.

### Re: PostProcessor v1.0 released!

I'm sorry to be so much trouble. If you can't figure it out, it's no worries.

Anyway, I followed your instructions and I'm back.

First, my images are in both locations, I wasn't sure if it made a difference so I copied them to c:\post\both\right and c:\both\right to see if it would help, it didn't.

Second, it looks like JAI wasn't installed correctly. I installed it in the jre1.6.0_06 folder the second time around.

Does it matter that in my java folder I have three different folders:
jdk1.6.0_14
jre1.6.0_06
jre6

Maybe I have to uninstall the other versions and try again?

Anyway, here's the output of one of my recent attempts. I retried it many different ways experimenting with the path. It doesn't seem to be a path problem because it's finding the first file "001.JPG"

C:\POST>java -Xmx1024M -jar postprocessor.jar r /post/both/right
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)