/photobooth

a raspberry Pi photobooth

Primary LanguagePythonGNU Lesser General Public License v3.0LGPL-3.0

Raspberry Pi photobooth

a raspberry Pi photobooth.

Update 05.05.19 all Errors are removed, the Photobooth is fully compatible with Raspbian Stretch. :-)

The program shoots 3 Pictures per session. After shooting the Pictures the program made a collage. Each picture and the collage is copied to /var/www/html/images. Thumbnails are automatically generated in /var/www/html/thumbs. Your guests can acces the Pictures via a Webgallery at http://yourip/

key features:

-takes 3 photos in a session

-combines the 3 photos to a collage

-presents the single shots and the collage on a local webpage as a picture gallery

Keyboard shortcuts are:

spacebar: start photosession

ESC: quits the program

d: deletes all pictures from Webserver

Photobooth python Program by Ronny Schönfeld

what you need:

  1. Raspberry Pi
  2. PiCamera
  3. Button on GPIO 16 & 18
  4. Apache Webserver
  5. PHP5

automatic installation

This manual starts with a newly installed raspbian. connect your Pi to the internet

go to you home dir

cd /home/pi

clone this repository:

git clone https://github.com/ronbal/photobooth

change to the photobooth directory:

cd photobooth

start the setup script:

python3 setup.py

start the photobooth:

python3 photobooth.py

that's all!!! Have fun :-)

manual Installation

first Update & upgrade

sudo apt-get update
sudo apt-get upgrade

install Apache Webserver:

sudo apt-get install apache2

install php:

sudo apt-get install php

get the repository:

git clone https://github.com/ronbal/photobooth

###install imagemagick

sudo apt-get install imagemagick

Please add the folders:

/var/www/hmtl/images /var/www/hmtl/thumbs

mkdir /var/www/html/images
mkdir /var/www/html/thumbs

copy the Webserver Files to you /var/www/hmtl/demo/

sudo cp -R /home/pi/photobooth/webserver/* /var/www/html

to autostart on reboot:

sudo nano /etc/rc.local

add the line python3 /home/pi/photobooth/photobooth.py

#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi
python3 /home/pi/photobooth/photobooth.py&
exit 0