This is an implementation of Camera Calibration method with OpenCV in C++.
Using image-processing program GIMP to find the coordinates of the frame and the corresponding pixel coordinates on the image.
Each square of the chessboard is 60mm.
To remove the perspective distortion on Donald's image.
cd <source directory>
mkdir build
cd build
cmake ..
make
./CV_donald_annotated_points ../donald_annotated_points.jpg
Showing the homography matrix from the pixel coordinates to the coordinates in the frame
Demonstrating with iTerm2
Calibrated Donald's figure:MIT © Zihan Qi