Deepstream is too slow with save picture

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) :t4
• DeepStream Version 5.1
• JetPack Version (valid for Jetson only)
• TensorRT Version 7.2
• NVIDIA GPU Driver Version (valid for GPU only) 440
• Issue Type( questions, new requirements, bugs) questions
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing) ./deepstream-test5-app -c configs/test5_config_file_src_infer.txt
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
I save picture in dsexample plug-in.Because it uses OpencV to encode images, it’s much slower.
However, in any project, it is necessary to save a complete picture of the event as it occurs.
I tried to encode images using nvJPEG, but nvJPEG does not support RGBA conversion to BGR.
What should I do?

Please refer to the sample of deepstream-image-meta-test for hradware JPEG encoder. The interfaces are introduced Object Encoder API — Deepstream Deepstream Version: 5.1 documentation

I’m sorry, but that doesn’t solve my problem.I need the original picture, not the object picture.
deepstream-image-meta-test does not suppot encode original picture.
In addition, nvds_obj_encode.h cannot see the source code and cannot be modified, which bothers me very much

When you set the object as the whole frame, the whole frame is encoded. Please refer to the APIs. Object Encoder API — Deepstream Deepstream Version: 5.1 documentation (nvidia.com)

It’s exciting to hear your answer.How do I modify parameters?
Do you mean to modify obj_meta->detector_bbox_info?

You can create a new NvDsObjectMeta and set the values as you like. No need to use obj_meta->detector_bbox_info since you don’t need it.
deepstream-image-meta-test is just a sample to show how to use the APIs, nobody says you must use obj_meta->detector_bbox_info with nvds_obj_enc_process()