Gst-nvofvisual¶
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.
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