From d80a13250a7fc0075824e93de006fe89ae317bd1 Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Thu, 12 Dec 2024 13:03:27 +0100 Subject: [PATCH] x-linux-ai: recipes-samples: update launch_npu_demo.sh script This commit updates the camera configuration and default paths to align with the new X-LINUX-AI v6.0.0 release from the meta-st-x-linux-ai layer. https://onedigi.atlassian.net/browse/DEL-9419 Signed-off-by: Arturo Buzarra --- .../common/scripts/launch_npu_demo.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/meta-digi-dey/dynamic-layers/x-linux-ai/recipes-samples/common/scripts/launch_npu_demo.sh b/meta-digi-dey/dynamic-layers/x-linux-ai/recipes-samples/common/scripts/launch_npu_demo.sh index 1e6c6257a..2e7f0842b 100644 --- a/meta-digi-dey/dynamic-layers/x-linux-ai/recipes-samples/common/scripts/launch_npu_demo.sh +++ b/meta-digi-dey/dynamic-layers/x-linux-ai/recipes-samples/common/scripts/launch_npu_demo.sh @@ -17,11 +17,12 @@ DEFAULT_DEMO="pose_estimation" # Prepare MIPI camera. -media-ctl -d /dev/media2 --set-v4l2 "'ov5640 0-003c':0[fmt:SBGGR8_1X8/1280x720]" -media-ctl -d /dev/media2 --set-v4l2 "'stm32_csi2host.48020000.csi2hos':1[fmt:SBGGR8_1X8/1280x720]" -media-ctl -d /dev/media2 --set-v4l2 "'dcmipp_main_isp':1[fmt:RGB888_1X24/1280x720 field:none]" -media-ctl -d /dev/media2 --set-v4l2 "'dcmipp_main_postproc':0[compose:(0,0)/640x480]" -media-ctl -d /dev/media2 --set-v4l2 "'dcmipp_main_postproc':1[fmt:RGB565_2X8_LE/640x480]" +media-ctl -d /dev/media0 --set-v4l2 "'ov5640 0-003c':0[fmt:SBGGR8_1X8/1280x720]" +media-ctl -d /dev/media0 --set-v4l2 "'48020000.csi':1[fmt:SBGGR8_1X8/1280x720]" +media-ctl -d /dev/media0 --set-v4l2 "'dcmipp_input':2[fmt:SBGGR8_1X8/1280x720]" +media-ctl -d /dev/media0 --set-v4l2 "'dcmipp_main_isp':1[fmt:RGB888_1X24/1280x720 field:none]" +media-ctl -d /dev/media0 --set-v4l2 "'dcmipp_main_postproc':0[compose:(0,0)/640x480]" +media-ctl -d /dev/media0 --set-v4l2 "'dcmipp_main_postproc':1[fmt:RGB565_2X8_LE/640x480]" # Mirror the image. v4l2-ctl -d /dev/v4l-subdev6 --set-ctrl "horizontal_flip=1" @@ -63,10 +64,10 @@ fi DEMO_FOLDER_NAME="$(echo "${DEMO}" | sed 's/_/-/g')" # Build the demo full path. -DEMO_DIR="/usr/local/demo-ai/${DEMO_FOLDER_NAME}" +DEMO_DIR="/usr/local/x-linux-ai/${DEMO_FOLDER_NAME}" # Verify that the demo directory exists. [ -d "${DEMO_DIR}" ] || { echo "Error: Demo ${DEMO} does not exist"; exit 1; } # Execute the demo. -"${DEMO_DIR}/tflite/launch_python_${DEMO}.sh" +"${DEMO_DIR}/launch_python_${DEMO}.sh"