I want to save the image after drawing bbox/label on the image. But if I add a pad probe function in/after nvdsosd; in probe function: I call nvds_obj_enc_process and nvds_obj_enc_finish to save the whole image. System will error: Segmentation Fault
I have run your code on my env (JP6.1 & DeepStream7.1 ), it runs well without any segmentation. The version of DeepStream you are using is too old. Can you consider other options to fulfill your needs?
You can refer to this 323790 to try to use multifilesink to save all the images.