1 | initial version |
If you use solvePnP, you get rvec and tvec. tvec represents the distance between the camera and the world (0,0,0), and rvec represents the translation. So, assuming that one of your 3D points is (0,0,0), which you can always ensure by subtracting the value of one 3D pointfrom all of them, the distance from the camera to that point is the norm of tvec.