Deepstream Outputs on other applications

Good Morning,

Is it possible to get the output instead of displaying it. I would like to create a gst plugin but get the output from it instead of showing it on the screen.

I would like to create a c++ apllication that gets the output from deepstream.

Something like
In my app:
Start gstreamer
run classifications, etc
then send me back the buffer/image and results.

Thank you for you help.

Refer to test1, probe callback can get output in metadata, also can get frame buffer
Refer to dsexample plugin, it can also get output in metadata and frame buffer.