[go: up one dir, main page]

CN114119556B - An automatic detection method for the quality of laser repair of surface defects of fused quartz components - Google Patents

An automatic detection method for the quality of laser repair of surface defects of fused quartz components Download PDF

Info

Publication number
CN114119556B
CN114119556B CN202111428213.0A CN202111428213A CN114119556B CN 114119556 B CN114119556 B CN 114119556B CN 202111428213 A CN202111428213 A CN 202111428213A CN 114119556 B CN114119556 B CN 114119556B
Authority
CN
China
Prior art keywords
repair
image
pit
images
template
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
CN202111428213.0A
Other languages
Chinese (zh)
Other versions
CN114119556A (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.)
Harbin Institute of Technology Shenzhen
Original Assignee
Harbin Institute of Technology Shenzhen
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 Harbin Institute of Technology Shenzhen filed Critical Harbin Institute of Technology Shenzhen
Priority to CN202111428213.0A priority Critical patent/CN114119556B/en
Publication of CN114119556A publication Critical patent/CN114119556A/en
Application granted granted Critical
Publication of CN114119556B publication Critical patent/CN114119556B/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
    • G06T7/001Industrial image inspection using an image reference approach
    • 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
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/32Indexing scheme for image data processing or generation, in general involving image mosaicing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10056Microscopic image
    • 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/20212Image combination
    • G06T2207/20221Image fusion; Image merging
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Biophysics (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Computing Systems (AREA)
  • Molecular Biology (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Geometry (AREA)
  • Quality & Reliability (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

一种熔石英元件表面缺陷激光修复质量的自动检测方法,涉及工程光学技术领域,用于检测熔石英元件表面缺陷的修复质量。本发明的技术要点包括:改变相机和元件之间的距离,采集对应不同聚焦状态下包含修复坑的多个图像;对不同聚焦状态下的多个图像进行景深融合,获取包含修复坑的清晰图像;将包含修复坑的清晰图像输入预训练的残余损伤检测模型,获取检测结果。本发明通过单幅拍照和扫描拍照结合的方式实现了不同尺寸修复坑图像的自动采集,使用景深融合与图像拼接方法获得了修复坑完整的全景深图像,使用基于卷积神经网络的目标检测方法实现了修复坑残余损伤的检测。本发明无需人工干预,可应用于元件表面缺陷修复后对于修复质量的自动检测。

An automatic detection method for the quality of laser repair of surface defects of fused quartz components relates to the field of engineering optical technology and is used to detect the quality of repair of surface defects of fused quartz components. The technical points of the present invention include: changing the distance between the camera and the component to collect multiple images containing repair pits under different focusing states; performing depth of field fusion on multiple images under different focusing states to obtain a clear image containing the repair pits; inputting the clear image containing the repair pits into a pre-trained residual damage detection model to obtain the detection result. The present invention realizes the automatic acquisition of images of repair pits of different sizes by combining single-frame photography and scanning photography, obtains a complete full-depth image of the repair pits by using depth of field fusion and image stitching methods, and realizes the detection of residual damage of the repair pits by using a target detection method based on a convolutional neural network. The present invention does not require manual intervention and can be applied to the automatic detection of the repair quality after the surface defects of components are repaired.

Description

一种熔石英元件表面缺陷激光修复质量的自动检测方法An automatic detection method for the quality of laser repair of surface defects of fused quartz components

技术领域Technical Field

本发明涉及工程光学技术领域,具体涉及一种熔石英元件表面缺陷激光修复质量的自动检测方法。The invention relates to the technical field of engineering optics, and in particular to an automatic detection method for the quality of laser repair of surface defects of a fused quartz component.

背景技术Background Art

熔石英元件具有透光性好、化学性质稳定、耐高温等优点,在高功率固体激光装置终端光学组件中得到广泛应用,承担着光束聚焦、碎片屏蔽等多种功能。但熔石英是一种典型的硬脆材料,其在加工、清洗、运输过程中会不可避免的产生一些凹坑、微裂纹等表面缺陷。表面缺陷会降低元件的材料性能使其更易损伤,研究表明,元件表面一旦产生缺陷如果不及时进行处理,缺陷尺寸将呈指数性增长,缺陷的数量也会急剧增加。缺陷的产生和增长不仅会使元件自身透光率降低,还会影响光路下游元件引起下游元件的损伤,继而威胁激光装置的稳定运行。因此采用合适的方式对元件表面缺陷进行及时修复具有重要的意义。Fused quartz components have the advantages of good light transmittance, stable chemical properties, and high temperature resistance. They are widely used in the terminal optical components of high-power solid-state laser devices, and undertake multiple functions such as beam focusing and debris shielding. However, fused quartz is a typical hard and brittle material, which will inevitably produce some surface defects such as pits and microcracks during processing, cleaning, and transportation. Surface defects will reduce the material properties of the component and make it more susceptible to damage. Studies have shown that once defects occur on the surface of the component, if they are not treated in time, the defect size will increase exponentially and the number of defects will also increase sharply. The generation and growth of defects will not only reduce the transmittance of the component itself, but also affect the downstream components of the optical path and cause damage to the downstream components, thereby threatening the stable operation of the laser device. Therefore, it is of great significance to use appropriate methods to repair the surface defects of the component in a timely manner.

工程上常采用CO2激光修复方法对受损伤元件进行局部修复,该过程通过在缺陷区域刻蚀一个圆锥体来实现。这种方法能有效提高材料的损伤阈值、抑制表面缺陷的增长,而且不影响元件的通光性能。修复后的元件可装载到回路中继续使用,节约了装置的维护成本。修复时由于个别缺陷拥有比预期更深的亚表面裂纹形态,在少数情况下,使用常用现有的修复方案无法将其完全修复,修复坑存在残余损伤。未完全修复的缺陷一旦重新安装到激光光路中会对光学元件使用寿命产生不利影响,因此必须对表面缺陷激光修复的质量进行检测。In engineering, CO2 laser repair methods are often used to perform local repairs on damaged components. This process is achieved by etching a cone in the defect area. This method can effectively increase the damage threshold of the material, inhibit the growth of surface defects, and does not affect the light transmission performance of the component. The repaired components can be loaded into the circuit for continued use, saving the maintenance cost of the device. During the repair, because individual defects have a deeper subsurface crack morphology than expected, in a few cases, they cannot be completely repaired using commonly used existing repair schemes, and there is residual damage in the repair pit. Once the incompletely repaired defects are reinstalled in the laser optical path, they will have an adverse effect on the service life of the optical component, so the quality of the surface defect laser repair must be tested.

发明内容Summary of the invention

鉴于以上问题,本发明提出一种熔石英元件表面缺陷激光修复质量的自动检测方法,用于检测熔石英元件表面缺陷的修复质量。In view of the above problems, the present invention proposes an automatic detection method for the laser repair quality of surface defects of fused quartz components, which is used to detect the repair quality of surface defects of fused quartz components.

一种熔石英元件表面缺陷激光修复质量的自动检测方法,包括以下步骤:An automatic detection method for the quality of laser repair of surface defects of a fused quartz component comprises the following steps:

步骤一、对于元件的每个修复坑,改变相机和元件之间的距离,采集对应不同聚焦状态下包含修复坑的多个图像;Step 1: for each repair pit of the component, change the distance between the camera and the component, and collect multiple images containing the repair pit under different focusing states;

步骤二、对不同聚焦状态下的多个图像进行景深融合,获取包含修复坑的清晰图像;Step 2: Perform depth of field fusion on multiple images in different focus states to obtain a clear image containing the repaired pit;

步骤三、将包含修复坑的清晰图像输入预训练的残余损伤检测模型,获取检测结果;所述检测结果包括元件表面存在或不存在残余损伤。Step 3: Input a clear image containing the repair pit into a pre-trained residual damage detection model to obtain a detection result; the detection result includes whether there is residual damage on the surface of the component.

进一步地,步骤一中在采集不同修复坑对应的图像时,对于不同尺寸的修复坑采用不同的采集方式:修复坑尺寸在相机视野范围内时,采集包含该修复坑的单张图像;修复坑尺寸不在相机视野范围内时,对包含该修复坑的元件部分区域进行阵列扫描采集,获取包含该修复坑的多个子图;其中,相邻的两个子图具有重叠区域。Furthermore, in step one, when acquiring images corresponding to different repair pits, different acquisition methods are used for repair pits of different sizes: when the size of the repair pit is within the field of view of the camera, a single image containing the repair pit is acquired; when the size of the repair pit is not within the field of view of the camera, an array scan is performed on the partial area of the component containing the repair pit to obtain multiple sub-images containing the repair pit; wherein, two adjacent sub-images have an overlapping area.

进一步地,步骤一中修复坑尺寸不在相机视野范围内时,在获取包含修复坑的多个子图后,采用基于模板匹配的方法计算多个子图之间的平移错位量,然后通过加权融合的方式对相邻两个子图的重叠区域进行处理,从而将多个子图进行图像拼接。Furthermore, when the size of the repair pit in step one is not within the camera's field of view, after obtaining multiple sub-images containing the repair pits, a template matching-based method is used to calculate the translation misalignment between the multiple sub-images, and then the overlapping areas of two adjacent sub-images are processed by weighted fusion, so as to perform image stitching on the multiple sub-images.

进一步地,步骤一中图像拼接过程中采用基于模板匹配的方法计算多个子图之间的平移错位量的过程为:将相邻两个子图的重叠区域作为模板,利用模板遍历相邻两个子图所有像素位置,通过比较模板与相邻子图多个区域的相似程度确定模板在相邻子图中的位置,进而计算相邻子图的平移错位量。Furthermore, the process of calculating the translation misalignment between multiple sub-images using a template matching-based method during the image stitching process in step one is as follows: using the overlapping area of two adjacent sub-images as a template, using the template to traverse all pixel positions of the two adjacent sub-images, and determining the position of the template in the adjacent sub-image by comparing the similarity between the template and multiple areas of the adjacent sub-image, and then calculating the translation misalignment of the adjacent sub-images.

进一步地,步骤一中图像拼接过程中按照下述公式计算模板与相邻子图不同区域的相似程度:Furthermore, in the image stitching process in step 1, the similarity between the template and different regions of the adjacent sub-image is calculated according to the following formula:

式中,R(x,y)代表模板与以(x,y)位置为中心的子图区域的相似度;T'(x',y')表示标准化后的模板图像在(x',y')位置的值;I'(x+x',y+y')表示标准化后的子图图像在(x+x',y+y')位置的值。Where R(x,y) represents the similarity between the template and the sub-image area centered at the position (x,y); T'(x',y') represents the value of the standardized template image at the position (x',y'); I'(x+x',y+y') represents the value of the standardized sub-image image at the position (x+x',y+y').

进一步地,步骤二中所述景深融合的过程为:将不同聚焦状态下的多个图像中每个包含修复坑的图像划分为多个图像子区域,对于多个图像中位置对应相同的图像子区域,计算每个图像子区域中像素点梯度值,选择提取像素点梯度值最大的图像子区域;将提取的不同位置的多个图像子区域组合成一个新的全景深图像。Furthermore, the depth of field fusion process described in step 2 is: each image containing the repair pit in the multiple images under different focusing states is divided into multiple image sub-regions, for the image sub-regions corresponding to the same position in the multiple images, the pixel gradient value in each image sub-region is calculated, and the image sub-region with the largest pixel gradient value is selected to extract; and the multiple image sub-regions extracted at different positions are combined into a new full-view depth image.

进一步地,步骤二中通过拉普拉斯算子计算获得图像子区域中像素点梯度值。Furthermore, in step 2, the gradient value of the pixel point in the image sub-region is obtained by Laplace operator calculation.

进一步地,步骤三中预训练的残余损伤检测模型是基于卷积神经网络YOLOV3搭建的。Furthermore, the pre-trained residual damage detection model in step three is built based on the convolutional neural network YOLOV3.

进一步地,步骤三中所述检测结果中还包括残余损伤的位置和尺寸。Furthermore, the detection result in step three also includes the location and size of the residual damage.

本发明的有益技术效果是:The beneficial technical effects of the present invention are:

本发明通过单幅拍照和扫描拍照结合的方式实现了不同尺寸修复坑图像的自动采集;使用景深融合与图像拼接方法获得了修复坑完整的全景深图像;使用基于卷积神经网络的目标检测方法实现了修复坑残余损伤检测;该方法无需人工干预,实现了元件表面缺陷激光修复质量的自动检测。The present invention realizes the automatic acquisition of repair pit images of different sizes by combining single-frame photography and scanning photography; obtains a complete full-depth image of the repair pit by using depth of field fusion and image stitching methods; realizes the detection of residual damage of the repair pit by using a target detection method based on a convolutional neural network; the method realizes the automatic detection of the quality of laser repair of component surface defects without manual intervention.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

本发明可以通过参考下文中结合附图所给出的描述而得到更好的理解,所述附图连同下面的详细说明一起包含在本说明书中并且形成本说明书的一部分,而且用来进一步举例说明本发明的优选实施例和解释本发明的原理和优点。The present invention can be better understood by referring to the description given below in conjunction with the accompanying drawings, which together with the following detailed description are included in this specification and form a part of this specification, and are used to further illustrate the preferred embodiments of the present invention and explain the principles and advantages of the present invention.

图1是本发明实施例中表面缺陷修复质量自动检测装置结构示意图;FIG1 is a schematic structural diagram of an automatic detection device for surface defect repair quality according to an embodiment of the present invention;

图2是本发明实施例中修复坑图像采集过程示意图;FIG2 is a schematic diagram of a repair pit image acquisition process according to an embodiment of the present invention;

图3是本发明实施例中扫描图像拼接过程示意图;FIG3 is a schematic diagram of a scanned image stitching process according to an embodiment of the present invention;

图4是本发明实施例中修复坑的残余损伤检测结果示例图;其中,图(a)是1mm修复坑对应的未修复前图像;图(b)是采用1mm修复坑进行修复后的显微图像;图(c)是2mm修复坑对应的未修复前图像;图(d)是采用2mm修复坑进行修复后的显微图像。Figure 4 is an example diagram of the residual damage detection results of the repair pit in an embodiment of the present invention; wherein, Figure (a) is the image before repair corresponding to the 1mm repair pit; Figure (b) is the microscopic image after repair using the 1mm repair pit; Figure (c) is the image before repair corresponding to the 2mm repair pit; and Figure (d) is the microscopic image after repair using the 2mm repair pit.

具体实施方式DETAILED DESCRIPTION

为了使本技术领域的人员更好地理解本发明方案,在下文中将结合附图对本发明的示范性实施方式或实施例进行描述。显然,所描述的实施方式或实施例仅仅是本发明一部分的实施方式或实施例,而不是全部的。基于本发明中的实施方式或实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施方式或实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the scheme of the present invention, exemplary implementations or embodiments of the present invention will be described below in conjunction with the accompanying drawings. Obviously, the described implementations or embodiments are only implementations or embodiments of a part of the present invention, not all of them. Based on the implementations or embodiments of the present invention, all other implementations or embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present invention.

本发明提出一种熔石英元件表面缺陷激光修复质量的自动检测方法,通过采集修复坑显微图像并对其进行处理来判断修复坑是否修复完全,该方法为元件表面缺陷的修复质量控制提供了技术支撑。The present invention provides an automatic detection method for the quality of laser repair of surface defects of fused quartz components. By collecting and processing a microscopic image of a repair pit, it is determined whether the repair pit is completely repaired. The method provides technical support for the repair quality control of component surface defects.

本发明实施例提供一种熔石英元件表面缺陷激光修复质量的自动检测方法,该方法包括以下步骤:An embodiment of the present invention provides an automatic detection method for the quality of laser repair of surface defects of a fused quartz component, the method comprising the following steps:

步骤一、对于元件的每个修复坑,改变相机和元件之间的距离,采集对应不同聚焦状态下包含修复坑的多个图像;Step 1: for each repair pit of the component, change the distance between the camera and the component, and collect multiple images containing the repair pit under different focusing states;

步骤二、对不同聚焦状态下的多个图像进行景深融合,获取包含修复坑的清晰图像;Step 2: Perform depth of field fusion on multiple images in different focus states to obtain a clear image containing the repaired pit;

步骤三、将包含修复坑的清晰图像输入预训练的残余损伤检测模型,获取检测结果;其中,检测结果包括元件表面存在或不存在残余损伤。Step 3: Input a clear image containing the repair pit into a pre-trained residual damage detection model to obtain a detection result; wherein the detection result includes whether there is residual damage on the surface of the component.

本实施例中,可选地,步骤一中在采集不同修复坑对应的图像时,对于不同尺寸的修复坑采用不同的采集方式:修复坑尺寸在相机视野范围内时,采集包含该修复坑的单张图像;修复坑尺寸不在相机视野范围内时,对包含该修复坑的元件部分区域进行阵列扫描采集,获取包含该修复坑的多个子图;其中,相邻的两个子图具有重叠区域。In this embodiment, optionally, when acquiring images corresponding to different repair pits in step one, different acquisition methods are used for repair pits of different sizes: when the size of the repair pit is within the field of view of the camera, a single image containing the repair pit is acquired; when the size of the repair pit is not within the field of view of the camera, an array scan is performed on the partial area of the component containing the repair pit to acquire multiple sub-images containing the repair pit; wherein, two adjacent sub-images have an overlapping area.

本实施例中,可选地,步骤一中修复坑尺寸不在相机视野范围内时,在获取包含修复坑的多个子图后,采用基于模板匹配的方法计算多个子图之间的平移错位量,然后通过加权融合的方式对相邻两个子图的重叠区域进行处理,从而将多个子图进行图像拼接。In this embodiment, optionally, when the size of the repair pit in step one is not within the camera field of view, after obtaining multiple sub-images containing the repair pit, a template matching-based method is used to calculate the translation misalignment between the multiple sub-images, and then the overlapping areas of two adjacent sub-images are processed by weighted fusion, thereby performing image stitching on the multiple sub-images.

本实施例中,可选地,步骤一中图像拼接过程中采用基于模板匹配的方法计算多个子图之间的平移错位量的过程为:将相邻两个子图的重叠区域作为模板,利用模板遍历相邻两个子图所有像素位置,通过比较模板与相邻子图多个区域的相似程度确定模板在相邻子图中的位置,进而计算相邻子图的平移错位量。In this embodiment, optionally, the process of calculating the translation misalignment between multiple sub-images using a template matching-based method during the image stitching process in step one is: using the overlapping area of two adjacent sub-images as a template, using the template to traverse all pixel positions of the two adjacent sub-images, and determining the position of the template in the adjacent sub-image by comparing the similarity between the template and multiple areas of the adjacent sub-image, and then calculating the translation misalignment of the adjacent sub-images.

本实施例中,可选地,步骤一中图像拼接过程中按照下述公式计算模板与相邻子图不同区域的相似程度:In this embodiment, optionally, in the image stitching process in step 1, the similarity between the template and different regions of the adjacent sub-image is calculated according to the following formula:

式中,R(x,y)代表模板与以(x,y)位置为中心的子图区域的相似度;T'(x',y')表示标准化后的模板图像在(x',y')位置的值;I'(x+x',y+y')表示标准化后的子图图像在(x+x',y+y')位置的值。Where R(x,y) represents the similarity between the template and the sub-image area centered at the position (x,y); T'(x',y') represents the value of the standardized template image at the position (x',y'); I'(x+x',y+y') represents the value of the standardized sub-image image at the position (x+x',y+y').

本实施例中,可选地,步骤二中景深融合的过程为:将不同聚焦状态下的多个图像中每个包含修复坑的图像划分为多个图像子区域,对于多个图像中位置对应相同的图像子区域,计算每个图像子区域中像素点梯度值,选择提取像素点梯度值最大的图像子区域;将提取的不同位置的多个图像子区域组合成一个新的全景深图像。In this embodiment, optionally, the process of depth of field fusion in step 2 is: divide each image containing the repair pit in multiple images under different focusing states into multiple image sub-regions, calculate the pixel gradient value in each image sub-region for image sub-regions corresponding to the same position in the multiple images, and select the image sub-region with the largest pixel gradient value to extract; combine the multiple image sub-regions extracted at different positions into a new full-view depth image.

本实施例中,可选地,步骤二中通过拉普拉斯算子计算获得图像子区域中像素点梯度值。In this embodiment, optionally, in step 2, the gradient value of the pixel point in the image sub-region is obtained by Laplacian operator calculation.

本实施例中,可选地,步骤三中预训练的残余损伤检测模型是基于卷积神经网络YOLOV3搭建的。In this embodiment, optionally, the pre-trained residual damage detection model in step three is built based on the convolutional neural network YOLOV3.

本实施例中,可选地,步骤三中检测结果中还包括残余损伤的位置和尺寸。In this embodiment, optionally, the detection result in step three also includes the location and size of the residual damage.

本发明另一实施例提供一种熔石英元件表面缺陷激光修复质量的自动检测方法,其对应的检测装置如图1所示,包括运动平台和显微检测系统。运动平台包含X、Y、Z三个运动轴,X、Y、Z运动轴的运动方向分别和机床坐标系的X、Y、Z坐标轴方向一致;运动平台X、Y运动轴可搭载光学元件进行二维高精度移动,从而实现修复坑的准确定位;Z运动轴可搭载显微检测系统进行物距调整,从而使修复坑成像清晰。显微检测系统由面阵CCD相机、显微镜头和光源组成,其中,面阵CCD相机分辨率为2456×2056,视野范围为1.5mm×1.3mm。光源使用背照光源,由于修复坑修复完全的部位比包含残余损伤的部位有更好的透光性,在背照光照射下两者拥有不同的成像特点,有利于残余损伤的检测。在完成元件缺陷点修复后,首先控制平台移动,将修复坑逐个移动到显微相机视野;之后控制显微检测系统采集修复坑的清晰图像;最后对修复坑图像进行处理和检测,判断修复坑是否存在残余损伤以及残余损伤的具体位置。该方法的具体步骤如下:Another embodiment of the present invention provides an automatic detection method for the quality of laser repair of surface defects of fused quartz components, and the corresponding detection device is shown in Figure 1, including a motion platform and a microscopic detection system. The motion platform includes three motion axes, X, Y, and Z, and the motion directions of the X, Y, and Z motion axes are respectively consistent with the directions of the X, Y, and Z coordinate axes of the machine tool coordinate system; the motion platform X and Y motion axes can carry optical elements for two-dimensional high-precision movement, thereby achieving accurate positioning of the repair pit; the Z motion axis can carry a microscopic detection system for object distance adjustment, so that the repair pit image is clear. The microscopic detection system consists of an array CCD camera, a microscope lens, and a light source, wherein the array CCD camera has a resolution of 2456×2056 and a field of view of 1.5mm×1.3mm. The light source uses a backlight source. Since the part where the repair pit is completely repaired has better light transmittance than the part containing residual damage, the two have different imaging characteristics under backlight irradiation, which is conducive to the detection of residual damage. After the defective point of the component is repaired, the platform is first controlled to move, and the repair pits are moved one by one to the field of view of the microscope camera; then the microscope detection system is controlled to collect a clear image of the repair pit; finally, the repair pit image is processed and detected to determine whether there is residual damage in the repair pit and the specific location of the residual damage. The specific steps of this method are as follows:

步骤1、制定修复坑检测路径。Step 1: Develop a repair pit detection path.

根据本发明实施例,缺陷点修复完成后需要将修复坑逐个移动到显微视野中进行残余损伤检测,由于修复时使用的激光修复文件已包含修复坑的坐标信息,可以利用这些坐标制定修复坑检测路径。激光修复文件包含了修复坑的尺寸和中心点位置坐标,且修复坑的顺序是按照贪心算法规划后的路径进行排列的,通过标定激光修复工位与显微检测工位的工位差即可将上述坐标转化为将修复坑中心点定位到显微视野中心的机床坐标,从而实现修复坑的定位。According to an embodiment of the present invention, after the defect point is repaired, the repair pits need to be moved one by one to the microscopic field of view for residual damage detection. Since the laser repair file used in the repair already contains the coordinate information of the repair pits, these coordinates can be used to formulate the repair pit detection path. The laser repair file contains the size of the repair pit and the coordinates of the center point position, and the order of the repair pits is arranged according to the path planned by the greedy algorithm. By calibrating the position difference between the laser repair station and the microscopic detection station, the above coordinates can be converted into machine tool coordinates that position the center point of the repair pit to the center of the microscopic field of view, thereby realizing the positioning of the repair pit.

步骤2、使用显微检测系统对修复坑图像进行采集。Step 2: Use a microscopic detection system to collect images of the repaired pits.

根据本发明实施例,由于修复坑尺寸不一,而显微相机视野有限,对于尺寸较小的修复坑可直接进行采集,但对于尺寸较大的修复坑,单幅拍照无法获得修复坑的完整形貌,为此本发明实施例采用扫描拍照的方式获取尺寸较大的修复坑图像。由于显微检测系统的景深很小,修复坑深度超过相机景深,相机只能局部聚焦无法获得全局清晰的图像,为此,本发明根据缺陷坑的深度采集不同Z值下的图像以实现修复坑不同区域清晰图像的获取。修复坑图像采集的具体过程为:According to an embodiment of the present invention, since the repair pits vary in size and the field of view of the microscope camera is limited, the smaller repair pits can be directly captured, but for larger repair pits, a single shot cannot obtain the complete morphology of the repair pits. For this reason, the embodiment of the present invention uses scanning photography to obtain images of larger repair pits. Since the depth of field of the microscopic detection system is very small and the depth of the repair pit exceeds the depth of field of the camera, the camera can only focus locally and cannot obtain a clear global image. For this reason, the present invention captures images at different Z values according to the depth of the defect pit to achieve the acquisition of clear images of different areas of the repair pit. The specific process of repair pit image acquisition is:

步骤2-1、根据修复坑尺寸大小采用不同的采集方式。Step 2-1: Use different collection methods according to the size of the repair pit.

修复坑的尺寸范围为0.5mm~3mm,相机视野为1.5mm×1.3mm。对于尺寸小于相机视野的修复坑,可根据修复坑中心点坐标直接将其定位到显微视野中心进行单幅拍照;对于尺寸较大的修复坑,采用如图2所示的扫描拍照方式对3×3的显微区域进行阵列扫描。为便于后续的图像拼接,扫描过程中X轴方向的步进值小于1.5mm,Y轴方向的步进值小于1.3mm,从而保证X、Y轴方向相邻两张图片存在10%的区域重叠,重叠部分可以作为图像拼接的依据,该方式可以满足大尺寸修复坑的检测需要。图2中实线箭头代表显微相机拍照时平台的运动轨迹,图中的红点代表明场相机的拍照位置,为提高扫描效率,采用S形路径进行扫描;为保证采集图像的质量,当相机移动到拍照位置时,平台减速到零,并控制相机自动采集,待获得拍照位置清晰图像后控制平台继续移动,完成3×3区域的扫描。The size range of the repair pit is 0.5mm to 3mm, and the camera field of view is 1.5mm×1.3mm. For repair pits smaller than the camera field of view, the repair pit center coordinates can be directly positioned to the center of the microscopic field of view for single-frame photography; for repair pits with larger sizes, the scanning photography method shown in Figure 2 is used to scan the 3×3 microscopic area in an array. To facilitate subsequent image stitching, the step value in the X-axis direction is less than 1.5mm, and the step value in the Y-axis direction is less than 1.3mm, so as to ensure that there is a 10% overlap between the two adjacent images in the X and Y axis directions. The overlapping part can be used as the basis for image stitching. This method can meet the detection needs of large-size repair pits. The solid arrow in Figure 2 represents the movement trajectory of the platform when the microscope camera takes pictures, and the red dot in the figure represents the shooting position of the bright field camera. To improve the scanning efficiency, an S-shaped path is used for scanning; to ensure the quality of the collected image, when the camera moves to the shooting position, the platform decelerates to zero, and controls the camera to automatically collect. After obtaining a clear image of the shooting position, the platform is controlled to continue moving to complete the scanning of the 3×3 area.

步骤2-2、采集拍照点不同聚焦状态下的图像。Step 2-2: Collect images at different focus states of the photo point.

修复坑的形状为圆锥形,其角度α相对固定,因此,可以通过式(1)估算修复坑的深度h。The shape of the repair pit is conical, and its angle α is relatively fixed. Therefore, the depth h of the repair pit can be estimated by formula (1).

h=Rtanα (1)h=Rtanα (1)

其中,R为修复坑尺寸,α为圆锥角度。Among them, R is the repair pit size and α is the cone angle.

在对修复坑进行单幅或扫描拍照时,通过控制平台沿Z轴移动在每个拍照点位置采集不同聚焦状态图像。本发明实施例采集了焦平面距修复坑表面0、h/2、h三个位置的显微图像。When taking single or scanning photos of the repair pit, the platform is controlled to move along the Z axis to collect images of different focus states at each photo point. The embodiment of the present invention collects microscopic images at three positions of 0, h/2, and h from the focal plane to the repair pit surface.

步骤3、对采集数据进行处理获取待检测区域清晰图像。Step 3: Process the collected data to obtain a clear image of the area to be detected.

根据本发明实施例,通过对同一区域不同Z值下的图像进行景深融合获取该区域全局清晰的图像;通过对扫描图像进行拼接获取大尺寸修复坑的完整图像;对拼接后的损伤坑清晰图像进行处理提取待检测区域用于残余损伤检测。According to an embodiment of the present invention, a globally clear image of the area is obtained by performing depth of field fusion on images at different Z values of the same area; a complete image of a large-size repair pit is obtained by splicing the scanned images; and the spliced clear image of the damaged pit is processed to extract the area to be detected for residual damage detection.

景深融合是指对显微镜头连续改变焦平面时采集的修复坑图像序列进行分析,选择图像各序列中清晰度最高的区域组合成一幅新的修复坑各区域都清晰的全景深图像。本发明实施例通过拉普拉斯算子求取图像序列中各像素点的梯度值,以该值作为清晰度的评价指标,将梯度值最高的像素点所在图像的像素值作为全景深图像像素值,其过程如式(2)所示。Depth of field fusion refers to analyzing the repair pit image sequence collected when the microscope lens continuously changes the focal plane, selecting the area with the highest clarity in each image sequence to combine into a new full-depth image in which all areas of the repair pit are clear. In the embodiment of the present invention, the gradient value of each pixel point in the image sequence is obtained by the Laplace operator, and the value is used as the evaluation index of clarity. The pixel value of the image where the pixel point with the highest gradient value is located is used as the pixel value of the full-depth image. The process is shown in formula (2).

I(i,j)=Im(i,j),m=index(max(Lk(i,j))),k=1,2,3 (2)I(i,j)=I m (i,j),m=index(max(L k (i,j))),k=1,2,3 (2)

式中,Lk代表图像序列中第k张图像的拉普拉斯梯度图,index函数用于获取图像序列的序号。Where Lk represents the Laplace gradient map of the kth image in the image sequence, and the index function is used to obtain the sequence number of the image sequence.

针对尺寸较大的修复坑,将有重叠部分的修复坑局部图像拼接为无缝的修复坑完整图像。由于元件的阵列扫描过程是在X-Y二维平台上完成的,采集的9张图像之间只有平移错位不包含旋转错位,因此采用基于模板匹配的方法计算图像之间的平移错位量,从而实现图像的拼接。图像拼接的过程如图3所示,图3(a)、(b)为扫描过程中相邻两张图像的示意图,在图3(b)中截取两图像重叠区域的部分图像作为匹配的模板,使用该模板遍历图3(a)中所有像素位置,通过比较模板与其覆盖区域的相似程度确定模板在图3(a)中的位置,从而获得两张图像的平移错位量。模板与其覆盖区域的相似程度通过式(3)~(5)进行评估:For repair pits with larger sizes, the local images of the repair pits with overlapping parts are stitched into a seamless complete image of the repair pit. Since the array scanning process of the component is completed on an X-Y two-dimensional platform, there is only translational misalignment between the 9 collected images, but no rotational misalignment. Therefore, a template matching-based method is used to calculate the translational misalignment between images to achieve image stitching. The image stitching process is shown in Figure 3. Figures 3(a) and (b) are schematic diagrams of two adjacent images during the scanning process. In Figure 3(b), a partial image of the overlapping area of the two images is intercepted as a matching template. The template is used to traverse all pixel positions in Figure 3(a). The position of the template in Figure 3(a) is determined by comparing the similarity between the template and its covered area, thereby obtaining the translational misalignment of the two images. The similarity between the template and its covered area is evaluated by equations (3) to (5):

式中,T、I分别表示模板图像和目标图像;wT、hT分别代表模板图像的宽和高;wI、hI分别代表模板覆盖区域的宽和高。Where T and I represent the template image and target image respectively; w T and h T represent the width and height of the template image respectively; w I and h I represent the width and height of the template coverage area respectively.

通过式(3)、(4)将模板和目标图像标准化,这样可以消除光照不均对于模板匹配的干扰,通过式(5)即可计算模板与其覆盖区域的相关系数,相关系数越接近1,表明模板与覆盖区域相似度越高。图3(c)是采用该方法获得的拼接图像示意图。但由于光照不均的影响,在图像拼接过程中拼接位置有明显的拼接痕迹,为此,采用式(6)对两图像的重叠区域进行处理,通过加权融合的方式使拼接图像从第一幅图缓慢过渡到第二幅图。The template and target image are standardized by equations (3) and (4), which can eliminate the interference of uneven illumination on template matching. The correlation coefficient between the template and its coverage area can be calculated by equation (5). The closer the correlation coefficient is to 1, the higher the similarity between the template and the coverage area. Figure 3(c) is a schematic diagram of the spliced image obtained by this method. However, due to the influence of uneven illumination, there are obvious splicing marks at the splicing position during the image splicing process. Therefore, equation (6) is used to process the overlapping area of the two images, and the spliced image is slowly transitioned from the first image to the second image by weighted fusion.

式中,I1、I2表示相邻两张图像的重叠区域;n、nc分别表示重叠区域的尺寸和融合位置;α(·)是重叠区域融合系数,该值的大小与融合位置有关。Where I 1 and I 2 represent the overlapping area of two adjacent images; n and nc represent the size and fusion position of the overlapping area respectively; α(·) is the fusion coefficient of the overlapping area, and the value is related to the fusion position.

对所有图像执行上述操作即可获得大尺寸修复坑的拼接图像。Perform the above operations on all images to obtain a stitched image of the large-sized repaired pit.

步骤4、通过残余损伤检测模型对修复坑区域进行检测,并对检测结果进行保存。Step 4: Detect the repair pit area using the residual damage detection model and save the detection results.

根据本发明实施例,为实现修复坑残余损伤的检测,采用基于卷积神经网络的目标检测方法搭建了残余损伤检测模型。将待检测区域图像输入到该模型中可以自动判断图像中是否存在残余损伤并给出残余损伤的具体位置。使用该模型对所有修复坑进行检测,并将检测结果保存到残余损伤检测结果文件中。According to an embodiment of the present invention, in order to detect residual damage in repair pits, a residual damage detection model is built using a target detection method based on a convolutional neural network. Inputting the image of the area to be detected into the model can automatically determine whether there is residual damage in the image and give the specific location of the residual damage. Use the model to detect all repair pits, and save the detection results in a residual damage detection result file.

残余损伤检测模型是在YOLO-v3基础上搭建的,YOLO-v3是单阶段的缺陷检测网络,图像输入到网络后会直接在输出层输出回归边界框的位置、尺寸以及边界框所属类别。相较于其他目标检测方法,YOLO-v3具有预测速度快、准确率高、对小物体识别能力较强等优点。本发明在原模型基础上调整了模型输入尺寸、卷积步长等参数使模型更适用于残余损伤检测。通过事先采集修复坑数据并对数据进行标注获取了用于模型训练的数据集,通过目标区域复制、图像尺度变换、旋转变换等方式对数据集进行了增强,使用该数据集进行模型训练和评估并最终获得了用于残余损伤检测的模型。使用该模型进行修复坑修复质量检测的具体过程为:The residual damage detection model is built on the basis of YOLO-v3, which is a single-stage defect detection network. After the image is input into the network, the position, size and category of the regressed bounding box will be directly output in the output layer. Compared with other target detection methods, YOLO-v3 has the advantages of fast prediction speed, high accuracy, and strong recognition ability of small objects. Based on the original model, the present invention adjusts the model input size, convolution step size and other parameters to make the model more suitable for residual damage detection. The data set for model training is obtained by collecting the repair pit data in advance and annotating the data. The data set is enhanced by means of target area replication, image scale transformation, rotation transformation, etc. The data set is used for model training and evaluation, and finally a model for residual damage detection is obtained. The specific process of using this model for repair pit repair quality detection is as follows:

步骤4-1、获取修复坑检测区域图像。Step 4-1, obtain the repair pit detection area image.

由于残余损伤尺寸较小,直接将修复坑图像调整到模型要求的输入尺寸将不利于小目标的检测。为此,采用滑窗方式进行检测,使用满足模型输入尺寸要求的滑框逐区域截取图像。为保证目标检测的完整性,滑框之间存在15%的区域重叠。Since the residual damage is small in size, directly adjusting the repaired pit image to the input size required by the model will be detrimental to the detection of small targets. Therefore, a sliding window method is used for detection, and the image is intercepted region by region using a sliding frame that meets the model input size requirements. To ensure the integrity of target detection, there is a 15% overlap between sliding frames.

步骤4-2、将截取的区域逐个输入到残余损伤检测模型中,判断截取区域是否存在残余损伤。若存在残余损伤则将残余损伤预测框的中心位置及其尺寸记录下来。Step 4-2: Input the intercepted areas one by one into the residual damage detection model to determine whether there is residual damage in the intercepted area. If there is residual damage, the center position and size of the residual damage prediction box are recorded.

步骤4-3、对检测结果进行整合,并将其保存到残余损伤检测结果文件中。Step 4-3: Integrate the test results and save them in a residual damage test result file.

若截取区域均为未测出残余损伤则该缺陷点被完全修复,跳过该修复点。若截取区域检测出残余损伤,则根据残余损伤预测框所在区域位置对所有预测框进行整合形成最终的预测结果。该结果将以矩形的形式框选出残余损伤区域。将存在残余损伤的修复坑ID、修复抗尺寸以及残余损伤的位置和尺寸等信息保存到残余损伤检测结果文件中。If no residual damage is detected in the intercepted area, the defect point is completely repaired and the repair point is skipped. If residual damage is detected in the intercepted area, all prediction boxes are integrated according to the location of the residual damage prediction box to form the final prediction result. The result will select the residual damage area in the form of a rectangle. The repair pit ID, repair resistance size, and residual damage location and size of the residual damage are saved in the residual damage detection result file.

本发明另一实施例提供一种大口径元件表面微缺陷激光修复质量的自动检测方法的实例分析,利用上述方法对已经完成缺陷点激光修复的某批次元件进行检测,该元件口径为430mm×430mm,共包含50个修复坑。使用自主开发的大口径熔石英元件表面缺陷自动化检测与修复控制软件可以实现修复坑的自动检测,以1mm和2mm修复坑为例对检测的具体过程进行阐述:Another embodiment of the present invention provides an example analysis of an automatic detection method for the quality of laser repair of micro-defects on the surface of large-caliber components. The above method is used to detect a batch of components that have completed laser repair of defect points. The diameter of the component is 430mm×430mm, and it contains a total of 50 repair pits. The self-developed large-caliber fused quartz component surface defect automatic detection and repair control software can realize automatic detection of repair pits. The specific process of detection is described by taking 1mm and 2mm repair pits as examples:

(1)根据激光修复文件中的坐标信息,将上述修复坑分别移至显微视野中心;(1) According to the coordinate information in the laser repair file, move the above repair pits to the center of the microscopic field of view;

(2)对于尺寸为1mm的修复坑直接对其进行单幅拍照,对于尺寸为2mm的修复坑对其进行3×3扫描拍照。在每个拍照点位置,控制Z轴移动,连续调整焦平面位置,采集三张不同聚焦状态的图像。(2) For repair pits with a size of 1 mm, a single photo is taken directly, and for repair pits with a size of 2 mm, a 3×3 scanning photo is taken. At each photo point, the Z axis is controlled to move, the focal plane position is continuously adjusted, and three images with different focus states are collected.

(3)对每个拍照点不同景深下的图像序列进行景深融合,获得该区域全景深图像。对于2mm的修复坑,使用融合后的图像进行图像拼接从而获得修复坑的完整图像。经过上述处理过程获得的修复坑图像如图4所示,图4(a)、(b)是采用1mm修复坑进行修复时,修复前后的显微图像,修复坑区域小于显微视野通过单幅拍照和景深融合可以获得图4(b)所示的修复坑清晰图像;图4(c)、(d)是采用2mm修复坑进行修复时,修复前后的显微图像,修复坑区域大于显微视野通过扫描拍照和景深融合可以获得图4(d)所示的修复坑清晰图像。(3) Perform depth of field fusion on the image sequences at different depths of field at each photographing point to obtain a full depth of field image of the area. For a 2 mm repair pit, the fused image is used for image stitching to obtain a complete image of the repair pit. The repair pit image obtained after the above processing is shown in Figure 4. Figures 4 (a) and (b) are microscopic images before and after repair when a 1 mm repair pit is used for repair. The repair pit area is smaller than the microscopic field of view. A clear image of the repair pit shown in Figure 4 (b) can be obtained through single-frame photography and depth of field fusion; Figures 4 (c) and (d) are microscopic images before and after repair when a 2 mm repair pit is used for repair. The repair pit area is larger than the microscopic field of view. A clear image of the repair pit shown in Figure 4 (d) can be obtained through scanning photography and depth of field fusion.

(4)将1mm和2mm修复坑图像输入到残余损伤检测模型中,模型自动判断修复坑是否存在残余损伤并以矩形框的形式框出残余损伤区域。检测结果如图4所示,对于1mm修复坑未发现残余损伤,修复坑修复完全;对于2mm修复坑,存在两处残余损伤,损伤区域被红色矩形框框出,如图4(b)、(d)所示。将2mm修复坑的编号和残余损伤位置保存到残余损伤检测结果文件中。(4) The 1mm and 2mm repair pit images are input into the residual damage detection model. The model automatically determines whether there is residual damage in the repair pit and frames the residual damage area in the form of a rectangular frame. The detection results are shown in Figure 4. For the 1mm repair pit, no residual damage is found, and the repair pit is completely repaired; for the 2mm repair pit, there are two residual damages, and the damaged area is framed by a red rectangular frame, as shown in Figure 4 (b) and (d). The number of the 2mm repair pit and the residual damage position are saved in the residual damage detection result file.

尽管根据有限数量的实施例描述了本发明,但是受益于上面的描述,本技术领域内的技术人员明白,在由此描述的本发明的范围内,可以设想其它实施例。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments are contemplated within the scope of the invention thus described. The disclosure of the present invention is intended to be illustrative rather than restrictive of the scope of the invention, which is defined by the appended claims.

Claims (4)

1. The automatic detection method for the laser repair quality of the surface defects of the fused quartz element is characterized by comprising the following steps of:
Step one, for each repair pit of an element, changing the distance between a camera and the element, and collecting a plurality of images containing the repair pit under different focusing states; wherein, adopt different collection modes to the repair hole of equidimension:
when the size of the repair pit is in the visual field of the camera, acquiring a single image containing the repair pit;
When the size of the repair pit is not in the visual field of the camera, carrying out array scanning acquisition on a part of the area of the element containing the repair pit to obtain a plurality of sub-images containing the repair pit, wherein two adjacent sub-images have overlapping areas; after a plurality of subgraphs containing the repair pit are obtained, calculating the translation dislocation quantity among the subgraphs by adopting a template matching-based method, and specifically comprising the following steps: firstly, using an overlapping area of two adjacent subgraphs as a template, and traversing all pixel positions of the two adjacent subgraphs by using the template; then, determining the position of the template in the adjacent subgraph by comparing the similarity degree of the template and the plurality of regions of the adjacent subgraph, wherein the similarity degree of the template and the different regions of the adjacent subgraph is calculated according to the following formula:
Wherein R (x, y) represents the similarity of the template to the sub-region centered at the (x, y) position; t ' (x ', y ') represents the value of the normalized template image at the (x ', y ') position; i ' (x+x ', y+y ') represents the value of the normalized sub-image at the (x+x ', y+y ') position; then, calculating the translation dislocation quantity of the adjacent subgraphs; and then processing the overlapping area of the two adjacent subgraphs in a weighted fusion mode, so that the plurality of subgraphs are subjected to image stitching, wherein the overlapping area of the two adjacent subgraphs is processed according to the following formula:
Wherein I 1、I2 represents an overlapping region of two adjacent images; n and n c respectively represent the size and fusion position of the overlapping region; α (·) is the overlap region fusion coefficient;
Performing depth of field fusion on a plurality of images in different focusing states to obtain a clear image containing a repair pit; the depth of field fusion process comprises the following steps: dividing each image containing a repair pit in a plurality of images in different focusing states into a plurality of image subareas, calculating pixel point gradient values in each image subarea for the same image subareas corresponding to the positions of the plurality of images, and selecting the image subarea with the maximum extracted pixel point gradient value; taking the pixel value of the image with the largest gradient value as the pixel value of the panoramic deep image, so that a plurality of extracted image subregions at different positions are combined into a new panoramic deep image;
Inputting a clear image containing a repair pit into a pre-trained residual damage detection model to obtain a detection result; the detection result includes the presence or absence of residual damage to the surface of the component.
2. The automatic detection method for laser repair quality of surface defects of fused quartz elements according to claim 1, wherein in the second step, gradient values of pixel points in image subregions are obtained through calculation of Laplacian.
3. The method for automatically detecting the quality of laser repair of surface defects of a fused silica component according to claim 2, wherein the pre-trained residual damage detection model in the third step is built based on a convolutional neural network YOLOV.
4. The method for automatically detecting the quality of laser repair of surface defects of a fused silica component according to claim 3, wherein the detection result in the third step further comprises the position and the size of residual damage.
CN202111428213.0A 2021-11-29 2021-11-29 An automatic detection method for the quality of laser repair of surface defects of fused quartz components Active CN114119556B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111428213.0A CN114119556B (en) 2021-11-29 2021-11-29 An automatic detection method for the quality of laser repair of surface defects of fused quartz components

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111428213.0A CN114119556B (en) 2021-11-29 2021-11-29 An automatic detection method for the quality of laser repair of surface defects of fused quartz components

Publications (2)

Publication Number Publication Date
CN114119556A CN114119556A (en) 2022-03-01
CN114119556B true CN114119556B (en) 2024-11-05

Family

ID=80370756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111428213.0A Active CN114119556B (en) 2021-11-29 2021-11-29 An automatic detection method for the quality of laser repair of surface defects of fused quartz components

Country Status (1)

Country Link
CN (1) CN114119556B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1715987A (en) * 2005-06-16 2006-01-04 武汉理工大学 Stitching Method of Large Panoramic Depth of View Under Microscope
CN109584156A (en) * 2018-10-18 2019-04-05 中国科学院自动化研究所 Micro- sequence image splicing method and device
CN110411346A (en) * 2019-08-12 2019-11-05 哈尔滨工业大学 A rapid positioning method for micro-defects on the surface of aspheric fused silica components

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111256616B (en) * 2020-03-30 2024-08-20 阳宇春 Metering level 3D ultra-depth-of-field microscopic system and detection method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1715987A (en) * 2005-06-16 2006-01-04 武汉理工大学 Stitching Method of Large Panoramic Depth of View Under Microscope
CN109584156A (en) * 2018-10-18 2019-04-05 中国科学院自动化研究所 Micro- sequence image splicing method and device
CN110411346A (en) * 2019-08-12 2019-11-05 哈尔滨工业大学 A rapid positioning method for micro-defects on the surface of aspheric fused silica components

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于多聚焦图像融合的小孔内表面缺陷检测;牛群遥;叶明;陆永华;;计算机应用;20161010(第10期);第2912-2915、2921页 *

Also Published As

Publication number Publication date
CN114119556A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN108760766B (en) An image stitching method for detecting micro-defects on the surface of large-diameter optical crystals
CN110006905B (en) Large-caliber ultra-clean smooth surface defect detection device combined with linear area array camera
CN107356608B (en) Rapid dark field detection method for micro-defects on the surface of large-diameter fused silica optical components
CN103674839B (en) A kind of visual Sample location operating system based on spot detection and method
CN114113114B (en) Automatic process method for detecting and repairing micro defects on surface of large-caliber element
CN114113116B (en) A process method for accurate detection of micro-defects on the surface of large-diameter components
KR101604005B1 (en) Inspection method
CN108645867B (en) Rapid locating and batch detection of micro-defects on the surface of large-diameter optical crystals
CN112881419B (en) Chip detection method, electronic device and storage medium
CN109239900B (en) Full-automatic rapid focusing method for large-field acquisition of microscopic digital image
CN110501347A (en) A kind of rapid automatized Systems for optical inspection and method
CN114113115B (en) A high-precision automatic positioning method for micro-defects on the surface of large-diameter components
CN110889823A (en) SiC defect detection method and system
CN104406988A (en) Method for detecting defects inside glass
CN118882520A (en) A three-dimensional detection device and method for surface defects of large-aperture curved optical elements
CN114113112B (en) A method for locating and identifying surface micro-defects based on a three-light source microscope system
CN117074418A (en) Method, system and storage medium for detecting semiconductor defect
CN119688708A (en) System, method and computer readable storage medium for detecting wafer cracks
CN114120318B (en) Dark field image target point accurate extraction method based on integrated decision tree
CN113079318B (en) System and method for automatically focusing edge defects and computer storage medium
CN119831941A (en) YOLOv 11-based quartz ring defect detection method
CN114119556B (en) An automatic detection method for the quality of laser repair of surface defects of fused quartz components
CN117871406B (en) Automatic optical detection method and system
JP4709762B2 (en) Image processing apparatus and method
CN115876803A (en) Milling cutter coating defect detection method and system based on zoom microscopy

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