title: Can I compute camera pose from image with known scale?
body: <p>I have a photo taken from a camera (whose focal length, principle point, and distortion coefficients I know). The photo has a 8cm x 8cm post-in on a table and the center of the post-it is the origin <code>(0, 0)</code> again in cm. I've also indicated the positive-y axis on the post-it. </p>
  
  <p><a href="https://i.stack.imgur.com/ddOx2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ddOx2.png" alt="enter image description here"></a></p>
  
  <p>From this information is it possible to compute the location of the camera and the vector in which the camera is looking in Python using OpenCV? If someone has a snippet of code that does that (assuming you know the coordinates of the post-it corners already) that would be amazing!</p>