Gst-nvsegvisual

The Gst-nvsegvisual plugin visualizes segmentation results. Segmentation is based on image recognition, except that the classifications occur at the pixel level as opposed to the image level as with image recognition. The segmentation output size is generally same as the input size. For more information, see the segmentation training reference at: https://github.com/qubvel/segmentation_models

Gst-nvsegvisual

Inputs and Outputs

  • Inputs

    • GStreamer buffer containing NV12/RGBA frame(s)

    • NvDsInferSegmentationMeta containing class numbers, pixel class map, width, height, etc. generated by Gst-nvinfer.

    • gpu-id: selects the GPU ID

    • width, set according the segmentation output size

    • height, set according the segmentation output size

  • Output

This plugin allocates different colors for different classes. For example, the industrial model’s output has only one representing defective areas. Thus, defective areas and background have different colors. The semantic model outputs four classes with four different colors: car, pedestrian, bicycle, and background. This plugin shows only the segmentation output. It does not overlay output on the original NV12 frame.

Features

The following table summarizes the features of the plugin.

Gst-nvsegvisual plugin features

Feature

Description

Release

Configure GPU selection

Sets the GPU ID to be used for segmentation visualization operations (valid only for dGPU platforms)

DS 4.0

Configure width

Sets width according to the segmentation output size

DS 4.0

Configure height

Sets height according to the segmentation output size

DS 4.0

Gst Properties

The following table describes the Gst properties of the Gst-nvsegvisual plugin.

Gst-nvsegvisual plugin gst properties

Property

Meaning

Type and Range

Example and Notes

gpu-id

Device ID of the GPU to be used for decoding

Integer, 0 to 4,294,967,295

gpu-id=0

width

Segmentation output width

Integer, 0 to 4,294,967,295

width=512

height

Segmentation output height

Integer, 0 to 4,294,967,295

height=512