Efficient Perspective-n-Point (PnP)
Learn how to use the efficient PnP algorithm to estimate the pose of a camera.
Overview
The perspective-n-point algorithm, or PnP for short (also known as the projective-n-point algorithm), is used frequently in computer vision to efficiently and accurately estimate the pose of a camera in 3D space. It accomplishes this by solving a system of equations, which involve the camera’s
The perspective-n-point algorithm
The purpose of the PnP algorithm is to estimate all six degrees of freedom of a calibrated camera. That is, it estimates the rotation
In the equation above,
Camera intrinsics matrix
is known (i.e., the focal length, principal point, etc.) All point correspondences are not collinear (i.e., we need 3D points with triangulation)
There are several variations of the PnP algorithm depending on how many points we wish to solve for. We first look at the minimal case, where