1 | initial version |
Basically you did not listen to me in previous posts. In order to define depth from a 2D image, you need to use the idea of stereo vision which gives you the projection matrix. There is no simple formula to deform your rectangle into a 3D location based on a single bounding box...
Go read these documentations: