Deepstream object labels attr id in stream after nvdsosd

I want hide object`s labels in stream after nvdsosd

NvDsObjectMeta *obj_meta = (NvDsObjectMeta *) (l_obj->data);
It will crash maybe obj_meta->text_params.display_text is null;

change to this :
NvDsObjectMeta *obj_meta = (NvDsObjectMeta *) (l_obj->data);
gchar *str = g_strconcat("", NULL);
obj_meta->text_params.display_text = str;
it still have black rect with one space.

How can hide object in stream?

• Hardware Platform (Jetson / GPU)
• DeepStream Version5.0dp
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)

You want to hide object or object’s lable?

just object’s lable

Will updated to you ASAP.

You could refer to the code gstnvinfer_meta_utils.cpp which disabled the text shown. but tracking id still there. need to rebuild nvinfer, and replace original one.
out1.mp4.cpp (797.5 KB)
gstnvinfer_meta_utils.cpp (14.3 KB)

or if you use tiler mode, you could run the sample like deepstream-app -c config without -t option, with -t option, you will see the text shown on the ouput.

TKS, Like you said. Will subsequent versions(5.0) give freedom to modify (hide object label)?

nvinfer open sourced, you could refer to code I pasted for hiding text. or you could use option 2 as stated in 5#.

I could create plugin by nvll_osd_xxx api instead of nvdsosd. TKS