# Display confidence in the bounding box detected object

**URL:** <https://forums.developer.nvidia.com/t/display-confidence-in-the-bounding-box-detected-object/217852>\
**Category:** DeepStream SDK\
**Tags:** jetson-inference, tensorrt, gstreamer, deepstream\
**Created:** [June 16, 2022, 6:04am UTC](https://forums.developer.nvidia.com/t/display-confidence-in-the-bounding-box-detected-object/217852 "2022-06-16T06:04:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![soundarrajan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@soundarrajan](https://forums.developer.nvidia.com/u/soundarrajan)\
**Post date:** [June 16, 2022, 6:04am UTC](https://forums.developer.nvidia.com/t/display-confidence-in-the-bounding-box-detected-object/217852/1 "2022-06-16T06:04:03Z")

</div>

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU)** : Jetson Nano  
**• DeepStream Version** : 6.0  
**• JetPack Version (valid for Jetson only)** : 4.6  
**• TensorRT Version** : 8.2  
**• NVIDIA GPU Driver Version (valid for GPU only)** :  
**• Issue Type( questions, new requirements, bugs)** : question  
**• 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)**

Hi,

1. I want to display the confidence value of the detected object. Current label only showing with bbox. Expected: Label + confidence  
Is there any implemented example for this NvDsInfer API to refer?  
[NvDsInfer — Deepstream Deepstream Version: 6.1.1 documentation](https://docs.nvidia.com/metropolis/deepstream/python-api/PYTHON_API/NvDsInfer/NvDsInfer_toc.html)

2. How can i print the FPS and inference timing in the output rendered video? Currently frame number only printing.

3. Is there any way to print or save raw metadata from gst\_buffer? I tried,  
frame\_meta = pyds.NvDsFrameMeta.cast(l\_frame.data)  
print(‘\n-----printing frame meta-----’)  
print(frame\_meta)  
It is printing only pointers actually…

---

<div class="post-metadata">

**Author:** ![yuweiw](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yuweiw/32/101255_2.png) [@yuweiw](https://forums.developer.nvidia.com/u/yuweiw)\
**Post date:** [June 16, 2022, 11:22am UTC](https://forums.developer.nvidia.com/t/display-confidence-in-the-bounding-box-detected-object/217852/3 "2022-06-16T11:22:03Z")

</div>

Hi @soundarrajan , you can write anything or draw anything you want by the NvDsDisplayMeta struct.  
You can refer deepstream\_test1\_app.c

```auto
static GstPadProbeReturn
osd_sink_pad_buffer_probe (GstPad * pad, GstPadProbeInfo * info,
    gpointer u_data)

```

First, get the data you wanted, and set it to the “display\_meta”.  
Thanks

---

<div class="post-metadata">

**Author:** ![soundarrajan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@soundarrajan](https://forums.developer.nvidia.com/u/soundarrajan)\
**Post date:** [June 16, 2022, 11:34am UTC](https://forums.developer.nvidia.com/t/display-confidence-in-the-bounding-box-detected-object/217852/4 "2022-06-16T11:34:58Z")

</div>

Hi @yuweiw,

I think you are not getting what i’m trying to say…  
**1) Expected output:**  
 ![image](https://global.discourse-cdn.com/nvidia/original/3X/5/0/50a0a0fdf7f658e5500b129174b13d8f4c4748cd.jpeg)  
I can see Python API to get detectionConfidence, [NvDsInferObjectDetectionInfo — Deepstream Deepstream Version: 6.1.1 documentation](https://docs.nvidia.com/metropolis/deepstream/python-api/PYTHON_API/NvDsInfer/NvDsInferObjectDetectionInfo.html) but i coudn’t see any sample implementation to refer.

**2) FPS** should be something like below image (FPS is printing in red color)

 ![image](https://global.discourse-cdn.com/nvidia/original/3X/a/9/a934d3b62fdfdedad18c19e9e664d305bfd80351.jpeg)

**3) Metadata save**  
We are saving all data in GST\_BUFFER and then probe in callback right?  
I want to save the raw metadata whichever in the GST\_BUFFER.

---

<div class="post-metadata">

**Author:** ![soundarrajan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@soundarrajan](https://forums.developer.nvidia.com/u/soundarrajan)\
**Post date:** [June 17, 2022, 5:41am UTC](https://forums.developer.nvidia.com/t/display-confidence-in-the-bounding-box-detected-object/217852/5 "2022-06-17T05:41:20Z")

</div>

Any updates on my queries?

Please let me know if any inputs are details required from my end…

---

<div class="post-metadata">

**Author:** ![yuweiw](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yuweiw/32/101255_2.png) [@yuweiw](https://forums.developer.nvidia.com/u/yuweiw)\
**Post date:** [June 17, 2022, 6:40am UTC](https://forums.developer.nvidia.com/t/display-confidence-in-the-bounding-box-detected-object/217852/6 "2022-06-17T06:40:30Z")

</div>

Hi, @soundarrajan Do you run our demo from the link below or your own code?  
[https://github.com/NVIDIA-AI-IOT/deepstream\_python\_apps](https://github.com/NVIDIA-AI-IOT/deepstream_python_apps)

The first one, Could you check from the python demo from the below link(cluster\_and\_fill\_detection\_output\_nms):  
[https://github.com/NVIDIA-AI-IOT/deepstream\_python\_apps/blob/master/apps/deepstream-ssd-parser/nms.py](https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/blob/master/apps/deepstream-ssd-parser/nms.py)

The second one:  
We have no the FPS and inference timing data statics now. In theory, you can draw any data that you get in the picture.  
The third one:  
You can refer [https://forums.developer.nvidia.com/t/access-frame-pointer-in-deepstream-app/79838#5375214](https://forums.developer.nvidia.com/t/access-frame-pointer-in-deepstream-app/79838#5375214).

---

<div class="post-metadata">

**Author:** ![yingliu](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yingliu/32/136703_2.png) [@yingliu](https://forums.developer.nvidia.com/u/yingliu)\
**Post date:** [July 1, 2022, 7:02am UTC](https://forums.developer.nvidia.com/t/display-confidence-in-the-bounding-box-detected-object/217852/8 "2022-07-01T07:02:12Z")

</div>

**There is no update from you for a period, assuming this is not an issue anymore.  
Hence we are closing this topic. If need further support, please open a new one.  
Thanks**

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [July 15, 2022, 7:02am UTC](https://forums.developer.nvidia.com/t/display-confidence-in-the-bounding-box-detected-object/217852/9 "2022-07-15T07:02:52Z")

</div>

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