Store primary detector and secondary classifier output into txt or json file

• Hardware Platform GPU
• DeepStream Version 5
• TensorRT Version 7.0
• NVIDIA GPU Driver Version 460
• Issue Type question

How to format and output the information from pgie and sgie to a TXT or JSON file?
Just like using deepstream-app, specify “gie-kitti-output-dir” in Application Group.

You can refer to function write_kitti_output in deepstream_app.c, you need to add one buffer probe function after sgie like OSD for getting both pgie and sgie information.