通过修改metadata来修改一个图像中的label信息,进行扩充modify display_text in NvDsObjectMeta’s NvOSD_TextParams
A.我们想要将这个标签进行扩充,
例如让他显示距离信息,让他显示坐标信息等等,要怎么扩充呢
B.官方给的这个metadata的解释
1, what is the meaning of the attribute misc_obj_info, and can the user see it in the output of the detection video?
please refer to the code comment, it is not used to display, NvDsObjectMeta’s NvOSD_RectParams, NvOSD_TextParams are used to display.
/** Holds additional user-defined object information. */
gint64 misc_obj_info[MAX_USER_FIELDS];
2, if I want to display the detected coordinates information in the label position of the detected video result, which property should I use?
you need to modify display_text in NvDsObjectMeta’s NvOSD_TextParams, please refer to osd_sink_pad_buffer_probe in opt\nvidia\deepstream\deepstream-6.1.1\sources\apps\