电子科技 ›› 2020, Vol. 33 ›› Issue (2): 60-65.doi: 10.16180/j.cnki.issn1007-7820.2020.02.011

• • 上一篇    下一篇

基于卷积神经网络的PCB板通用分拣算法

王正军,姚一鸣,陈龙   

  1. 上海理工大学 机械工程学院,上海200093
  • 收稿日期:2019-01-14 出版日期:2020-02-15 发布日期:2020-03-12
  • 作者简介:王正军(1993-),男,硕士研究生。研究方向:机器视觉。|姚一鸣(1993-),男,硕士研究生。研究方向:机器视觉。|陈龙(1978-),男,博士,副教授。研究方向:产品智能计算设计,机器视觉与机器人。
  • 基金资助:
    国家自然科学基金(51475309);国家自然科学基金(61772163)

PCB Board Common Sorting Algorithm Based on Convolutional Neural Network

WANG Zhengjun,YAO Yiming,CHEN Long   

  1. School of Mechanical Engineering,University of Shanghai for Science and Technology,Shanghai 200093,China
  • Received:2019-01-14 Online:2020-02-15 Published:2020-03-12
  • Supported by:
    National Natural Science Foundation of China(51475309);National Natural Science Foundation of China(61772163)

摘要:

传统PCB板分拣算法特征点由人工提取,位姿计算方法单一,且存在预处理步骤繁琐、样本要求高、位姿精度低、适用性低等缺点。为解决上述问题,文中提出一种基于卷积神经网络的PCB板通用分拣算法。改进的CaffeNet网络模型自动学习大量图片数据中PCB板的深层特征,并完成PCB板自动识别分类。运用改良RANSACS算法提高ORB算法特征点匹配正确率,采用最小二乘法计算模板图片与待匹配图片间角度差,以实现各类PCB板快速定位。实验证明,算法分拣正确率达到99.35%,具有良好的准确率和分拣效率。

关键词: 卷积神经网络, PCB板, 特征提取, CaffeNet, ORB算法, RANSACS算法, 最小二乘法

Abstract:

The feature points of the traditional PCB board sorting algorithm are manually extracted, and the pose calculation method is single, which has the disadvantages of complex pretreatment steps, high sample requirements, low pose accuracy and low applicability. To solve the above problems, a general sorting algorithm for PCB board based on convolution neural network was proposed in this paper. An improved CaffeNet network model was constructed to automatically learn the deep features of PCB boards in a large number of image data, completed the automatic recognition and classification of PCB boards. The modified RANSACS algorithm was used to improve the accuracy of feature point matching of ORB algorithm, and the least square method was conducted to calculate the angle difference between the image of the board and the image to be matched, so as to realize the rapid positioning of all kinds of PCB boards. The result showed that the sorting accuracy of the algorithm reached 99.35%, which had good accuracy and sorting efficiency.

Key words: CNN, PCBboard, featureextraction, CaffeNet, ORBalgorithm, RANSACSalgorithm, least squares

中图分类号: 

  • TP312