首页|期刊导航|广西科技大学学报|基于Halcon深度学习的FPC铆点缺陷检测

基于Halcon深度学习的FPC铆点缺陷检测OA

Defect detection of FPC rivet points based on Halcon deep learning

中文摘要英文摘要

针对人工检测柔性电路板(flexible printed circuit,FPC)铆点缺陷存在效率低下的弊端,以及传统机器视觉方法仅通过提取铆点面积、宽度等特征进行缺陷判定时误判率较高的问题,提出一种基于 Halcon 深度学习的FPC 铆点缺陷检测方法.首先,使用 Halcon 算子对缺陷图像进行灰度变换、阈值分割、形态学处理、特征提取、中心点定位和感兴趣区域(region of interest,ROI)分割,从而获得缺陷数据集;其次,利用 Halcon 算子构建的MobileNetV2 轻量化网络模型对数据集进行训练,以获得训练模型;最后,将训练好的模型导入检测软件中,对工业相机采集的图片进行检测,并显示最终判定结果.将该方法与 AlexNet 和 ResNet-50 模型的检测效果进行对比可知,MobileNetV2 模型不仅具备更低的错误率,而且在检测相同 ROI 时耗时更短.在实际检测中,该方法对 FPC 铆点缺陷的检测准确率达到 97.40%,且单张图像的检测时间小于 1 s,满足 FPC 铆点缺陷检测的任务需求,有效解决了传统机器视觉方法进行缺陷判定时误判率高的问题.

Manual inspection of flexible printed circuit(FPC)rivet defects suffers from low efficiency,while traditional machine vision methods,which rely on features such as rivet area and width for defect classification,often result in high misclassification rates.To address these issues,a FPC rivet point defect detection method based on Halcon deep learning was proposed.First,Halcon operators were used to perform grayscale transformation,threshold segmentation,morphological processing,feature extraction,center point localization,and ROI region segmentation on the defect image to obtain a defect dataset.A lightweight MobileNetV2 network model constructed with Halcon operators was then used to train the dataset to obtain a trained model.Finally,the trained model was imported into the detection software to inspect images captured by industrial cameras and display the final judgment results.This method effectively solves the problem of high misjudgment rate in traditional machine vision methods due to the use of rivet area,width,and other features for defect determination.In the comparative analysis of detection effects with AlexNet and ResNet-50 models,the MobileNetV2 model not only shows a lower error rate but also takes less time when detecting the same ROI area.In actual detection,the accuracy rate of FPC rivet point detection reached 97.40%,and the detection time for a single image is less than 1 second,meeting the task requirements of FPC rivet point defect detection.

孔富生;潘盛辉;李镇楠

广西科技大学 自动化学院,广西 柳州 545616广西科技大学 自动化学院,广西 柳州 545616江苏力德尔电子信息技术有限公司,江苏 南通 226600

信息技术与安全科学

FPC铆点缺陷检测HalconMobileNetV2深度学习

FPC rivet pointdefect detectionHalconMobileNetV2deep learning

《广西科技大学学报》 2026 (2)

52-60,9

广西自然科学基金项目(2018GXNSFAA138122)资助

10.16375/j.cnki.cn45-1395/t.2026.02.007

评论