I have created the GST pipeline like this: (Using Deepstreamer 4.0+)
filesrc -> h264parse ->nvv4l2decoder -> nvstreammux -> nvinfer -> nvtracker -> nvvidconv
-> dsexample -> nvosd
In dsexample plugin i want to access the incoming and want to perform some OpenCV operations on that and want to pass modified frame to NVOSD.
- How can i access the current frame in gst_dsexample_transform_ip?
- How can i convert current frame(surface) to cv::Mat ?
- How to pass this modified frame to OSD ?
- Can i get some source code for the same ?
(Note: I have gone through the dsexample plugins code but it does not clarify my doubts)