I run successfully a segmentation DS app, colors for each class are discriminative. The config file for the DS app is like the below:
[primary-gie]
enable=1
gpu-id=0
batch-size=1
gie-unique-id=1
config-file=./yolov7-seg-dev.txt
bbox-border-color0=1;1;0;1
bbox-border-color1=1;0;0;1
Now I want to use g_object_set() function to set color for bbox-border-color0 and bbox-border-color1 in source code of DS app, but there is no effect on result video (colors not changed). The codes are like below:
g_object_set(G_OBJECT(primary_gie), "bbox-border-color0", "1;1;0;1", NULL);
or
const static auto BBOX_COLOR = (NvOSD_ColorParams){1, 0, 1, 0};
g_object_set(G_OBJECT(primary_gie), "bbox-border-color0", BBOX_COLOR, NULL);
Does the above codes correct? How to set color for “bbox-border-color0” property using g_object_set()?
Thank you very much.
• Hardware Platform (Jetson / GPU) Jetson
• DeepStream Version 6.2
• JetPack Version (valid for Jetson only) 5.1.1
• TensorRT Version 8.6
• Issue Type (questions, new requirements, bugs) questions