• Hardware Platform Jetson Xavier
• DeepStream Version 5.0 Python bindings
Editing the deepstream-test1-app python, I want to change the background color to yellow:
while l_obj is not None:
try:
# Casting l_obj.data to pyds.NvDsObjectMeta
#obj_meta=pyds.glist_get_nvds_object_meta(l_obj.data)
obj_meta=pyds.NvDsObjectMeta.cast(l_obj.data)
except StopIteration:
break
obj_counter[obj_meta.class_id] += 1
obj_meta.rect_params.has_bg_color = 1
obj_meta.rect_params.bg_color.set(1.0, 1.0, 0.0, 0.4)
obj_meta.rect_params.border_color.set(1.0, 1.0, 0.0, 1.0)
try:
l_obj=l_obj.next
except StopIteration:
break
but the result is
It’s seem the bg_color is always green even I change the any value of bg_color.
I tested with the same codes above on dGPU (1050). It’s work.
Bests,