From 1873a63654d02cda100ab77e882c1d4571fe5d5b Mon Sep 17 00:00:00 2001 From: Cowwan Date: Mon, 5 Feb 2024 16:58:00 -0500 Subject: [PATCH] added my shell script I use to set webcam settings and run the app --- facetracking.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 facetracking.sh diff --git a/facetracking.sh b/facetracking.sh new file mode 100755 index 0000000..0594cdd --- /dev/null +++ b/facetracking.sh @@ -0,0 +1,20 @@ +v4l2-ctl -c zoom_absolute=500 #zoom in +v4l2-ctl -c auto_exposure=3 #turn auto-exposure on +v4l2-ctl -c exposure_dynamic_framerate=0 #this option is required for 30 fps +v4l2-ctl -c sharpness=0 +v4l2-ctl -c gain=0 +v4l2-ctl -c contrast=128 #default value +v4l2-ctl -c brightness=128 #default value +v4l2-ctl -c focus_automatic_continuous=0 #auto-focus seemed to cause issues in low light +v4l2-ctl -c focus_absolute=0 +v4l2-ctl -c power_line_frequency=0 + + + +#make sure the python virtual environment is created and activated +python3 -m venv .venv +source .venv/bin/activate + +#the openseeface command +python3 facetracker.py --fps 30 --ip 127.0.0.1 --port 11573 --model 3 -W 640 -H 480 #--preview 1 +