Two stage camera calibration modeling and simulation