Is it possible to remove object detection text and bounding boxes, but still use nvosd for top-left display text?

I am working on head count detection. I am using nvdsosd to display the head count. For this, I set these properties to remove the bounding boxes and the text. But when I set display-text=0, the head count is also gone.

{“display-text”: 1, “display-bbox”: 0}

Is it possible to remove object detection text “face 4” but not the display-text “head count=2” (as shown in the figure)?

Thank you,

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Orin Nano
• DeepStream Version 6.2
• JetPack Version (valid for Jetson only) 5.1.1
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

You can try to find the text_paramsthat you need to remove in the display_meta structure. Then adjust the font_params to make the text_params transparent.

Thanks for the response @yuweiw.

I check the font_size in font_params under text_params. But I see there are 16 text_params and not sure which one should I get font_size to be 0 to disable the text “face4” on top of the object.

Nevertheless, I see the all of them are 0.

Can you please provide some reference codebase on how to handle it effectively?

You can refer to our c/c++ code nvosd_sink_pad_buffer_probe in /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-avsync/deepstream_avsync_app.c, then simply convert it to Python code.
You can search for all txt_params in the for (l = display_meta_list; l != NULL; l = l->next) code first. If it turns out to be a face field, just set the font_params to make it transparent.

PS: I am using Deepstream 6.2 version. I dont find deepstream-avsync\deepstream_avsync_app.c file anywhere.


I dont find that file in my /opt/nvidia/deepstream directory. Nevertheless, I did handle it by setting these two parameters to 0

obj_meta.text_params.font_params.font_size = 0
obj_meta.rect_params.border_width = 0

Thanks for the support @yuweiw

Glad to hear that. DeepStream should be installed in the following directory: /opt/nvidia/deepstream in your system. There are many C/C++ demo in the /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/ path that you can refer to.

Yes. It is installed at that location, but I dont know why I dont find deepstream-avsync folder inside it.

Am I missing something here?

Sorry, my fault. The deepstream-avsync app is just provided in dgpu version and you are working on Jetson. You can download our dgpu version of the package and refer to the code in it.

1 Like

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