Ask Your Question

Revision history [back]

solvePnP with fixed camera coordinates

I have a camera on a building, and I know the camera coordinates accurately from a survey. My surveyed coordinates are in the world frame, so I use an estimate of rvec to calculate tvec in the camera frame.

I am using the solvePnP function with an initial estimate for tvec, zeros for rvec, and useExtrinsicGuess=True. My result always has tvec different to the initial estimate. How to I constrain the solution so that tvec is not changed?