Hi,
You can save the raw image in a similar way.
The frame buffer can be accessed with the following function:
n_frame=pyds.get_nvds_buf_surface(hash(gst_buffer),frame_meta.batch_id)
frame_image=np.array(n_frame,copy=True,order='C')
frame_image=cv2.cvtColor(frame_image,cv2.COLOR_RGBA2BGRA)
For example, the deepstream_imagedata-multistream.py (16.1 KB) is to dump each frame into the same folder.
Thanks.