Hardware Reference
In-Depth Information
Turn on your camera, connect it to the Pi, and enter ./bracket.sh to run the com-
mands. Your camera will take three photos with shutter speeds of .1, .5, and 1 second
and save them to the camera.
You can do the same thing with exposure compensation, for example:
$ gphoto2 --set-config-value /main/capturesettings/exposurecompensation=-3 \
--capture-image \
--set-config-value /main/capturesettings/exposurecompensation=0 \
--capture-image \
--set-config-value /main/capturesettings/exposurecompensation=3 \
--capture-image
Experiment with various settings and image capture options. Remember that your
camera will take all of these photos starting in the mode in which it is set. The best
approach is to set it to full manual, focus on your subject, and switch to manual focus
to lock it before running these scripts.
Set Up a Photobooth
HACK 53
Now that you know how to connect a camera (see Hack #52 ), you're ready
to be the hit of your next party. Set up a fun backdrop, gather some props,
and set up your Raspberry Pi photobooth.
We first set up this photobooth at the SXSW Interactive festival for a Fedora booth in
the exhibit hall and then at several other conferences thereafter. It's a fun way to get
people to come into the booth and hang out for a minute, even if you don't have one
of us in a Tux costume there to amuse your visitors. It's also a great setup for something
like a Halloween party (costumes!) or company event. All you have to do to is run one
command (press Up and Enter to repeatedly do so from the command line), and you
can keep the photo fun going all night.
You'll need a camera on a tripod connected via USB cable to the Raspberry Pi, as well
as a monitor and peripherals. It's handy to have a fairly lengthy USB cable, depending
on your setup and space, but particularly long USB cables can cause problems ranging
from slowness to just plain not working.
Figure 5-9 shows the photobooth we set up in the Fedora booth at OSCON. You can
see the backdrop and Tux on the left, with Ruth checking the Pi setup on the monitor
in the foreground.
 
Search WWH ::




Custom Search