应用于印刷品缺陷检测的改进模版匹配算法
2017-09-28李敏周强王峥李俊雨
李敏,周强,王峥,李俊雨
(陕西科技大学电气与信息工程学院,陕西西安710021)
应用于印刷品缺陷检测的改进模版匹配算法
李敏,周强,王峥,李俊雨
(陕西科技大学电气与信息工程学院,陕西西安710021)
模版匹配算法是印刷品缺陷检测的重要环节,传统的模板匹配算法无法适应现在印刷产品的生产速度并难以达到越来越高的精度要求。因此,文章提出一种基于形状模版匹配的多区域模版匹配的改进算法,该算法创建多个特征区域并依次进行配准,根据配准数据获得均匀变换矩阵,并利用此变换矩阵进行仿射变换,从而完成整个模版匹配过程。该文在HALCON这一视觉软件平台开展算法研究,实验表明,该算法具有稳定、准确的特点,通过该算法可以实现对印刷品缺陷的精确检测。
HALCON,多区域,模版匹配
Abstract:Template matching algorithm is an important part of print defect detection,and the traditional template matching algo⁃rithm can not adapt to the speed of printing products now,and it is difficult to achieve higher precision requirements.Therefore,this paper proposes an improved algorithm for multi region template matching Based on shape template matching,the algorithm creates a plurality of characteristic areas and in order to obtain a uniform registration,according to the registration data and trans⁃form matrix,affine transformation using the transformation matrix,thus completing the whole process of template matching.In this paper,the algorithm is researched on the visual software platform of HALCON.The experimental results show that the algo⁃rithm is stable and accurate.Through this algorithm,the printed defects can be detected accurately.
Key words:HALCON;Multi regions;Template matching
随着科技的进步,印刷行业的生产已日趋自动化,但是由于一些人为和环境因素的影响,印刷品在印刷的过程中可能会产生各种缺陷,常见的印刷品缺陷主要有:飞墨、针孔、偏色、漏印、黑点、刮擦、套印不准等[1]。、因此针对于印刷产品的缺陷检测是至关重要的。早期传统检测缺陷方法依靠人工检测,但人工检测方法成本高、速度慢、识别率低,难以满足包装产品批量化生产的要求[2]。随着智能化、信息化时代的到来,基于机器视觉的缺陷检测与传统的人工检测相比,具有非接触、速度快以及现场抗干扰能力强等优点,可以降低检测人员的劳动强度,提高了检测效率和检测精度[3-4]。……
