Image Data Access after nvdsosd plugin

Nvidia GPU V100

I am trying to access image data using get_nvds_buf_surface on probe fn over nvdsosd sink pad.
i am not getting bounding boxes on the frames saved using opencv.

As per my understanding, nvdsosd plugin draw bounding boxes and other metadata on the frame buffer. In that case putting probe on nvdsosd sink pad and getting image data access using get_nvds_buf_surface should have these drawings.

code snippet to access gst_buffer:
pyds.get_nvds_buf_surface(hash(gst_buffer), frame_meta.batch_id)

code snippet to add probe on nvdsosd sink pad:
osdsinkpad = nvdsosd.get_static_pad(“sink”)
if not osdsinkpad:
sys.stderr.write(" Unable to get sink pad of nvosd \n")
osdsinkpad.add_probe(Gst.PadProbeType.BUFFER, osd_sink_pad_buffer_probe, 0)

Please help/suggest, if i am doing something wrong.


There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

get_nvds_buf_surface will get a NvBufSurface, please refer to this sample sample, which will get imge data from NvBufSurface.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.