Hardware Reference
In-Depth Information
photobooth = PhotoBooth()
try:
photobooth.initialize()
while True:
raw_input("Press enter to capture photo.")
filename = photobooth.capture_photo()
photobooth.process_image(filename)
except KeyboardInterrupt:
print "\nExiting..."
Change the various settings to meet your needs, and your photobooth party is all set
up. (Tux costume optional and not included with this topic.)
Turn Your Pi into a Tiny Media Center
HACK 54
The first thing that many people want to do with their new $35 computer
is turn it into a tiny media center, so we'd be remiss in not helping you
out.
This hack is going to veer off a bit from what you've read so far, as far as distro. We've
been telling you how to do things in Pidora and Raspbian, two of the most common
Raspberry Pi Linux distributions. Since we both work on Fedora, you can imagine we
have an inclination toward Pidora. But you can also see that we've been giving you
instructions throughout this topic for Raspbian as well, and occasionally only one or
the other. That's because sometimes one distro simply is the right one for the job,
and in this case, it's Raspbmc .
If you're going to set up a media server, you want it to work as well as possible, becase
it's standing between you and [insert your favorite show here]. That means you might
as well use XBMC (regardless of how you feel about the Xbox—see “XBMC” sidebar),
as it's commonly used, which means it has a significant community waiting with an-
swers to any problems you encounter. And because it's so popular, a distro has sprung
up specifically intended for it. That's Raspbmc.
XBMC
XBMC was originally created for the Xbox and stood for Xbox Media Center.
It's now available for Linux as well as Windows, OS X, and even Android and
iOS. Their release names are all allusions to popular media. Releases so far
have been Atlantis, Babylon, Camelot, Dharma, Eden, Frodo, and Gotham.
You can download the Raspbmc image and set up your SD card like you would with
any other distribution, but the Raspbmc folks have also made an interactive installer
 
Search WWH ::




Custom Search