Skip to content

ffelsner/diy-bookscanner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

diy-bookscanner

This repo contains, at the moment, the main script and some additional code for running a DIY bookscanner using a Raspberry Pi. The script, bookscanner.py, is derived from Ben Steinberg's bookscanner.py, which is in turn derived from Mark Van den Borre's test_keypedal.sh. As I haven't yet rewritten everything from scratch, this code is released under the Affero GPL.

Like test_keypedal.sh, this script uses gphoto and a fork of libptp2 to communicate with the cameras, in this case a pair of Canon A2200 point-and-shoots. It also relies on the Canon Hack Development Kit (CHDK), enhanced firmware for selected Canon cameras. Note that you may (will?) have to compile ptpcam, as the libptp2 you have installed is not likely to include the CHDK code.

Unlike Ben's version, the user interface for this system consists of a standard DVI or HDMI display plugged into the Raspberry Pi for output, and a standard USB keyboard for input. Files remain on the cameras' SD cards until the user triggers a transfer to a (user-provided) USB stick.

Other details

The triggering script, bookscanner.py, is part of a larger system, including

  • an init script, so that bookscanner.py will run as a daemon on boot
  • a network connection (ethernet or wireless) to set dates and times correctly

Because the Raspberry Pi only has two USB ports, this system uses a powered USB hub: the user's USB stick (to download photos to) is plugged directly into one USB port on the Pi itself, and the keyboard and two cameras are plugged into the powered hub. (We experienced a lot of problems with the USB stick being plugged into the hub.)

Post-processing

Post-processing is left as an exercise to the reader.

In practice

Instructions and photos of the system in practice can be found here: http://atxhackerspace.org/wiki/Book_Scanner

About

Python camera control software for the Austin Hackerspace's DIYBookScanner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%