Deepstream python kafka+rtsp save the detection frame Segmentation fault (core dumped)

Please provide complete information as applicable to your setup.

**• Hardware Platform ** GPU
• DeepStream Version 6.3
**• NVIDIA GPU Driver Version (valid for GPU only)**A4000
• Issue Type( questions, new requirements, bugs)

I am try to run deepstream python with kafka and rtsp out pipeline with save image but when i add
n_frame = pyds.get_nvds_buf_surface(hash(gst_buffer), frame_meta.batch_id)
n_frame = crop_object(n_frame, obj_meta)
frame_copy = np.array(n_frame, copy=True, order=‘C’)
frame_copy = cv2.cvtColor(frame_copy, cv2.COLOR_RGBA2BGRA)
img_path = "frame
{}.jpg". format(frame_number)
cv2.imwrite(img_path, frame_copy)
got a Segmentation fault (core dumped)
frame_copy = np.array(n_frame, copy=True, order=‘C’)
This line, when an array converted to np.array, gets an error.

Can you please solve this error in the in the pipeline?

pipeline.txt (17.2 KB)

please refer to this ready-made code.

Yes, I’m referring to this code. When I convert the array to a numpy array, I get a segmentation fault error.

thank you issue has been resolve i am not set nvvidconv1.set_property(“nvbuf-memory-type”, mem_type)

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