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:
try:
# Casting l_obj.data to pyds.NvDsObjectMeta
obj_meta = pyds.NvDsObjectMeta.cast(l_obj.data)
except StopIteration:
break
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)
try:
l_obj = l_obj.next
except StopIteration:
break