为解决包装印刷品生产过程中喷涂二维码的残缺、重复和缺失等质量问题,基于机器视觉技术设计一种二维码在线实时检测系统。通过相机、镜头、光源、色标传感器、编码器、滑台模组和控制器的合理选型完成系统硬件搭建,使用可编程逻辑控制器结合色标传感器和编码器对二维码进行实时定位,配合光源利用工业相机实现二维码的在线图像采集,并基于数字图像处理技术完成采集图像预处理。使用Visual Studio平台进行上位机软件开发,实现图像采集、图像预处理、二维码识别、缺陷检测与分类等功能。系统最高二维码识别速度7个/s,对错印、漏印和重码等缺陷问题误检率<0.05%,能够满足设计要求。研究为二维码在线检测系统开发提供借鉴。
Abstract
In order to solve the quality problems of incompleteness,repetition and missing of the sprayed QR codes in the production process of packaging printing,a QR code detection system was designed based on machine vision technology.Through the reasonable selection of camera,lens,light source,color code sensor,encoder,sliding module and controller,the system hardware was built.Programmable Logic Controller was used to locate the two-dimensional code in real time in combination with color code sensor and encoder,cooperate with the light source and use industrial camera to realize the online image acquisition of two-dimensional code,and complete the image acquisition preprocessing based on digital image processing technology.The host computer software was developed using Visual Studio platform to realize the functions of image acquisition,image preprocessing,two-dimensional code recognition,defect detection and classification.The maximum two-dimensional code recognition speed of the system is 7/s,and the false detection rate for defects such as wrong printing,missing printing and duplicate code is less than 0.05%,which can meet the design requirements.The study provides reference for the development of the QR code online detection system.
关键词
包装印刷 /
二维码检测 /
机器视觉 /
图像处理
{{custom_keyword}} /
Key words
packaging printing /
QR code detection /
machine vision /
image processing
{{custom_keyword}} /
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
参考文献
[1] 吴苏炜,周新,张志伟,等.包装纸盒自动喷码检测系统设计[J].包装与食品机械,2017,35(6):30-32.WU S W,ZHOU X,ZHANG Z W,et al.Design of automatic packaging carton printing and detection system[J].Packaging and Food Machinery,2017,2017,35(6):30-32.
[2] 仝光,李解,徐飞,等.基于机器视觉与物联网云平台的无人扫路车路径规划系统设计[J].中国工程机械学报,2021,19(6):518-523.TONG G,LI J,XU F,et al.Path planning system design of unmanned road sweeper based on machine vision and internet of things cloud platform[J].Chinese Journal of Construction Machinery,2021,19(6):518-523.
[3] 王华,李卫卫,吴怀广,等.基于二维码的禽类肉产品安全溯源系统设计与实现[J].计算机应用与软件,2020,37(10):1-5.WANG H,LI W W,WU H G,et al.Design and implementation of safety traceability system of poultry meat products based on QR code[J].Computer Applications and Software,2020,37(10):1-5.
[4] 宋彬,刘丽丽,张磊,等.基于Data Matrix 码的煤矿设备信息管理[J].工矿自动化,2020,46(11):83-86.SONG B,LIU L L,ZHANG L,et al.Coal mine equipment information management based on data matrix code[J].Journal of Mine Automation,2020,46(11):83-86.
[5] 李昭,李华杰,孙建明,等.快递物流包装件分拣装置设计[J].包装与食品机械,2018,36(5):36-41.LI Z,LI H J,SUN J M,et al.Design of sorting device for express logistics packages[J].Packaging and Food Machinery,2018,36(5):36-41.
[6] 王仲,郑镕浩,付鲁华,等.光照不均匀图像的阈值分割[J].计算机应用研究,2015,32(11):3467-3470.WANG Z,ZHENG R H,FU L H,et al.Threshold segmentation of uneven illumination images[J].Application Research of Computers,2015,32(11):3467-3470.
[7] 许健.二维码激光高速赋码及识别研究[D].武汉:华中科技大学,2017:14-20.XU J.A dissertation submitted in partial fulfillment of the requirements for the degree of master of engineering[D].Wuhan:Huazhong University of Science and Technology,2017:14-20.
[8] 陈硕,林洪毅,卞抱元,等.基于机器视觉的注塑齿轮缺陷检测系统研究[J].机电工程,2022,39(9):1243-1249.CHEN S,LIN H Y,BIAN B Y,et al.Injecting plastic gear defect detection system based on machine vision[J].Journal of Mechanical & Electrical Engineering,2022,39(9):1243-1249.
[9] 马新玲,张子轩,孙矢初,等.智能分餐机的设计[J].包装与食品机械,2022,40(5):57-63.MANG X L,ZHANG Z X,SUN S C,et al.Design of serving chopsticks and spoon meal separating machine[J].Packaging and Food Machinery,2022,40(5):57-63.
[10] 张冬娟,唐万有,朱捷航.基于机器视觉的条码信息在线检测系统研究[J].中国印刷与包装研究,2013,5(6):54-59.ZHANG D J,TANG W Y,ZHU J H.Study of online detection system for variable information barcode based on machine vision[J].China Printing and Packaging Study,2013,5(6):54-59.
[11] 高举,李永祥,徐雪萌.基于机器视觉编织袋缝合缺陷识别与检测[J].包装与食品机械,2022,40(3):51-56.GAO J,LI Y X,XU X M.Recognition and detection of stitching defects of woven bags based on machine vision[J].Packaging and Food Machinery,2022,40(3):51-56.
{{custom_fnGroup.title_cn}}
脚注
{{custom_fn.content}}
基金
国家自然科学基金(62203095);中央高校基本科研业务费(N2223024);河北省自然科学基金(F2021501009);河北省大学生科技创新能力培育专项(NEUQ202106)
{{custom_fund}}