Created
September 17, 2015 23:12
-
-
Save justinledwards/cc0c40ce611efc00346f to your computer and use it in GitHub Desktop.
Camera settings on v4l2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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