How to add classifier output medata in DeepStream

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
GPU
• DeepStream Version
6.0
• TensorRT Version
8.0
• NVIDIA GPU Driver Version (valid for GPU only)
495
• Issue Type( questions, new requirements, bugs)
Question

Hello.
I want to parse and add metadata in the DeepStream pipeline. I’m using Python, working inside the pgie buffer probe. For object detection, I’m following these guides
deepstream_python_apps/aps/deepstream-ssd-parser/deepstream_ssd_parser.py
DeepStream API Reference Guide

Now I want to parse the output of a binary classifier, add the metadata in the DeepStream format so it can handle and perform the analytics or send it to a database.
I have the confidence, class id, and string label from the classifier.
So my question is, where do I store this information?

  • NvDsObjectMeta
  • NvDsClassifierMeta
  • …?

Could you hand me a code snippet for this?

And for the future, having the data parsed in the correct format, where do I store:

  • Keypoints from pose estimation.
  • Segmentation mask.

I want DeepStream to handle automatically the drawing and test how much I can automatize.

Thanks!