This is my version of a DIY photobooth, based on a RasPi and a GoPro 4.
The GoPro is running with switched on WiFi and gets it's commands from the RasPi.
It's sending a small preview-stream. The images get downloaded automatically after each photo is shot.
A more detailed instruction (step by step) can be found in my blog: