Crossing line colour and opacity change

How do you change the line crossing line and direction arrow colour?

I believe it is not possible through the config file and as such, we changed the .c file to include following:

NvOSD_LineParams *line_params = display_meta->line_params[0];

line_params[0].line_width = 2;
line_params[0].line_color = (NvOSD_ColorParams){1.0, 0.0, 0.0, 0.5};

however, there is no effect on the colour. Could you please suggest a correct way to define this.

Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

Hi Kesong, we are using:

Jetson Xavier
Deepstream 6
Jetpack 4.6
TensorRT/Cuda/Ubuntu = 6/10.2/18.04

Can you add one probe function at the sink pad of nvdsosd to do it?

Thanks Kesong for the reply and solution. If you don’t mind could you please send me an example. I am new to Deepstream and an example will help me big time. Btw, we are using c code, not python. Not sure if that would make a difference.

Please refer: /opt/nvidia/deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-test1/deepstream_test1_app.c

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