photobooth icon indicating copy to clipboard operation
photobooth copied to clipboard

Success story: Photo Booth #2

Open mfausin opened this issue 6 years ago • 16 comments

Describe your photobooth This is my second Photo Booth, the first one was even more a prototype for my dad's birthday. However, I have received many inquiries there if I would lend my Photo Booth. But I wanted to build a one that really works.

Hardware (please complete the following information):

  • Raspberry Pi 3B+
  • Canon EOS 450D
  • GPIO: Yes

Additional equipment

Picture Name Price
 image Canon EOS 450D SLR Digital Camera Lens Kit 18-55mm --> Ebay 153,50 €
image Neewer Z Flex Tilt Kugelkopf --> Amazon 18,99 €
image Pixel TF-326 Blitzschuh Adapter für Studioblitze mit PC-Sync Buchse für Canon --> Amazon 11,90 €
image Walimex Pro Newcomer 100 Studioblitz --> Amazon 90,50 €
image Walimex Pro Beauty Dish VC Serie (40 cm) --> Amazon 56,35 €
image kj-vertrieb Netzteil mit Akkuadapter für Canon EOS 450D --> Amazon 18,95 €
image König & Meyer 19580-000-55 Boxenflansch schwarz --> Amazon 19,80 €
raspberry-pi-3-model-b-plus-bcm2837b0-soc-iot-poe-enabled-single-board-computer Raspberry Pi 3 Model B+ (plus) BCM2837B0 SoC, IoT, PoE Enabled Single Board Computer --> Eckstein 39,95 €
img_1745 3D printed case for Raspberry Pi 3+ --> thingiverse.com --
-- Raspberry Pi Kühler Cooler Kühlkörper --> Eckstein 2,95 €
image Noctua NF-A4x10 5V Lüfter, 5V (40mm, Braun) --> Amazon 12,90 €
101-inch-hdmi-lcd-b-with-case Waveshare 10.1 inch Raspberry Pi Display 1280x800 capacitive Touchscreen HDMI LCD with case IPS --> Eckstein 98,99 €
i420705 1-fusstaster-pfs-135a-10-a-250-v Fußtaster PFS-135A, 10 A/250 V~ --> Pollin 7,95 €
canon-selphy-cp-1300--fotodrucker CANON SELPHY CP 1300, Fotodrucker --> Saturn 123,99 €
-- Cables, wood for the housing,.........

Software (please complete the following information):

  • OS: Raspbian Stretch
  • Python version: 3.6.x

Modifications:

  • Stylesheet adapted to the larger display with 1280x800 pixels
  • Location of the finished pictures and the individual shots were separated.
  • Web server with a simple image gallery installed to allow guests to access the images. For this I used the gallery SFPG (Single File PHP Gallery). https://sye.dk/sfpg/
  • To access the images, I wanted to make the RasPi a WLAN access point. Unfortunately that has led to problems .....

Problems: This solution for a photobooth works really well and is really well built! Thanks again to reuterbal !!! During the installation and the first attempts, I hardly had any problems. I only had problems when I tried to make the RasPi an access point, but unfortunately something went wrong, so he got stuck while booting. I have not found the reason yet, but that's why I have to take care of it later.

Otherwise, I had only 2-3 times a problem that the camera was apparently not responsive. The result was that the countdown just stopped, it only helped to restart, because the program did not react at all.

Pictures: img_1761

img_1763

img_1755 1

img_1766 2

mfausin avatar Jan 28 '19 00:01 mfausin

Hello,

Is this a standalone network? Where can I download the photo from my smartphone? If so, do you have a manual?

Web server with a simple image gallery installed to allow guests to access the images. For this I used the gallery SFPG (Single File PHP Gallery). https://sye.dk/sfpg/ To access the images, I wanted to make the RasPi a WLAN access point. Unfortunately that has led to problems .....

MarioJanssen27 avatar Jan 28 '19 07:01 MarioJanssen27

This looks really great, thank you for sharing! Here's a tutorial on how to create an access point: https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md

reuterbal avatar Jan 28 '19 08:01 reuterbal

This looks really great, thank you for sharing! Here's a tutorial on how to create an access point: https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md

