Determining camera parameters
Given a picture taken by a simple digital that contains an image of a rectangle of known dimensions. How can I - to some degree of accuracy - determine the parameters of this camera? I am mostly interested in Pan-, Tilt- and Swing angles. Optionally distance to the rectangle would be nice. I acknowledge the fact that the focal length and resolution of the camera should be known, but it can be assumed that they are available (for example through exif metadata). Are there any simple algorithms for this problems? What you are looking for are camera calibration algorithms. A commonly used one is