Here a little review / introduction to 'BLAM' the blender camera calibration toolkit.
Download: https://github.com/stuffmatic/blam
Stuffmatic: http://www.stuffmatic.com/
This add-on helps you to set up your camera for modeling from perspective images.
Have fun!