Intermediate filter(processing function) between pgie and sgie

Hi, I want to create a function after the pgie in order to select which output of the pgie feed the sgie model (identification model), and also add in sgie a new input (target bounding box).

How can I create this function and add it to the pipeline?. It is possible in python?

Best regards.

Hi,

For a customized pipeline, you will need to use c++ interface to reach the flexibility.

Here is a sample to show how to apply some update to the pgie output.
You can start your implementation from it first:
/opt/nvidia/deepstream/deepstream-4.0/sources/gst-plugins/gst-dsexample/

Thanks.

Hi,

Is everything okay when implementing?

You can do this with following steps:
1. Add a probe at the source pad of pgie
2. Filter or remove the objects that are not of interest
3. Pass it into sgie.

Thanks.