How to implement screenshot in Deepstream?

I want to realize an automatic screenshot function in deepstream. Can you only modify the configuration file to achieve the related function?

No. But you can try to add some code by refering the deepstream_image_meta_test.c code pgie_src_pad_buffer_probe to save the picture when you want to do screenshot.

Can you provide more details,please?I’m not very good at C++.

First, you need to know some basic knowledge about Gstreamer.
https://gstreamer.freedesktop.org/documentation/tutorials/index.html?gi-language=c
Then you need to know some basic knowledge of DeepStream.
https://docs.nvidia.com/metropolis/deepstream/dev-guide/index.html
The API I attached is the process to save picture to jpeg format.

pgie_src_pad_buffer_probe

Also, you can refer our python code:
https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/blob/master/apps/deepstream-imagedata-multistream/deepstream_imagedata-multistream.py