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

CN114119556BActive Publication Date: 2024-11-05HARBIN INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111428213.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-29
Publication Date
2024-11-05
Estimated Expiration
2041-11-29

AI Technical Summary

Technical Problem

Existing technologies are insufficient to effectively detect the quality of laser repair of surface defects in fused silica components. Incompletely repaired defects can affect the lifespan of optical components and the stability of optical paths.

Method used

An automatic detection method is adopted, which acquires multiple images under different focusing conditions by changing the distance between the camera and the component, performs depth fusion and image stitching, and combines it with a pre-trained convolutional neural network YOLOv3 model to achieve residual damage detection of repair pits.

Benefits of technology

It achieves automated inspection without human intervention, ensuring the quality of surface defect repair of fused silica components, improving inspection efficiency and accuracy, and avoiding the impact of residual damage on optical components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114119556B_ABST
    Figure CN114119556B_ABST
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] 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

[0002] 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.

[0003] 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 the 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

[0004] 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.

[0005] An automatic detection method for the quality of laser repair of surface defects of a fused quartz component comprises the following steps:

[0006] 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;

[0007] Step 2: Perform depth of field fusion on multiple images in different focus states to obtain a clear image containing the repaired pit;

[0008] 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.

[0009] 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.

[0010] 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.

[0011] 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.

[0012] 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:

[0013]

[0014] 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').

[0015] 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.

[0016] Furthermore, in step 2, the gradient value of the pixel point in the image sub-region is obtained by Laplace operator calculation.

[0017] Furthermore, the pre-trained residual damage detection model in step three is built based on the convolutional neural network YOLOV3.

[0018] Furthermore, the detection result in step three also includes the location and size of the residual damage.

[0019] The beneficial technical effects of the present invention are:

[0020] 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

[0021] 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.

[0022] Figure 1 2 is a schematic diagram of the structure of an automatic detection device for surface defect repair quality in an embodiment of the present invention;

[0023] Figure 2 Schematic diagram of the repair pit image acquisition process in an embodiment of the present invention;

[0024] Figure 3 is a schematic diagram of a scanned image stitching process in an embodiment of the present invention;

[0025] Figure 4 : The figures are example figures of the residual damage detection results of the repair pits in the embodiments of the present invention; wherein, Figure (a) is the image before repair corresponding to the 1 mm repair pit; Figure (b) is the microscopic image after repair with the 1 mm repair pit; Figure (c) is the image before repair corresponding to the 2 mm repair pit; Figure (d) is the microscopic image after repair with the 2 mm repair pit. DETAILED DESCRIPTION

[0026] 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.

[0027] 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.

[0028] 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:

[0029] 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;

[0030] Step 2: Perform depth of field fusion on multiple images in different focus states to obtain a clear image containing the repaired pit;

[0031] 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.

[0032] 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.

[0033] 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.

[0034] 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.

[0035] 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:

[0036]

[0037] 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').

[0038] 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.

[0039] 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.

[0040] In this embodiment, optionally, the pre-trained residual damage detection model in step three is built based on the convolutional neural network YOLOV3.

[0041] In this embodiment, optionally, the detection result in step three also includes the location and size of the residual damage.

[0042] Another embodiment of the present invention provides an automatic detection method for the quality of laser repair of surface defects of a fused quartz component, and its corresponding detection device is as follows: Figure 1 As shown, it includes a motion platform and a microscopic detection system. The motion platform includes three motion axes, X, Y, and Z. 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 X and Y motion axes of the motion platform 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 to adjust the object distance, so that the repair pit can be imaged clearly. The microscopic detection system consists of an array CCD camera, a microscope lens, and a light source. The resolution of the array CCD camera is 2456×2056, and the field of view is 1.5mm×1.3mm. The light source uses a backlight source. Since the repaired part of the repair pit has better light transmittance than the part containing residual damage, the two have different imaging characteristics under backlighting, 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:

[0043] Step 1: Develop a repair pit detection path.

[0044] 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.

[0045] Step 2: Use a microscopic detection system to collect images of the repaired pits.

[0046] 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:

[0047] Step 2-1: Use different collection methods according to the size of the repair pit.

[0048] The size of the repair pit ranges from 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 used to directly locate it at the center of the microscope field of view and take a single picture; for larger repair pits, the following method can be used: Figure 2 The scanning and photographing method shown performs array scanning on a 3×3 microscopic area. To facilitate subsequent image stitching, the step value in the X-axis direction is less than 1.5 mm, and the step value in the Y-axis direction is less than 1.3 mm during the scanning process, thereby ensuring that there is a 10% overlap between 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. Figure 2 The solid arrow in the middle represents the movement trajectory of the platform when the microscope camera takes pictures. 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 a clear image of the shooting position is obtained, the platform is controlled to continue moving to complete the scanning of the 3×3 area.

[0049] Step 2-2: Collect images at different focus states of the photo point.

[0050] 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).

[0051] h=Rtanα (1)

[0052] Among them, R is the repair pit size and α is the cone angle.

[0053] 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.

[0054] Step 3: Process the collected data to obtain a clear image of the area to be detected.

[0055] 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.

[0056] 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).

[0057] I(i,j)=I m (i,j),m=index(max(L k (i,j))),k=1,2,3 (2)

