Hey,
So currently in my pipeline (python) I am trying to implement some kind of blurring on the bounding boxes.
I have been able to get the frame using the following code in osd_sink_pad_buffer_probe
surface = pyds.get_nvds_buf_surface(hash(gst_buffer), frame_meta.batch_id)
frame = np.array(surface, copy=True, order='C')
frame = cv2.cvtColor(frame, cv2.COLOR_RGBA2BGRA)
# some other modifications
.
.
But after modifying the frame, how can I add it back to the pipeline?
I’ve gone though the implementation in dsexample but it’s slightly confusing how the blur is being done and the buffer is being updated. I want to try to stick to the python implementation only so it would be great if there is a solution via python itself.
I’ve tried looking in the forums but can’t seem to find any examples for this.
Any help would be highly appreciated.
Thanks.
• Hardware Platform (Jetson)
• DeepStream Version (5.0)
• JetPack Version (4.4)