How to add new attribute in NvDsObjectMeta?

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version 6.0
• JetPack Version (valid for Jetson only)
• TensorRT Version
• 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)
how to add new attribute in NvDsObjectMeta? I want add bounding box parameters of the object, except top and left and width and height,For example, add the following attributes: padding_left, padding_top, padding_right, padding_bottom.

type or paste code here
typedef struct _NvBbox_Coords {
  float left;            /**< Holds the box's left coordinate
                                     in pixels. */

  float top;             /**< Holds the box's top coordinate
                                     in pixels. */

  float width;           /**< Holds the box's width in pixels. */

  float height;          /**< Holds the box's height in pixels. */
  int padding_left;
  int padding_top;
  int padding_right;
  int padding_bottom;
} NvBbox_Coords;

Thanks, this topic is not suitable for my needs. After I added some fields in NvBbox_Coords, after recompiling deepstream-app, using Segmentation fault (core dumped) an error will appear when using it.
How to add new attributes to NvDsObjectMeta elegantly?

There is no update from you for a period, assuming this is not an issue any more. Hence we are closing this topic. If need further support, please open a new one. Thanks.
why do you need to add these that attributes? you can use nvds_add_user_meta_to_obj to add custom information to objectmeta. please refer to attach_tensor_output_meta in \opt\nvidia\deepstream\deepstream-6.4\sources\gst-plugins\gst-nvinfer\gstnvinfer_meta_utils.cpp, or you can use “gint64 misc_obj_info[MAX_USER_FIELDS];” of NvDsObjectMeta to add custom information.

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