How to add a new element to NvDsObjectMeta?

• Hardware Platform (Jetson / GPU): GPU
• DeepStream Version: 5.1
• Issue Type( questions, new requirements, bugs): questions.

Hi everyone, I’m just a newbie to deepstream.

I ran the deepstream-ssd-parser with KLT tracker of deepstream-nvanalytics. According to my knowledge, the NvDsObjectMeta includes class_id, objec_id, bounding_box,… Can I add a new element to NvDsObjectMeta?. Specifically, I wanna add midpoint of object in order to display it with nvosd.

Could you guys give me some comments or advice about that? Thanks in advanced.

If you just want to display the midpoint, you can refer deepstream-test1 for how to add display meta

Thanks, I’ll notice that. Btw, how to add the midpoint to the NvDsObjectMeta? Because I need it for post-processing as well.

I didn’t get, you can calculate the mid point if already get the bbox

Yeah exactly. My question now is how to change or custom the NvDsObjectMeta in python ? Is it possible ? I also wanna draw a circle at the midpoint, how can I do it ?

Osd is used to do the real draw work, so you just add the display meta for circle and osd will help you do that, refer NvOSD — Deepstream Deepstream Version: 5.1 documentation