OpenCV Mat as Input

I am trying to run this app : deepstream_python_apps/apps/deepstream-segmentation at master · NVIDIA-AI-IOT/deepstream_python_apps · GitHub

This app takes a stored image file as input , I want to use a Mat Object from openCV as input for this deepstream pipeline , what can I do for this ? All I find are C++ references and no Python References

We do not have similar examples of such scenarios in python currently. You can try to achieve it yourself at present.
1.convert Mat Object to gstbuffer
2.use appsrc plugin with the converted gstbuffer as the source of the pipeline