一种基于贝叶斯分类器的PCB焊点缺陷检测方法
A PCB Solder Spot Defect Detection Method Based on Bayesian Classifier
DOI: 10.12677/CSA.2022.127186, PDF,    国家自然科学基金支持
作者: 张贻鹏, 彭向前, 陈立锋:湖南科技大学机电工程学院,湖南 湘潭;胡小平:湖南科技大学机电工程学院,湖南 湘潭;湖南科技大学先进矿山装备教育部工程研究中心,湖南 湘潭
关键词: 缺陷检测图像分割贝叶斯分类器Defect Detection Image Segmentation Bayesian Classifier
摘要: 针对PCB板在焊接过程中存在多焊、少焊、漏焊等焊点表面质量问题,提出了一种基于朴素贝叶斯分类器的焊点缺陷检测方法。首先,通过图像分割,获取焊点ROI区域的表面特征,建立焊点的特征参数数据集;然后,将得到的特征参数根据其特征属性,计算出先验概率及条件概率,构建朴素贝叶斯分类器对数据集进行分类识别;最后,利用训练集和测试集对分类器分类结果进行实验验证。实验表明,该方法对焊点不良的检测率达到93.4%,能满足实际使用要求。
Abstract: In order to solve the problems of welding spot surface quality in PCB welding process, an automatic welding spot surface defect detection method based on naive Bayesian classifier was proposed. Firstly, the surface characteristics of ROI region of solder spot were obtained by image segmentation, and the characteristic parameter data sets of solder dot were established. Then, the prior probability and conditional probability were calculated according to the characteristic attributes of the obtained characteristic parameters, and a naive Bayesian classifier was constructed to classify and recognize the data sets. Finally, training set and testing set were used to verify the classification results of the classifier. Experimental results showed that the detection rate of harmful welding spot could reach 93.4%, which could meet the practical requirements.
文章引用:张贻鹏, 彭向前, 胡小平, 陈立锋. 一种基于贝叶斯分类器的PCB焊点缺陷检测方法[J]. 计算机科学与应用, 2022, 12(7): 1862-1870. https://doi.org/10.12677/CSA.2022.127186

参考文献

[1] 陈寿宏, 赵爽, 马峻, 张雨璇, 郭玲. 基于多特征的SVM多分类PCB焊点缺陷检测方法[J]. 激光杂志, 2019, 40(6): 21-26.
[2] 贾正伟, 黄海松, 张松松. 基于彩色图像模板匹配的PCB多缺陷集中检测[J]. 组合机床与自动化加工技术, 2021(9): 125-129.
[3] 袁小翠, 黄志开, 马永力, 等. Otsu阈值分割法特点及其应用分析[J]. 南昌工程学院学报, 2019, 38(1): 85-90+97.
[4] 赵爽. 基于机器视觉的PCB焊点缺陷检测研究[D]: [硕士学位论文]. 桂林: 桂林电子科技大学, 2019.
[5] 魏炽旭, 何汉琳. 基于图像处理技术的PCB板缺陷检测系统设计[J]. 电子制作, 2020(21): 25-26+62.
[6] 吴福培, 邝泳聪, 张宪民, 等. 基于模式匹配及其参数自适应的PCB焊点检测[J]. 光学精密工程, 2009, 17(10): 2586-2593.
[7] 郑剑斌, 郑力新, 朱建清. 一种基于灰度的快速模板匹配方法[J]. 现代计算机(专业版), 2018(26): 52-56.
[8] 谢俊, 李畅, 左飞飞, 等. 基于机器视觉的车速传感器焊点检测[J]. 现代制造工程, 2020(6): 52-56.
[9] Stearns, C.C. and Kannappan, K. (1995) Method for 2-D Affine Trans-formation of Images. U.S. Patent 5,475,803.
[10] 杨陶, 田怀文, 刘晓敏, 等. 基于边缘检测与Otsu的图像分割算法研究[J]. 计算机工程, 2016, 42(11): 255-260+266.
[11] Otsu, N. (1979) A Threshold Selection Method from Gray-Level Histogram. IEEE Transactions on Systems, Man, and Cybernetics, 9, 62-66. [Google Scholar] [CrossRef
[12] 徐建东. 基于最小二乘法拟合的Otsu快速图像分割方法[J]. 常州大学学报(自然科学版), 2021, 33(1): 70-76.
[13] 王建敏. 朴素贝叶斯分类算法的改进与研究[D]: [硕士学位论文]. 哈尔滨: 哈尔滨理工大学, 2021.
[14] 朱丹丹, 应捷, 田谨. 基于贝叶斯分类器的车载多类障碍物分类[J]. 信息技术, 2016(1): 17-19.
[15] 张晓莉. 朴素贝叶斯分类器及其改进算法研究[D]: [硕士学位论文]. 青岛: 山东科技大学, 2020.
[16] 任柳清. 基于图像处理的PCB焊接缺陷检测方法研究及实现[D]: [硕士学位论文]. 绵阳: 西南科技大学, 2021.