tools: update csi_camera.sh and libcamera_camera.sh scripts

This commit is contained in:
Kamil Trzcinski 2023-02-21 23:42:15 +01:00
parent 4d58a383bf
commit a5bfeffc2b
2 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,7 @@
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR/.."
CAMERA_PATH=$(echo /dev/v4l/by-path/*.csi-video-index0)
CAMERA_PATH=( $(echo /dev/v4l/by-path/*.csi-video-index0) )
if [[ "$1" == "dump" ]]; then
shift
@ -21,7 +21,7 @@ fi
set -xeo pipefail
make -j$(nproc)
$GDB ./camera-streamer -camera-path=$(echo /dev/v4l/by-path/*.csi-video-index0) \
$GDB ./camera-streamer -camera-path="${CAMERA_PATH[0]}" \
-camera-options=vertical_blanking=728 \
-camera-options=exposure=2444 \
-camera-options=analogue_gain=600 \

View File

@ -6,7 +6,6 @@ cd "$SCRIPT_DIR/.."
set -xeo pipefail
make -j$(nproc)
$GDB ./camera-streamer \
-camera-path=/base/soc/i2c0mux/i2c@1/imx519@1a \
-camera-type=libcamera \
-camera-format=YUYV \
"$@"