Camera controller
Back up your photos using your Pi.
The size of the Raspberry Pi means we can use
it to take control of other embedded devices.
This may seem a little redundant – the
embedded devices obviously have some
form of controller already – but it means we
can script and extend them in ways that
aren’t possible (or are, at least, very difficult)
without the extra device. Almost anything
that you can plug in to a normal desktop
can be scripted by a Pi, but we’re going to
look at cameras for a couple of reasons.
Firstly, there’s support for most in Linux, and
secondly there’s a range of useful projects
you can do once you’ve grasped the basics.
The best command-line tool for manipulating
cameras in Linux is
Gphoto2
. Get it with:
apt-get install gphoto2
■
Gphoto2 has far more capabilities than we use here, including bindings for Java and Python.
For full details, check out the project website: www.gphoto.org.
22
Raspberry Pi User Guide.indd 22
08/07/2014 14:44