参考
棋盘格参数
标定步骤
- ROS下运行摄像头,其中相机发布图像的节点名/Camera/IDS_mono_image
rosrun pubimage pubmono
rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.0435 image:=/Camera/IDS_mono_image camera:=/Camera --no-service-check
('D = ', [-0.2560119141217324, 0.09121820514373571, 0.0008929015537432972, -0.0002949864883705548, 0.0])
('K = ', [560.745775283255, 0.0, 356.3142864442747, 0.0, 562.0282510615026, 240.27152352754922, 0.0, 0.0, 1.0])
('R = ', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0])
('P = ', [493.8046875, 0.0, 350.6994767608121, 0.0, 0.0, 533.846435546875, 240.13280532319186, 0.0, 0.0, 0.0, 1.0, 0.0])
None
# oST version 5.0 parameters
[image]
width
752
height
480
[narrow_stereo]
camera matrix
560.745775 0.000000 356.314286
0.000000 562.028251 240.271524
0.000000 0.000000 1.000000
distortion
-0.256012 0.091218 0.000893 -0.000295 0.000000
rectification
1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
projection
493.804688 0.000000 350.699477 0.000000
0.000000 533.846436 240.132805 0.000000
0.000000 0.000000 1.000000 0.000000
- 5.点击save按钮保存标定数据,在/tmp目录下会得到一个压缩包,包含标定用的图像,和标定参数的.txt,.ymal文件
![](https://images2015.cnblogs.com/blog/1096433/201702/1096433-20170210111217369-700828728.png)
使用校准后的数据在D638的实验结果
![](https://images2015.cnblogs.com/blog/1096433/201702/1096433-20170210111222635-737448915.png)