I want hide object`s labels in stream after nvdsosd
code:
NvDsObjectMeta *obj_meta = (NvDsObjectMeta *) (l_obj->data);
g_free(obj_meta->text_params.display_text);
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);
g_free(obj_meta->text_params.display_text);
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 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.