DOI:10.3969/j.issn.1003-5060.2026.08.003
基于机器视觉的极柱焊点定位算法研究
陈甦欣,刘少壮,马海亭
(合肥工业大学机械工程学院,安徽合肥230009)
摘要
在锂电池包生产时, 极柱焊点的准确定位和高的定位精度及速度对于焊接质量非常重要。文章提出一种基于机器视觉的电池模组极柱焊点定位算法。首先, 对采集到的图像进行灰度化、双边滤波去噪、Gamma矫正、自适应二值化、形态学操作等预处理操作; 然后, 通过改进的 Mean-Shift 聚类算法筛选并分离矩形与圆轮廓, 经亚像素处理后采用随机抽样一致性(random sample consensus, RANSAC)算法拟合 4 条直线, 并采用基于改进的圆心聚类算法拟合圆; 最后, 使用得到的直线方程和圆方程计算出焊点坐标。实验结果表明, 文章算法定位速度快、精度高, 能够满足实际工业生产的要求。
关键词
机器视觉;焊点定位;聚类算法;直线拟合;圆拟合
中图分类号:TP391.4
文献标志码:A
文章编号:1003-5060(2026)08-1021-06
Research on pole weld joint positioning algorithm based on machine vision
CHEN Suxin, LIU Shaozhuang, MA Haiting
(School of Mechanical Engineering, Hefei University of Technology, Hefei 230009, China)
Abstract
In the production of lithium battery packs, the accurate positioning and high positioning accuracy and speed of the pole weld points are crucial for the quality of the welding. This paper proposes an algorithm for the positioning of battery module pole weld points based on machine vision. Firstly, the acquired images were preprocessed by grayscale, bilateral filtering and denoising, gamma correction, adaptive binarization and morphological operations. Then, rectangle and circular contours were filtered and separated through an improved Mean-Shift clustering algorithm. After sub-pixel processing, the random sample consensus(RANSAC) algorithm was used to fit four straight lines, and an improved center-based clustering algorithm was used to fit circles. Finally, the weld point coordinates were calculated by using the obtained linear and circular equations. The experiments have demonstrated that the algorithm possesses high positioning accuracy and speed, which satisfies the requirements of industrial production.
Keywords
machine vision; weld joint positioning; clustering algorithms; straight line fitting; circle fitting
收稿日期:2024-05-27
修回日期:2024-07-30
基金项目:安徽省重点研究与开发计划资助项目(202304a05020079)