Really light photobooth. Auto detect max resolution of the first webcam and take a picture on 's' or left mouse click.
resolution.json from https://en.wikipedia.org/wiki/List_of_common_resolutions
virtualenv photobooth
source ~/photobooth/bin/activate
pip install opencv-python tk
detect resolution and codec
apt install v4l-utils
v4l2-ctl --device /dev/video0 --list-formats-ext
source ~/photobooth/bin/activate
# detect best resolution and edit config.ini with thoses values
python guess-resolution.py
# kick off app
python photobooth.py
source ~/photobooth/bin/activate
python rsync.py