Adjusted the camera calibration sample to master API.