计算机与现代化 ›› 2022, Vol. 0 ›› Issue (09): 60-67.

• 人工智能 • 上一篇    下一篇

基于Retinanet的轮毂焊缝检测定位方法

  

  1. (四川大学机械工程学院,四川成都610065)
  • 出版日期:2022-09-22 发布日期:2022-09-22
  • 作者简介:李鑫(1995—),男,湖北黄冈人,硕士研究生,研究方向:机器视觉,深度学习,E-mail: lixinhai@foxmail.com; 通信作者:任德均(1971—),男,四川成都人,副教授,硕士生导师,博士,研究方向:机器视觉,机器人,嵌入式系统,机电一体化,E-mail: rendejun@scu.edn.cn; 任秋霖(1995—),男,硕士研究生,研究方向:机器视觉,深度学习,E-mail: renqiulin@hotmail.com; 曹林杰(1997—),男,硕士研究生,研究方向:嵌入式系统,深度学习,E-mail: SCUlinjie@163.com; 闫宗一(1997—),男,硕士研究生,研究方向:机器人,深度学习,E-mail: 1835752347@qq.com。

Detection and Location Method for Hub Weld Based on Retinanet

  1. (School of Mechanical Engineering, Sichuan University, Chengdu 610065, China)
  • Online:2022-09-22 Published:2022-09-22

摘要: 提出一种基于深度学习方法的轮毂焊缝实时检测定位方法,设计轮毂焊缝视觉检测硬件平台,阐述多规格轮毂焊缝的检测定位原理,细述基于卷积神经网络的目标检测算法Retinanet以及基于Transformer架构的目标检测算法CoTNet的原理,优化Cot结构,提出CoTx结构,从而实现便捷替换卷积神经网络中通用的卷积层。在Pytorch框架下,简化Retinanet网络,通过CoTx结构和Retinanet网络的融合对比实验来优化Retinanet网络在轮毂焊缝数据集上的检测性能。实验结果表明,用CoTx结构替换Retinanet最后的几个特征提取层,可以得到更好的检测效果。在生产现场,进行为期30天的轮毂焊缝在线实时检测,平均检测精度为99.71%,单张检测时间为7 ms,达到企业生产的要求。

关键词: 轮毂焊缝, 目标检测, Retinanet, CoTNet, Transformer

Abstract: This paper proposes a real-time detection and positioning system for hub weld based on deep learning method, designs a visual inspection hardware platform for hub weld, describes the principle of the multi-specification hub weld detection and location algorithm, describes the principle of the object detection algorithm Retinanet based on convolutional neural network and the object detection algorithm CoTNet based on Transformer architecture, optimizes Cot structure and proposes Cotx structure, so that easily replaces the general convolution layer in convolution neural network. Under the Pytorch framework, this paper simplifies the Retinanet network, and optimizes the detection performance of Retinanet network on the hub weld dataset through the fusion and comparison experiment of Cotx structure and Retinanet network. Experimental results show that better detection effets can be obtained by replacing the last few feature extraction layers of Retinanet with Cotx structure. At the production site, the online real-time detection of hub weld is carried out for 30 days, with an average detection accuracy of 99.7% and a single detection time of 7ms, which can meet the requirements of the enterprise production.

Key words: hub weld, object detection, Retinanet, CoTNet, Transformer