[go: up one dir, main page]

CN114627089B - Defect identification method, defect identification device, computer equipment and computer readable storage medium - Google Patents

Defect identification method, defect identification device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN114627089B
CN114627089B CN202210281601.9A CN202210281601A CN114627089B CN 114627089 B CN114627089 B CN 114627089B CN 202210281601 A CN202210281601 A CN 202210281601A CN 114627089 B CN114627089 B CN 114627089B
Authority
CN
China
Prior art keywords
defect
type
defects
confidence
preset
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.)
Active
Application number
CN202210281601.9A
Other languages
Chinese (zh)
Other versions
CN114627089A (en
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Shuzhilian Technology Co Ltd
Original Assignee
Chengdu Shuzhilian Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Chengdu Shuzhilian Technology Co Ltd filed Critical Chengdu Shuzhilian Technology Co Ltd
Priority to CN202210281601.9A priority Critical patent/CN114627089B/en
Publication of CN114627089A publication Critical patent/CN114627089A/en
Application granted granted Critical
Publication of CN114627089B publication Critical patent/CN114627089B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30121CRT, LCD or plasma display

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Quality & Reliability (AREA)
  • Electroluminescent Light Sources (AREA)

Abstract

本申请提供了一种缺陷识别方法、装置、计算机设备及计算机可读存储介质,涉及缺陷检测技术领域。通过获取待检测OLED面板的初始图片,将初始图片输入预先训练的缺陷识别模型以得到初步识别结果,初步识别结果包括缺陷的类型及缺陷的置信度;判断置信度大于对应缺陷类型所预设的置信度阈值的全部缺陷是否存在至少两个预设类型的第一缺陷;若存在至少两个第一缺陷,计算各第一缺陷与对应的缺陷模板的相似度,获取第一缺陷的目标缺陷类型,第一缺陷的目标缺陷类型为与第一缺陷的相似度最大的缺陷模板对应的缺陷类型,目标缺陷类型作为初始图片的输出结果。通过本实施例提供的缺陷识别方法,能够提高判图的准确度。

The present application provides a defect recognition method, device, computer equipment and computer-readable storage medium, which relate to the field of defect detection technology. By obtaining an initial image of the OLED panel to be detected, the initial image is input into a pre-trained defect recognition model to obtain a preliminary recognition result, which includes the type of defect and the confidence of the defect; it is determined whether there are at least two first defects of preset types among all defects whose confidence is greater than the confidence threshold preset for the corresponding defect type; if there are at least two first defects, the similarity between each first defect and the corresponding defect template is calculated, and the target defect type of the first defect is obtained. The target defect type of the first defect is the defect type corresponding to the defect template with the greatest similarity to the first defect, and the target defect type is used as the output result of the initial image. The defect recognition method provided by this embodiment can improve the accuracy of image judgment.

Description

缺陷识别方法、装置、计算机设备及计算机可读存储介质Defect identification method, device, computer equipment and computer readable storage medium

技术领域Technical Field

本发明涉及缺陷检测技术领域,具体而言,涉及一种缺陷识别方法、装置、计算机设备及计算机可读存储介质。The present invention relates to the field of defect detection technology, and in particular to a defect recognition method, device, computer equipment and computer-readable storage medium.

背景技术Background Art

有机发光二极管(Organic Light-Emitting Diode,OLED)具有诸多优良特性,被普遍地认为是理想的下一代平板显示技术。但由于其生产过程复杂,制备过程中难免会出现各式各样的缺陷。这些缺陷具有边界模糊、形状不规则、周期纹理背景及整体亮度不均匀等特点。因此,对于OLED显示屏的表面缺陷进行检测,有利于对缺陷进行统计分析,同时对产品进行修补或淘汰,并通过工艺改进而提高其制造质量,避免浪费生产资源。Organic Light-Emitting Diode (OLED) has many excellent properties and is generally considered to be an ideal next-generation flat panel display technology. However, due to its complex production process, various defects are inevitable during the preparation process. These defects have the characteristics of blurred boundaries, irregular shapes, periodic texture backgrounds, and uneven overall brightness. Therefore, the detection of surface defects on OLED displays is conducive to statistical analysis of defects, while repairing or eliminating products, and improving their manufacturing quality through process improvements to avoid wasting production resources.

当前对OLED显示屏的检测通常采用拍照机进行拍照,进行人工判图,但人工判图成本高并且受判图人员主观因素,以及判图熟练程度的影响。因此,深度学习技术实现多缺陷的识别成为了主流方式。但由于生产环境中产生的缺陷形态不一,复杂多变,简单的判别模型存在识别精度及准确度较低的问题。Currently, the inspection of OLED displays usually uses cameras to take pictures and perform manual image judgment, but the cost of manual image judgment is high and is affected by subjective factors and the proficiency of the judge. Therefore, deep learning technology has become the mainstream method for multi-defect recognition. However, due to the different forms of defects generated in the production environment, which are complex and changeable, simple discrimination models have the problem of low recognition precision and accuracy.

发明内容Summary of the invention

为了解决上述技术问题,本申请实施例提供了一种缺陷识别方法、装置、计算机设备及计算机可读存储介质。In order to solve the above technical problems, the embodiments of the present application provide a defect identification method, apparatus, computer device and computer-readable storage medium.

第一方面,本申请实施例提供了一种缺陷识别方法,所述方法包括:In a first aspect, an embodiment of the present application provides a defect identification method, the method comprising:

获取待检测OLED面板的初始图片,并将所述初始图片输入预先训练的缺陷识别模型以得到初步识别结果,其中,所述初步识别结果包括缺陷的类型及缺陷的置信度;Obtaining an initial image of the OLED panel to be inspected, and inputting the initial image into a pre-trained defect recognition model to obtain a preliminary recognition result, wherein the preliminary recognition result includes the type of defect and the confidence level of the defect;

判断各所述缺陷的置信度是否大于对应缺陷类型所预设的置信度阈值;Determining whether the confidence level of each defect is greater than a preset confidence level threshold for the corresponding defect type;

若存在至少两个缺陷的置信度大于对应缺陷类型所预设的置信度阈值,则判断在置信度大于对应缺陷类型所预设的置信度阈值的全部缺陷中是否存在至少两个预设类型的第一缺陷;If there are at least two defects whose confidences are greater than a preset confidence threshold for the corresponding defect type, determining whether there are at least two first defects of a preset type among all defects whose confidences are greater than the preset confidence threshold for the corresponding defect type;

若存在至少两个第一缺陷,通过计算各所述第一缺陷与对应的缺陷模板的相似度,获取所述第一缺陷的目标缺陷类型,其中,所述第一缺陷的目标缺陷类型为与所述第一缺陷的相似度最大的缺陷模板对应的缺陷类型,将所述目标缺陷类型作为所述初始图片的输出结果。If there are at least two first defects, the target defect type of the first defect is obtained by calculating the similarity between each of the first defects and the corresponding defect template, wherein the target defect type of the first defect is the defect type corresponding to the defect template with the greatest similarity to the first defect, and the target defect type is used as the output result of the initial image.

在一种具体的实施方式中,所述若存在至少两个缺陷的置信度大于对应缺陷类型所预设的置信度阈值,判断在置信度大于对应缺陷类型所预设的置信度阈值的全部缺陷中是否存在至少两个预设类型的第一缺陷的步骤之后,所述方法还包括:In a specific embodiment, if the confidence of at least two defects is greater than the preset confidence threshold of the corresponding defect type, after the step of determining whether there are at least two first defects of the preset type among all defects with confidence greater than the preset confidence threshold of the corresponding defect type, the method further includes:

若存在至少两个所述第一缺陷,则判断置信度大于对应缺陷类型所预设的置信度阈值的全部缺陷中是否还存在第二缺陷;If there are at least two of the first defects, determining whether there is a second defect among all defects whose confidence is greater than a preset confidence threshold corresponding to the defect type;

若存在所述第二缺陷,则对所述目标缺陷类型与各所述第二缺陷的缺陷类型进行优先级判断,将优先级最高的缺陷对应的缺陷类型作为所述初始图片的输出结果,所述第一缺陷为置信度大于最大置信度的第一预设倍数的缺陷,所述第二缺陷为置信度大于最大置信度的第二预设倍数的缺陷。If the second defect exists, a priority judgment is performed on the target defect type and the defect type of each second defect, and the defect type corresponding to the defect with the highest priority is used as the output result of the initial image. The first defect is a defect whose confidence is greater than a first preset multiple of the maximum confidence, and the second defect is a defect whose confidence is greater than a second preset multiple of the maximum confidence.

在一种具体的实施方式中,所述最大置信度为所述初步识别结果中各缺陷的置信度中的最大值。In a specific implementation, the maximum confidence is the maximum value of the confidences of the defects in the preliminary identification result.

在一种具体的实施方式中,所述通过计算各所述第一缺陷与对应的缺陷模板的相似度,获取所述第一缺陷的目标缺陷类型的步骤,包括:In a specific implementation, the step of obtaining the target defect type of the first defect by calculating the similarity between each of the first defects and the corresponding defect template includes:

获取所述第一缺陷的中心点坐标及所述第一缺陷的像素区域的边缘值,以组成对应所述第一缺陷的缺陷序列;Acquire the center point coordinates of the first defect and the edge values of the pixel area of the first defect to form a defect sequence corresponding to the first defect;

分别计算所述第一缺陷的缺陷序列与各缺陷模板的灰色关联度;respectively calculating the grey correlation degree between the defect sequence of the first defect and each defect template;

将对应各所述缺陷模板的灰色关联度中最大值对应的缺陷模板对应的缺陷类型确定为所述目标缺陷类型。The defect type corresponding to the defect template corresponding to the maximum value of the grey relational degree of each defect template is determined as the target defect type.

在一种具体的实施方式中,所述缺陷模板的缺陷类型包括OLED面板膜上异物类型、膜下异物类型和脏污类型中的至少一种。In a specific embodiment, the defect type of the defect template includes at least one of a foreign matter type on the OLED panel film, a foreign matter type under the film, and a dirt type.

在一种具体的实施方式中,所述判断各所述缺陷的置信度是否大于对应缺陷类型所预设的置信度阈值的步骤之后,所述方法还包括:In a specific implementation, after the step of determining whether the confidence level of each defect is greater than a preset confidence level threshold corresponding to the defect type, the method further includes:

若存在一个缺陷的置信度大于对应缺陷类型所预设的置信度阈值,则判定所述初始图片存在单缺陷,将所述单缺陷对应的缺陷类型作为所述初始图片的输出结果。If the confidence of the existence of a defect is greater than the preset confidence threshold of the corresponding defect type, it is determined that there is a single defect in the initial image, and the defect type corresponding to the single defect is used as the output result of the initial image.

在一种具体的实施方式中,所述缺陷识别模型的获取步骤为:In a specific implementation, the step of acquiring the defect recognition model is:

收集OLED面板的历史缺陷图片;Collect historical defect images of OLED panels;

对所述历史缺陷图片中的缺陷特征进行打标,得到缺陷样本图片及对应缺陷样本图片的缺陷信息;Marking defect features in the historical defect images to obtain defect sample images and defect information corresponding to the defect sample images;

将所述缺陷样本图片及所述缺陷信息输入基础神经网络,训练得到所述缺陷识别模型。The defect sample image and the defect information are input into a basic neural network and trained to obtain the defect recognition model.

第二方面,本申请实施例提供了一种缺陷识别装置,包括:In a second aspect, an embodiment of the present application provides a defect identification device, including:

获取模块,用于获取待检测OLED面板的初始图片,并将所述初始图片输入预先训练的缺陷识别模型以得到初步识别结果,其中,所述初步识别结果包括缺陷的类型及缺陷的置信度;An acquisition module, used to acquire an initial image of the OLED panel to be inspected, and input the initial image into a pre-trained defect recognition model to obtain a preliminary recognition result, wherein the preliminary recognition result includes the type of defect and the confidence level of the defect;

第一判断模块,用于判断各所述缺陷的置信度是否大于对应缺陷类型所预设的置信度阈值;A first judgment module is used to judge whether the confidence of each defect is greater than a preset confidence threshold of the corresponding defect type;

第二判断模块,用于若存在至少两个缺陷的置信度大于对应缺陷类型所预设的置信度阈值,则判断在置信度大于对应缺陷类型所预设的置信度阈值的全部缺陷中是否存在至少两个预设类型的第一缺陷;A second judgment module is used to judge whether there are at least two first defects of a preset type among all defects with confidences greater than the preset confidence threshold of the corresponding defect type if there are at least two defects with confidences greater than the preset confidence threshold of the corresponding defect type;

确定模块,用于若存在至少两个第一缺陷,通过计算各所述第一缺陷与对应的缺陷模板的相似度,获取所述第一缺陷的目标缺陷类型,其中,所述第一缺陷的目标缺陷类型为与所述第一缺陷的相似度最大的缺陷模板对应的缺陷类型,将所述目标缺陷类型作为所述初始图片的输出结果。A determination module is used to obtain a target defect type of the first defect by calculating the similarity between each of the first defects and the corresponding defect template if there are at least two first defects, wherein the target defect type of the first defect is the defect type corresponding to the defect template having the greatest similarity to the first defect, and the target defect type is used as the output result of the initial image.

第三方面,本申请实施例提供了一种计算机设备,所述计算机设备包括存储器及处理器,所述存储器存储有计算机程序,所述计算机程序在所述处理器运行时执行第一方面所述的缺陷识别方法。In a third aspect, an embodiment of the present application provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program, the defect identification method described in the first aspect is executed.

第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现第一方面所述的缺陷识别方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the defect identification method described in the first aspect is implemented.

本申请实施例提供的缺陷识别方法,使用预训练的缺陷识别模型对待检测的OLED面板图片进行识别,将得到的初步识别结果采用置信度阈值进行筛选,再进行后续的相似度判断,提高了OLED面板缺陷识别的精度和准确度。The defect recognition method provided in the embodiment of the present application uses a pre-trained defect recognition model to identify the OLED panel image to be inspected, screens the obtained preliminary recognition results using a confidence threshold, and then performs subsequent similarity judgment, thereby improving the precision and accuracy of OLED panel defect recognition.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

图1示出了本发明实施例所提供的缺陷识别方法的一流程示意图;FIG1 is a schematic diagram showing a flow chart of a defect identification method provided by an embodiment of the present invention;

图2示出了本发明实施例所提供的缺陷识别装置的一结构示意图。FIG. 2 shows a schematic structural diagram of a defect identification device provided in an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The components of the embodiments of the present invention generally described and shown in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

在下文中,可在本发明的各种实施例中使用的术语“包括”、“具有”及其同源词仅意在表示特定特征、数字、步骤、操作、元件、组件或前述项的组合,并且不应被理解为首先排除一个或更多个其它特征、数字、步骤、操作、元件、组件或前述项的组合的存在或增加一个或更多个特征、数字、步骤、操作、元件、组件或前述项的组合的可能性。Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present invention, are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.

此外,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.

除非另有限定,否则在这里使用的所有术语(包括技术术语和科学术语)具有与本发明的各种实施例所属领域普通技术人员通常理解的含义相同的含义。所述术语(诸如在一般使用的词典中限定的术语)将被解释为具有与在相关技术领域中的语境含义相同的含义并且将不被解释为具有理想化的含义或过于正式的含义,除非在本发明的各种实施例中被清楚地限定。Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present invention belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present invention.

实施例1Example 1

参照图1,图1为本实施例提供的一种缺陷识别方法的流程示意图。如图1所示,所述方法包括:Referring to Figure 1, Figure 1 is a schematic flow chart of a defect identification method provided by this embodiment. As shown in Figure 1, the method includes:

步骤S101,获取待检测OLED面板的初始图片,并将所述初始图片输入预先训练的缺陷识别模型以得到初步识别结果,其中,所述初步识别结果包括缺陷的类型及缺陷的置信度。Step S101, obtaining an initial image of the OLED panel to be inspected, and inputting the initial image into a pre-trained defect recognition model to obtain a preliminary recognition result, wherein the preliminary recognition result includes the type of defect and the confidence level of the defect.

具体实施时,OLED面板生产过程中由于工艺流程过多且复杂繁琐,所以容易产生各式各样的产品缺陷,例如,混色、缺色、脏污等,这些缺陷会影响OLED面板的正常使用,需要在出厂前检测OLED面板中可能存在的缺陷。目前大多采用深度学习技术对OLED面板进行缺陷识别工作,但由于OLED面板的生产环境不同,产生的缺陷形态不一,复杂多变,常规的深度学习识别模型的识别精度及准确度较低。In specific implementation, the production process of OLED panels is prone to various product defects, such as color mixing, color loss, dirt, etc., due to the excessive and complicated process flow, which will affect the normal use of OLED panels. It is necessary to detect possible defects in OLED panels before leaving the factory. At present, deep learning technology is mostly used to identify defects in OLED panels, but due to the different production environments of OLED panels, the defects generated are of different forms and complex and changeable, and the recognition precision and accuracy of conventional deep learning recognition models are low.

本实施例提供了一种深度学习结合后续处理的方式进行OLED面板的缺陷识别,即针对待检测的OLED面板,采集其对应的图片,利用采集到的图片进行缺陷检测,可以将该待检测的图片定义为初始图片。初始图片的获取途径可以是直接对待检测的OLED面板直接拍摄采集得到,或从网络获取的其他终端发送的待检测的OLED面板的图片。This embodiment provides a method of combining deep learning with subsequent processing to identify defects in OLED panels, that is, for the OLED panel to be detected, the corresponding picture is collected, and the collected picture is used for defect detection, and the picture to be detected can be defined as the initial picture. The initial picture can be obtained by directly photographing the OLED panel to be detected, or by obtaining a picture of the OLED panel to be detected sent by other terminals from the network.

具体的,预先训练一个具备目标检测及定位功能的神经网络,定义为缺陷识别模型,将采集的待检测的初始图片输入该神经网络模型,能够得到分别对应每张初始图片的缺陷信息表,定义为初步识别结果,缺陷信息表中包括了各预估缺陷的类型、置信度及位置等信息。其中,预估缺陷为缺陷识别模型对初始图片上存在的缺陷的全部预估结果,每个预估结果对应一种缺陷类型,例如,初始图片上只存在一个缺陷,但是缺陷识别模型对该初始图片进行识别后可能会给出多个预估结果,即识别后得到的缺陷信息表中包括多个缺陷信息,基于此,缺陷识别模型在识别初始图片上存在的缺陷时,往往并不能给出非常精确的识别结果,因此需要对缺陷识别模型的识别结果进行修正,即需要对缺陷信息表中的各个缺陷进行后续的处理以提高缺陷识别的精确度。Specifically, a neural network with target detection and positioning functions is pre-trained, which is defined as a defect recognition model. The collected initial images to be detected are input into the neural network model, and a defect information table corresponding to each initial image can be obtained, which is defined as a preliminary recognition result. The defect information table includes information such as the type, confidence and location of each estimated defect. Among them, the estimated defects are all the estimated results of the defect recognition model on the defects existing in the initial image. Each estimated result corresponds to a defect type. For example, there is only one defect in the initial image, but the defect recognition model may give multiple estimated results after recognizing the initial image, that is, the defect information table obtained after recognition includes multiple defect information. Based on this, the defect recognition model often cannot give a very accurate recognition result when recognizing the defects existing in the initial image. Therefore, it is necessary to correct the recognition result of the defect recognition model, that is, it is necessary to perform subsequent processing on each defect in the defect information table to improve the accuracy of defect recognition.

步骤S102,判断各所述缺陷的置信度是否大于对应缺陷类型所预设的置信度阈值。Step S102, determining whether the confidence level of each defect is greater than a preset confidence level threshold corresponding to the defect type.

具体实施时,对缺陷信息表中的各个缺陷进行处理之前,需要预先为OLED面板上可能存在的每一种缺陷分别设置一个置信度阈值,将缺陷的置信度与该缺陷预设置的置信度阈值进行比较,依据大小关系来确定对该缺陷的处理方式。In specific implementation, before processing each defect in the defect information table, it is necessary to set a confidence threshold for each defect that may exist on the OLED panel, compare the confidence of the defect with the preset confidence threshold of the defect, and determine the processing method for the defect based on the size relationship.

具体的,置信度阈值可以是基于缺陷信息表的历史数据来设置,即收集缺陷信息表的历史数据,对历史数据进行一定的预处理,对预处理后的数据进行汇总与分析,以此为基础,为OLED面板上可能存在的每一种缺陷分别设置一个适合的置信度阈值。Specifically, the confidence threshold can be set based on the historical data of the defect information table, that is, the historical data of the defect information table is collected, the historical data is preprocessed, and the preprocessed data is summarized and analyzed. On this basis, a suitable confidence threshold is set for each defect that may exist on the OLED panel.

具体的,在缺陷信息表中,将置信度小于置信度阈值的缺陷赋值为other,不再进行后续的处理,若缺陷信息表中各个缺陷的赋值均为other,即各个缺陷的置信度均小于置信度阈值,则将other类作为该初始图片的识别结果输出,此外,置信度大于置信度阈值的缺陷继续进行后续的处理操作,通过置信度阈值的卡控可以直接筛选出需要进行后续操作的缺陷,一定程度上提高了缺陷识别的准确度。Specifically, in the defect information table, defects with confidence values less than the confidence threshold are assigned the value of other, and no subsequent processing is performed. If the values of all defects in the defect information table are other, that is, the confidence values of all defects are less than the confidence threshold, then the other class is output as the recognition result of the initial image. In addition, defects with confidence values greater than the confidence threshold continue to undergo subsequent processing operations. Through the card control of the confidence threshold, defects that require subsequent operations can be directly screened out, thereby improving the accuracy of defect recognition to a certain extent.

步骤S103,若存在至少两个缺陷的置信度大于对应缺陷类型所预设的置信度阈值,则判断在置信度大于对应缺陷类型所预设的置信度阈值的全部缺陷中是否存在至少两个预设类型的第一缺陷;Step S103, if there are at least two defects whose confidences are greater than the preset confidence threshold of the corresponding defect type, then determine whether there are at least two first defects of the preset type among all defects whose confidences are greater than the preset confidence threshold of the corresponding defect type;

在一种具体的实施方式中,所述最大置信度为所述初步识别结果中各缺陷的置信度中的最大值。In a specific implementation, the maximum confidence is the maximum value of the confidences of the defects in the preliminary identification result.

具体实施时,根据置信度阈值筛选出需要进行后续处理的缺陷,这些缺陷的置信度需要大于其本身所预设置的置信度阈值,在满足上述条件的全部缺陷中,将置信度大于最大置信度的a倍的缺陷定义为第一缺陷,a的值可以为0.8,根据实际情况可以对a的值进行调整,最大置信度指缺陷信息表中各缺陷的置信度的最大值。In specific implementation, defects that require subsequent processing are screened out based on the confidence threshold. The confidence of these defects needs to be greater than their preset confidence threshold. Among all defects that meet the above conditions, the defect with a confidence greater than a times the maximum confidence is defined as the first defect. The value of a can be 0.8 and can be adjusted according to actual conditions. The maximum confidence refers to the maximum value of the confidence of each defect in the defect information table.

具体的,当存在两个或两个以上的第一缺陷时,需要判断所有的第一缺陷中缺陷类型为预设类型的缺陷的个数,预设类型包括OLED膜上异物、膜下异物及脏污,因为这三种缺陷非常相似,导致缺陷识别模型在识别这三种缺陷时特别容易混淆,例如,初始图片上存在脏污这一缺陷,缺陷识别模型识别后得到的缺陷信息表中可能会包括膜上异物、膜下异物及脏污这三种缺陷中的两种或三种,导致无法准确判断具体的缺陷类型。Specifically, when there are two or more first defects, it is necessary to determine the number of defects of a preset type among all the first defects. The preset types include foreign matter on the OLED film, foreign matter under the film, and dirt. Because these three defects are very similar, the defect recognition model is particularly easy to be confused when identifying these three defects. For example, there is a defect of dirt in the initial picture. The defect information table obtained after the defect recognition model identifies it may include two or three of the three defects of foreign matter on the film, foreign matter under the film, and dirt, resulting in the inability to accurately determine the specific defect type.

具体的,在本实施例中对这三种缺陷设置了后续的处理方法,即当识别结果中存在至少两个第一缺陷,并且第一缺陷的类型包括了膜上异物、膜下异物及脏污中的至少两种缺陷类型,则需要对包括至少两种缺陷类型的第一缺陷进行后续的判断,以此提高对这三种缺陷的识别准确度。Specifically, in the present embodiment, a subsequent processing method is set for these three defects, that is, when there are at least two first defects in the identification results, and the types of the first defects include at least two defect types of foreign matter on the membrane, foreign matter under the membrane and dirt, it is necessary to perform subsequent judgment on the first defects including at least two defect types, so as to improve the recognition accuracy of these three defects.

步骤S104,若存在至少两个第一缺陷,通过计算各所述第一缺陷与对应的缺陷模板的相似度,获取所述第一缺陷的目标缺陷类型,其中,所述第一缺陷的目标缺陷类型为与所述第一缺陷的相似度最大的缺陷模板对应的缺陷类型,将所述目标缺陷类型作为所述初始图片的输出结果;Step S104: if there are at least two first defects, a target defect type of the first defect is obtained by calculating the similarity between each of the first defects and the corresponding defect template, wherein the target defect type of the first defect is the defect type corresponding to the defect template having the greatest similarity to the first defect, and the target defect type is used as the output result of the initial image;

在一种具体的实施方式中,所述通过计算各第一缺陷与对应的缺陷模板的相似度,获取第一缺陷的目标缺陷类型的步骤,包括:In a specific implementation, the step of obtaining the target defect type of the first defect by calculating the similarity between each first defect and the corresponding defect template includes:

获取所述第一缺陷的中心点坐标及所述第一缺陷的像素区域的边缘值,以组成对应所述第一缺陷的缺陷序列;Acquire the center point coordinates of the first defect and the edge values of the pixel area of the first defect to form a defect sequence corresponding to the first defect;

分别计算所述第一缺陷的缺陷序列与各缺陷模板的灰色关联度;respectively calculating the grey correlation degree between the defect sequence of the first defect and each defect template;

将对应各所述缺陷模板的灰色关联度中最大值对应的缺陷模板对应的缺陷类型确定为所述目标缺陷类型;Determine the defect type corresponding to the defect template corresponding to the maximum value of the grey correlation degree of each defect template as the target defect type;

在一种具体的实施方式中,所述缺陷模板的缺陷类型包括OLED面板膜上异物类型、膜下异物类型和脏污类型中的至少一种。In a specific embodiment, the defect type of the defect template includes at least one of a foreign matter type on the OLED panel film, a foreign matter type under the film, and a dirt type.

具体实施时,因为OLED面板膜上异物、膜下异物及脏污这三种缺陷易于混淆,导致缺陷识别模型难以准确识别,本实施例提供了一种相似度判断的方式来区分OLED面板膜上异物、膜下异物及脏污这三种缺陷,即通过分别计算初始图片上存在的这三种缺陷的缺陷序列与对应这三种缺陷的缺陷模板的灰色关联度,将灰色关联度最大对应的缺陷类型定义为目标缺陷类型,并将目标缺陷类型作为初始图片的缺陷识别结果,该缺陷识别结果定义为输出结果。In specific implementation, because the three defects of foreign matter on the OLED panel film, foreign matter under the film and dirt are easy to be confused, the defect recognition model is difficult to accurately identify. This embodiment provides a similarity judgment method to distinguish the three defects of foreign matter on the OLED panel film, foreign matter under the film and dirt, that is, by respectively calculating the gray correlation between the defect sequence of the three defects existing in the initial image and the defect templates corresponding to the three defects, the defect type corresponding to the maximum gray correlation is defined as the target defect type, and the target defect type is used as the defect recognition result of the initial image, and the defect recognition result is defined as the output result.

具体的,缺陷序列由缺陷的中心点坐标及缺陷的像素区域的边缘值组成,缺陷的中心点坐标即为缺陷的像素区域的中心点坐标,缺陷的像素区域的边缘值即为缺陷的像素区域的最小外接矩形框的横坐标与纵坐标的最值,缺陷的像素区域的中心点坐标根据缺陷的像素区域的最小外接矩形框的横坐标与纵坐标的最值计算得出。Specifically, the defect sequence is composed of the center point coordinates of the defect and the edge values of the pixel area of the defect. The center point coordinates of the defect are the center point coordinates of the pixel area of the defect, and the edge values of the pixel area of the defect are the maximum values of the horizontal and vertical coordinates of the minimum circumscribed rectangular box of the pixel area of the defect. The center point coordinates of the pixel area of the defect are calculated based on the maximum values of the horizontal and vertical coordinates of the minimum circumscribed rectangular box of the pixel area of the defect.

具体的,根据缺陷的像素区域的最小外接矩形框的横坐标最大值与最小值计算平均值,以得到缺陷的像素区域的中心点的横坐标,根据缺陷的像素区域的最小外接矩形框的纵坐标最大值与最小值计算平均值,以得到缺陷的像素区域的中心点的纵坐标,缺陷的像素区域的最小外接矩形框的横坐标与纵坐标的最值可以根据缺陷信息表中各缺陷的位置信息得到。Specifically, the average value is calculated based on the maximum and minimum values of the horizontal coordinates of the minimum circumscribed rectangular box of the defective pixel area to obtain the horizontal coordinate of the center point of the defective pixel area. The average value is calculated based on the maximum and minimum values of the vertical coordinates of the minimum circumscribed rectangular box of the defective pixel area to obtain the vertical coordinate of the center point of the defective pixel area. The maximum values of the horizontal and vertical coordinates of the minimum circumscribed rectangular box of the defective pixel area can be obtained based on the position information of each defect in the defect information table.

具体的,根据上述计算过程,得到初始图片中存在的对应这三种缺陷的缺陷序列[oxi,oyi,xmaxi,xmini,ymaxi,ymini],其中,[oxi,oyi]为缺陷的像素区域的中心点坐标,[xmaxi,xmini,ymaxi,ymini]为缺陷的像素区域的边缘值组成的集合,i表示OLED面板膜上异物、膜下异物及脏污中的任意一种。Specifically, according to the above calculation process, the defect sequence [o xi , o yi , xmax i , xmin i , ymax i , ymin i ] corresponding to the three defects in the initial image is obtained, where [o xi , o yi ] are the center point coordinates of the defective pixel area, [xmax i , xmin i , ymax i , ymin i ] are the set of edge values of the defective pixel area, and i represents any one of foreign matter on the OLED panel film, foreign matter under the film, and dirt.

具体的,在训练缺陷识别模型时,需要对样本图片进行打标,便于归纳学习各类样本图片的特征及类型,在对样本图片打标的过程中会得到对应各缺陷的像素区域的外接矩形框的数据,选取其中对应OLED面板膜上异物、膜下异物及脏污这三种缺陷的像素区域的外接矩形框的数据,获取各外接矩形框的坐标最值,根据各外接矩形框的坐标最值分别计算出对应这三种缺陷的像素区域中心点坐标,即根据外接矩形框的横坐标最大值与最小值计算平均值得到缺陷的像素区域中心点的横坐标,根据外接矩形框的纵坐标最大值与最小值计算平均值得到缺陷的像素区域中心点的纵坐标。Specifically, when training a defect recognition model, it is necessary to mark sample images to facilitate the summary and learning of the characteristics and types of various sample images. In the process of marking the sample images, the data of the circumscribed rectangular boxes of the pixel areas corresponding to each defect are obtained, and the data of the circumscribed rectangular boxes of the pixel areas corresponding to the three defects of foreign matter on the OLED panel film, foreign matter under the film, and dirt are selected to obtain the maximum coordinate values of each circumscribed rectangular box, and the coordinates of the center points of the pixel areas corresponding to the three defects are calculated according to the maximum coordinate values of each circumscribed rectangular box, that is, the horizontal coordinate of the center point of the defective pixel area is obtained by calculating the average value according to the maximum and minimum values of the horizontal coordinate of the circumscribed rectangular box, and the vertical coordinate of the center point of the defective pixel area is obtained by calculating the average value according to the maximum and minimum values of the vertical coordinate of the circumscribed rectangular box.

具体的,根据这三种缺陷的像素区域的中心点坐标及像素区域的外接矩形框的横坐标与纵坐标的最值,以组成分别对应这三种缺陷的缺陷序列,因为这三种缺陷在历史缺陷图片中可能出现多次,因此对应这三种缺陷的缺陷序列可能有多个,分别对这三种缺陷中每一种缺陷的多个缺陷序列计算平均值,以得到对应这三种缺陷中每一种缺陷的平均缺陷序列,该平均缺陷序列可以定义为缺陷模板,以脏污缺陷的缺陷模板计算为例,首先计算出对应脏污缺陷的多个缺陷序列,然后对这多个缺陷序列中所有的外接矩形框的横坐标的最大值计算平均值,以得到平均序列中外接矩形框的横坐标的最大值,平均缺陷序列中其余值的计算与外接矩形框的横坐标的最大值计算方式一致,通过上述计算过程,以得到脏污缺陷的缺陷模板,OLED面板膜上异物及膜下异物缺陷的缺陷模板的计算请参照上述脏污缺陷的缺陷模板的计算过程,为避免重复,在此不再赘述。Specifically, defect sequences corresponding to the three defects are formed according to the center point coordinates of the pixel areas of the three defects and the maximum values of the horizontal and vertical coordinates of the circumscribed rectangular boxes of the pixel areas. Because the three defects may appear multiple times in historical defect images, there may be multiple defect sequences corresponding to the three defects. The average value of the multiple defect sequences of each of the three defects is calculated to obtain the average defect sequence corresponding to each of the three defects. The average defect sequence can be defined as a defect template. Taking the calculation of the defect template of the dirt defect as an example, first, multiple defect sequences corresponding to the dirt defect are calculated, and then the average value of the maximum values of the horizontal coordinates of all the circumscribed rectangular boxes in the multiple defect sequences is calculated to obtain the maximum value of the horizontal coordinate of the circumscribed rectangular box in the average sequence. The calculation of the remaining values in the average defect sequence is consistent with the calculation method of the maximum value of the horizontal coordinate of the circumscribed rectangular box. Through the above calculation process, the defect template of the dirt defect is obtained. For the calculation of the defect template of foreign matter on the OLED panel film and foreign matter under the film, please refer to the calculation process of the defect template of the dirt defect. To avoid repetition, it will not be repeated here.

具体的,若初始图片上存在的缺陷类型包括OLED面板膜上异物、膜下异物及脏污中的至少两种,且对应至少两种类型的缺陷的置信度均大于最大置信度的a倍,例如,初始图片上存在膜上异物及膜下异物这两种缺陷,并且这两种缺陷对应的置信度均大于最大置信度的a倍,则需要对这两种缺陷进行相似度判断,相似度判断的步骤包括:首先求出这两种缺陷的缺陷序列,再分别计算这两种缺陷的缺陷序列与对应的缺陷模板的灰色关联度,根据计算结果,若膜上异物对应的灰色关联度大于膜下异物对应的灰色关联度,则相似度判断的结果为膜上异物,此时将膜上异物作为初始图片的缺陷识别结果,灰色关联度的计算过程包括:计算出缺陷序列与对应的缺陷模板的灰色关联系数,对各灰色关联系数求平均值以得到灰色关联度,其具体的计算公式如下:Specifically, if the defect types existing in the initial image include at least two of foreign matter on the OLED panel film, foreign matter under the film, and dirt, and the confidences corresponding to at least two types of defects are both greater than a times the maximum confidence, for example, there are two defects, foreign matter on the film and foreign matter under the film, in the initial image, and the confidences corresponding to the two defects are both greater than a times the maximum confidence, then it is necessary to perform similarity judgment on the two defects, and the steps of similarity judgment include: first, obtaining the defect sequence of the two defects, and then respectively calculating the gray correlation between the defect sequence of the two defects and the corresponding defect template. According to the calculation result, if the gray correlation corresponding to the foreign matter on the film is greater than the gray correlation corresponding to the foreign matter under the film, then the result of the similarity judgment is the foreign matter on the film. At this time, the foreign matter on the film is used as the defect recognition result of the initial image. The gray correlation calculation process includes: calculating the gray correlation coefficient between the defect sequence and the corresponding defect template, and averaging the gray correlation coefficients to obtain the gray correlation. The specific calculation formula is as follows:

上述公式中,γ(X0,Xi)表示缺陷序列Xi与对应的缺陷模板X0的灰色关联度,γ(x0(k),xi(k))表示缺陷序列Xi与对应的缺陷模板X0的第k个灰色关联系数,表示对缺陷序列Xi与对应的缺陷模板X0的各个灰色关联系数求平均值,其中xi(k)与x0(k)分别表示缺陷序列Xi和对应的缺陷模板X0中的第k个值,k=1,2,…,6,n表示灰色关联系数的个数,n=6,ρ∈(0,1)为分辨系数。In the above formula, γ(X 0 ,X i ) represents the grey correlation degree between the defect sequence Xi and the corresponding defect template X 0 , γ(x 0 (k), xi (k)) represents the kth grey correlation coefficient between the defect sequence Xi and the corresponding defect template X 0 , It means to find the average value of each grey relational coefficient of defect sequence Xi and corresponding defect template X0 , where Xi (k) and x0 (k) represent the kth value in defect sequence Xi and corresponding defect template X0 respectively, k=1,2,…,6, n represents the number of grey relational coefficients, n=6, ρ∈(0,1) is the resolution coefficient.

xi(k)dt可以表示缺陷序列Xi中第k个值的初值像,还可以表示缺陷序列Xi中第k个值的均值像、逆化像及倒数化像中的任意一种,可以根据实际需要进行选择,在本实施例中的xi(k)dt表示缺陷序列Xi中第k个值的初值像示例,同上所述,在本实施例中的x0(k)dt表示缺陷模板X0中第k个值的初值像示例,t=1,2,3,4依次对应缺陷序列Xi及缺陷模板X0中各个值的初值像、均值像、逆化像及倒数化像。x i (k)d t can represent the initial value image of the kth value in the defect sequence Xi , and can also represent any one of the mean image, inverse image and reciprocal image of the kth value in the defect sequence Xi , and can be selected according to actual needs. In this embodiment, x i (k)d t represents an example of the initial value image of the kth value in the defect sequence Xi . As described above, x 0 (k)d t in this embodiment represents an example of the initial value image of the kth value in the defect template X 0, and t=1, 2, 3, 4 correspond to the initial value image, mean image, inverse image and reciprocal image of each value in the defect sequence Xi and the defect template X 0, respectively.

当t=1时,|x0(k)dt-xi(k)dt|表示缺陷模板X0和缺陷序列Xi中的第k个值的初值像之差的绝对值;表示对缺陷模板X0和缺陷序列Xi中各对应值的初值像之差的绝对值进行遍历,选取其中的最小值;表示对缺陷模板X0和缺陷序列Xi中各对应值的初值像之差的绝对值进行遍历,选取其中的最大值。When t=1, |x 0 (k)d t -xi (k)d t | represents the absolute value of the difference between the initial image of the defect template X 0 and the kth value in the defect sequence Xi ; It means to traverse the absolute value of the difference between the initial value image of each corresponding value in the defect template X0 and the defect sequence Xi , and select the minimum value; It means to traverse the absolute values of the differences between the initial images of the corresponding values in the defect template X0 and the defect sequence Xi , and select the maximum value.

因为各缺陷序列及缺陷模板中的数据可能因量纲不同,不便于比较或在比较时难以得到正确的结论,因此为了保证结果的可靠性,在进行灰色关联度分析时,首先进行数据的无量纲化处理,本实施例中采用的方法包括初值化、均值化、逆化及倒数化,通过对各缺陷序列及缺陷模板进行初值化处理,以得到对应各缺陷序列及缺陷模板的初值像,其余方法请参照上述初值化处理的描述,为避免重复,在此不再赘述。根据实际情况,选取上述任意一种方法对数据进行处理即可。Because the data in each defect sequence and defect template may be inconvenient to compare or difficult to obtain correct conclusions due to different dimensions, in order to ensure the reliability of the results, when performing grey correlation analysis, the data is first dimensionally processed. The methods used in this embodiment include initialization, averaging, inversion and reciprocalization. Each defect sequence and defect template is initialized to obtain the initial image corresponding to each defect sequence and defect template. For other methods, please refer to the description of the initialization process above. To avoid repetition, it will not be repeated here. According to the actual situation, any of the above methods can be selected to process the data.

在一种具体的实施方式中,所述若存在至少两个缺陷的置信度大于对应缺陷类型所预设的置信度阈值,判断在置信度大于对应缺陷类型所预设的置信度阈值的全部缺陷中是否存在至少两个预设类型的第一缺陷的步骤之后,所述方法还包括:In a specific embodiment, if the confidence of at least two defects is greater than the preset confidence threshold of the corresponding defect type, after the step of determining whether there are at least two first defects of the preset type among all defects with confidence greater than the preset confidence threshold of the corresponding defect type, the method further includes:

若存在至少两个所述第一缺陷,则判断置信度大于对应缺陷类型所预设的置信度阈值的全部缺陷中是否还存在第二缺陷;If there are at least two of the first defects, determining whether there is a second defect among all defects whose confidence is greater than a preset confidence threshold corresponding to the defect type;

若存在所述第二缺陷,则对所述目标缺陷类型与各所述第二缺陷的缺陷类型进行优先级判断,将优先级最高的缺陷对应的缺陷类型作为所述初始图片的输出结果,所述第一缺陷为置信度大于最大置信度的第一预设倍数的缺陷,所述第二缺陷为置信度大于最大置信度的第二设倍数的缺陷。If the second defect exists, a priority judgment is performed on the target defect type and the defect type of each second defect, and the defect type corresponding to the defect with the highest priority is used as the output result of the initial image. The first defect is a defect whose confidence is greater than a first preset multiple of the maximum confidence, and the second defect is a defect whose confidence is greater than a second preset multiple of the maximum confidence.

具体实施时,置信度大于最大置信度的b倍的缺陷可以定义为第二缺陷,b的取值为0.8,根据识别结果可对b的取值进行相应调整,缺陷的优先级判断指根据优先级对各缺陷进行排序,将优先级最大的缺陷作为初始图片的缺陷识别结果,优先级排序的依据可以是各缺陷的影响程度,影响程度越大的缺陷的优先级越高,当然还可以根据其他因素对缺陷进行优先级排序。In specific implementation, a defect with a confidence level greater than b times the maximum confidence level can be defined as a second defect, and the value of b is 0.8. The value of b can be adjusted accordingly based on the recognition result. The priority judgment of the defect refers to sorting the defects according to the priority, and taking the defect with the highest priority as the defect recognition result of the initial image. The basis for priority sorting can be the degree of influence of each defect. The greater the degree of influence, the higher the priority of the defect. Of course, the defects can also be prioritized according to other factors.

具体的,进行相似度判断后,还需要判断初始图片上是否还存在第二缺陷,若存在第二缺陷,则对初始图片上存在的各第二缺陷及目标缺陷类型进行优先级判断,将优先级最高的缺陷作为初始图片的缺陷识别结果。Specifically, after making a similarity judgment, it is also necessary to determine whether a second defect exists on the initial image. If a second defect exists, a priority judgment is made on each second defect and target defect type existing on the initial image, and the defect with the highest priority is used as the defect recognition result of the initial image.

具体的,不进行相似度判断时,若初始图片上存在至少两个第二缺陷,则需要对各第二缺陷进行优先级判断,将优先级最高的缺陷作为初始图片的缺陷识别结果。Specifically, when no similarity judgment is performed, if there are at least two second defects on the initial image, it is necessary to perform a priority judgment on each second defect, and use the defect with the highest priority as the defect recognition result of the initial image.

在一种具体的实施方式中,所述判断各所述缺陷的置信度是否大于对应缺陷类型所预设的置信度阈值的步骤之后,所述方法还包括:In a specific implementation, after the step of determining whether the confidence level of each defect is greater than a preset confidence level threshold corresponding to the defect type, the method further includes:

若存在一个缺陷的置信度大于对应缺陷类型所预设的置信度阈值,则判定所述初始图片存在单缺陷,将单缺陷对应的缺陷类型作为所述初始图片的输出结果。If the confidence level of a defect is greater than a preset confidence threshold of the corresponding defect type, it is determined that a single defect exists in the initial image, and the defect type corresponding to the single defect is used as the output result of the initial image.

具体实施时,初始图片经缺陷识别模型检测后,若只存在一个缺陷的置信度大于该缺陷的置信度阈值,则说明初始图片中只存在一种缺陷,直接将该缺陷作为初始图片的缺陷识别结果。In specific implementation, after the initial image is detected by the defect recognition model, if there is only one defect whose confidence is greater than the confidence threshold of the defect, it means that there is only one defect in the initial image, and the defect is directly used as the defect recognition result of the initial image.

在一种具体的实施方式中,所述缺陷识别模型的获取步骤为:In a specific implementation, the step of acquiring the defect recognition model is:

收集OLED面板的历史缺陷图片;Collect historical defect images of OLED panels;

对所述历史缺陷图片中的缺陷特征进行打标,得到缺陷样本图片及对应缺陷样本图片的缺陷信息;Marking defect features in the historical defect images to obtain defect sample images and defect information corresponding to the defect sample images;

将所述缺陷样本图片及所述缺陷信息输入基础神经网络,训练得到所述缺陷识别模型。The defect sample image and the defect information are input into a basic neural network and trained to obtain the defect recognition model.

具体实施时,训练缺陷识别模型前需要准备用于训练的缺陷数据集,缺陷数据集包括OLED面板存在的各种缺陷的历史图片,可以将这些图片定义为历史缺陷图片,历史缺陷图片的获取途径可以是直接对包括各种缺陷的OLED面板直接拍摄采集得到,或从网络获取的其他终端发送的包括各种缺陷的OLED面板的图片。During specific implementation, a defect data set for training needs to be prepared before training the defect recognition model. The defect data set includes historical pictures of various defects existing in the OLED panel. These pictures can be defined as historical defect pictures. The historical defect pictures can be obtained by directly photographing and collecting the OLED panels including various defects, or by obtaining pictures of OLED panels including various defects sent by other terminals from the network.

具体的,将收集的OLED面板的历史缺陷图片裁剪为适当大小的缺陷样本图片,根据缺陷类型将缺陷样本图片分类,采用Labellmg标注工具对裁剪后的缺陷样本图片进行标注,标注缺陷的位置和缺陷类型,标注工具会生成与缺陷样本图片同名带标注的XML文件,将各XML文件进行转换,最终得到一个json文件,将json文件和各缺陷样本图片作为数据集一同输入神经网络模型中,采用Faster RCNN算法进行训练,得到缺陷识别模型。Specifically, the collected historical defect images of OLED panels are cropped into defect sample images of appropriate sizes, and the defect sample images are classified according to the defect type. The cropped defect sample images are annotated with the Labelmg annotation tool to mark the location and type of the defects. The annotation tool will generate an XML file with the same name and annotations as the defect sample image. Each XML file is converted to finally obtain a json file. The json file and each defect sample image are input into the neural network model as a data set, and the Faster RCNN algorithm is used for training to obtain a defect recognition model.

本实施例提供的缺陷识别方法,使用预训练的缺陷识别模型对待检测的OLED面板图片进行识别,将得到的初步识别结果采用置信度阈值进行筛选,再进行后续的相似度判断及优先级判断,提高了OLED面板缺陷识别的精度和准确度。The defect recognition method provided in this embodiment uses a pre-trained defect recognition model to identify the OLED panel image to be inspected, and the preliminary recognition results are screened using a confidence threshold, and then subsequent similarity judgments and priority judgments are performed, thereby improving the precision and accuracy of OLED panel defect recognition.

实施例2Example 2

参照图2,本实施例还提供了一种缺陷识别装置200,包括:2 , this embodiment further provides a defect identification device 200, including:

获取模块201,用于获取待检测OLED面板的初始图片,并将所述初始图片输入预先训练的缺陷识别模型以得到初步识别结果,其中,所述初步识别结果包括所述初始图片中存在的各缺陷的实际置信度;An acquisition module 201 is used to acquire an initial image of the OLED panel to be inspected, and input the initial image into a pre-trained defect recognition model to obtain a preliminary recognition result, wherein the preliminary recognition result includes an actual confidence level of each defect existing in the initial image;

第一判断模块202,用于判断各所述缺陷的实际置信度是否处于预设多类缺陷对应的置信度阈值范围内;The first judgment module 202 is used to judge whether the actual confidence level of each defect is within the confidence level threshold range corresponding to the preset multiple types of defects;

第二判断模块203,用于若存在至少两个缺陷的置信度大于对应缺陷类型所预设的置信度阈值,则判断在置信度大于对应缺陷类型所预设的置信度阈值的全部缺陷中是否存在至少两个预设类型的第一缺陷;The second judgment module 203 is used to judge whether there are at least two first defects of a preset type among all defects with confidences greater than the preset confidence threshold of the corresponding defect type if there are at least two defects with confidences greater than the preset confidence threshold of the corresponding defect type;

确定模块204,用于若存在至少两个第一缺陷,通过计算各所述第一缺陷与对应的缺陷模板的相似度,获取所述第一缺陷的目标缺陷类型,其中,所述第一缺陷的目标缺陷类型为与所述第一缺陷的相似度最大的缺陷模板对应的缺陷类型,将所述目标缺陷类型作为所述初始图片的输出结果。Determination module 204 is used to obtain the target defect type of the first defect by calculating the similarity between each of the first defects and the corresponding defect template if there are at least two first defects, wherein the target defect type of the first defect is the defect type corresponding to the defect template having the greatest similarity with the first defect, and the target defect type is used as the output result of the initial image.

在一实施方式中,所述获取模块201具体用于:收集OLED面板的历史缺陷图片;In one implementation, the acquisition module 201 is specifically used to: collect historical defect images of OLED panels;

对所述历史缺陷图片中的缺陷特征进行打标,得到缺陷样本图片及对应缺陷样本图片的缺陷信息;Marking defect features in the historical defect images to obtain defect sample images and defect information corresponding to the defect sample images;

将所述缺陷样本图片及所述缺陷信息输入基础神经网络,训练得到所述缺陷识别模型。The defect sample image and the defect information are input into a basic neural network and trained to obtain the defect recognition model.

在一实施方式中,所述第一判断模块202具体用于:若存在一个缺陷的置信度大于对应缺陷类型所预设的置信度阈值,则判定所述初始图片存在单缺陷,将所述单缺陷对应的缺陷类型作为所述初始图片的输出结果。In one embodiment, the first judgment module 202 is specifically used to: if the confidence of the existence of a defect is greater than the preset confidence threshold of the corresponding defect type, it is determined that there is a single defect in the initial image, and the defect type corresponding to the single defect is used as the output result of the initial image.

在一实施方式中,所述第二判断模块203具体用于:所述最大置信度为所述初步识别结果中各缺陷的置信度中的最大值。In one implementation, the second judgment module 203 is specifically configured to: the maximum confidence is the maximum value among the confidences of the defects in the preliminary identification result.

在一实施方式中,所述确定模块204具体用于:若存在至少两个所述第一缺陷,则判断置信度大于对应缺陷类型所预设的置信度阈值的全部缺陷中是否还存在第二缺陷;In one embodiment, the determination module 204 is specifically configured to: if there are at least two of the first defects, determine whether there is a second defect among all defects whose confidence is greater than a preset confidence threshold corresponding to the defect type;

若存在所述第二缺陷,则对所述目标缺陷类型与各所述第二缺陷的缺陷类型进行优先级判断,将优先级最高的缺陷对应的缺陷类型作为所述初始图片的输出结果,所述第一缺陷为置信度大于最大置信度的第一预设倍数的缺陷,所述第二缺陷为置信度大于最大置信度的第二预设倍数的缺陷。If the second defect exists, a priority judgment is performed on the target defect type and the defect type of each second defect, and the defect type corresponding to the defect with the highest priority is used as the output result of the initial image. The first defect is a defect whose confidence is greater than a first preset multiple of the maximum confidence, and the second defect is a defect whose confidence is greater than a second preset multiple of the maximum confidence.

在一实施方式中,所述确定模块204具体还用于:获取所述第一缺陷的中心点坐标及所述第一缺陷的像素区域的边缘值,以组成对应所述第一缺陷的缺陷序列;In one embodiment, the determining module 204 is further configured to: obtain the coordinates of the center point of the first defect and the edge value of the pixel area of the first defect to form a defect sequence corresponding to the first defect;

分别计算所述第一缺陷的缺陷序列与各缺陷模板的灰色关联度;respectively calculating the grey correlation degree between the defect sequence of the first defect and each defect template;

将对应各所述缺陷模板的灰色关联度中最大值对应的缺陷模板对应的缺陷类型确定为所述目标缺陷类型。The defect type corresponding to the defect template corresponding to the maximum value of the grey relational degree of each defect template is determined as the target defect type.

在一实施方式中,所述确定模块204具体还用于:所述缺陷模板的缺陷类型包括OLED面板膜上异物类型、膜下异物类型和脏污类型中的至少一种。In one embodiment, the determination module 204 is further specifically configured to: the defect type of the defect template includes at least one of a foreign matter type on the OLED panel film, a foreign matter type under the film, and a dirt type.

本实施例提供的缺陷识别装置200的具体功能,可以参见实施例1中的缺陷识别方法的具体实施过程,在此不再一一赘述。The specific functions of the defect identification device 200 provided in this embodiment can be found in the specific implementation process of the defect identification method in Example 1, and will not be described in detail here.

本实施例提供的缺陷识别装置可通过预训练的缺陷识别模型对待检测的OLED面板图片进行识别,并将得到的初步识别结果采用置信度阈值进行筛选,再进行后续的相似度判断及优先级判断,提高了OLED面板缺陷识别的精度和准确度。The defect recognition device provided in this embodiment can identify the OLED panel image to be inspected through a pre-trained defect recognition model, and filter the preliminary recognition results obtained using a confidence threshold, and then perform subsequent similarity judgment and priority judgment, thereby improving the precision and accuracy of OLED panel defect recognition.

实施例3Example 3

本实施例提供了一种计算机设备,所述计算机设备包括存储器及处理器,所述存储器存储有计算机程序,所述计算机程序在所述处理器运行时执行实施例1所述的缺陷识别方法。This embodiment provides a computer device, which includes a memory and a processor. The memory stores a computer program. When the processor runs the computer program, the defect identification method described in Embodiment 1 is executed.

本实施例提供的计算机设备可以实现执行实施例1所述的缺陷识别方法,为避免重复,在此不再赘述。The computer device provided in this embodiment can implement the defect identification method described in Example 1, and to avoid repetition, it will not be described here.

实施例4Example 4

本实施例提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现实施例1所述的缺陷识别方法。This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the defect identification method described in Embodiment 1 is implemented.

本实施例提供的计算机可读存储介质可以实现执行实施例1所述的缺陷识别方法,为避免重复,在此不再赘述。The computer-readable storage medium provided in this embodiment can implement the defect identification method described in Example 1, and will not be described again here to avoid repetition.

在本发明所提供的实施例中,应该理解到,所揭露装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明提供的实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in the embodiment provided by the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释,此外,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

最后应说明的是:以上所述实施例,仅为本发明的具体实施方式,用以说明本发明的技术方案,而非对其限制,本发明的保护范围并不局限于此,尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围。都应涵盖在本发明的保护范围之内。Finally, it should be noted that the above-mentioned embodiments are only specific implementation methods of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. They should all be covered within the protection scope of the present invention.

Claims (9)

1.一种缺陷识别方法,其特征在于,用于识别OLED面板的缺陷,所述方法包括:1. A defect identification method, characterized in that it is used to identify defects of an OLED panel, the method comprising: 获取待检测OLED面板的初始图片,并将所述初始图片输入预先训练的缺陷识别模型以得到初步识别结果,其中,所述初步识别结果包括缺陷的类型及缺陷的置信度;Obtaining an initial image of the OLED panel to be inspected, and inputting the initial image into a pre-trained defect recognition model to obtain a preliminary recognition result, wherein the preliminary recognition result includes the type of defect and the confidence level of the defect; 判断各所述缺陷的置信度是否大于对应缺陷类型所预设的置信度阈值;Determining whether the confidence level of each defect is greater than a preset confidence level threshold for the corresponding defect type; 若存在至少两个缺陷的置信度大于对应缺陷类型所预设的置信度阈值,则判断在置信度大于对应缺陷类型所预设的置信度阈值的全部缺陷中是否存在至少两个预设类型的第一缺陷;If there are at least two defects whose confidences are greater than a preset confidence threshold for the corresponding defect type, determining whether there are at least two first defects of a preset type among all defects whose confidences are greater than the preset confidence threshold for the corresponding defect type; 若存在至少两个第一缺陷,通过计算各所述第一缺陷与对应的缺陷模板的相似度,获取所述第一缺陷的目标缺陷类型,其中,所述第一缺陷的目标缺陷类型为与所述第一缺陷的相似度最大的缺陷模板对应的缺陷类型, 将所述目标缺陷类型作为所述初始图片的输出结果;If there are at least two first defects, a target defect type of the first defect is obtained by calculating the similarity between each of the first defects and the corresponding defect template, wherein the target defect type of the first defect is the defect type corresponding to the defect template having the greatest similarity to the first defect, and the target defect type is used as the output result of the initial image; 判断置信度大于对应缺陷类型所预设的置信度阈值的全部缺陷中是否还存在第二缺陷;Determine whether there is a second defect among all defects whose confidence is greater than a preset confidence threshold of the corresponding defect type; 若存在所述第二缺陷,则对所述目标缺陷类型与各所述第二缺陷的缺陷类型进行优先级判断,将优先级最高的缺陷对应的缺陷类型作为所述初始图片的输出结果,所述第一缺陷为置信度大于最大置信度的第一预设倍数的缺陷,所述第二缺陷为置信度大于最大置信度的第二预设倍数的缺陷,所述优先级为各缺陷对所述OLED面板的影响程度。If the second defect exists, a priority judgment is performed on the target defect type and the defect types of each of the second defects, and the defect type corresponding to the defect with the highest priority is used as the output result of the initial image. The first defect is a defect whose confidence is greater than a first preset multiple of the maximum confidence, and the second defect is a defect whose confidence is greater than a second preset multiple of the maximum confidence. The priority is the degree of influence of each defect on the OLED panel. 2.根据权利要求1所述的缺陷识别方法,其特征在于,所述最大置信度为所述初步识别结果中各缺陷的置信度中的最大值。2. The defect identification method according to claim 1 is characterized in that the maximum confidence is the maximum value among the confidences of each defect in the preliminary identification result. 3.根据权利要求1所述的缺陷识别方法,其特征在于,所述通过计算各所述第一缺陷与对应的缺陷模板的相似度,获取所述第一缺陷的目标缺陷类型的步骤,包括:3. The defect identification method according to claim 1, characterized in that the step of obtaining the target defect type of the first defect by calculating the similarity between each first defect and the corresponding defect template comprises: 获取所述第一缺陷的中心点坐标及所述第一缺陷的像素区域的边缘值,以组成对应所述第一缺陷的缺陷序列;Acquire the center point coordinates of the first defect and the edge values of the pixel area of the first defect to form a defect sequence corresponding to the first defect; 分别计算所述第一缺陷的缺陷序列与各缺陷模板的灰色关联度;respectively calculating the grey correlation degree between the defect sequence of the first defect and each defect template; 将对应各所述缺陷模板的灰色关联度中最大值对应的缺陷模板对应的缺陷类型确定为所述目标缺陷类型。The defect type corresponding to the defect template corresponding to the maximum value of the grey relational degree of each defect template is determined as the target defect type. 4.根据权利要求1所述的缺陷识别方法,其特征在于,所述缺陷模板的缺陷类型包括OLED面板膜上异物类型、膜下异物类型和脏污类型中的至少一种。4. The defect identification method according to claim 1 is characterized in that the defect type of the defect template includes at least one of a foreign matter type on the OLED panel film, a foreign matter type under the film, and a dirt type. 5.根据权利要求1所述的缺陷识别方法,其特征在于,所述判断各所述缺陷的置信度是否大于对应缺陷类型所预设的置信度阈值的步骤之后,所述方法还包括:5. The defect identification method according to claim 1, characterized in that after the step of determining whether the confidence of each defect is greater than a preset confidence threshold corresponding to the defect type, the method further comprises: 若存在一个缺陷的置信度大于对应缺陷类型所预设的置信度阈值,则判定所述初始图片存在单缺陷,将所述单缺陷对应的缺陷类型作为所述初始图片的输出结果。If the confidence level of a defect is greater than a preset confidence threshold of the corresponding defect type, it is determined that a single defect exists in the initial image, and the defect type corresponding to the single defect is used as the output result of the initial image. 6.根据权利要求1所述的缺陷识别方法,其特征在于,所述缺陷识别模型的获取步骤为:6. The defect recognition method according to claim 1, characterized in that the step of acquiring the defect recognition model is: 收集OLED面板的历史缺陷图片;Collect historical defect images of OLED panels; 对所述历史缺陷图片中的缺陷特征进行打标,得到缺陷样本图片及对应所述缺陷样本图片的缺陷信息;Marking defect features in the historical defect images to obtain defect sample images and defect information corresponding to the defect sample images; 将所述缺陷样本图片及所述缺陷信息输入基础神经网络,训练得到所述缺陷识别模型。The defect sample image and the defect information are input into a basic neural network and trained to obtain the defect recognition model. 7.一种缺陷识别装置,其特征在于,用于识别OLED面板的缺陷,所述装置包括:7. A defect recognition device, characterized in that it is used to identify defects of an OLED panel, the device comprising: 获取模块,用于获取待检测OLED面板的初始图片,并将所述初始图片输入预先训练的缺陷识别模型以得到初步识别结果,其中,所述初步识别结果包括缺陷的类型及缺陷的置信度;An acquisition module, used to acquire an initial image of the OLED panel to be inspected, and input the initial image into a pre-trained defect recognition model to obtain a preliminary recognition result, wherein the preliminary recognition result includes the type of defect and the confidence level of the defect; 第一判断模块,用于判断各所述缺陷的置信度是否大于对应缺陷类型所预设的置信度阈值;A first judgment module is used to judge whether the confidence of each defect is greater than a preset confidence threshold of the corresponding defect type; 第二判断模块,用于若存在至少两个缺陷的置信度大于对应缺陷类型所预设的置信度阈值,则判断在置信度大于对应缺陷类型所预设的置信度阈值的全部缺陷中是否存在至少两个预设类型的第一缺陷;A second judgment module is used to judge whether there are at least two first defects of a preset type among all defects with confidences greater than the preset confidence threshold of the corresponding defect type if there are at least two defects with confidences greater than the preset confidence threshold of the corresponding defect type; 确定模块,用于若存在至少两个第一缺陷,通过计算各所述第一缺陷与对应的缺陷模板的相似度,获取所述第一缺陷的目标缺陷类型,其中,所述第一缺陷的目标缺陷类型为与所述第一缺陷的相似度最大的缺陷模板对应的缺陷类型,将所述目标缺陷类型作为所述初始图片的输出结果;判断置信度大于对应缺陷类型所预设的置信度阈值的全部缺陷中是否还存在第二缺陷;若存在所述第二缺陷,则对所述目标缺陷类型与各所述第二缺陷的缺陷类型进行优先级判断,将优先级最高的缺陷对应的缺陷类型作为所述初始图片的输出结果,所述第一缺陷为置信度大于最大置信度的第一预设倍数的缺陷,所述第二缺陷为置信度大于最大置信度的第二预设倍数的缺陷,所述优先级为各缺陷对所述OLED面板的影响程度。A determination module, used for, if there are at least two first defects, obtaining a target defect type of the first defect by calculating a similarity between each of the first defects and a corresponding defect template, wherein the target defect type of the first defect is a defect type corresponding to a defect template having the greatest similarity to the first defect, and taking the target defect type as an output result of the initial image; judging whether a second defect exists among all defects having a confidence greater than a confidence threshold preset for the corresponding defect type; if the second defect exists, making a priority judgment on the target defect type and the defect types of each of the second defects, and taking the defect type corresponding to the defect with the highest priority as the output result of the initial image, wherein the first defect is a defect having a confidence greater than a first preset multiple of a maximum confidence, and the second defect is a defect having a confidence greater than a second preset multiple of the maximum confidence, and the priority is a degree of influence of each defect on the OLED panel. 8.一种计算机设备,其特征在于,所述计算机设备包括存储器及处理器,所述存储器存储有计算机程序,所述计算机程序在所述处理器运行时执行权利要求1-6中任一项所述的缺陷识别方法。8. A computer device, characterized in that the computer device comprises a memory and a processor, the memory stores a computer program, and the computer program executes the defect identification method according to any one of claims 1 to 6 when the processor runs. 9.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-6中任一项所述的缺陷识别方法。9. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the defect identification method according to any one of claims 1 to 6 is implemented.
CN202210281601.9A 2022-03-21 2022-03-21 Defect identification method, defect identification device, computer equipment and computer readable storage medium Active CN114627089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210281601.9A CN114627089B (en) 2022-03-21 2022-03-21 Defect identification method, defect identification device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210281601.9A CN114627089B (en) 2022-03-21 2022-03-21 Defect identification method, defect identification device, computer equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114627089A CN114627089A (en) 2022-06-14
CN114627089B true CN114627089B (en) 2024-11-01

Family

ID=81903931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210281601.9A Active CN114627089B (en) 2022-03-21 2022-03-21 Defect identification method, defect identification device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114627089B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115330727A (en) * 2022-08-16 2022-11-11 商汤集团有限公司 Auxiliary labeling method and device, electronic equipment and storage medium
CN115616082B (en) * 2022-12-14 2023-04-28 杭州兆华电子股份有限公司 Keyboard defect analysis method based on noise detection
CN116258721A (en) * 2023-05-16 2023-06-13 成都数之联科技股份有限公司 OLED panel defect judging method, device, equipment and medium
CN116645362B (en) * 2023-06-29 2024-01-23 日照鲁光电子科技有限公司 Intelligent quality detection method and system for silicon carbide wafer
CN119205712A (en) * 2024-09-30 2024-12-27 中国长江三峡集团有限公司 A method, device, equipment and medium for risk assessment of hydropower station dam
CN119379667B (en) * 2024-12-19 2025-04-22 杭州海康机器人股份有限公司 Defect detection parameter adjustment method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111242124A (en) * 2020-01-13 2020-06-05 支付宝实验室(新加坡)有限公司 Certificate classification method, device and equipment
CN112419401A (en) * 2020-11-23 2021-02-26 上海交通大学 Aircraft surface defect detection system based on cloud edge cooperation and deep learning

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9858496B2 (en) * 2016-01-20 2018-01-02 Microsoft Technology Licensing, Llc Object detection and classification in images
CN106991661B (en) * 2017-03-31 2019-12-27 重庆大学 Non-local mean denoising method fusing KL (karhunen-Loeve) transformation and grey correlation degree
CN107239740B (en) * 2017-05-05 2019-11-05 电子科技大学 A kind of SAR image automatic target recognition method of multi-source Fusion Features
CN111595850B (en) * 2020-04-27 2022-07-15 平安科技(深圳)有限公司 Slice defect detection method, electronic device and readable storage medium
CN111709456A (en) * 2020-05-22 2020-09-25 五邑大学 Wine bottle surface defect detection method, electronic device and storage medium
CN114021964B (en) * 2021-11-03 2024-08-06 福州大学 Industrial enterprise equipment working condition judging and environment-friendly condition monitoring method
CN114140625A (en) * 2022-01-30 2022-03-04 深圳市博铭维技术股份有限公司 Pipeline defect detection method, system, equipment and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111242124A (en) * 2020-01-13 2020-06-05 支付宝实验室(新加坡)有限公司 Certificate classification method, device and equipment
CN112419401A (en) * 2020-11-23 2021-02-26 上海交通大学 Aircraft surface defect detection system based on cloud edge cooperation and deep learning

Also Published As

Publication number Publication date
CN114627089A (en) 2022-06-14

Similar Documents

Publication Publication Date Title
CN114627089B (en) Defect identification method, defect identification device, computer equipment and computer readable storage medium
CN106875381B (en) Mobile phone shell defect detection method based on deep learning
CN111161243A (en) Surface defect detection method for industrial products based on sample enhancement
JP7166189B2 (en) Image generation device, inspection device and image generation method
WO2024002187A1 (en) Defect detection method, defect detection device, and storage medium
WO2017092427A1 (en) Electronic element positioning method and apparatus
CN111915704A (en) Apple hierarchical identification method based on deep learning
US11315229B2 (en) Method for training defect detector
CN112308854B (en) Automatic detection method and system for chip surface flaws and electronic equipment
CN113222913A (en) Circuit board defect detection positioning method and device and storage medium
CN116228741A (en) PCBA (printed circuit board assembly) component defect detection method and device
CN113705564B (en) Pointer type instrument identification reading method
CN108445010A (en) Automatic optical detection method and device
CN117635603A (en) System and method for detecting on-line quality of hollow sunshade product based on target detection
CN117011216A (en) Defect detection method and device, electronic equipment and storage medium
CN115439411A (en) Method and device for detecting polarity of circuit board component, medium and electronic equipment
CN117788790A (en) Material installation detection method, system, equipment and medium for general scene
JP5075070B2 (en) Teacher data creation method, image classification method, and image classification apparatus
CN119027423B (en) A defect detection method and system for organic electroluminescent device
CN118505708B (en) Product repair system based on image reconstruction technology
CN118781097B (en) PCB detection method based on artificial intelligence, terminal equipment and storage medium
CN114841992A (en) Defect detection method based on recurrent generative adversarial network and structural similarity
CN114998432A (en) YOLOv 5-based circuit board detection point positioning method
JP4814116B2 (en) Mounting board appearance inspection method
CN119048418A (en) Golden finger quality detection method, device, equipment and 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
GR01 Patent grant
GR01 Patent grant