NVIDIA VPI GStreamer Plug-in/Examples/Overlay: Difference between revisions
mNo edit summary |
|||
Line 21: | Line 21: | ||
<source lang=bash> | <source 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> | |||
<source 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 | |||
</source> | </source> | ||
Revision as of 16:15, 5 May 2022
GstVPI |
---|
GstVPI Basics |
Getting Started |
Examples |
Performance |
Contact Us |
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