Defining Camera Parameters

Given a simple digital image that contains an image of a rectangle of known sizes. How can I - with some degree of accuracy determine the parameters of this camera?

I'm more interested in Pan-, Tilt- and Swing angles. If desired, the distance to the rectangle would be nice.

I confirm 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 these tasks?

+2
image-processing projection photography photogrammetry
source share
2 answers

What you are looking for are camera calibration algorithms. Commonly used Zhang algorithm .

For more information on camera calibration, a good source is the Hartley and Sisserman tutorial.

+2
source share

for a slightly simpler introduction and code example see (IIRC chapter 12)

https://covers.oreilly.com/images/9780596516130/cat.gif

+1
source share