[0058] Where, L k Represents the Laplace gradient image of the kth image in the image sequence. The index function is used to obtain the sequence number of the image sequence.

[0059] For larger repair pits, the overlapping local images of the repair pits are stitched together to form a seamless complete image of the repair pit. Since the array scanning process of the component is completed on an XY two-dimensional platform, there is only translational misalignment between the 9 images collected, but no rotational misalignment. Therefore, a template matching-based method is used to calculate the translational misalignment between images, thereby realizing image stitching. The image stitching process is as follows: Figure 3 As shown, Figure 3 (a) and (b) are schematic diagrams of two adjacent images during the scanning process. Figure 3 In (b), a portion of the image in the overlapping area of ​​the two images is cut out as a matching template, and the template is used to traverse Figure 3 At all pixel positions in (a), the template is determined by comparing the similarity between the template and its covered area. Figure 3 (a), thereby obtaining the translation misalignment of the two images. The similarity between the template and its covered area is evaluated using equations (3) to (5):

[0060]

[0061]

[0062]

[0063] Where T and I represent the template image and the target image respectively; w T 、h T Respectively represent the width and height of the template image; w I 、h I Respectively represent the width and height of the template coverage area.

[0064] The template and target image are standardized by using 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 using 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 stitched image obtained by this method. However, due to the influence of uneven illumination, there are obvious stitching marks at the stitching position during the image stitching process. Therefore, formula (6) is used to process the overlapping area of ​​the two images, and the stitched image slowly transitions from the first image to the second image through weighted fusion.

[0065]

[0066] Where I1 and I2 represent the overlapping area of ​​two adjacent images; n and n c They represent the size of the overlapping area and the fusion position respectively; α(·) is the overlapping area fusion coefficient, and the value is related to the fusion position.

[0067] Perform the above operations on all images to obtain a stitched image of the large-sized repaired pit.

[0068] Step 4: Detect the repair pit area using the residual damage detection model and save the detection results.

[0069] 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.

[0070] 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:

[0071] Step 4-1, obtain the repair pit detection area image.

[0072] 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.

[0073] 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.

[0074] Step 4-3: Integrate the test results and save them in a residual damage test result file.

[0075] 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.

[0076] 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:

[0077] (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;

[0078] (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.

[0079] (3) Perform depth fusion on the image sequences at different depths of field at each shooting point to obtain a full depth image of the area. For a 2 mm repair pit, the fused images are 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 the figure. Figure 4 As shown, Figure 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, which can be obtained by single-frame photography and depth of field fusion. Figure 4 (b) A clear image of the repair pit shown; Figure 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, which can be obtained through scanning photography and depth of field fusion. Figure 4 (d) A clear image of the repaired pit is shown.

[0080] (4) The 1 mm and 2 mm 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. Figure 4 As shown in the figure, no residual damage was found for the 1 mm repair pit, and the repair pit was completely repaired; for the 2 mm repair pit, there were two residual damages, and the damaged area was framed by a red rectangle, as shown in the figure. Figure 4 (b) and (d) show that the number of the 2 mm repair pit and the residual damage position are saved in the residual damage detection result file.

[0081] 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

1. An automatic detection method for the quality of laser repair of surface defects of fused quartz components, characterized in that: The following steps are involved: 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; different collection methods are used for repair pits of different sizes: When the size of the repaired pit is within the camera's field of view, a single image containing the repaired pit is acquired; When the size of the repair pit is not within the camera field of view, an array scanning acquisition 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 overlapping areas; 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, specifically including: first, the overlapping area of ​​the two adjacent sub-images is used as a template, and the template is used to traverse all pixel positions of the two adjacent sub-images; then, the position of the template in the adjacent sub-image is determined by comparing the similarity between the template and multiple areas of the adjacent sub-image, wherein the similarity between the template and different areas of the adjacent sub-image is calculated according to the following formula: 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'); then, the translation misalignment of adjacent sub-images is calculated; then, the overlapping area of ​​two adjacent sub-images is processed by weighted fusion, so as to stitch multiple sub-images, wherein the overlapping area of ​​two adjacent sub-images is processed according to the following formula: Where I1 and I2 represent the overlapping area of ​​two adjacent images; n and n c They represent the size and fusion position of the overlapping area respectively; α(·) is the fusion coefficient of the overlapping area; Step 2: Perform depth of field fusion on multiple images in different focusing states to obtain a clear image containing the repair pit; the process of the depth of field fusion is: divide each image containing the repair pit in the multiple images in different focusing states into multiple image sub-regions, calculate the gradient value of the pixel points in each image sub-region for the 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; use the pixel value of the image where the pixel point with the largest gradient value is located as the pixel value of the full depth image, so as to combine the multiple image sub-regions extracted at different positions into a new full depth image; 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.

2. The automatic detection method for the quality of laser repair of surface defects of fused quartz components according to claim 1 is characterized in that: In step 2, the gradient value of the pixel point in the image sub-region is obtained by Laplace operator calculation.

3. The automatic detection method for the quality of laser repair of surface defects of fused quartz components according to claim 2 is characterized in that: The pre-trained residual damage detection model in step three is built based on the convolutional neural network YOLOV3.

4. The automatic detection method for the quality of laser repair of surface defects of fused quartz components according to claim 3 is characterized in that: The detection results in step 3 also include the location and size of the residual damage.