Deepstream6.2
Nvidia GPU V100
Hi,
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.
Thanks