I did that a week ago and it worked for me too. But I can't do it with Gallery!?

Is there a manual or project that describes everything completely?

MarioJanssen27 avatar Jan 28 '19 19:01 MarioJanssen27

Yes, it was planned to set up a standalone network. But I had problems as I said, I'll try again with the instructions of reuterbal!

As Gallery I use the SFPG (Single File PHP Gallery) as written above. It is a gallery without database. As the name implies, the whole gallery actually consists of a single PHP file.

The "installing" and setting up the SFPG is really simple. You only need a web server (Apache2, PHP, PHP-GD, ....), all requirements of the SFPG can be found on the website of the developer. For the webserver itself you can find enough instructions on the internet. All further steps to set up the SPFG can be found in the readme.txt!

What the guests have to do then, is to connect to the WLAN of the RasPi and enter in a browser the IP address or host name.

mfausin avatar Jan 29 '19 23:01 mfausin

I'll try to write an additional process that can be enabled from the settings menu. (https://github.com/reuterbal/photobooth/blob/master/photobooth/main.py) It will implement SimpleHTTPServer. Once this server is running:

You'll be able to enable:

  1. A slideshow that could be presented during the event making use of a HTML5, CSS3 & jQuery.
  2. A QR-code that will pop-up after the guests tooks their picture to download their picture.

oelegeirnaert avatar Jan 30 '19 11:01 oelegeirnaert

This would be awesome, I would be very much interested in such an addition! There is another issue for that (#75) where the discussion for that should be happening.

reuterbal avatar Jan 30 '19 14:01 reuterbal

Hello @reuterbal , Please could we have some direct contact? I've worked on the webservice today. Kr, Oele

oelegeirnaert avatar Jan 30 '19 23:01 oelegeirnaert

Yes, but let's move the discussion to #75

reuterbal avatar Jan 31 '19 08:01 reuterbal

Okay to #75

MarioJanssen27 avatar Jan 31 '19 11:01 MarioJanssen27

@mfausin I did not take a look at your code yet, but I assume that the liveview comes from the DSLR via gphoto2, and that via gphoto2 you also manage to shoot and store the picture once the trigger is hit. From a CPU load and thermal stress perspective, what stats have you seen on the RPi? In other words, is the liveview process pushing the RPi CPU to its limit, that if cooling is not properly taken care of, the whole system is at risk of crashing because of overheating?

gpsless avatar Feb 03 '19 01:02 gpsless

Hallo @gpsless , its not my code, its from reuterbal! But yes, gphoto2 is used to get the live view from the DSLR and to take and store the photo.

I only watched the CPU load while I was testing with the camera dummy, so without gphoto. There it comes up to 70-80%. Only for a few seconds. The temperature didn't get over 50°C. I think it wouldn't be really much stress for the RPi.

By the way, last Saturday my Photo Booth were on a birthday party. 229 photos were taken, without any problems!

mfausin avatar Feb 04 '19 03:02 mfausin

@gpsless In my experience, the real issue is the poor USB performance of the RPI. It limits the frame rate in live preview and thus prevents the RPi from overheating ;-) Besides, the processor of the RPi usually reduces clock rate early enough to prevent it from crashing due to overheating. Generally, I recommend using a passive heatspreader and use an open case for the RPi so that temperature doesn't rise so fast. This will simply improve performance.

reuterbal avatar Feb 04 '19 09:02 reuterbal

Hallo @mfausin Thank you for your feedback! Good to hear that your photobooth worked reliably 👍

@reuterbal I see your point. How much would you estimate the framerate of liveview over USB?

gpsless avatar Feb 04 '19 10:02 gpsless

With my EOS500D it is probably 10-20fps. Might depend on the camera model (i.e., size of the preview frames) and other factors.

reuterbal avatar Feb 05 '19 09:02 reuterbal

Hi @mfausin I would like to know if you are controling the light with the RPi or it is always on. Btw it looks awesome ;D

alopezbu avatar May 31 '19 06:05 alopezbu

@alopezbu The light is a studio flash, it’s controlled by the camera. But it has a built in „modelling light“, so even in dark conditions it is possible for the camera to focus.

mfausin avatar May 31 '19 07:05 mfausin