Image Stitching for NVIDIA Jetson/Examples/Using Gstd: Difference between revisions

From RidgeRun Developer Wiki
(Created page with "==Running using GSTD== GStreamer_Daemon is a gst-launch on steroids where you can create a GStreamer pipeline, play, pause, change speed, skip around, and even change ele...")
 
Line 1: Line 1:
==Running using GSTD==
[[GStreamer_Daemon]] is a gst-launch on steroids where you can create a GStreamer pipeline, play, pause, change speed, skip around, and even change element parameter settings all while the pipeline is active.
[[GStreamer_Daemon]] is a gst-launch on steroids where you can create a GStreamer pipeline, play, pause, change speed, skip around, and even change element parameter settings all while the pipeline is active.


===Running with bash GSTD client===
==Running with bash GSTD client==


The main difference in the pipeline syntax is that the homographies now need to be surrounded with escaped single quotes:
The main difference in the pipeline syntax is that the homographies now need to be surrounded with escaped single quotes:

Revision as of 22:16, 12 August 2020

GStreamer_Daemon is a gst-launch on steroids where you can create a GStreamer pipeline, play, pause, change speed, skip around, and even change element parameter settings all while the pipeline is active.

Running with bash GSTD client

The main difference in the pipeline syntax is that the homographies now need to be surrounded with escaped single quotes:

gstd # Launch gstd daemon, this will separate itself into its own process

gstd-client pipeline_create stitcher_pipeline \
cudastitcher name=cuda \
left-center-homography=\'{\"h00\":2.47795806e-01, \"h01\":1.83125651e-01, \"h02\":1511, \"h10\":-9.58951851e-02, \"h11\":1.00466096e+00, \"h12\":3.43046193e+01, \"h20\":-1.84997102e-04, \"h21\":4.48703017e-05, \"h22\":1}\' \
 right-center-homography=\'{\"h00\":1.07033034e+00, \"h01\":-8.91500609e-02, \"h02\":-1504, \"h10\":2.06014232e-02, \"h11\":1.06485384e+00, \"h12\":-2.68451772e+01, \"h20\":3.98503995e-06, \"h21\":4.20860985e-05, \"h22\":1}\' \
nvarguscamerasrc maxperf=true sensor-id=0 ! nvvidconv ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! queue ! cuda.sink_0 \
nvarguscamerasrc maxperf=true sensor-id=1 ! nvvidconv ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! queue ! cuda.sink_1 \
nvarguscamerasrc maxperf=true sensor-id=2 ! nvvidconv ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! queue ! cuda.sink_2 \
cuda. ! perf print-arm-load=true ! queue ! nvvidconv ! "video/x-raw(memory:NVMM), width=1920, height=360" ! nvoverlaysink


gstd-client pipeline_play stitcher_pipeline