Package: photobooth
PhotoboothPhotobooth application purely written in Python. Controlling a dslr camera and capturing photo.Installation on RaspberryPiInstalling the Photobooth package$sudoapt-get-yupdate&&sudoapt-get-yupgrade&&sudoapt-get-yautoremove
$sudoapt-get-yinstallpython3-pippython3-pyqt5libgphoto2-dev
$sudopipinstallphotobooth[dslr,rpi]Start the photobooth with$photobooth-c<path/to/photobooth_config.ini>-d<path/to/dslr_config.ini>Installing the window manager, if using Raspbian LiteInstall Packages$ sudo apt-get install -y --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox

$ sudo apt-get install -y unclutterThe package unclutter is optional. It will prevent showing the mouse curser.Change the.xinitrcfile by adding the following lineexec openbox-sessionCreate theautostartfile unter~/.config/openbox/autostartsetxkbmap -option terminate:ctrl_alt_bksp

xset s noblank
xset s off
xset -dpms

unclutter -idle 0.5 -root &

photobooth -c <path/to/photobooth_config.ini> -d <path/to/dslr_config.ini>Remarks:If you like to show the mouse curser removeunclutter -idle 0.5 -root &If you like to use the default configuration remove the options-cand-d.Start the photobooth with$startxIf you like to autostart the photobooth add the following line to~/.bash_profileand enable auto-login viaraspi-configstartxConfigurationThe photobooth can be configured via a configuration file.; Configuration of the application
[widget]

; Title of the application window
title = Photobooth

; Path to the background image
background_image = ./oak.jpg


; Configuration of the gallery screen
[widget.gallery]

; Label for the right button
right_button = Photo

; Position of the images [<x-position>, <y-position>, <angle>]
; - x- and y-position are in percent relative to the center of the page
; - angle is the degree of image rotation
positions = [[0.0, 0.0, 2], [-0.8, -0.6, -6], [0.7, -0.65, 10], [0.4, 0.8, -4], [-0.5, 0.8, 8], [-0.9, 0.6, -6], [0.05, -0.9, 4], [0.95, 0.95, 2], [0.85, -0.05, -4], [-0.95, -0.95, -4], [-0.1, -0.05, 12], [0.9, -0.95, -10], [0.0, 0.95, 2], [-0.65, 0.95, 4], [0.25, 0.05, 4], [-0.5, -0.5, -10]]


; Configuration of the liveview screen
[widget.liveview]

; Label for the left button
left_button = Back

; Label for the right button
right_button = Photo


; Configuration of the capture screen
[widget.capture]

; Countdown text comma separated
countdown = 3,2,Smile!
; Color of the message
countdown_color = "#333333"

; Messages after image is captured. Placeholder {number} is replaced with the photo number.
file_number_message = "This photo has the number: {number}"
; Color of the message
file_number_message_color = "#333333"


; Configuration of the preview screen
[widget.preview]

; Label for the left button
left_button = Delete

; Label for the right button
right_button = Next

; Time the preview is show in milliseconds
timeout = 5000


; Configuration of the hardware buttons
[hardwarebutton]

; GPIO Pin of the left button
left_button = 23

; GPIO Pin of the right button
right_button = 24

; Configuration of the camera
[camera]

; Image naming pattern to use for extraction as regex expression
file_number_pattern = P\d{2}_(\d{4}).JPG

; Time delay of the camera shutter from signal to actual capturing the photo (used to correct the countdown)
shutter_delay = 800WarrantyNo guaranty or coverage of any kind to damages what so ever.