基于Halcon的机器人视觉标定与应用研究
2020-09-23高成樊易飞佟维妍
高成 樊易飞 佟维妍



摘 要: 在机器人视觉伺服领域,视觉标定是一个重要的研究方向,也是当前的研究热点。对软件标定原理进行说明,建立摄像机坐标系统和机器人世界坐标系统之间的关系,利用Halcon函数库中的算子,充分考虑了机械手的末端中心和镜头径向畸变的影响,提出基于Halcon的优化软件标定方法,实现摄像机内外参数的标定。实验结果证明,该方法在X,Y,Z方向的标定精度都较高,标定过程简单易行,完全适用于工业机器人的视觉系统标定。
关键词: 机器人; 视觉标定; Halcon; 摄像机参数; 径向畸变; 标定精度
中图分类号: TN876?34; TP24 文献标识码: A 文章编号: 1004?373X(2020)18?0178?04
Abstract: The visual calibration is an important research direction in the field of robot visual servo, and is also one of the current research hotspots. The principle of software calibration is described in detail. The relationship between the camera coordinate system and the robot world coordinate system is established. In consideration of the influences of the terminal center of the robot hand and the radial distortion of the camera lens, an optimized software calibration method based on Halcon is proposed by means of the operator in the function library, and the internal and external parameters of the camera are calibrated. The experimental results show that the method has high calibration accuracy in X, Y and Z axis, and the calibration process is simple and easy. It is suitable for visual system calibration of industrial robots.
Keywords: robot; vision calibration; Halcon; camera parameters; radial distortion; calibration accuracy
0 引 言
機器视觉是用计算机模仿生物视觉的科学和技术,其发展与计算机视觉的进步密切相关[1?3]。近30年,国内外学者在计算机视觉方面进行了大量研究,也取得了重要突破,提出了新的理论和方法,为机器视觉的工业化奠定了理论基础。工业化的发展对装配定位精度和自动化水平要求越来越高。基于计算机视觉的工业机器人定位精度高、成本低、自动化和智能化水平高,机器视觉在定位和装配领域有广泛的应用[4]。
因为机器视觉的软件和硬件产品的巨大需求,很多公司开发了自己的视觉函数库,方便用户编写应用程序。目前,OpenCV,Halcon和LabVIEW等函数库在工业生产应用较广。Halcon是一套完整的标准机器视觉算法软件包,广泛应用于机器视觉集成开发环境。利用Halcon算子,能明显缩短计算机视觉应用系统的开发周期、降低成本,并促进了机器视觉、医学影像和图像分析处理的快速发展。……
