Showing confidence levels on bounding boxes within deepstream

We will be adding confidence in metadata on DS 5.0 recently.
If you cannot wait the new DS version, you need to modify the source code to achieve you goal.

  1. refer nvinfer is not populating 'confidence' field in NvDsObjectMeta (DS 4.0) - #20 by CJR to set the confidence value in meta data.
    2.if you want to display confidence using OSD, U can modify gstnvinfer_meta_utils.cpp and modify the label that we set in function attach_metadata_detector , you can append confidence value as string along with the class string.