Deepstream app :: print confidence values

I want to print the confidence values of the detected objects by pgie and classified objects from sgie. I have found that it has been implemented on DS5.0 GA. Is there any example to do this?

Could you check the deepsteream-test1 firstly and see how to access the meta data.
BTW, pls share your setup

Yes I have tried deepsteream-test1, but found no reference regarding confidence scores. My setup is Deepstream 5.0 GA with Jetson Xavier, Jetpack 4.3

pls check NvDsObjectMeta struct, also refer https://docs.nvidia.com/metropolis/deepstream/plugin-manual/index.html#page/DeepStream%20Plugins%20Development%20Guide/deepstream_plugin_metadata.html#wwpID0ELHA