Hardware Reference
In-Depth Information
6. Generates a shortened URL for the image using the URL-shortening service you
specify.
7. Creates and displays on the monitor an HTML page that shows the photo, the QR
code, the shortened URL, and any other information you want it to show.
Figure 5-10 shows the output from the complete script: a web page with the photo
and QR code for visitors to download it.
Figure 5-10.
Output of photobooth.py
Choose a location to store the assorted data that goes along with your photo:
# Where to spit out our qrcode, watermarked image, and local html
out = expanduser('~/Desktop/photodata')
You can add a watermark to your images, such as a project name (you can also exclude
this line if you don't want the photos watermarked):
# The watermark to apply to all images
watermark_img = expanduser('~/Desktop/fedora.png')
You'll need to have a place you can upload the pictures to. You'll also need a stable
Internet connection, which can be problematic if you're setting up a photobooth at an
event like a conference. If that's the case, be sure to get a wired connection and not
try to do this over WiFi:
Search WWH ::




Custom Search