Skip to content

Instantly share code, notes, and snippets.

@justinledwards
Created September 17, 2015 23:12
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save justinledwards/cc0c40ce611efc00346f to your computer and use it in GitHub Desktop.
Save justinledwards/cc0c40ce611efc00346f to your computer and use it in GitHub Desktop.
Camera settings on v4l2
#!/bin/bash
v4l2-ctl -c brightness=0
v4l2-ctl -c contrast=120
v4l2-ctl -c white_balance_temperature_auto=0
v4l2-ctl -c gamma=120
v4l2-ctl -c white_balance_temperature=4700
v4l2-ctl -c sharpness=100
v4l2-ctl -c backlight_compensation=0
v4l2-ctl -c focus_absolute=10
v4l2-ctl --list-ctrls-menus
# Set exposure_auto (menu): min=0 max=3 default=1
# 1: Manual Mode
# 3: Aperture Priority Mode
v4l2-ctl -c exposure_auto=1
v4l2-ctl -c focus_auto=0
#while [ $EXPOSURE -lt 20000 ]
#do
# echo $EXPOSURE
# v4l2-ctl -c exposure_absolute=$EXPOSURE
# EXPOSURE=$[$EXPOSURE+2]
# sleep 0.1
#done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment