Bounding Box for an Object

Does anyone know how can I capture an Image (from the camera view) & produce the coordinates of the bounding box for this object on the captured image ?
Capturing image is ok but I am struggeling with the coordinates generation.