3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

DIY High-Speed Book Scanner from Trash and Cheap Cameras

Step 78Download Page Builder

Download Page Builder
Aaron Clarke wrote the software to process the output of this book scanning system. It reads in all the images, allows you to set a crop, corrects for irregular lighting, and outputs PDF.

Currently, this is alpha software. It makes a number of assumptions. It requires a powerful machine to work. You will be best off with at least 2 gigabytes of ram and up to ten gigabytes of free hard disk space. At some point, this will change, but likely not very soon.

While it is very easy to tell the software what to do, it takes a while to process so much image data. Page Builder may take more than 3 hours to process a 300 page book. Currently, we have to make a book into a couple smaller PDFs -- the reason being the way we make PDFs from Matlab. If anyone has Matlab code for good PDF printing, please contact us.

Download Page Builder for XP here.
Download Page Builder for Vista here.
Mac users will need a copy of Matlab, as we can't get a standalone version to work. The XP and Vista copies both include the source script, which was developed on a Mac and works fine..

UPDATE 2009/04/20: If you are having page order issues, please try this version, which also includes some imaging enhancements.

Only the XP version has been extensively tested.

Page Builder is Free Software. The sources are available. We are graduate students and have extremely limited time to support this software. So little time that we actually have no time. It is our hope that other people will help shoulder some of the development costs of this software.

« Previous Step   View All StepsNext Step »
3 comments
May 24, 2009. 12:20 PMyou1 says:
Unfortunately, the software requires MATLAB, which is not free.
Consider the following alternative, until we get a free solution:
1) Using XnView to crop, resize, adjust brightness/contrast as a batch job. Download XnView from http://www.xnview.com/en/screenshots.html
As I was searching for a free solution, I found this XnView. I really liked the simplicity and speed of XnView. After the initial learning curve; I was able to create a batch process under the tools menu. At times, I found it even more convenient than PhotoShop Automated script (I’m not a graphics guru)
2) Rename the files for the left and the right camera, and merge them into one folder.
I first used spreadsheet to aid in renaming the files; later, I created script for this process. See my instructions here: http://www.mind2b.com/component/content/article/9-info/8-renaming-or-renumbering-camera-or-image-files.
3) I used Adobe Acrobat to create my PDF.
Perhaps someonelse can suggest a good free alternative.

Oct 1, 2009. 8:20 PMrjwarpath says:
A good Free PDF printer program is Primo-PDF.
May 24, 2009. 1:41 PMyou1 says:
I had trouble running the software (on XP); The README stated that it requires MATLAB! I will retry the software on XP, and report my findings. Perhaps, I made a mistake.
May 24, 2009. 9:24 PMyou1 says:
When I run PgBldr2exe on XP with service pack 3, I get the following dialog error message:

Title: PgBldr4.exe - Unable To Locate Component
Message: This application has failed to start because mclmcrrt77.dll was not found. Re-installing the application may fix this problem

The readme.txt has the following to say:

...Ensure that the MATLAB Component
Runtime (MCR) is installed on target machines, and ensure you
have installed the correct version...

May 27, 2009. 8:04 AMmoddi says:
I have finished building the bookscanner (thanks!), but also get the mclmcrrt77.dll error message and can't use page builder. Which is disappointing!
Apr 6, 2012. 2:02 PMmoddi says:
Thanks! The new combo of the Mathlab Runtime and the JPG output version worked fine for me. I tried in on a few sample pages. Now I have to figure out how to do the photos better. It is not clear to me if I should be zooming in on the pages so they fill the screen (and how to get both sides the same size), and how the focus should be operating. I'll try to send some photos of my book scanner tomorrow. I used drawer glides for the bookholder and for attaching the patten to the main post. Also, I have a handheld caera switch on a cord, it is made out of a glue stirck container.
May 27, 2009. 2:06 PMmoddi says:
They are the Canon A590 and I'm not a camera person. The tapping sounds good, I hope it works on my cameras.

Re "manual mode", that is what you say to use in the instructables. I made all the settings as shown. But re "Focus should operate as normal unless you go into manual mode" -- I don't understand that, is there an alternative mode to use for this? Or maybe you can be in manual mode and choose either manual focus or auto focus?

A final question for now - when I push the switch, what should happen? Should the cameras take the photos, simultaneously, on that single click? Or should I have to click twice, once to focus and then again to shoot?

Thanks for your patience.
May 27, 2009. 9:49 AMyou1 says:
Success (the program launched). I'll give it a full test run this weekend. Thank you.
May 31, 2009. 11:54 AMspamsickle says:
I'm using an open-source product called ImageMagick to do the conversions. I've written a Perl script which accepts information about my scans (the names and ranges of the left- and right-page scans, the offsets and sizes of the portions of the scan I want to save, the page number to start with for output, etc.) which generates the script to run ImageMagick. The script generated looks something like this: convert.exe PICT2283.JPG -crop 2850x1760+200+120 -rotate 270 1.pdf convert.exe CIMG0001.JPG -crop 2700x1850+200+180 -rotate 90 2.pdf convert.exe PICT2284.JPG -crop 2850x1760+200+120 -rotate 270 3.pdf convert.exe CIMG0002.JPG -crop 2700x1850+200+180 -rotate 90 4.pdf convert.exe PICT2285.JPG -crop 2850x1760+200+120 -rotate 270 5.pdf convert.exe CIMG0003.JPG -crop 2700x1850+200+180 -rotate 90 6.pdf convert.exe PICT2286.JPG -crop 2850x1760+200+120 -rotate 270 7.pdf convert.exe CIMG0004.JPG -crop 2700x1850+200+180 -rotate 90 8.pdf convert.exe PICT2287.JPG -crop 2850x1760+200+120 -rotate 270 9.pdf convert.exe CIMG0005.JPG -crop 2700x1850+200+180 -rotate 90 10.pdf The names of the scans for the left and right pages are different in my setup because I'm using two different models of camera. While it COULD be done with two similar cameras, you'd either have to guarantee that the left range and the right range didn't overlap, or keep them in separate directories until they were converted. I get the area to crop by loading a couple of images into Photoshop, but any image software that will tell you where your cursor is (in pixels) and the dimensions of your selection could be used. ImageMagick crops, rotates, and converts the JPG to PDF in less than 2 seconds per image. I can convert 100 images in about 3 minutes. Once I have all the images converted to PDFs, I use another free tool called PDFTK to stitch them together into a book. Once again, to spare myself typing, I have a Perl script to generate the command line for me. It works for me. I can convert a 1500-page book in less than an hour (once the scanning is done, and the images are loaded on my computer), and (after I get my numbers from Photoshop and generate the script) it runs unattended. I've found ImageMagick and PDFTK are handy tools to have, and (as you might be able to tell from my bare-bones bookscanner) I'm a fan of using what I already have.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
141
Followers
5
Author:daniel_reetz
Hacker, Artist, Researcher, and founder of the diybookscanner.org community.