NVIDIA Tegra
NVIDIA DeepStream Plugin Manual

Application Note
4.0.2 Release


 
Gst-nvofvisual
 
Inputs and Outputs
Features
Gst Properties
The Gst-nvofvisual plugin is useful for visualizing motion vector data. The visualization method is similar to the OpenCV reference source code in:
https://github.com/opencv/opencv/blob/master/samples/gpu/optical_flow.cpp
The plugin solves the optical flow problem by computing the magnitude and direction of optical flow from a two-channel array of flow vectors. It then visualizes the angle (direction) of flow by hue and the distance (magnitude) of flow by value of Hue Saturation Value (HSV) color representation. The strength of HSV is always set to a maximum of 255 for optimal visibility.
A screenshot of a cell phone Description automatically generated
Inputs and Outputs
Inputs
GStreamer buffer containing NV12/RGBA frame(s)
NvDsOpticalFlowMeta containing the motion vector (MV) data generated by the gst-nvof plugin
Control parameters
gpu-id, selects the GPU ID
Output
GStreamer buffer containing RGBA frame(s)
RGBA buffer generated by transforming MV data into color-coded RGBA image reference
Features
The following table summarizes the features of the plugin.
Features of the Gst-nvofvisual plugin
Feature
Description
Release
Configure GPU selection
Sets the GPU ID to be used for optical flow visualization operations (valid only for dGPU platforms)
DS 4.0
Gst Properties
The following table describes the Gst properties of the Gst-nvofvisual plugin.
Gst-nvofvisual plugin, Gst Properties
Property
Meaning
Type and Range
Example
Notes
gpu-id
Device ID of the GPU to be used
(dGPU only)
Integer,
0 to 4,294,967,295
gpu-id=0