Need advice: Image pre-processing between PGIE and SGIE. Custom SGIE output - feature-vector

GPU would be perfect for performance and to avoid unnecessary memory copying. Is there some image manipulation API in DeepStream?

But I’m ready to begin with CPU and OpenCV API to make something viable.

I wonder how such pre-processing should be performed conceptually with DeepStream API and GStreameer pipeline.

How to make transformation? How to point SGIE to transformed images instead of PGIE output bboxes?

Advice for both CPU/GPU based transformation techniques would be great.