Skip to content

Commit

Permalink
fix: resolve the issue of missing realsense parameters from gst-launc…
Browse files Browse the repository at this point in the history
…h command (intel-retail#342)

FIXES: intel-retail#341

Signed-off-by: Jim Wang <[email protected]>
  • Loading branch information
jim-wang-intel authored Nov 10, 2023
1 parent d08b4f0 commit 617ed05
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion configs/opencv-ovms/cmd_client/res/gst/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ OvmsServer:
# remove-and-restart: it will remove the existing container with the same container name if any and then restart the container
# exit: it will exit the profile-launcher and
# ignore: it will ignore the error and continue (this is the default value if not given or none of the above)
StartUpPolicy: ignore
StartUpPolicy: ignore
OvmsClient:
DockerLauncher:
Script: docker-launcher.sh
Expand Down
4 changes: 3 additions & 1 deletion configs/opencv-ovms/scripts/run_gst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stream_density_params="${stream_density_params:=}"
cl_cache_dir="${cl_cache_dir:=$HOME/.cl-cache}"

COLOR_WIDTH="${COLOR_WIDTH:=1920}"
COLOR_HEIGHT="${COLOR_HEIGHT:=1810}"
COLOR_HEIGHT="${COLOR_HEIGHT:=1080}"
COLOR_FRAMERATE="${COLOR_FRAMERATE:=15}"
OCR_SPECIFIED="${OCR_SPECIFIED:=5}"

Expand Down Expand Up @@ -55,6 +55,8 @@ elif grep -q "video" <<< "$INPUTSRC"; then
else
# rs-serial realsenssrc
inputsrc="realsensesrc cam-serial-number="$INPUTSRC" stream-type=0 align=0 imu_on=false"
echo "----- in run_gst.sh COLOR_WIDTH=$COLOR_WIDTH, COLOR_HEIGHT=$COLOR_HEIGHT, COLOR_FRAMERATE=$COLOR_FRAMERATE"

# add realsense color related properties if any
if [ "$COLOR_WIDTH" != 0 ]; then
inputsrc=$inputsrc" color-width="$COLOR_WIDTH
Expand Down
4 changes: 0 additions & 4 deletions get-options.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ OCR_INTERVAL=5
OCR_DEVICE=CPU
OCR_DISABLED=0
CLASSIFICATION_DISABLED=0
REALSENSE_ENABLED=0
COLOR_WIDTH=0
COLOR_HEIGHT=0
COLOR_FRAMERATE=0
OCR_SPECIFIED=0

error() {
Expand Down

0 comments on commit 617ed05

Please sign in to comment.