Inference using SGIE on only part of the PGIE bounding boxes

You can customize the SGIE preprocess with Gst-nvdspreprocess (Alpha) — DeepStream documentation. The gst-nvdspreprocess source code graph may help you to understand the structure of nvdspreprocess library implementation DeepStream SDK FAQ - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums