作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2022, Vol. 48 ›› Issue (1): 296-304. doi: 10.19678/j.issn.1000-3428.0059680

• 开发研究与工程应用 • 上一篇    下一篇

基于深度学习的工业视觉箱体字符识别与判断

葛永杰1,3, 王丽丹1,2,3,4, 陈定喜5, 段书凯1,2,3,4,6, 干秀灵1,3   

  1. 1. 西南大学 电子信息工程学院, 重庆 400715;
    2. 智能传动和控制技术国家地方联合工程实验室, 重庆 400715;
    3. 类脑计算与智能控制重庆市重点实验室, 重庆 400715;
    4. 重庆市脑科学协同创新中心, 重庆 400715;
    5. 美的集团, 广东 佛山 528311;
    6. 西南大学 人工智能学院, 重庆 400715
  • 收稿日期:2020-10-10 修回日期:2020-12-24 发布日期:2021-01-21
  • 作者简介:葛永杰(1993-),男,硕士研究生,主研方向为机器学习、计算机视觉;王丽丹(通信作者),教授、博士、博士生导师;陈定喜,硕士;段书凯,教授、博士、博士生导师;干秀灵,硕士研究生。
  • 基金资助:
    国家重点研发计划(2018YFB1306600);国家自然科学基金(62076207,62076208,U20A20227,61672436);重庆市基础科学与前沿技术研究专项重点项目(cstc2017jcyjBX0050)。

Character Recognition and Judgment of Industrial Vision Box Based on Deep Learning

GE Yongjie1,3, WANG Lidan1,2,3,4, CHEN Dingxi5, DUAN Shukai1,2,3,4,6, GAN Xiuling1,3   

  1. 1. College of Electronic and Information Engineering, Southwest University, Chongqing 400715, China;
    2. National and Local Joint Engineering Laboratory of Intelligent Transmission and Control Technology, Chongqing 400715, China;
    3. Chongqing Key Laboratory of Brain-Inspired Computing and Intelligent Control, Chongqing 400715, China;
    4. Chongqing Brain Science Collaborative Innovation Center, Chongqing 400715, China;
    5. Midea Group, Foshan, Guangdong 528311, China;
    6. School of Artificial Intelligence, Southwest University, Chongqing 400715, China
  • Received:2020-10-10 Revised:2020-12-24 Published:2021-01-21

摘要: 工厂生产线上的商品包装外箱文本印刷存在残缺,无法及时检出会影响流通销售。制作工业商品外观信息数据集,提出基于深度学习的工业视觉箱体字符识别与匹配判断方法。合并YOLOv3中的卷积层和批量归一化层,引入GIoU作为边界框损失函数并设计自适应调整定位坐标的方法,优化在原始图像上进行文本检测定位的速度与精度。同时,训练并对比CRNN和Tesseract两种识别引擎在已裁剪文本图片上的识别性能,设计字符匹配方法判断字符识别正确与否并输出结果,从而减少误判。对基于该方法的系统进行生产线实测,实验结果表明,其识别准确率可达99.5%,单件商品的外观拍照、检测识别、输出结果耗时仅3 s左右,表明所提方法能够实现实时监测。

关键词: 深度学习, YOLOv3算法, 卷积递归神经网络, 字符识别, 外观信息, 实时监测

Abstract: If the incomplete text printing on commodity packaging boxes produced by factory production lines cannot be detected in time, the sales and circulation of the commodities will be affected.This paper presents a deep learning-based box character recognition and matching method for industrial vision, and also makes a data set of industrial commodity appearance information for the method.By merging the convolutional layer and the batch normalization layer of YOLOv3, and introducing GIoU as the loss function of the boundary box, a method for adaptive positioning coordinate adjustment is designed, which improves the speed and accuracy of text detection and location on the original image.Then the recognition performance of the trained CRNN and Tesseract engines on cropped text images is compared.The designed character matching method is used to judge whether the character recognition result is correct, and the result is output, which reduces the misjudgment.The system based on this method is tested on a production line, and the experimental results show that the system displays an accuracy of 99.5%.It takes about 3 s to take a photo of the appearance, detect and recognize the characters, and output the result of a single product, which demonstrates that the proposed method enables real-time monitoring.

Key words: deep learning, YOLOv3 algorithm, Convolutional Recurrent Neural Network(CRNN), character recognition, appearance information, real-time monitoring

中图分类号: