Change color from labels detections in trackin sample

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson Xavier AGX
• DeepStream Version 6.0.1
• JetPack Version (valid for Jetson only) 4.6
• TensorRT Version 8.2.1

I am trying to change colors from bounding box detection from the tracking sample gpubootcamp/Introduction_to_Multi-DNN_pipeline.ipynb at a647a2c3fc75828cbbf1cbd5ab29f865c491a35c · openhackathons-org/gpubootcamp · GitHub. The label text has a black background with white characters (see image below). I want to change it.

In my xxx, I just added the obj_meta.text_params.font_params.font_color.set and the obj_meta.text_params.text_bg_clr.set(0.0, 0.0, 1.0, 1.0). But nothing changes. Shouldn’t such properties be changed by these set commands? What am I missing here?

while l_obj is not None:
        # Casting to pyds.NvDsObjectMeta
        obj_meta = pyds.NvDsObjectMeta.cast(
    except StopIteration:
    obj_counter[obj_meta.class_id] += 1
    obj_meta.rect_params.border_color.set(0.0, 0.0, 1.0, 1.0)
    obj_meta.text_params.font_params.font_color.set(1.0, 1.0, 1.0, 1.0)
    obj_meta.text_params.text_bg_clr.set(0.0, 0.0, 1.0, 1.0)
        l_obj =
    except StopIteration:

can you update the deepstream to lastest version?

In the old version, osd uses vic by default, and may not support color configuration

or you can try config the process-mode property to gpu

nvosd.set_property(‘process-mode’, 1)

this is reference document

I can’t upgrade DeepStreeam version because I am trapped into a nightmare called Advantec fanless computer MIC-730AI. Their equipment are distributed with Nvidia Jetson AGX Xavier but doesn’t support versions higher than I have. For instance, it AGX Xavier performs just 1.4x better than Nvidia Nano devkit. Can’t understand why Nvidia supports Advantec as a partner. I strongly recommend new users to avoid Advantec.

As I see from the code you suggested, I am doing the right thing, my package version is the one who doesn’t support it. Even changing “process-mode” to 1 (GPU).

So, I guess I will end this topic for now.


We have very sorry for the inconvenience.

process-mode property changeable only in NULL or READY state.
maybe you can set it before


or changing “process-mode” to 0 (CPU,slower than gpu).

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

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