Draw more than 16 rectangle on screen display

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
x86-64 Ubuntu 20.04 LTS machine with Geforce GTX 3060
• DeepStream Version
6.1.0
• TensorRT Version
8.2.5.1
• NVIDIA GPU Driver Version (valid for GPU only)
515.48.07
• Issue Type( questions, new requirements, bugs)
I want to draw 50 rectangle on screen display, but it was limited by the parameter “#define MAX_ELEMENTS_IN_DISPLAY_META 16”,and can only draw 16 rectangle, I expected to change “#define MAX_ELEMENTS_IN_DISPLAY_META 16” to “#define MAX_ELEMENTS_IN_DISPLAY_META 64” to make it possible to draw 50 rectangle, but it didn’t work and the program has unexpectedly finished

You cannot just change the macro paras. You can acquire more display meta nvds_acquire_display_meta_from_pool()
But this will affect performance obviously.

After acquiring more display meta by nvds_acquire_display_meta_from_pool(),How should I do to display more than 16 boxes without considering the performance

I don’t have high requirements for real-time performance, mainly to display 50+ boxes

Hi. You can see python example here - How draw track in deepstream via python api?

The max lines that can be drawn on screen display is also limited by MAX_ELEMENTS_IN_DISPLAY_META=16, is there a way to change the limitation to 64, what else should I do in addition to modifying the macro paras?

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 not change the macro because there are many related codes that are not completely open source. So we suggest you use more display meta to implement your needs. Thanks

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