added my shell script I use to set webcam settings and run the app

This commit is contained in:
Cowwan 2024-02-05 16:58:00 -05:00
parent f8747806a5
commit 1873a63654

20
facetracking.sh Executable file
View file

@ -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