How to change bounding box color according to class id in deepstream_test3.cpp?

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson Nano
• DeepStream Version 5.1
• JetPack Version (valid for Jetson only) 4.5
• TensorRT Version 7.1
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

Hello,
I want to change border color of bounding boxes according to the class id in deepstream_test3.cpp app. Can I achieve that?

Please refer: NVIDIA DeepStream SDK API Reference: On-Screen Display Structure

1 Like

You can change the bbox color using NvOSD_ColorParams.
Which needs to be defined in the same format as NvOSD_TextParams, which is defined as default in deepstream_test3.cpp.

Also, refer to the following link and check on line number 126.
https://docs.nvidia.com/metropolis/deepstream/4.0/dev-guide/DeepStream_Development_Guide/baggage/nvll__osd__struct_8h_source.html#l00127

1 Like