I want to crop an image in OpenCV and then pass it to DeepStream

Hi,

You can check this comment for the detail:

To access the image buffer, it’s required to register with EGL first.
Thanks.