摘要
针对提高印刷行业中瓶盖印刷码字符识别的检测速度这一问题,研究了对图像积分算法和模板匹配相关系数计算公式改进的方法,提出了一种基于Matlab图像积分的改进模板匹配算法。设计了通过CCD工业相机采集图像信号以进行图像积分处理以及4次查值,可快速确定目标区域内的像素和来求取相关系数值的实验思路。通过采用Matlab软件编程测试,验证了该方法用于检测瓶盖印刷码的可行性,大大缩短了原模板匹配算法的内存读取开销。实验结果表明:与传统的匹配算法相比,该算法在检测速度方面改进的匹配算法能够提速20%多。
Aiming at improving the detection speed of bottle cap printed code recognition in printing industry,an improved template matching algorithm based on Matlab image integral was proposed through the study of image integral algorithm and the improvement of correlation coefficient calculation formula in template matching.An experimental method was designed to acquire the image signal through the CCD industrial camera,to process the image integral processing and four check values.The pixels in the target area was determined quickly to obtain the correlation coefficients.The feasibility of the algorithm was verified by Matlab software programming test and the memory reading overhead of the original template matching algorithm was greatly reduced.The results indicate that,in terms of detection speed,the improved matching algorithm can increase speed up more than 20%compared with the traditional matching algorithm.
作者
钱俞好
周军
田胜
李少辉
QIAN Yu-hao;ZHOU Jun;TIAN Sheng;LI Shao-hui(School of Mechanical and Electrical Engineering,Hohai University,Changzhou 213022,China)
出处
《机电工程》
CAS
北大核心
2018年第4期442-446,共5页
Journal of Mechanical & Electrical Engineering
关键词
印刷码检测
图像积分
模板匹配
4次查值
检测速度
printed code recognition
image integral
template matching
four check values
detection speed
作者简介
钱俞好(1993-),男,江苏南通人,硕士研究生,主要从事机器视觉、机器学习等方面的研究。E-mail:qianyh1205@126.com;通信联系人:周军,男,教授,硕士生导师。E-mail:zhj6171@163.com