Change bounding box color in run time

How to change bounding box color in run time?
I am using deepstream-app.
For example, class1 has red bounding box color in normal detection. But under certain condition, I like to change to green for class1. How can I do that?
• Hardware Platform (Jetson / GPU)
• DeepStream Version
5.1 (;atest)
• JetPack Version (valid for Jetson only)
R32 (release), REVISION: 4.3, GCID: 21589087, BOARD: t186ref, EABI: aarch64, DATE: Fri Jun 26 04:34:27 UTC 2020
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)

Sorry for the late response, is this still an issue to support? Thanks

Yes still need to support

Can you refer below samples (Sample test application 1)? And check object_meta->rect_params if can change color?

C/C++ Sample Apps Source Details — DeepStream 6.0 Release documentation (

That change color of all rectangles. But I like to change with ObjectMeta’s object_id. I like to change certain box only with that particular object_id. How can I do that?

I tried as

            obj->rect_params.border_width = 30;

It doesn’t work.

There is no update for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.

What is the status here? Is there still any issue?

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