Ask Your Question

3D pose estimation in a known object using solvePnP

asked 2018-05-22 11:28:42 -0500

I am doing 3D pose estimation in a known object using 5 3D points and the corresponding 2D points like in this tutorial .

How can i find the camera position w.r.t the object. I want to measure the distance between the object and the camera. Z coordinate is constant.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-05-24 18:43:33 -0500

Tetragramm gravatar image

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.

edit flag offensive delete link more


Hi,Tetragramm.I've asked a question.I hope you could give me some help.Thanks a lot!

zdczdcc gravatar imagezdczdcc ( 2018-05-30 03:57:04 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-05-22 11:28:42 -0500

Seen: 252 times

Last updated: May 24 '18