NVIDIA VPI GStreamer Plug-in/Examples/Overlay: Difference between revisions

From RidgeRun Developer Wiki
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{NVIDIA VPI GStreamer Plug-in/Head|previous=Examples/Perspective Warp|next=Examples/Videoconvert|keywords=}}
{{NVIDIA VPI GStreamer Plug-in/Head|previous=Examples/Perspective Warp|next=Examples/Videoconvert|metakeywords=vpioverlay, vpiharrisdetector, vpiklttracker, vpiharrisdetector}}
</noinclude>
</noinclude>


Line 19: Line 19:
The following example pipe will draw key points and corners detected with the vpiharrisdetector element in your input video stream. You may modify the properties values according to the information above.
The following example pipe will draw key points and corners detected with the vpiharrisdetector element in your input video stream. You may modify the properties values according to the information above.


<source lang=bash>
<syntaxhighlight lang="bash">
gst-launch-1.0 nvarguscamerasrc ! nvvidconv ! 'video/x-raw,format=GRAY8' ! vpiupload ! vpiharrisdetector gradient-size=3 block-size=3 nms-distance=8 sensitivity=0.01 strength-thresh=20 ! vpioverlay color=white ! vpidownload ! nvvidconv ! 'video/x-raw(memory:NVMM),format=I420' ! nvoverlaysink
gst-launch-1.0 nvarguscamerasrc ! nvvidconv ! 'video/x-raw,format=GRAY8' ! vpiupload ! vpiharrisdetector gradient-size=3 block-size=3 nms-distance=8 sensitivity=0.01 strength-thresh=20 ! vpioverlay color=white ! vpidownload ! nvvidconv ! 'video/x-raw(memory:NVMM),format=I420' ! nvoverlaysink
</source>
</syntaxhighlight>


<source lang=bash>
<syntaxhighlight lang="bash">
gst-launch-1.0 nvarguscamerasrc ! nvvidconv bl-output=false ! 'video/x-raw(memory:NVMM),format=GRAY8' ! vpiupload ! vpiharrisdetector gradient-size=3 block-size=3 nms-distance=8 sensitivity=0.01 strength-thresh=20 ! vpioverlay color=white ! vpidownload ! nvvidconv ! 'video/x-raw(memory:NVMM),format=I420' ! nvoverlaysink
gst-launch-1.0 nvarguscamerasrc ! nvvidconv bl-output=false ! 'video/x-raw(memory:NVMM),format=GRAY8' ! vpiupload ! vpiharrisdetector gradient-size=3 block-size=3 nms-distance=8 sensitivity=0.01 strength-thresh=20 ! vpioverlay color=white ! vpidownload ! nvvidconv ! 'video/x-raw(memory:NVMM),format=I420' ! nvoverlaysink
</source>
</syntaxhighlight>
 
Alternative display pipeline.
 
<syntaxhighlight lang="bash">
gst-launch-1.0 nvarguscamerasrc ! nvvidconv bl-output=false ! 'video/x-raw(memory:NVMM),format=GRAY8' ! vpiupload ! vpiharrisdetector gradient-size=3 block-size=3 nms-distance=8 sensitivity=0.01 strength-thresh=20 ! vpioverlay color=white ! vpidownload ! nvvidconv ! 'video/x-raw(memory:NVMM),format=I420' ! nvvidconv ! autovideosink
</syntaxhighlight>


<noinclude>
<noinclude>
{{NVIDIA VPI GStreamer Plug-in/Foot|Examples/Perspective Warp|Examples/Videoconvert }}
{{NVIDIA VPI GStreamer Plug-in/Foot|Examples/Perspective Warp|Examples/Videoconvert}}
</noinclude>
</noinclude>

Latest revision as of 15:36, 14 August 2024



Previous: Examples/Perspective Warp Index Next: Examples/Videoconvert





Introduction

The vpioverlay element draws boxes over the image from the metadata produced by the vpiharrisdetector and vpiklttracker elements. In the case of vpiharrisdetector it computes a small box around each detected keypoint.

Element properties

  • color

Color to draw the boxes. Available options:

black: Black color for boxes
white: White color for boxes

Flags: readable, writable
Default: "black"

Example

The following example pipe will draw key points and corners detected with the vpiharrisdetector element in your input video stream. You may modify the properties values according to the information above.

gst-launch-1.0 nvarguscamerasrc ! nvvidconv ! 'video/x-raw,format=GRAY8' ! vpiupload ! vpiharrisdetector gradient-size=3 block-size=3 nms-distance=8 sensitivity=0.01 strength-thresh=20 ! vpioverlay color=white ! vpidownload ! nvvidconv ! 'video/x-raw(memory:NVMM),format=I420' ! nvoverlaysink
gst-launch-1.0 nvarguscamerasrc ! nvvidconv bl-output=false ! 'video/x-raw(memory:NVMM),format=GRAY8' ! vpiupload ! vpiharrisdetector gradient-size=3 block-size=3 nms-distance=8 sensitivity=0.01 strength-thresh=20 ! vpioverlay color=white ! vpidownload ! nvvidconv ! 'video/x-raw(memory:NVMM),format=I420' ! nvoverlaysink

Alternative display pipeline.

gst-launch-1.0 nvarguscamerasrc ! nvvidconv bl-output=false ! 'video/x-raw(memory:NVMM),format=GRAY8' ! vpiupload ! vpiharrisdetector gradient-size=3 block-size=3 nms-distance=8 sensitivity=0.01 strength-thresh=20 ! vpioverlay color=white ! vpidownload ! nvvidconv ! 'video/x-raw(memory:NVMM),format=I420' ! nvvidconv ! autovideosink


Previous: Examples/Perspective Warp Index Next: Examples/Videoconvert