Displaying object detection confidence scores with the custom object detector

How can I display the confidence score for the detected objects alongside the bounding box visualisation and object class ID and distance with the custom detector?

Hello @a11s,

You can mimic how we display the class ID, in the render2D call in the main loop.

It’s a call to cv2.putText, placing some text at some coordinates.
You can add the confidence display here.