CN114612427A - Nameplate defect detection method, device, electronic equipment and storage medium - Google Patents
Nameplate defect detection method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114612427A CN114612427A CN202210233522.0A CN202210233522A CN114612427A CN 114612427 A CN114612427 A CN 114612427A CN 202210233522 A CN202210233522 A CN 202210233522A CN 114612427 A CN114612427 A CN 114612427A
- Authority
- CN
- China
- Prior art keywords
- picture
- date
- area
- template
- nameplate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000007547 defect Effects 0.000 title claims abstract description 48
- 238000001514 detection method Methods 0.000 title claims abstract description 34
- 238000000034 method Methods 0.000 claims abstract description 53
- 230000002950 deficient Effects 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 18
- 230000009466 transformation Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 27
- 230000008569 process Effects 0.000 description 11
- 230000005291 magnetic effect Effects 0.000 description 9
- 230000001360 synchronised effect Effects 0.000 description 7
- 238000004519 manufacturing process Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000007689 inspection Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012552 review Methods 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 238000013527 convolutional neural network Methods 0.000 description 2
- 238000013135 deep learning Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003628 erosive effect Effects 0.000 description 2
- 230000002085 persistent effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000005294 ferromagnetic effect Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000010330 laser marking Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008092 positive effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1413—1D bar codes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Artificial Intelligence (AREA)
- Biomedical Technology (AREA)
- Mathematical Physics (AREA)
- Data Mining & Analysis (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computational Linguistics (AREA)
- Evolutionary Computation (AREA)
- Software Systems (AREA)
- Biophysics (AREA)
- Electromagnetism (AREA)
- Toxicology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Quality & Reliability (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Abstract
Description
技术领域technical field
本申请涉及缺陷检测技术领域,尤其涉及一种铭牌缺陷检测方法、装置、电子设备及存储介质。The present application relates to the technical field of defect detection, and in particular, to a method, device, electronic device and storage medium for nameplate defect detection.
背景技术Background technique
市场上激光打标的仪器应用范围十分广泛,在进行打标前,需要用户导入图案或文字,调整好参数、填充等(常见如CAD制图),这期间用户的操作及人为情绪化可能会导致铭牌出现缺陷,影响后续的生产。Laser marking instruments on the market have a wide range of applications. Before marking, users need to import patterns or texts, adjust parameters, fill, etc. The nameplate is defective, which affects subsequent production.
目前,在实际生产环境中,都是采用依靠人工首检对铭牌进行检查,铭牌字符较多、人工复查存在疲劳性等因素,降低了生产效率。At present, in the actual production environment, the nameplate is checked by manual first inspection. There are many characters on the nameplate, and the manual review has fatigue and other factors, which reduces the production efficiency.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种铭牌缺陷检测方法、装置、电子设备及存储介质,以解决采用人工对铭牌缺陷进行检测所导致的生产效率低的技术问题。The present application provides a nameplate defect detection method, device, electronic device and storage medium, so as to solve the technical problem of low production efficiency caused by manual detection of nameplate defects.
第一方面,本申请提供了一种铭牌缺陷检测方法,所述方法包括:In a first aspect, the application provides a method for detecting a nameplate defect, the method comprising:
获取对铭牌拍照所获得的第一图片;Obtain the first picture obtained by taking a photo of the nameplate;
对所述第一图片进行识别,确定所述第一图片所对应的模板图以及所述第一图片中的日期区域;Identifying the first picture, determining the template image corresponding to the first picture and the date area in the first picture;
在所述第一图片中抹除所述日期区域内的日期,获得第二图片;Erase the date in the date area in the first picture to obtain a second picture;
将所述第二图片与所述模板图进行比对,确定所述铭牌的缺陷区域。The second picture is compared with the template image to determine the defective area of the nameplate.
在一实施例中,所述对所述第一图片进行识别,确定所述第一图片所对应的模板图以及所述第一图片中日期区域包括:In one embodiment, the identifying the first picture and determining the template picture corresponding to the first picture and the date area in the first picture include:
对所述第一图片进行识别,确定所述第一图片中的条形码区域,并获取所述条形码区域内的条码字符;Identifying the first picture, determining a barcode area in the first picture, and acquiring barcode characters in the barcode area;
基于所述条码字符,在预设的模板图集合中查找与所述条码字符所对应的模板图;Based on the barcode characters, searching for a template image corresponding to the barcode character in a preset template image set;
利用所述条形码区域,基于所述条形码区域与所述日期区域的对应关系,确定所述第一图片中的日期区域。Using the barcode area, the date area in the first picture is determined based on the corresponding relationship between the barcode area and the date area.
在一实施例中,在所述第一图片中抹除所述日期区域内的日期之前,所述方法还包括:In one embodiment, before erasing the date in the date area in the first picture, the method further includes:
获取所述日期区域内的日期;Get the date within the date range;
判断所述日期是否与预设日期一致;Determine whether the date is consistent with the preset date;
当所述日期与预设日期不一致时,判定所述铭牌的缺陷区域包括所述日期区域。When the date is inconsistent with the preset date, it is determined that the defective area of the nameplate includes the date area.
在一实施例中,所述基于所述条码字符,在预设的模板图集合中查找与所述条码字符所对应的模板图包括:In one embodiment, based on the barcode character, searching for a template image corresponding to the barcode character in a preset template image set includes:
基于所述条码字符,判断是否在预设的模板图集合中查找到与所述条码字符所对应的模板图;Based on the barcode characters, determine whether a template image corresponding to the barcode character is found in a preset template image set;
当在预设的模板图集合中查找到与所述条码字符所对应的模板图时,获取所述模板图;When a template image corresponding to the barcode character is found in a preset template image set, acquiring the template image;
当在预设的模板图集合中没有查找到与所述条码字符所对应的模板图时,提示输入正确条码。When the template image corresponding to the barcode character is not found in the preset template image set, prompt to input the correct barcode.
在一实施例中,将所述第二图片与所述模板图进行比对之前,所述方法还包括:In one embodiment, before comparing the second picture with the template image, the method further includes:
对所述模板图进行识别,确定所述模板图中的日期区域;Identifying the template map, and determining the date region in the template map;
抹除所述模板图中所述日期区域内的日期。Erase the date in the date field in the template image.
在一实施例中,所述将所述第二图片与所述模板图进行比对,确定所述铭牌的缺陷区域包括:In one embodiment, the described second picture is compared with the template image, and it is determined that the defective area of the nameplate includes:
对所述第二图片与所述模板图进行全局匹配和分区域截图匹配,确定所述铭牌的缺陷区域。Perform global matching and sub-regional screenshot matching on the second picture and the template image to determine the defective area of the nameplate.
在一实施例中,所述对所述第二图片与所述模板图进行分区域截图匹配,确定所述铭牌的缺陷区域包括:In one embodiment, performing sub-regional screenshot matching on the second picture and the template image, and determining the defective region of the nameplate includes:
分别对所述第二图片与所述模板图进行分区域截取,获得第一区域图片和第二区域图片;respectively intercepting the second picture and the template image by region to obtain a first region picture and a second region picture;
不断移动所述第一区域图片中的四个顶角坐标,将所述第一区域图片四个顶角透视变换后的图片与所述第二区域图片进行匹配,获得差异最小的匹配结果;Continuously move the coordinates of the four vertex angles in the first area picture, and match the picture after perspective transformation of the four vertex angles of the first area image with the second area image to obtain a matching result with the smallest difference;
基于所述匹配结果,确定所述铭牌的缺陷区域。Based on the matching results, a defective area of the nameplate is determined.
第二方面,本申请提供了一种铭牌缺陷检测装置,所述铭牌缺陷检测装置包括:In a second aspect, the application provides a nameplate defect detection device, the nameplate defect detection device includes:
获取模块,用于获取对铭牌拍照所获得的第一图片;an acquisition module, used to acquire the first picture obtained by taking pictures of the nameplate;
识别模块,用于对所述第一图片进行识别,确定所述第一图片所对应的模板图以及所述第一图片中的日期区域;an identification module, configured to identify the first picture, and determine the template image corresponding to the first picture and the date area in the first picture;
抹除模块,用于在所述第一图片中抹除所述日期区域内的日期,获得第二图片;an erasing module for erasing the date in the date area in the first picture to obtain a second picture;
比对模块,用于将所述第二图片与所述模板图进行比对,确定所述铭牌的缺陷区域。A comparison module, configured to compare the second picture with the template image to determine the defective area of the nameplate.
第三方面,本申请提供了一种电子设备,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器;其中,In a third aspect, the present application provides an electronic device, comprising: a processor and a memory for storing a computer program that can be executed on the processor; wherein,
所述处理器用于运行所述计算机程序时,执行如第一方面任一项实施例所述方法的步骤。The processor is configured to execute the steps of the method according to any one of the embodiments of the first aspect when running the computer program.
第四方面,本申请提供了一种存储介质,所述存储介质中存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,实现如第一方面任一项实施例所述方法的步骤。In a fourth aspect, the present application provides a storage medium, where a computer program is stored in the storage medium, wherein when the computer program is executed by a processor, the method according to any one of the embodiments of the first aspect is implemented. A step of.
本申请实施例提供的上述技术方案与现有技术相比具有如下优点:Compared with the prior art, the above-mentioned technical solutions provided in the embodiments of the present application have the following advantages:
本申请实施例提供的该方法,既能对铭牌中的字符进行识别,还能对铭牌中的图标进行识别,能实现铭牌缺陷的精准检测。The method provided by the embodiment of the present application can not only identify the characters in the nameplate, but also identify the icons in the nameplate, and can realize the accurate detection of the defects of the nameplate.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. In other words, on the premise of no creative labor, other drawings can also be obtained from these drawings.
图1为本申请实施例提供的一种铭牌缺陷检测方法的流程示意图;1 is a schematic flowchart of a method for detecting a nameplate defect provided in an embodiment of the present application;
图2为本申请应用实施例铭牌缺陷检测整体过程示意图;2 is a schematic diagram of the overall process of nameplate defect detection in an application embodiment of the present application;
图3为本申请应用实施例铭牌缺陷检测装置的结构示意图;3 is a schematic structural diagram of a nameplate defect detection device according to an application embodiment of the present application;
图4为本申请应用实施例预设的模板图集合示意图;4 is a schematic diagram of a set of template diagrams preset by an application embodiment of the present application;
图5为本申请应用实施例预设的模板图集合中2个模板图的示意图;5 is a schematic diagram of two template diagrams in a template diagram set preset by an application embodiment of the present application;
图6为本申请应用实施例图片转正效果示意图;FIG. 6 is a schematic diagram of the effect of converting a picture to positive according to an application embodiment of the present application;
图7为本申请应用实施例条码字符识别过程示意图;7 is a schematic diagram of a barcode character recognition process according to an application embodiment of the present application;
图8为本申请应用实施例日期定位检测示意图;8 is a schematic diagram of date location detection in an application embodiment of the present application;
图9为本申请应用实施例模板匹配示意图;9 is a schematic diagram of template matching according to an application embodiment of the present application;
图10为本申请应用实施例检测结果示意图;10 is a schematic diagram of the detection result of the application embodiment of the present application;
图11为本申请实施例提供的一种电子设备的结构示意图。FIG. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present application.
图1为本申请实施例提供的一种铭牌缺陷检测方法的流程示意图。如图1所示,该方法包括:FIG. 1 is a schematic flowchart of a method for detecting a nameplate defect according to an embodiment of the present application. As shown in Figure 1, the method includes:
步骤101:获取对铭牌拍照所获得的第一图片;Step 101: Obtain the first picture obtained by taking pictures of the nameplate;
步骤102:对所述第一图片进行识别,确定所述第一图片所对应的模板图以及所述第一图片中的日期区域;Step 102: Identify the first picture, and determine the template image corresponding to the first picture and the date area in the first picture;
步骤103:在所述第一图片中抹除所述日期区域内的日期,获得第二图片;Step 103: Erase the date in the date area in the first picture to obtain a second picture;
步骤104:将所述第二图片与所述模板图进行比对,确定所述铭牌的缺陷区域。Step 104: Compare the second picture with the template image to determine the defective area of the nameplate.
具体地,本实施例中的模板图可以为在制作所述铭牌时所依据的CAD图。实际应用时,可将该模板图以图中的条码字符进行命令,便于查找。Specifically, the template drawing in this embodiment may be a CAD drawing based on which the nameplate is manufactured. In practical application, the template diagram can be commanded with the barcode characters in the diagram, which is easy to find.
由于铭牌在制作过程中,会基于日期改变CAD图中日期区域的日期,因此,在识别时,为实现准确识别,需将第一图片中日期区域内的日期抹除,获得第二图片。利用第二图片与模板图进行比对,从而检测出铭牌中的缺陷区域。Since the nameplate will change the date in the date area in the CAD drawing based on the date during the production process, in order to achieve accurate identification, the date in the date area in the first picture needs to be erased to obtain the second picture. Use the second image to compare with the template image to detect the defective area in the nameplate.
进一步地,在对所述第一图片进行识别之前,可先对所述第一图片进行转正处理。具体为:获取第一图片的最大连通域,得到第一图片外围的边框轮廓及最小外接矩形,以外接矩形最短边的1/4作为长度,5个像素作为步长,用该步长遍历最大连通域内的点,每次遍历得到一条线段,根据起始点计算得到斜率及偏置;根据斜率角度将数据分为共线的四组数据,分别取斜率及偏置的均值作为最佳值进行直线拟合,得到四条边框拟合的直线。获取直线四个交点对图片进行透视变换,得到转正后的图片。Further, before identifying the first picture, the first picture may be converted to a normal position. Specifically: obtain the maximum connected domain of the first picture, obtain the outline of the border and the minimum circumscribed rectangle on the periphery of the first picture, take 1/4 of the shortest side of the circumscribed rectangle as the length, and 5 pixels as the step size, and use the step size to traverse the maximum For the points in the connected domain, a line segment is obtained by traversing each time, and the slope and offset are calculated according to the starting point; the data is divided into four groups of collinear data according to the slope angle, and the mean value of the slope and offset is taken as the best value. Fitting to get four straight lines fitted by the border. Obtain the four intersection points of the straight line and perform perspective transformation on the picture to obtain a normalized picture.
在一实施例中,所述对所述第一图片进行识别,确定所述第一图片所对应的模板图以及所述第一图片中日期区域包括:In one embodiment, the identifying the first picture and determining the template picture corresponding to the first picture and the date area in the first picture include:
对所述第一图片进行识别,确定所述第一图片中的条形码区域,并获取所述条形码区域内的条码字符;Identifying the first picture, determining a barcode area in the first picture, and acquiring barcode characters in the barcode area;
基于所述条码字符,在预设的模板图集合中查找与所述条码字符所对应的模板图;Based on the barcode characters, searching for a template image corresponding to the barcode character in a preset template image set;
利用所述条形码区域,基于所述条形码区域与所述日期区域的对应关系,确定所述第一图片中的日期区域。Using the barcode area, the date area in the first picture is determined based on the corresponding relationship between the barcode area and the date area.
由于条形码区域一般位于铭牌的右下角位置,因此,可先截图第一图片中底部的1/3区域,对底部的1/3区域进行处理,从而确定第一图片中的条形码区域。这里,对底部的1/3区域进行处理,具体可为:计算1/3区域中x和y方向的梯度,利用x方向梯度减去y方向梯度得到绝对值,对效果图进行多次膨胀和腐蚀操作,得到1/3区域中的最大的轮廓为条形码。进一步地,可取条形码高度的1/2往下延伸得到条码数字,采用深度学习卷积神经网络进行字符识别,得到条码字符。Since the barcode area is generally located at the lower right corner of the nameplate, you can first take a screenshot of the bottom 1/3 area in the first picture, and process the bottom 1/3 area to determine the barcode area in the first picture. Here, the 1/3 area at the bottom is processed, specifically: calculating the gradients in the x and y directions in the 1/3 area, subtracting the y direction gradient from the x direction gradient to obtain the absolute value, and performing multiple expansion and Erosion operation to get the largest contour in the 1/3 area for the barcode. Further, it is desirable to extend down 1/2 of the height of the barcode to obtain barcode numbers, and use deep learning convolutional neural network to perform character recognition to obtain barcode characters.
在一实施例中,在所述第一图片中抹除所述日期区域内的日期之前,所述方法还包括:In one embodiment, before erasing the date in the date area in the first picture, the method further includes:
获取所述日期区域内的日期;Get the date within the date range;
判断所述日期是否与预设日期一致;Determine whether the date is consistent with the preset date;
当所述日期与预设日期不一致时,判定所述铭牌的缺陷区域包括所述日期区域。When the date is inconsistent with the preset date, it is determined that the defective area of the nameplate includes the date area.
实际应用时,在抹除所述日期之前,可先对日期进行判断,若所述日期与预设日期不一致,则判断所述日期区域为缺陷区域,若所述日期与预设日期一致,则抹除所述日期区域内的日期,继续进行铭牌缺陷的检测。In practical application, before erasing the date, the date can be judged first. If the date is inconsistent with the preset date, it is judged that the date area is a defective area. If the date is consistent with the preset date, then Erase the date in the date field and proceed with the detection of nameplate defects.
这里,需要注意的是,本实施例是对所述铭牌的所有区域进行识别,识别出所有的缺陷区域,因此,在识别时,缺陷区域可以有多处。这里,当识别出所述日期与预设日期不一致时,可判定所述铭牌的日期区域为缺陷区域中的一处。Here, it should be noted that in this embodiment, all areas of the nameplate are identified, and all defective areas are identified. Therefore, during identification, there may be multiple defective areas. Here, when it is recognized that the date is inconsistent with the preset date, it can be determined that the date area of the nameplate is one of the defective areas.
具体地,可在确定日期区域后,利用字符识别确定日期区域内的日期。Specifically, after the date area is determined, character recognition may be used to determine the date in the date area.
在一实施例中,所述基于所述条码字符,在预设的模板图集合中查找与所述条码字符所对应的模板图包括:In one embodiment, based on the barcode character, searching for a template image corresponding to the barcode character in a preset template image set includes:
基于所述条码字符,判断是否在预设的模板图集合中查找到与所述条码字符所对应的模板图;Based on the barcode characters, determine whether a template image corresponding to the barcode character is found in a preset template image set;
当在预设的模板图集合中查找到与所述条码字符所对应的模板图时,获取所述模板图;When a template image corresponding to the barcode character is found in a preset template image set, acquiring the template image;
当在预设的模板图集合中没有查找到与所述条码字符所对应的模板图时,提示输入正确条码。When the template image corresponding to the barcode character is not found in the preset template image set, prompt to input the correct barcode.
由于实际过程中,可能出现更改条码字符的情况,为避免铭牌无法进行缺陷的检测,可在预设的模板图集合中没有查找到与所述条码字符所对应的模板图时,提示输入正确条码。以便继续执行铭牌缺陷的检测。Since the barcode characters may be changed in the actual process, in order to avoid the inability to detect defects on the nameplate, when the template image corresponding to the barcode character is not found in the preset template image set, a prompt to input the correct barcode . in order to proceed with the detection of nameplate defects.
在一实施例中,将所述第二图片与所述模板图进行比对之前,所述方法还包括:In one embodiment, before comparing the second picture with the template image, the method further includes:
对所述模板图进行识别,确定所述模板图中的日期区域;Identifying the template map, and determining the date region in the template map;
抹除所述模板图中所述日期区域内的日期。Erase the date in the date field in the template image.
具体地,模板图中也存在日期区域,日期区域内的内容一般为YYYY.MM格式。为顺利实现铭牌缺陷的检测,需将模板图中的日期区域中的日期也进行抹除。Specifically, a date area also exists in the template image, and the content in the date area is generally in YYYY.MM format. In order to successfully detect the nameplate defects, the date in the date area in the template diagram should also be erased.
进一步地,本实施例的完成过程可为:Further, the completion process of this embodiment may be:
对所述模板图进行识别,确定所述模板图中的日期区域;Identifying the template map, and determining the date region in the template map;
抹除所述模板图中所述日期区域内的日期。Erase the date in the date field in the template image.
获取对铭牌拍照所获得的第一图片;Obtain the first picture obtained by taking a photo of the nameplate;
对所述第一图片进行识别,确定所述第一图片所对应的模板图以及所述第一图片中的日期区域;Identifying the first picture, determining the template image corresponding to the first picture and the date area in the first picture;
在所述第一图片中抹除所述日期区域内的日期,获得第二图片;Erase the date in the date area in the first picture to obtain a second picture;
将所述第二图片与所述模板图进行比对,确定所述铭牌的缺陷区域。The second picture is compared with the template image to determine the defective area of the nameplate.
在一实施例中,所述将所述第二图片与所述模板图进行比对,确定所述铭牌的缺陷区域包括:In one embodiment, the described second picture is compared with the template image, and it is determined that the defective area of the nameplate includes:
对所述第二图片与所述模板图进行全局匹配和分区域截图匹配,确定所述铭牌的缺陷区域。Perform global matching and sub-regional screenshot matching on the second picture and the template image to determine the defective area of the nameplate.
由于第二图片与模板图存在较大的差异(例如字符胖瘦等),通过全局匹配和分区域截图匹配的方式,可提高检测精度,降低误检率。Since the second picture is quite different from the template picture (for example, the characters are fat and thin, etc.), the detection accuracy can be improved and the false detection rate can be reduced by means of global matching and sub-regional screenshot matching.
在一实施例中,所述对所述第二图片与所述模板图进行分区域截图匹配,确定所述铭牌的缺陷区域包括:In one embodiment, performing sub-regional screenshot matching on the second picture and the template image, and determining the defective region of the nameplate includes:
分别对所述第二图片与所述模板图进行分区域截取,获得第一区域图片和第二区域图片;respectively intercepting the second picture and the template image by region to obtain a first region picture and a second region picture;
不断移动所述第一区域图片中的四个顶角坐标,将所述第一区域图片四个顶角透视变换后的图片与所述第二区域图片进行匹配,获得差异最小的匹配结果;Continuously move the coordinates of the four vertex angles in the first area picture, and match the picture after perspective transformation of the four vertex angles of the first area image with the second area image to obtain a matching result with the smallest difference;
基于所述匹配结果,确定所述铭牌的缺陷区域。Based on the matching results, a defective area of the nameplate is determined.
具体地,针对截取的图片不断移动四个顶角坐标,将由四个顶角透视变换后的图片与模板图进行匹配,取得差值最小的图片作为匹配结果,将匹配结果中的白色区域确定为缺陷;通过将匹配结果二值化,实现对缺陷区域进行定位。Specifically, for the intercepted picture, the coordinates of the four corners are continuously moved, the picture after perspective transformation of the four corners is matched with the template image, the picture with the smallest difference is obtained as the matching result, and the white area in the matching result is determined as Defect; by binarizing the matching result, the defect area can be located.
此外,针对细小缺陷检测,考虑到模板图与第二图片的差异较大,存在的误检较多。因此可通过对二值化图片进行优化;将二值化图片进行膨胀,放大白色差异区域;通过查找轮廓,将差异区域截取出来与模板图相对应区域进一步比对得到最终确定的缺陷区域。In addition, for the detection of small defects, considering the large difference between the template image and the second image, there are many false detections. Therefore, it is possible to optimize the binarized image; to expand the binarized image to enlarge the white difference area; to find the contour, cut out the difference area and further compare it with the corresponding area of the template image to obtain the final defect area.
本申请实施例提供的铭牌缺陷检测方法,获取对铭牌拍照所获得的第一图片;对所述第一图片进行识别,确定所述第一图片所对应的模板图以及所述第一图片中的日期区域;在所述第一图片中抹除所述日期区域内的日期,获得第二图片;将所述第二图片与所述模板图进行比对,确定所述铭牌的缺陷区域。本申请实施例提供的方案既能对铭牌中的字符进行识别,还能对铭牌中的图标进行识别,能实现铭牌缺陷的精准检测。In the nameplate defect detection method provided in the embodiment of the present application, a first picture obtained by taking pictures of a nameplate is obtained; the first picture is identified, and a template image corresponding to the first picture and a template image in the first picture are determined. date area; erasing the date in the date area from the first image to obtain a second image; comparing the second image with the template image to determine the defective area of the nameplate. The solutions provided by the embodiments of the present application can not only recognize the characters in the nameplate, but also recognize the icons in the nameplate, and can realize the accurate detection of the defects of the nameplate.
下面,将结合应用实施例对本申请进行详细说明。Hereinafter, the present application will be described in detail with reference to application examples.
本实施例提供一种铭牌缺陷检测方法,能替代首检人工复查,提高整体效率;能根据模板图识别缺陷;能进行自动检测,无需人工建立模板。This embodiment provides a method for detecting a nameplate defect, which can replace the manual review of the first inspection and improve the overall efficiency; can identify defects according to a template diagram; can perform automatic detection without manually establishing a template.
具体地,参见图2,本实施例中铭牌缺陷检测方法的整体过程如下:Specifically, referring to FIG. 2 , the overall process of the method for detecting nameplate defects in this embodiment is as follows:
步骤201:铭牌置于装置内;接着执行步骤202:Step 201: The nameplate is placed in the device; then step 202 is executed:
这里,该装置的结构示意图可如图3所示。所述装置中包括镜头及相机、条形光源、放置铭牌的缺口、支架、遮光的方形结构、红色报警灯、绿色信号灯和显示器。Here, a schematic structural diagram of the device can be shown in FIG. 3 . The device includes a lens and a camera, a bar light source, a notch for placing a nameplate, a bracket, a shading square structure, a red warning light, a green signal light and a display.
步骤202:相机拍照;接着执行步骤203:Step 202: the camera takes a picture; then step 203 is executed:
步骤203:条形码定位;接着执行步骤204:Step 203: barcode positioning; then go to step 204:
步骤204:识别条码字符;接着执行步骤205:Step 204: Identify barcode characters; then go to Step 205:
步骤205:根据条码查找CAD图;Step 205: Find the CAD drawing according to the barcode;
这里,所述CAD图是指预设的模板图集合中的各个模板图。根据条码可查找到该条码所对应的预设的模板图集合中的CAD图。具体地,可参见图4,图4为预设的模板图集合中的各个模板图。每个模板图为CAD格式图。由于当前铭牌都是根据相应的CAD图制作而成,为实现减员及减少人工建模操作的效果,前期可将所有产品对应的CAD图导出至文件夹,每张图片采取条形码命名。将此类导出图片作为模板图片,后续可通过条形码名称进行查找。图5为图4模板存放集合中的其中两个模板图。Here, the CAD drawing refers to each template drawing in the preset template drawing set. According to the barcode, the CAD drawing in the preset template drawing set corresponding to the barcode can be found. Specifically, please refer to FIG. 4 , which shows each template image in the preset template image set. Each template drawing is in CAD format. Since the current nameplates are made based on the corresponding CAD drawings, in order to achieve the effect of reducing staff and reducing manual modeling operations, the CAD drawings corresponding to all products can be exported to a folder in the early stage, and each image is named by barcode. Use this type of exported image as a template image, which can be searched by barcode name later. FIG. 5 is a diagram of two templates in the template storage set of FIG. 4 .
若没有查找到CAD图,则执行步骤206;若查找到CAD图,则执行步骤208;If the CAD drawing is not found, go to step 206; if the CAD drawing is found, go to step 208;
步骤206:报警提示;接着执行步骤207;Step 206: alarm prompt; then go to step 207;
步骤207:输入正确条码;Step 207: Input the correct barcode;
若检测到用户输入正确条码,接着执行步骤205;If it is detected that the user has input the correct barcode, then go to step 205;
步骤208:日期识别比对;接着执行步骤209;Step 208: date identification and comparison; then go to step 209;
步骤209:是否成功定位日期;Step 209: Whether the date is successfully located;
若没有成功定位日期,则执行步骤210;若成功定位日期,则执行步骤211;If the date is not successfully located, go to step 210; if the date is successfully located, go to step 211;
步骤210:日期缺陷;接着执行步骤212;Step 210: Date defect; then go to
步骤211:抹除日期区域,接着执行步骤212;Step 211: Erase the date area, then go to
步骤212:缺陷检测,接着执行步骤213;Step 212: defect detection, and then perform
步骤213:判断是否缺陷;Step 213: determine whether it is defective;
若存在缺陷,则执行步骤214;若不存在缺陷,则执行步骤215;If there is a defect, go to step 214; if there is no defect, go to step 215;
步骤214:报警,红灯亮;接着执行步骤216;Step 214: alarm, the red light is on; then go to step 216;
步骤215:绿灯量,接着执行步骤216;Step 215: the amount of green light, then go to
步骤216:显示结果。Step 216: Display the result.
下面将基于上述步骤进行详细描述。The following will be described in detail based on the above steps.
(1)以图5中左侧铭牌示例,置于图2装置中得到相机拍照图片;获取图片最大连通域,得到图片外围的边框轮廓及最小外接矩形,以外接矩形最短边的1/4作为长度,5个像素作为步长,用该步长遍历最大连通域内的点,每次遍历得到一条线段,根据起始点计算得到斜率及偏置;根据斜率角度将数据分为共线的四组数据,分别取斜率及偏置的均值作为最佳值进行直线拟合,得到四条边框拟合的直线。获取直线四个交点对图片进行透视变换,得到转正后的图片。这里,具体转正效果可参见图6。(1) Take the left nameplate as an example in Fig. 5 and place it in the device of Fig. 2 to obtain a picture taken by a camera; obtain the maximum connected domain of the picture, obtain the frame outline and the minimum circumscribed rectangle around the picture, and take 1/4 of the shortest side of the circumscribed rectangle as the Length, 5 pixels as the step size, use this step size to traverse the points in the maximum connected domain, get a line segment each traversal, calculate the slope and offset according to the starting point; divide the data into four collinear groups of data according to the slope angle , take the mean value of the slope and the bias as the best value to perform a straight line fitting, and obtain four straight lines fitted by the frame. Obtain the four intersection points of the straight line and perform perspective transformation on the picture to obtain a normalized picture. Here, the specific positive effect can be seen in FIG. 6 .
(2)进行条码定位数字识别,因条码都位于铭牌右下角位置,截取底部1/3区域处理;计算图像中x和y方向的梯度,利用x方向梯度减去y方向梯度得到绝对值,参见图7,对效果图进行多次膨胀和腐蚀操作,得到图片中最大的轮廓为条形码;取条形码高度的1/2往下延伸得到条码数字;这里可采用深度学习卷积神经网络对字符识别,得到条形码数字。(2) Carry out barcode positioning digital recognition, because the barcodes are located in the lower right corner of the nameplate, intercept the bottom 1/3 area for processing; calculate the gradients in the x and y directions in the image, and use the x-direction gradient to subtract the y-direction gradient to obtain the absolute value, see Figure 7. Perform multiple expansion and erosion operations on the renderings, and the largest outline in the picture is the barcode; take 1/2 of the height of the barcode and extend downward to obtain the barcode number; here, the deep learning convolutional neural network can be used to recognize the characters, Get barcode numbers.
(3)利用条码进行CAD模板图获取,未找到条码则进行手工输入;获取模板图后进行日期识别及定位(因CAD图日期格式为YYYY.MM格式,需单独检测);先获取当前年月,再截取日期局部区域进行字符识别(识别到的字符串可能有多类,过滤获取到日期格式的字符串),参见图8,若图片的识别字符与当前年月相符,则在检测图片上抹除该区域不进行检测,反则说明当前图片日期区域存在缺陷(该方式无需手动建模,节省了人工标记的劳动力)。(3) Use the barcode to obtain the CAD template image, if the barcode is not found, enter it manually; after obtaining the template image, perform date recognition and positioning (because the date format of the CAD image is in YYYY.MM format, it needs to be detected separately); first obtain the current year and month , and then intercept the local area of the date for character recognition (there may be multiple types of recognized character strings, filter to obtain character strings in date format), see Figure 8, if the recognized characters of the image match the current year and month, then the detected image will be detected on the image. Erasing this area does not perform detection, otherwise it means that there is a defect in the date area of the current picture (this method does not require manual modeling, which saves the labor of manual marking).
(4)将处理后的图片与模板图进行匹配,因以CAD图作为模板图与实际的拍照图片存在的差异较大(如字符胖瘦等),若只采用全局匹配误检较高,此处分区域截取图片进行比较(如图9中的左一和左二两幅图);针对截取的图片不断移动四个顶角坐标,将由四个顶角透视变换后的图片与模板图进行匹配,取得差值最小的图片作为匹配结果,白色区域为缺陷(如图9中的左三那幅图);将匹配结果二值化(如图9中的左四那幅图),对缺陷区域进行定位。(4) Match the processed image with the template image, because there is a big difference between the CAD image as the template image and the actual photographed image (such as fat and thin characters, etc.), if only the global matching is used, the false detection is high, this The disposition area intercepts the picture and compares (the left one and the left second two pictures in Fig. 9); For the intercepted picture, move the four vertex coordinates continuously, match the picture after the perspective transformation of the four vertex angles with the template image, The picture with the smallest difference is obtained as the matching result, and the white area is a defect (the third picture from the left in Figure 9); the matching result is binarized (the fourth picture from the left in Figure 9), and the defect area is processed. position.
(5)针对于细小缺陷检测,此处考虑到CAD图与实际图片的差异较大,存在的误检会较多,对二值化图片进行了优化;将(4)中处理得到的二值化图片进行膨胀,放大白色差异区域;查找轮廓,将差异区域截取出来与模板图相对应区域进一步比对得到最佳效果;最终得到的效果如下图10所示。(5) For the detection of small defects, considering that the difference between the CAD image and the actual image is large, there will be more false detections, and the binary image is optimized; the binary image obtained in (4) is processed. Dilate the image to enlarge the white difference area; find the outline, cut out the difference area and compare it with the corresponding area of the template image to obtain the best effect; the final effect is shown in Figure 10 below.
本实施例即能实现字符的识别,还是实现图标的识别。相比于单独的字符识别,能提高铭牌的检测范围,无需制作大量数据集,提高检测精度。本实施例能替代首检人工复查,提高整体效率;能根据模板图识别缺陷;能进行自动检测,无需人工建立模板。This embodiment can realize either character recognition or icon recognition. Compared with separate character recognition, the detection range of the nameplate can be improved, and there is no need to make a large number of data sets, and the detection accuracy can be improved. This embodiment can replace the manual review of the first inspection, improve the overall efficiency; can identify defects according to the template diagram; can perform automatic detection, without the need to manually create a template.
为了实现本发明实施例的方法,本申请实施例还提供了一种铭牌缺陷检测装置。该铭牌缺陷检测装置包括:In order to implement the method of the embodiment of the present invention, the embodiment of the present application further provides a nameplate defect detection device. The nameplate defect detection device includes:
获取模块,用于获取对铭牌拍照所获得的第一图片;an acquisition module, used to acquire the first picture obtained by taking pictures of the nameplate;
识别模块,用于对所述第一图片进行识别,确定所述第一图片所对应的模板图以及所述第一图片中的日期区域;an identification module, configured to identify the first picture, and determine the template image corresponding to the first picture and the date area in the first picture;
抹除模块,用于在所述第一图片中抹除所述日期区域内的日期,获得第二图片;an erasing module for erasing the date in the date area in the first picture to obtain a second picture;
比对模块,用于将所述第二图片与所述模板图进行比对,确定所述铭牌的缺陷区域。A comparison module, configured to compare the second picture with the template image to determine the defective area of the nameplate.
需要说明的是:上述实施例提供的上述装置与上述方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: the above-mentioned apparatus provided in the above-mentioned embodiment and the above-mentioned method embodiment belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment, which will not be repeated here.
如图11所示,本申请实施例提供了一种电子设备,包括处理器111、通信接口112、存储器113和通信总线114,其中,处理器111,通信接口112,存储器113通过通信总线114完成相互间的通信,As shown in FIG. 11 , an embodiment of the present application provides an electronic device, including a
存储器113,用于存放计算机程序;a
在本申请一个实施例中,处理器111,用于执行存储器113上所存放的程序时,实现前述任意一个方法实施例提供的方法的步骤。In an embodiment of the present application, the
本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 6 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
本发明实施例提供的设备,设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序,处理器执行程序时实现上述任意一项实施例的方法。In the device provided by the embodiment of the present invention, the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the method of any one of the foregoing embodiments when the processor executes the program.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序物体。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序物体的形式。As will be apparent to those skilled in the art, embodiments of the present application may be provided as methods, systems, or computer program objects. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the application may take the form of a computer program object embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序物体的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program objects according to embodiments of the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如前述任意一个方法实施例提供的方法的步骤。Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the method provided by any one of the foregoing method embodiments.
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flashRAM)。存储器是计算机可读介质的示例。The memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory in the form of, for example, read only memory (ROM) or flash memory (flashRAM). Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitorymedia),如调制的数据信号和载波。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.
可以理解,本发明实施例的存储器可以是易失性存储器或者非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,ReadOnly Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,RandomAccess Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,SynchronousDynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本发明实施例描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory in this embodiment of the present invention may be a volatile memory or a non-volatile memory, and may also include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM, ReadOnly Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory) Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory, Magnetic Surface Memory, Optical disk, or Compact Disc Read-Only Memory (CD-ROM); the magnetic surface memory can be a magnetic disk memory or a magnetic tape memory. The volatile memory may be a random access memory (RAM, Random Access Memory), which is used as an external cache memory. By way of example and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory Memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, SynchronousDynamic Random Access Memory), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous Link Dynamic Random Access Memory (SLDRAM, SyncLink Dynamic Random Access Memory), Direct Memory Bus Random Access Memory (DRRAM, Direct Rambus Random Access Memory) . The memory described in the embodiments of the present invention is intended to include, but not be limited to, these and any other suitable types of memory.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as "first" and "second" etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these There is no such actual relationship or sequence between entities or operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
以上所述仅是本发明的具体实施方式,使本领域技术人员能够理解或实现本发明。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific embodiments of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210233522.0A CN114612427A (en) | 2022-03-10 | 2022-03-10 | Nameplate defect detection method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210233522.0A CN114612427A (en) | 2022-03-10 | 2022-03-10 | Nameplate defect detection method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114612427A true CN114612427A (en) | 2022-06-10 |
Family
ID=81861343
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210233522.0A Pending CN114612427A (en) | 2022-03-10 | 2022-03-10 | Nameplate defect detection method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114612427A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115689994A (en) * | 2022-09-14 | 2023-02-03 | 优层智能科技(上海)有限公司 | Data plate and bar code defect detection method, equipment and storage medium |
CN117333374A (en) * | 2023-10-26 | 2024-01-02 | 深圳市海恒智能股份有限公司 | Spine image correction method based on image straight line segment information |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170124424A1 (en) * | 2015-11-02 | 2017-05-04 | Kabushiki Kaisha Toshiba | Apparatus, method, and program for managing articles |
CN108548820A (en) * | 2018-03-28 | 2018-09-18 | 浙江理工大学 | Cosmetics paper labels defect inspection method |
CN113850756A (en) * | 2021-08-24 | 2021-12-28 | 精锐视觉智能科技(上海)有限公司 | Label defect detection method based on template comparison |
-
2022
- 2022-03-10 CN CN202210233522.0A patent/CN114612427A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170124424A1 (en) * | 2015-11-02 | 2017-05-04 | Kabushiki Kaisha Toshiba | Apparatus, method, and program for managing articles |
CN108548820A (en) * | 2018-03-28 | 2018-09-18 | 浙江理工大学 | Cosmetics paper labels defect inspection method |
CN113850756A (en) * | 2021-08-24 | 2021-12-28 | 精锐视觉智能科技(上海)有限公司 | Label defect detection method based on template comparison |
Non-Patent Citations (2)
Title |
---|
HUY TU等: "Better Data Labelling With EMBLEM (and how that Impacts Defect Prediction)", 《IEEE TRANSACTIONS ON SOFTWARE ENGINEERING》, vol. 48, no. 01, 13 April 2020 (2020-04-13), pages 278 - 294, XP011897246, DOI: 10.1109/TSE.2020.2986415 * |
刘鹏: "基于机器视觉的化妆品纸质标签缺陷检测方法", 《浙江理工大学学报(自然科学版)》, vol. 41, no. 02, 12 December 2018 (2018-12-12), pages 231 - 238 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115689994A (en) * | 2022-09-14 | 2023-02-03 | 优层智能科技(上海)有限公司 | Data plate and bar code defect detection method, equipment and storage medium |
CN115689994B (en) * | 2022-09-14 | 2023-08-04 | 优层智能科技(上海)有限公司 | Nameplate and bar code defect detection method, equipment and storage medium |
CN117333374A (en) * | 2023-10-26 | 2024-01-02 | 深圳市海恒智能股份有限公司 | Spine image correction method based on image straight line segment information |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107543828B (en) | Workpiece surface defect detection method and system | |
CN110826416A (en) | A method and device for detecting surface defects of bathroom ceramics based on deep learning | |
CN113160161B (en) | Method and device for detecting defects at edge of target | |
CN111612834B (en) | Method, device and equipment for generating target image | |
CN117392042A (en) | Defect detection method, defect detection apparatus, and storage medium | |
CN114612427A (en) | Nameplate defect detection method, device, electronic equipment and storage medium | |
CN104568979A (en) | Chip-to-database image detection method | |
CN116596875B (en) | Wafer defect detection method and device, electronic equipment and storage medium | |
CN112308854B (en) | Automatic detection method and system for chip surface flaws and electronic equipment | |
CN113160176B (en) | Defect detection method and device | |
WO2022116720A1 (en) | Target detection method and apparatus, and electronic device | |
CN110287831A (en) | Method, device and electronic equipment for acquiring control points based on landmarks | |
CN113673500A (en) | Document image recognition method, device, electronic device and storage medium | |
CN115829995A (en) | Cloth flaw detection method and system based on pixel-level multi-scale feature fusion | |
WO2023284712A1 (en) | Defect detection model training method, defect detection method and electronic device | |
CN114972268A (en) | Defect image generation method and device, electronic equipment and storage medium | |
CN115393290B (en) | Edge defect detection method, device and equipment | |
CN115131596A (en) | Defect classification device, method, and program | |
CN112634286A (en) | Image cropping method and device | |
CN110135288B (en) | Method and device for quickly checking electronic certificate | |
CN114299040B (en) | Ceramic tile flaw detection method and device and electronic equipment | |
CN110717969A (en) | Shadow generation method and device | |
CN113469302A (en) | Multi-circular target identification method and system for video image | |
CN110031471B (en) | Method, system and device for analyzing surface defect growth of large-caliber optical element | |
CN110135426B (en) | Sample labeling method and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |