CN106952257A

Method for detecting damage defect of curved tag based on template matching and similarity calculation

Abstract

The invention discloses a method for detecting the damage defect of a curved tag based on template matching and similarity calculation, and belongs to the technical field of machine vision and video image processing. The method comprises steps of image acquisition, image preprocessing, template area extraction, defect detection and result display. The image acquisition comprises taking different images of a tag to be tested and a template tag from three angles. The preprocessing process realizes the segmentation of a tag area and an image processing operation for converting a curved surface into a flat surface. The template area extraction achieves one-to-one correspondence between the images of the tag to be tested taken from three different angles and a certain area of a template panorama, enables a bottle rotation angle in image extraction not to be restricted, and reduces system implementation difficulty. A defect detection module, based on a method combining the template matching with the similarity calculation, locks possible defective areas by using short time-consuming template matching, determines whether the defect exists by using exact similarity calculation, and improves detection efficiency on the basis of guaranteeing a detection effect.

CN106952257A, drawing sheet 1
Sheet 1 of 33

Term

10.5 yearsto projected expiry

Projected expiry 21 March 2037, counted from filing; an application has no term until it is granted.

  1. Priority and filed
  2. Published
  3. Today
  4. Projected expiry

9 claims: 1 independent, 8 dependent

  1. 1
    一种基于模板匹配与相似度计算的曲面标签破损缺陷检测方法,包括以下步骤: 步骤一、图像采集:在低亮度环境中利用一组光源和三个相机采集圆柱状瓶体的表面 标签图像;采集到的无损模板初始图像组记为(Mc^Mcl2lMcl3),待测初始图像组记为(Fc^Fci2, F〇3);步骤二、图像分割与拉伸:对步骤一获得的图像分别进行分割操作,获得分割后的标签 区域图像组,并利用相机标定法对其分别进行拉伸,获得曲面标签区域的平面图像,模板标 签平面图像组记为(151,52,53),待测标签平面图像组记为(朽^2,内); 步骤三、图像拼接:利用特征点匹配法对步骤二中获得的模板标签平面图像组(MS1,MS2, Ms3)进行拼接,获得模板全景图像M;步骤四、图像定位:对步骤二中获得的待测标签平面图像组(F1J^F3)分别在模板全景 图像M中实现定位,并分割出定位区域,记为映射模板图像组(Mi,M2,M3);步骤五、破损缺陷检测:将模板匹配法和特征相似度FSIM计算有机结合,对每一个待 测-模板图像组(Fi,Mi)进行相似度计算,相似度低于设定阈值的认定为破损缺陷区域; 步骤六、结果显示:显示步骤五所得的破损缺陷检测结果。 CLAIMS 1. A method for detecting a breakage defect of a surface label based on template matching and similarity calculation, comprising the following steps: Step 1: Image acquisition: Collecting a surface label of a cylindrical bottle using a set of light sources and three cameras in a low luminance environment (Fc ^ Fci2, F33);Step 2: Image segmentation and stretching: the image obtained in step 1 (Fig. 2) is the image of the original image group (Mc ^ Mcl2lMcl3) and the initial image group Respectively, the segmentation operation is obtained, and the segmented label area image group is obtained and stretched separately by the camera calibration method to obtain the plane image of the surface label area, and the template label plane image group is denoted as (151,52,53) (MS1, MS2, Ms3) obtained in step 2, the template image is obtained by using the feature point matching method to obtain the template panorama Image M;Step 4: Image positioning: The positioning of the test label plane image group (F1J ^ F3) obtained in step 2 is carried out in the template panorama image M, respectively, and the positioning area is divided into the mapping template (Mi, M2, M3);Step 5, damage defect detection: the template matching method and feature similarity FSIM calculation of organic combination of each test - template image group (Fi, Mi) similarity calculation, similar And the result is shown in Fig. 6, and the results show that the result of the defect detection result obtained in step 5 is displayed.