Frames as an input for Deepstream python app

You can google by yourself. E.G. python - Receive Numpy Array Realtime from GStreamer - Stack Overflow

Or you can refer to How to get numpy array frame from deepstream 5 - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums