Introduction - If you have any usage issues, please Google them yourself
Zhang Zhengyou based 2D calibration for camera calibration by a picture, the result is a homography, extraction based on corner Opencv, the calibration is calculated to write your own, there are comments and principles have been applied in engineering practice.