[Deepstream] How can I do my own image processing in C++?

You can refer to the FAQ DeepStream SDK FAQ - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums to access GPU memory and sync to CPU.