NvDsInferParseObjectInfo modify for customdata

I need angle, so I am trying to modify it as follows.

typedef struct
{
  /** ID of the class to which the object belongs. */
  unsigned int classId;

  /** Horizontal offset of the bounding box shape for the object. */
  unsigned int left;
  /** Vertical offset of the bounding box shape for the object. */
  unsigned int top;
  /** Width of the bounding box shape for the object. */
  unsigned int width;
  /** Height of the bounding box shape for the object. */
  unsigned int height;
  /** Object detection confidence. Should be a float value in the range [0,1] */
 **unsigned int angle;**
  float detectionConfidence;
} NvDsInferObjectDetectionInfo;

and compiled nvdsinfer and gst-nvinfer
(Modifying the struct NvDsInferObjectDetectionInfo in nvdsinfer.h)

But I can’t get the angle from the NvDsObjectMeta inside the probe. Where do I need to modify?

No. You can not modify this data structure. There are many deepstream rely on the same structure. If you change it, the libraries will fail to work.

The suggestion is to customize your own postprocessing by tensor output Gst-nvinfer — DeepStream 6.0 Release documentation and use usermeta to transfer the angle data. NVIDIA DeepStream SDK API Reference: _NvDsObjectMeta Struct Reference

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