CUDA Accelerated GStreamer Camera Undistort - Examples - Using Gstd

From RidgeRun Developer Wiki



Previous: Examples Index Next: Examples/Other pipelines






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 execution with GSTD is basically the same as any other pipeline. Just be extra careful with the quotes and spaces when specifying the camera matrix and distortion parameters. The correct format when using Gstd is shown belown.

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

gst-client pipeline_create undistort_pipeline \
nvarguscamerasrc ! nvvidconv ! \
cudaundistort distortion-model=brown-conrady camera-matrix="\"{\"fx\":9.5211633874478218e+02,\"fy\":9.4946222068253201e+02,\"cx\":6.8041416457132573e+02,\"cy\":3.1446117133659988e+02}\"" \
distortion-parameters="\"{\"k1\":2.1107496349546324e+01,\"k2\":-2.4383787227376064e+02,\"p1\":-2.4875466379420917e-03,\"p2\":2.2798038164244493e-03,\"k3\":5.9419414118252871e+02,\"k4\":2.1085235633925034e+01,\"k5\":-2.4360553937983042e+02,\"k6\":5.9359831515760391e+02}\"" \
! nvvidconv ! fakesink


gstd-client pipeline_play undistort_pipeline


Previous: Examples Index Next: Examples/Other pipelines