camera calibration & middlepath