Bounding box transforms

Please can anyone guide me on how to do bbox transforms efficiently while doing object detection. I’ve seen how it works with the application level api thanks to @muellerzr but I’m stuck trying to implement it with the low level api