Customizing ROI Visualization in nvdsanalytics: Color and Font Options

Hardware Platform:
GPU NVIDIA L40S
• DeepStream Version:
7.1
• TensorRT Version:
Aligned with DeepStream 7.1 recommendations
• Issue Type:
Questions
• Requirement Details:
I would like to know if it’s possible to customize the color and font of the ROI regions defined through the nvdsanalytics plugin.

I have successfully modified the display settings for the detection label text using the nvdsosd plugin by updating the [osd] section in the configuration as shown below:

[osd]
enable=1
border-width=1
text-size=6
text-color=1;1;1;1
text-bg-color=1;1;1;0
font=Arial

However, for the nvdsanalytics plugin, I can only modify parameters like osd-mode and display-font-size in the config file.

Is there any way to customize the visual appearance of the ROI regions (e.g., change color or font) drawn by nvdsanalytics, similarly to how it’s done for labels in nvdsosd?

I couldn’t find any clear reference to this in the official plugin documentation. Any guidance would be appreciated.

Thanks

The nvdsanalytics plugin is open source, you can customize the line feature and font feature by modifying the code.

In attach_framemeta_analytics_metadata() function of /opt/nvidia/deepstream/deepstream/sources/gst-plugins/gst-nvdsanalytics/gstnvdsanalytics.cpp, the OSD features are set by txt_params and line_params.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.