基于卷积神经网络的印刷电路板色环电阻检测与定位方法  被引量:9

Method for Color-ring Resistor Detection and Localization in Printed Circuit Board Based on Convolutional Neural Network

在线阅读下载全文

作  者:刘小燕[1,2] 李照明 段嘉旭 项天远 LIU Xiaoyan;LI Zhaoming;DUAN Jiaxu;XIANG Tianyuan(College of Electrical and Information Engineering,Hunan University,Changsha 410082,China;Hunan Key Laboratory of Intelligent Robot Technology in Electronic Manufacturing,Changsha 410082,China;Areospace Information Research Institute,Chinese Academy of Sciences,Beijing 100094,China)

机构地区:[1]湖南大学电气与信息工程学院,长沙410082 [2]电子制造业智能机器人技术湖南省重点实验室,长沙410082 [3]中国科学院空天信息创新研究院,北京100094

出  处:《电子与信息学报》2020年第9期2302-2311,共10页Journal of Electronics & Information Technology

基  金:国家自然科学基金(61973108,U1913202);电子制造业智能机器人技术湖南省重点实验室开放基金(IRT2018001)。

摘  要:色环电阻是印刷电路板(PCB)中最常用的电子元器件之一,主要依靠色环的排列顺序和颜色等视觉信息进行区分,易发生装配错误。但是色环电阻装配质量的人工检测方法效率低、误检率高,而传统的基于图像处理技术的自动检测方法鲁棒性较差,难以解决不同拍摄角度、物距及光照条件下的PCB板色环电阻检测问题。针对这一问题,该文提出一种基于卷积神经网络(CNN)的PCB板色环电阻自动检测与定位方法,首先采用编码器-解码器结构的卷积神经网络模型及带有权重的交叉熵损失函数的网络训练方法,较好地解决了复杂光照及场景下PCB板色环电阻的图像分割问题;然后采用最小面积外接矩形方法定位单个色环电阻,并通过仿射变换对色环电阻位置进行垂直校正;最后通过高斯模板匹配方法实现了色环电阻的色环定位。采用1270幅PCB图像对该文方法进行了实验和验证,并与传统的基于形态学和基于模板匹配的色环电阻检测方法进行了对比,结果表明,该文方法在召回率、准确率及重叠度等性能指标上具有明显优势,处理速度快,能满足实际应用要求。The color-ring resistor is one of the most commonly used electronic components in Printed Circuit Board(PCB).It is featured by sequential color rings,which often brings assembling errors,however.Manual detection of color-ring resistors has low efficiency and high false detection rate.Traditional image-based automatic detection methods have difficulties in dealing with PCB images under various illuminations,imaging distance and views.To solve this problem,an automatic detection and localization method for PCB color-ring resistor is proposed based on Convolution Neural Network(CNN).Firstly,the encoder-decoder CNN model is established and trained using weighted cross-entropy loss function.With CNN,color-ring resistors are segmented from PCB images with complex illumination and scenes.Secondly,each color-ring resistor is localized using minimum area bounding rectangle,and its position is adjusted to the vertical direction by affine transformation.Finally,the localization of color rings on the resistor is achieved by Gaussian template matching.The proposed method is tested and verified by 1270 PCB images,and the result is compared with that of the traditional method(method based on geometric contour,and method based on template matching).It is shown that the proposed method has obvious advantages in performance indices,including recall rate,precision,and intersection of unions,which can meet the requirements of practical applications.

关 键 词:图像分割 色环电阻 卷积神经网络 印刷电路板 

分 类 号:TN911.73[电子电信—通信与信息系统] TP391.41[电子电信—信息与通信工程]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象