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/
-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
spacebar: start photosession
ESC: quits the program
d: deletes all pictures from Webserver
Photobooth python Program by Ronny Schönfeld
- Raspberry Pi
- PiCamera
- Button on GPIO 16 & 18
- Apache Webserver
- PHP5
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 :-)
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apache2
sudo apt-get install php
git clone https://github.com/ronbal/photobooth
###install imagemagick
sudo apt-get install imagemagick
/var/www/hmtl/images /var/www/hmtl/thumbs
mkdir /var/www/html/images
mkdir /var/www/html/thumbs
sudo cp -R /home/pi/photobooth/webserver/* /var/www/html
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