Python deepstream6.1 How do I hide or remove a tag?

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
if (obj_meta.class_id == 0):
obj_meta.rect_params.border_width = 0
obj_meta.rect_params.has_bg_color = 1
obj_meta.rect_params.bg_color.red = 0.0
obj_meta.rect_params.bg_color.green = 0.0
obj_meta.rect_params.bg_color.blue = 0.0
obj_meta.rect_params.bg_color.alpha = 0.0

With this code, I can modify the border, or I can remove the border. How do I remove tag text ?

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

You can refer the deepstream source code from the path below:

/opt/nvidia/deepstream/deepstream/sources/gst-plugins/gst-nvdsosd/gstnvdsosd.h

You can set the paramerters below to draw the text or not.

  /** Boolean indicating whether text is to be drawn. */
  gboolean draw_text;
  /** Boolean indicating whether bounding is to be drawn. */
  gboolean draw_bbox;
  /** Boolean indicating whether instance mask is to be drawn. */
  gboolean draw_mask;

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