Extracting Bounding Box Coordinates Passed to Secondary GIE based on operate-on-class-ids=0

**• Hardware Platform :GPU
| NVIDIA-SMI 525.125.06 Driver Version: 525.125.06 CUDA Version: 12.0 |
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
| 0 NVIDIA GeForce … Off | 00000000:01:00.0 Off | N/A |
| N/A 38C P3 N/A / 40W | 6MiB / 6144MiB | 0% Default |
| | | N/A |

| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
| 0 N/A N/A 2485 G /usr/lib/xorg/Xorg 4MiB |
• DeepStream Version
Deepstream 6.2

I’m working with the DeepStream SDK and have set up a pipeline with primary and secondary inferences. My secondary GIE is configured with operate-on-class-ids=0, meaning it should operate on the bounding boxes of the specific class ID from the primary GIE.

I would like to extract these bounding box coordinates as they are received by the secondary GIE. Could someone guide me on how to access these coordinates? Specifically, which section of the code or API calls should I focus on to retrieve the bounding box coordinates in the secondary GIE?

Thank you in advance for your assistance!

You can just add the probe fucntion to the source pad of the sgie plugin.
About how to get the coordinates, you can refer to the code below to get the coordinates.

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

Thank you for the suggestion to add a probe function to the source pad of the SGIE plugin for obtaining object coordinates. However, I’m not entirely clear on how to implement this. Could you please provide further details?

  1. How do I add a probe function to the SGIE’s source pad within the DeepStream Test5 application?
  2. Which plugin or section of the code should I refer to for this implementation?
  3. Could you kindly indicate the file path where this probe function needs to be added?

Thank you in advance!

If you use Test5, you can refer to the deepstream-app open source: opt\nvidia\deepstream\deepstream\sources\apps\sample_apps\deepstream-app.
If you just want to get the bbox and other values, you can directly set the gie-kitti-output-dir field in the config file.

Could you please specify the name of the function or plugin within the DeepStream SDK that is responsible for passing the bounding boxes generated by the primary detector to the secondary detector for further inference? We are currently using the DeepStream Test 5 application.

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

static GstPadProbeReturn
gie_primary_processing_done_buf_prob (GstPad * pad, GstPadProbeInfo * info,
    gpointer u_data)

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