ubuntu20.04进行相机内参标定

一、ros自带标定程序

参考链接
ROS下采用camera_calibration进行单目相机标定
相机内参标定究竟标了什么

1、程序安装启动

1.流程

1)安装camera_calibration
sudo apt-get install ros-noetic-camera-calibration

(2)启动ros主节点
roscore

(3)新终端启动相机节点
cd ~/桌面/Project/rtsp_ws
roslaunch rocon_rtsp_camera_relay rtsp_camera_relay.launch --screen

(4)新终端运行标定程序
rosrun camera_calibration cameracalibrator.py --size 11x8 --square 0.06 image:=/rtsp_camera_relay/image camera:=/camera --no-service-check

2.错误记录

  1. ImportError: /lib/libgdal.so.26: undefined symbol: TIFFReadRGBATileExt, version LIBTIFF_4.0
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/home/chen/anaconda3/lib/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/opt/ros/noetic/lib/python3/dist-packages/camera_calibration/camera_calibrator.py", line 107, in run
    self.function(m)
  File "/opt/ros/noetic/lib/python3/dist-packages/camera_calibration/camera_calibrator.py", line 188, in handle_monocular
    drawable = self.c.handle_msg(msg)
  File "/opt/ros/noetic/lib/python3/dist-packages/camera_calibration/calibrator.py", line 945, in handle_msg
    gray = self.mkgray(msg)
  File "/opt/ros/noetic/lib/python3/dist-packages/camera_calibration/calibrator.py", line 351, in mkgray
    if self.br.encoding_to_dtype_with_channels(msg.encoding)[0] in ['uint16', 'int16']:
  File "/opt/ros/noetic/lib/python3/dist-packages/cv_bridge/core.py", line 99, in encoding_to_dtype_with_channels
    return self.cvtype2_to_dtype_with_channels(self.encoding_to_cvtype2(encoding))
  File "/opt/ros/noetic/lib/python3/dist-packages/cv_bridge/core.py", line 91, in encoding_to_cvtype2
    from cv_bridge.boost.cv_bridge_boost import getCvType
ImportError: /lib/libgdal.so.26: undefined symbol: TIFFReadRGBATileExt, version LIBTIFF_4.0
QObject::moveToThread: Current thread (0xfa3730) is not the object's thread (0x7fd748085950).
Cannot move to target thread (0xfa3730)

解决办法:先运行下面代码

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtiff.so.5
参考:https://www.ngui.cc/article/show-922806.html?action=onClick

2、标定过程

界面打开后没有X、Y按钮,因为标定板还没有进入画面
移动标定板,采集足够数据后点击标定、保存。
具体要求依照参考链接来进行。

二、Autoware相机内参标定

1、安装autoware.ai

链接: ubuntu20.04镜像方法安装Autoware.ai

没有继续,待补充

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值