Representing the bounding box in object detection as a triangle or a circle

sure.

exact values depend on how and what you’ve detected.

what are you detecting and how?

what’s the specific issue you have? calculating a circle’s center and radius?