summaryrefslogtreecommitdiff
path: root/test-cli/test/scripts/v4l-cam.sh
diff options
context:
space:
mode:
authorHector Fernandez <hector@iatec.biz>2020-09-29 13:27:32 +0200
committerHector Fernandez <hector@iatec.biz>2020-09-30 14:30:05 +0200
commitca73fcc336edc23db5750e93b6e1014d32a54ea5 (patch)
tree890e4786f1c241a79b44a99dd8447062572cbc62 /test-cli/test/scripts/v4l-cam.sh
parentd8d4684c24a7c34334bb0b1d74dead69282e8c46 (diff)
downloadboard-ca73fcc336edc23db5750e93b6e1014d32a54ea5.zip
board-ca73fcc336edc23db5750e93b6e1014d32a54ea5.tar.gz
board-ca73fcc336edc23db5750e93b6e1014d32a54ea5.tar.bz2
Added new test to validate video output with a webcam.
Diffstat (limited to 'test-cli/test/scripts/v4l-cam.sh')
-rwxr-xr-xtest-cli/test/scripts/v4l-cam.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/test-cli/test/scripts/v4l-cam.sh b/test-cli/test/scripts/v4l-cam.sh
new file mode 100755
index 0000000..18da1c0
--- /dev/null
+++ b/test-cli/test/scripts/v4l-cam.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+v4l2-ctl -d /dev/video0 -c exposure_auto=3
+v4l2-ctl -d /dev/video0 -c brightness=0
+v4l2-ctl -d /dev/video0 -c contrast=20
+v4l2-ctl -d /dev/video0 -c saturation=55
+v4l2-ctl -d /dev/video0 -c hue=0
+v4l2-ctl -d /dev/video0 -c white_balance_temperature_auto=0
+v4l2-ctl -d /dev/video0 -c gamma=100
+v4l2-ctl -d /dev/video0 -c power_line_frequency=1
+v4l2-ctl -d /dev/video0 -c white_balance_temperature=4500
+v4l2-ctl -d /dev/video0 -c sharpness=2
+v4l2-ctl -d /dev/video0 -c backlight_compensation=2
+# v4l2-ctl -d /dev/video0 -c exposure_absolute=166 \ No newline at end of file