Issue while trying to Save output Frame in Deepstream

Hello Nvidia Team,

I am using below code deepstream pipeline for jpg inference and saving output frame in directory . But output frame not save properly .

need your support!!

Deepstream pipeline for jpg image inference -

print("Adding elements to Pipeline \n")
pipeline.add(source)
pipeline.add(jpegparser)
pipeline.add(decoder)
pipeline.add(streammux)
pipeline.add(pgie)
pipeline.add(nvvidconv)
pipeline.add(nvosd)
pipeline.add(sink)
if is_aarch64():
    pipeline.add(transform)

Code for save output frame in dir ..
masks = pyds.get_nvds_buf_surface(hash(gst_buffer), frame_meta.batch_id)
masks = np.array(masks, copy=True, order=‘C’)
frame_image = cv2.cvtColor(masks, cv2.COLOR_RGBA2BGRA)
cv2.imwrite(folder_name + “/” + str(frame_number) + “.jpg” , frame_image)

Hi @steve7878, I would reach out about this in the Deepstream forums here: DeepStream SDK - NVIDIA Developer Forums as this doesn’t seem specific to RIVA.

Hello Team ,

Thanks for replay but i am working on python app so please guide me for the same.

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