Calibration tool for 3D scanner based on line laser and camera

免费提供的3D扫描仪校准工具,适用于基于激光线和相机的结构光传感器自动校准及摄像头参数调整。软件支持Windows和部分Linux系统,通过加载图片进行校准,并提供3D空间结果可视化。

Calibration tool for 3D scanner based on line laser and camera


https://github.com/jah10527/laserLineToolkit
This tool is available for free now!

It is designed to calibrate the line structured light sensor automatically as well as the camera parameters, and the 3D scanner system usually is something like the figure shown below, a camera and a laser firmly fixed together.

scanner


howto

Just clicking the laserScanner.exe file in this directory to open the mainwindow, there is a calibration menu in the menu bar, and activating it the calibration window will show you on the screen if no problem occurs and then you can have a try. By the way, there are some example images in the sample subdirectory.

Tested on win10-64bit, win7-64bit and ubuntu1604-64bit, however this version is not for any Linux system.

If there is anything puzzling around you about this software, please send an email to me, and I will try my best.

Email:jah10527@126.com
Antonio Fan
March 30th 2017

Beijing China


update

A new test program issued at April 22nd 2018, called LineLaserCalibration-2018.4.exe

A new test program issued at June 3rd 2019, called LineLaserCalibration-2019.6.exe

  • more robust
  • add visualization

guidance

The main window will show like below when you double click LineLaserCalibration-2019.6.exe.

mainwin

You are supposed to activate this tool at first before have a try to calibrate for every time you open this tool. Clicking the calibrate button, the calibrate window will show as below.

calibrate

The load images button are used to select the images for calibrate. Once a directory is selected all the images in the fold are listed in the text browser below the button. Then clicking the calibration button, the camera parameter and the light plain parameter are estimated at the same time. (Some images are shown in the process, just pressing any key to continue.)

image list

The results are written in the same directory as the exe, which are called like camera_result…txt for camera parameter and stripe_result…txt for laser parameter.

If you want to get a direct view of the result in 3D space, you can click the visualize button and the figure maybe like as below.

visualize

June 5th 2019.


more infomation (in Chinese)

<think>好的,我现在需要解决用户提到的camera calibration tool中打开按键灰色无法点击的问题。用户提到之前参考了师兄的博客,但后来发现高版本的Autoware不再自带标定工具,导致在界面上找不到相关功能[^2]。这可能和版本更新有关,所以首先需要确认用户使用的Autoware版本。 首先,用户的问题可能由几个原因导致:Autoware版本过高、依赖项未安装、权限问题,或者ROS环境配置不正确。我需要逐步分析每个可能性。 1. **Autoware版本问题**:根据引用[2],高版本的Autoware移除了内置的标定工具。用户可能需要安装旧版本,比如1.12或更早的版本,这些版本通常包含Calibration Tool Kit。或者,用户可以考虑使用单独的标定工具包,如autoware_camera_calibration,这可能需要在新的版本中手动安装。 2. **依赖项缺失**:即使安装了正确的Autoware版本,如果缺少ROS相关的依赖包,比如camera_calibration或image_pipeline,也可能导致按钮不可用。需要检查这些包是否安装,并确保ROS环境变量正确设置。 3. **权限问题**:相机设备可能需要特定的用户权限才能访问。用户需要检查/dev/video*设备的权限,可能需要将用户加入video组,或者使用sudo临时获取权限。 4. **ROS环境配置**:如果ROS_MASTER_URI或ROS_IP设置不正确,可能导致工具无法正常启动。需要确认roscore是否运行,网络配置是否正确。 接下来,我需要将这些可能性转化为具体的解决步骤,并建议用户逐一排查。例如,首先检查Autoware版本,然后安装必要的依赖,检查权限,最后验证ROS环境。同时,用户可能需要参考Autoware的官方文档或社区资源来获取更详细的指导。 另外,用户可能需要使用独立的标定工具,如ROS自带的camera_calibration包,可以通过命令行运行。这可以作为替代方案,避免依赖Autoware内置工具的版本问题。 在生成解决方案时,要确保步骤清晰,并提供具体的命令示例,如安装依赖的命令、启动roscore的方法,以及运行标定工具的指令。同时,提醒用户注意版本兼容性和权限设置,这些都是常见的问题点。 最后,需要确认用户是否成功解决了问题,并建议如果步骤无效,进一步检查日志或社区支持,以获取更深入的帮助。</think>### 解决方案:Camera Calibration Tool 打开按钮灰色问题排查 #### 1. 检查Autoware版本与标定工具兼容性 - **高版本Autoware问题**:Autoware 1.13及更高版本移除了内置标定工具[^2]。 - 若使用新版,需手动安装独立标定工具包: ```bash git clone https://github.com/autowarefoundation/autoware_camera_calibration catkin_make -DCMAKE_BUILD_TYPE=Release ``` - 或降级至支持内置工具的版本(如Autoware 1.12)。 #### 2. 验证依赖项安装 - **ROS标定包依赖**: 确保安装ROS的相机标定工具链(适用于ROS Noetic/Melodic): ```bash sudo apt-get install ros-<distro>-camera-calibration ros-<distro>-image-pipeline # 例如ROS Noetic: sudo apt-get install ros-noetic-camera-calibration ros-noetic-image-pipeline ``` #### 3. 检查设备权限 - **摄像头访问权限**: ```bash ls -l /dev/video* # 查看设备权限 # 若权限不足,临时授权: sudo chmod 666 /dev/video0 # 或永久添加用户到video组: sudo usermod -aG video $USER ``` **注销后重新登录生效**。 #### 4. 验证ROS环境配置 - **ROS核心服务与网络设置**: - 确保`roscore`已运行: ```bash roscore ``` - 检查环境变量: ```bash echo $ROS_MASTER_URI # 应为http://localhost:11311 echo $ROS_IP # 需设置为本机IP ``` #### 5. 使用替代标定工具(推荐) 若Autoware内置工具不可用,可直接使用ROS官方标定工具: ```bash rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.024 image:=/camera/image_raw camera:=/camera ``` - `--size`: 棋盘格角点数量(如8x6表示内部角点) - `--square`: 棋盘格单格边长(单位:米) --- ### 常见问题补充 - **标定界面无图像**:检查`image:=/camera/image_raw`是否与实际话题名称一致。 - **按钮仍不可用**:查看终端错误日志,常见于ROS包路径未包含或依赖冲突。 ---
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值