Bounding box color change according to the distance Jetson Nano

Hi everyone,

I’m working on modifying the color of the bounding boxes around detected objects using the SSD algorithm in Jetson Inference. The color should change based on the object’s distance, which I’m determining using XY coordinates. I’m currently stuck at the initial stage of figuring out where to implement the color changes for the bounding boxes.

Thanks in advance!