How to access value or shape of any deep stream c++ plugin variable?

Hi Team,

I am trying to run a sample c++ deepstream application. This application uses one deepstream plugin NvDsBatchMeta *bmeta.

I would like to print the value that *bmeta has and also its shape if any.

How can I do that in c++?

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version
• 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)

• Hardware Platform (Jetson / GPU): Jetson AGX Xavier
• DeepStream Version: 6.0
• JetPack Version (valid for Jetson only): 6.1
• TensorRT Version: 8.0.1
I have successfully executed the deep-stream6.0 c++ sample application “deepstream-3d-action-recognition” on jetson AGX Xavier.
But I would like to access the value of few variables in c++ sample application and one of them is:
NvDsPreProcessBatch* batch
So my question is how can I print the value stored in the batch and also the shape if any.

can you refer below sample to understand how to parser metadata.
/opt/nvidia/deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-test1/deepstream_test1_app.c

1 Like

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