Calibration_ZhangZhengyou_Method
Calibrate the camera with Zhang Zhengyou method (in both distortion case and no distortion case)
本代码是知乎文章相机标定之张正友标定法数学原理详解(含python源码)的源代码。
- "run_calib_IR.py"和"run_calib_RGB.py"分别对应"./pic/IR_camera_calib_img"文件夹和"./pic/RGB_camera_calib_img"文件夹;
- "./pic/IR_camera_calib_img"文件夹下图片含有畸变,执行"run_calib_IR.py"得到到相机的内外参数与畸变参数,并对畸变图片做矫正,矫正图片保存在"./pic/IR_dedistortion"文件夹下;
- "./pic/RGB_camera_calib_img"文件夹下图片不含畸变,执行"run_calib_RGB.py"得到到相机的内外参数与畸变参数;
- 棋盘格规格为12乘9,格点长度0.02m,由于opencv输入参数为内角点个数,所以输入参数为11乘8。
相关配置:
win 10 / Ubuntu 16.04
python 3.7
opencv-contrib-python 3.4.2.16
opencv-python 3.4.2.16