• Hardware Platform (Jetson / GPU) GPU • DeepStream Version 6.2 • JetPack Version (valid for Jetson only) • TensorRT Version • NVIDIA GPU Driver Version (valid for GPU only) 525 • Issue Type( questions, new requirements, bugs) questions
I’m trying to run dense object detections with lots of bounding boxes and visualize them with python deepstream. My approach is doing output parsing in python, compute boxes, each of which is a type of x and y, and then run pyds.nvds_add_obj_meta_to_frame(object_meta). However, it seems that each object_meta has max 16 MAX_ELEMENTS_IN_DISPLAY_META while I need more than 16 boxes in a frame. Is it possible to increase this number to 17+?
Maybe change #define MAX_ELEMENTS_IN_DISPLAY_META 16 to #define MAX_ELEMENTS_IN_DISPLAY_META 200 inside deepstream source code?
Another scenario is to visualize 17 keypoints for pose estimation with pyds.NvDsDisplayMeta’s num_circles, which only allows 16 keypoints at maximum. In this case, I also need to increase this limit.
nvds_add_obj_meta_to_frame is used to add object meta to frame, the number of object meta is unlimited, please refer to nvdsmeta.h
MAX_ELEMENTS_IN_DISPLAY_META is a limitation number of display meta, nvds_add_display_meta_to_frame is used to add display meta.
do you mean you want to draw every object’s 17 keypoints? currently in NvDsDisplayMeta, the max of num_circles should be MAX_ELEMENTS_IN_DISPLAY_META=16.
as you can see because a display_meta has a limit of 16 circles (keypoints), so I have to assign each keypoint to a different display_meta. However, if the limit is 17, I could assign 17 keypoints to display_meta_kpts.circle_params directly, which is easier to understand.
MAX_ELEMENTS_IN_DISPLAY_META is defined in head file, the SDK need to be rebuilt if this value is modified. maybe MAX_ELEMENTS_IN_DISPLAY_META=17 still need to be changed, the right way is add more displaymeta, which is unlimited.