Welding seam defect detection system, welding seam surface defect identification method and welding seam size defect measurement method

Through the deep learning model and laser triangulation ranging method of the welding defect detection system, combined with vision technology, the problem of existing welding quality inspection equipment being unable to effectively detect weld surface defects and dimensional defects has been solved, achieving efficient and accurate Automated inspection, suitable for a variety of materials and welding methods.

CN118746582APending Publication Date: 2024-10-08SHANGHAI NUCLEAR ENGINEERING RESEARCH & DESIGN INSTITUTE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410906835.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Existing welding quality inspection devices cannot effectively detect weld surface defects and dimensional defects, are inefficient, prone to missed detections and misdetections, and have limited application scenarios.

Method used

A weld defect detection system is designed, which combines active and passive vision, uses a deep learning detection model and laser triangulation ranging method, and collects weld surface images and stripe information through the first camera and the second camera to realize welding. Automated detection of seam surface defects and dimensional defects.

Benefits of technology

It realizes automated detection of weld surface defects and dimensional defects, improves detection efficiency and accuracy, is suitable for a variety of materials and welding methods, and expands application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118746582A_ABST
    Figure CN118746582A_ABST
Patent Text Reader

Abstract

The invention relates to a welding seam defect detection system, a welding seam surface defect identification method and a welding seam size defect measurement method. The weld defect detection system comprises a shell; the clamping unit comprises a movable arm, one end of the movable arm is fixed on the welding equipment, and the other end of the movable arm is fixed on the shell; the collecting unit is arranged in the shell and comprises a first camera, a second camera and a laser, the laser is used for scanning the surface of the welding seam, the first camera is used for collecting stripe information irradiated by the laser on the surface of the welding seam, and the second camera is used for collecting a surface image of the welding seam; the collecting unit adjusts the collecting angle through a movable arm of the clamping unit so that the laser can irradiate the surface of the weld joint, and the first camera and the second camera can obtain corresponding stripe information and surface images. According to the invention, automatic detection of weld surface defects and size defects can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent detection of welding defects, and in particular to a weld defect detection system, a weld surface defect recognition method and a weld size defect measurement method. Background Art

[0002] In the welding process, weld surface defects and size defects are important factors affecting welding quality. Traditional detection methods often rely on manual detection, which is inefficient and prone to missed detection and false detection. Therefore, it is particularly important to develop an automated weld quality detection device. Currently, most welding quality detection devices on the market can only achieve basic functions such as weld tracking and molten pool monitoring, and have limited detection capabilities for weld surface defects and size defects.

[0003] Chinese invention patent application number: 201911303049.3, the invention name is "Arc spectrum sensor and method for aluminum alloy welding porosity defect detection", which provides a welding defect detection sensor. This patent uses spectral sensing technology to achieve a simpler and faster aluminum alloy welding porosity defect detection. However, this sensor can only detect surface defects of aluminum alloy welding materials and pores. It cannot detect other surface defects and size defects of other materials, and its application scenarios are limited. Summary of the invention

[0004] In view of the above problems in the prior art, the present invention proposes a weld defect detection system, a weld surface defect recognition method and a weld size defect measurement method, which can realize automatic detection of weld surface defects and size defects.

[0005] Specifically, the present invention proposes a weld defect detection system, comprising:

[0006] case;

[0007] The clamping unit comprises a movable arm, one end of which is fixed to the welding device, and the other end of which is fixed to the shell;

[0008] A collection unit is arranged in the housing, the collection unit comprises a first camera, a second camera and a laser, the laser is used to scan the surface of the weld, the first camera is used to collect stripe information irradiated by the laser on the surface of the weld, and the second camera is used to collect the surface image of the weld;

[0009] The acquisition unit adjusts the acquisition angle through the movable arm of the clamping unit so that the laser irradiates the weld surface, and the first camera and the second camera can obtain corresponding fringe information and surface images.

[0010] According to one embodiment of the present invention, a camera fixture and a laser fixture are provided in the housing, the laser fixture is used to fix the laser, and the camera fixture is used to fix the first camera and the second camera on both sides of the housing;

[0011] The laser irradiation angle and the first camera shooting angle form a set angle.

[0012] According to one embodiment of the present invention, a first mounting groove, a second mounting groove and a third mounting groove are provided at the bottom of the shell, the bottom of the first camera is fixed in cooperation with the first mounting groove, the bottom of the second camera is fixed in cooperation with the second mounting groove, and the bottom of the laser is fixed in cooperation with the third mounting groove.

[0013] According to an embodiment of the present invention, the first camera includes a first camera body and a first visual lens connected to the first camera body, and an end of the first visual lens is fixedly matched with the first mounting groove;

[0014] The second camera includes a second camera body and a second visual lens connected to the second camera body, and an end of the second visual lens is fixed in cooperation with the second mounting groove.

[0015] According to an embodiment of the present invention, a neutral density filter system is further provided at the bottom of the housing, comprising a group of neutral density filters, and the neutral density filters are coaxial with the first visual lens.

[0016] According to an embodiment of the present invention, a bottom plate is provided on the bottom surface of the housing, and the bottom plate comprises high temperature resistant protective glass.

[0017] According to one embodiment of the present invention, a cooling air duct is formed on the inner wall of the shell, and an air inlet hole and an air outlet hole are opened on the top of the shell. The air inlet hole and the air outlet hole are connected with the cooling air duct to form a cooling circuit, and the cooling circuit is used to take away the heat generated by the first camera and the second camera.

[0018] According to one embodiment of the present invention, an aviation socket and a data cable slot are provided on the top of the shell, and the first camera, the second camera and the laser are powered through the aviation socket, and the data cable slot is used to arrange data cables, and the first camera and the second camera receive instructions and / or send collected data to the outside through the data cables.

[0019] According to one embodiment of the present invention, the clamping unit further comprises a first crab claw clamp and a second crab claw clamp, the first crab claw clamp is arranged at one end of the movable arm, and the movable arm is fixedly clamped on the welding device by the first crab claw clamp;

[0020] A second crab claw is provided at the other end of the movable arm, and the second crab claw is used to clamp an iron block or a magnet. The movable arm is fixed to the shell by magnetic attraction through the iron block or the magnet.

[0021] According to one embodiment of the present invention, the movable arm comprises a first connecting arm, a second connecting arm and a universal joint, and the first connecting arm and the second connecting arm are connected through the universal joint and the connection angle between them can be adjusted;

[0022] The first crab claw clamp is fixedly arranged at one end of the first connecting arm away from the universal joint, and the second crab claw clamp is fixedly arranged at one end of the second connecting arm away from the universal joint.

[0023] The present invention also provides a method for identifying weld surface defects, which is applicable to the aforementioned weld defect detection system, and comprises the steps of:

[0024] S1, adjusting the acquisition angle of the second camera by the clamping unit;

[0025] S2, calibrating the second camera;

[0026] S3, the second camera collects a surface image of the weld;

[0027] S4, detecting surface defects of the weld according to the established deep learning detection model.

[0028] According to one embodiment of the present invention, the method for establishing the deep learning detection model includes:

[0029] S41, collects a large number of defective weld surface images;

[0030] S42, data enhancement of the weld surface image;

[0031] S43, feature annotation is performed on the weld surface image after data enhancement, the location and type of surface defects are annotated, and a corresponding surface defect database is established;

[0032] S44, select YOLOv8 as a deep learning detection model, and train and optimize the deep learning detection model through a surface defect database.

[0033] The present invention also provides a weld size defect measurement method, which is applicable to the aforementioned weld defect detection system, comprising the steps of:

[0034] T1, calibrating the first camera and laser;

[0035] T2, the first camera collects the stripe information of the laser irradiating the surface of the weld and performs coordinate transformation on the stripe information;

[0036] T3, extract the key feature points of the fringe information after coordinate transformation and measure the size defects of the weld;

[0037] T4, based on the fringe information and key feature points, generating a corresponding point cloud image, and obtaining three-dimensional point cloud data of the weld by time series superposition;

[0038] T5, the collected 3D point cloud data is processed by a 3D point cloud reconstruction algorithm to generate a 3D model of the weld.

[0039] The present invention provides a weld defect detection system, a weld surface defect recognition method and a weld size defect measurement method, which realize automatic detection of weld surface defects and size defects by combining the active and passive vision of a first camera and a second camera, combined with deep learning technology and laser triangulation.

[0040] It is to be understood that both the foregoing general description and the following detailed description of the present invention are exemplary and explanatory and are intended to provide further explanation of the invention as claimed. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings are included to provide further explanation of the present invention, and are incorporated into and constitute a part of this application. The accompanying drawings illustrate embodiments of the present invention and together with the description serve to explain the principle of the present invention.

[0042] In the attached figure:

[0043] Figure 1 A structural schematic diagram of a weld defect detection system according to an embodiment of the present invention is shown.

[0044] Figure 2 A schematic structural diagram of a housing according to an embodiment of the present invention is shown.

[0045] Figure 3 A structural schematic diagram of a weld defect detection system according to an embodiment of the present invention is shown.

[0046] Figure 4 A flowchart of a method for identifying weld surface defects according to an embodiment of the present invention is shown.

[0047] Figure 5 A schematic diagram showing the effect of a method for identifying weld surface defects according to an embodiment of the present invention is shown.

[0048] Figure 6 A flowchart of a method for measuring weld size defects according to an embodiment of the present invention is shown.

[0049] Fig. 7A A schematic diagram showing a single frame of stripe information captured by a first camera according to an embodiment of the present invention.

[0050] Figure 7B A schematic diagram showing fringe information and key feature points before coordinate transformation according to an embodiment of the present invention is shown.

[0051] Figure 7C A schematic diagram of a single-frame point cloud image according to an embodiment of the present invention is shown.

[0052] Fig.7D A schematic diagram of a three-dimensional point cloud image of a weld according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0053] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.

[0054] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present application and its application or use. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0055] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0056] Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values ​​of the parts and steps set forth in these embodiments do not limit the scope of the application. Meanwhile, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to actual proportional relationships. The technology, methods and equipment known to those of ordinary skill in the relevant art may not be discussed in detail, but in appropriate cases, the technology, methods and equipment should be considered as a part of the specification. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, and therefore, once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.

[0057] In the description of the present application, it should be understood that the directions or positional relationships indicated by directional words such as "front, back, up, down, left, right", "lateral, vertical, perpendicular, horizontal" and "top, bottom" are usually based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present application and simplifying the description. Unless otherwise specified, these directional words do not indicate or imply that the device or element referred to must have a specific direction or be constructed and operated in a specific direction, and therefore cannot be understood as limiting the scope of protection of the present application; the directional words "inside and outside" refer to the inside and outside relative to the contours of each component itself.

[0058] In addition, it should be noted that the use of words such as "first" and "second" to define components is only for the convenience of distinguishing the corresponding components. If not otherwise stated, the above words have no special meaning and cannot be understood as limiting the scope of protection of this application. In addition, although the terms used in this application are selected from well-known and commonly used terms, some terms mentioned in the specification of this application may be selected by the applicant at his or her discretion, and their detailed meanings are explained in the relevant parts of the description of this article. In addition, it is required to understand this application not only by the actual terms used, but also by the meaning implied by each term.

[0059] Figure 1 A structural schematic diagram of a weld defect detection system according to an embodiment of the present invention is shown. Figure 2 A schematic structural diagram of a housing according to an embodiment of the present invention is shown. Figure 3 The schematic diagram of the structure of a weld defect detection system according to an embodiment of the present invention is shown. As shown in the figure, a weld defect detection system 100 mainly includes a housing 101, a clamping unit 102 and a collection unit.

[0060] The clamping unit 102 includes a movable arm 103 . One end of the movable arm 103 is fixed to the welding device, and the other end is fixed to the housing 101 .

[0061] The acquisition unit is arranged in the housing 101. The acquisition unit includes a first camera 104, a second camera 105 and a laser 106. The laser 106 is used to scan the surface of the weld. The first camera 104 is used to collect the stripe information irradiated by the laser 106 on the surface of the weld. The second camera 105 is used to collect the surface image of the weld. Specifically, the laser 106 is a linear laser light source, which generates laser stripes on the surface of the weld. The laser stripes can not only be photographed by the first camera 104, but also can be observed by the operator through the naked eye, so the visible light band must be selected. Since the vertical distance between the first camera 104 and the weld may change, the laser 106 must also have a focusing function so that the first camera 104 can collect clear laser stripes at different heights. Considering comprehensively, a focusable red laser with a central wavelength of 638nm is preferred. The first camera 104 and the second camera 105 are both CMOS cameras, and the first camera 104 is an active vision CMOS camera for collecting laser stripe information. The second camera 105 is a passive vision CMOS camera, which is used to collect the surface image of the weld.

[0062] The collection unit adjusts the collection angle through the movable arm 103 of the clamping unit 102 so that the laser 106 irradiates the weld surface, and the first camera 104 and the second camera 105 can obtain corresponding fringe information and weld surface images.

[0063] Preferably, a camera fixture 107 and a laser fixture 108 are provided in the housing 101. The laser fixture 108 is used to fix the laser 106. A screw hole is provided on the laser fixture 108, and the laser fixture 108 is fixed to the inner wall of the housing 101 by screws and screw holes. The laser fixture 108 is used to ensure that the laser 106 does not rotate during use and remains in the same state. The camera fixture 107 is used to fix the first camera 104 and the second camera 105 on both sides of the housing 101. The camera fixture 107 includes a first fixture 109 and a second fixture 110 of an integrated structure, which are manufactured by aluminum alloy machining. The first camera 104 and the second camera 105 are respectively fixed to the first fixture 109 and the second fixture 110 by means of screws and screw holes. The camera fixture 107 also includes a third fixture 111 and a fourth fixture 112, and the third fixture 111 and the fourth fixture 112 cooperate with the first fixture 109 and the second fixture 110 from the front-to-back direction to fix the first camera 104 and the second camera 105 to both sides of the housing 101. It should be noted that the laser fixture 108 and the camera fixture 107 are easy to process, which reduces the manufacturing cost, and are easy to assemble, simplify the assembly process and easy to maintain. Furthermore, the irradiation angle of the laser 106 forms a set angle with the shooting angle of the first camera 104, and the set angle is preferably 30°. The half-field viewing angle of the first camera 104 is about 28°, and the set angle can ensure that the first camera 104 collects laser stripe information.

[0064] Preferably, reference Figure 2 , a first mounting groove 113, a second mounting groove 114 and a third mounting groove 115 are provided at the bottom of the housing 101. The bottom of the first camera 104 is fixedly matched with the first mounting groove 113, the bottom of the second camera 105 is fixedly matched with the second mounting groove 114, and the bottom of the laser 106 is fixedly matched with the third mounting groove 115. The first camera 104, the second camera 105 and the laser 106 are basically located in the same vertical plane. More preferably, the first camera 104 is a black and white camera, including a first camera body 116 and a first visual lens 117 connected to the first camera body 116, and the end of the first visual lens 117 is fixedly matched with the first mounting groove 113. The second camera 105 includes a second camera body 118 and a second visual lens 119 connected to the second camera body 118, and the end of the second visual lens 119 is fixedly matched with the second mounting groove 114. In order to ensure that the second camera 105 is not blocked and to avoid ghost images around the image, the distance between the end of the second visual lens 119 and the bottom of the housing 101 is set to 2 mm to ensure the image quality. A focusing groove 135 is provided on one side of the first mounting groove 113 and the second mounting groove 114, and the operator can adjust the focal length of the first visual lens 117 and the second visual lens 119 through the focusing groove 135.

[0065] Preferably, a laser transmission window 136 is formed at the bottom of the second mounting groove 114. The red laser emitted by the laser 106 is irradiated onto the weld surface through the laser transmission window 136, and the focus of the first visual lens 117 is adjusted through the focusing groove 135, and the first camera 104 completes image capture.

[0066] Preferably, a dimming filter system is also provided at the bottom of the housing 101. Since the laser stripes emitted by the laser 106 are bright, there will be reflections on the polished weld surface, which will affect the subsequent extraction of the center of the laser stripes. At the same time, if the ambient brightness is too high, the collected image is not conducive to the extraction of the laser stripes. Therefore, a dimming filter system is required to filter the ambient light and other wavelengths of light. Figure 1, the dimming filter system includes a group of dimming filters 120, and the dimming filters 120 are coaxial with the first visual lens 117. Specifically, the dimming filter system also includes a filter drawer for storing a group of dimming filters 120. The filter drawer can be pulled out or pushed in from one side of the housing 101, which is convenient for debugging and replacing the dimming filters 120. When the filter drawer is pushed into the housing 101, the dimming filter 120 is located directly below the first visual lens 117 and coaxial therewith. In this embodiment, the dimming filter 120 used is a narrow-band filter for filtering ambient light and reflected light, with a central wavelength of 650nm, a bandwidth of 100nm, a transmittance greater than 90%, and a cut-off depth of OD3.

[0067] Preferably, a bottom plate 121 is provided on the bottom surface of the housing 101, and the bottom plate 121 includes a high temperature resistant protective glass. Specifically, a 2 mm groove is dug on the surface of the bottom plate 121 to place the high temperature resistant protective glass to prevent the splashes generated during welding from damaging the dimming filter system and the camera lens.

[0068] Preferably, a cooling air duct 122 is formed on the inner wall of the shell 101. An air inlet 123 and an air outlet 124 are provided at the top of the shell 101. The air inlet 123 and the air outlet 124 are connected with the cooling air duct 122 to form a cooling circuit, and the cooling circuit is used to take away the heat generated by the first camera 104 and the second camera 105. More preferably, the cooling air duct 122 is composed of a groove on the inner wall of the shell 101 and a cooling copper plate covering the groove. Specifically, a groove with a depth of 1.5 mm and a length as dense as possible is dug under the surface of the inner wall of the shell 101 to form a meandering air duct, and a cooling copper plate that matches the meandering air duct is used to cover the air duct so that the cooling system becomes a circulating cooling circuit. The cooling circuit is a closed space, and the cooling copper plate has good thermal conductivity. The cooling gas is input into the air inlet 123, flows in the cooling circuit, and is finally discharged from the air outlet 124. The cooling circuit helps the internal heating elements of the first camera 104, the second camera 105 to exchange heat and achieve rapid heat dissipation by bringing the first camera 104, the second camera 105 into contact with the cooling copper plate. The cooling circuit increases the service life of the first camera 104 and the second camera 105, thereby meeting the operational requirements of long-term automated welding in actual industrial applications and ensuring monitoring effects.

[0069] Preferably, an integrated aviation plug port 125 and a data line slot 126 are provided on the top of the housing 101. The first camera 104, the second camera 105 and the laser 106 receive power through the aviation plug port 125, and the data line slot 126 is used to arrange data lines. The first camera 104 and the second camera 105 receive instructions and / or send collected data to the outside through the data lines. In short, the aviation plug port 125 is used to supply power to the devices inside the housing 101, and the data line slot 126 is provided with data lines to provide communication between the devices inside the housing 101. More preferably, the aviation plug port 125 and the data line slot 126 are integrated to facilitate system installation and debugging and improve the efficiency of error troubleshooting.

[0070] Preferably, the weld defect detection system 100 further includes a power module (not shown). The power module includes a step-down module and a relay, and the step-down module converts the externally provided 220V voltage into the rated voltage of the acquisition unit. Among them, the voltage used by the laser 106 is 3V, and the working voltages of the first camera 104 and the second camera 105 are both 5V. The external industrial computer controls the acquisition unit through the relay.

[0071] Preferably, the housing 101 includes a housing body and a cover plate (not shown), and the housing body and the cover plate structure cooperate to form a sealed space for accommodating the first camera 104, the second camera 105 and the laser 106, so as to prevent smoke and other debris in the welding process from entering the housing 101 and affecting the collection effect and service life of the collection unit. Figure 2 A front cover fixing hole 137 is opened on one side of the bottom of the shell 101, and the front cover is fixed to the shell body by screws that are threadedly engaged with the front cover fixing hole 137.

[0072] Preferably, the clamping unit 102 also includes a first crab claw clamp 127 and a second crab claw clamp 128. The first crab claw clamp 127 is provided at one end of the movable arm 103, and the movable arm 103 is fixedly clamped on the welding equipment by the first crab claw clamp 127. The welding equipment can be a welding gun or a welding trolley. Taking the welding gun as an example, the first crab claw clamp 127 is fixedly connected to the welding gun by threaded fastening. The second crab claw clamp 128 is provided at the other end of the movable arm 103, and the second crab claw clamp 128 is used to clamp an iron block or a magnet. The movable arm 103 is magnetically fixed to the shell 101 through an iron block 129 or a magnet. That is to say, an iron block or a magnet is provided on the shell 101, so that the second crab claw clamp 128 and the shell 101 are magnetically fixed. In this embodiment, the second crab claw clamp 128 clamps the iron block 129, and a 31 mm circular magnet 131 is set on one side of the housing 101. The iron block 129 and the magnet 130 are magnetically fixed, so that the housing 101 is fixed to the second crab claw clamp 128. Figure 3A row of 22 mm circular magnets 131 is provided on the back outer wall of the housing 101 , and the iron block 129 can be selectively adsorbed onto the back magnets 131 , so that the collection angles of the first camera 104 and the second camera 105 can be adjusted.

[0073] Preferably, the movable arm 103 includes a first connecting arm 132, a second connecting arm 133 and a universal joint 134. The first connecting arm 132 and the second connecting arm 133 are connected by the universal joint 134, and the connection angle between the first connecting arm 132 and the second connecting arm 133 can be adjusted by the universal joint 134. The first crab clamp 127 is fixedly arranged at one end of the first connecting arm 132 away from the universal joint 134, and the second crab clamp 128 is fixedly arranged at one end of the second connecting arm 133 away from the universal joint 134. It is easy to understand that the movable arm 103 can be adjusted at multiple angles in three-dimensional space through the universal joint 134, thereby enhancing the posture and position adaptability between the collection unit inside the shell 101 and the welding gun, so that the collection unit inside the shell 101 can reach any place within the working range.

[0074] Figure 4 A flowchart of a weld surface defect recognition method according to an embodiment of the present invention is shown. As shown in the figure, the present invention also proposes a weld surface defect recognition method, which is applicable to the aforementioned weld defect detection system 100. It should be noted that the weld surface defect recognition method is intended to realize automatic detection and recognition of weld surface defects. Weld surface defects, such as cracks, pores, etc., will not only affect the appearance of the weld, but also cause local stress concentration in the weld, and the weld quality will not meet the standards. Generally speaking, the quality of the weld can be controlled from two aspects: before welding and after welding. Before welding, select appropriate welding materials, optimize process parameters, and avoid the formation of weld defects as much as possible; after welding, perform quality inspection on the weld, and evaluate the weld qualitatively and quantitatively to ensure the quality of the welded structural parts. The weld surface defect recognition method provided by the present invention performs quality inspection on the weld surface defects after welding.

[0075] The weld surface defect identification method comprises the steps of:

[0076] S1, adjusting the acquisition angle of the second camera 105 through the clamping unit 102 so that the second camera 105 is aligned with the weld surface;

[0077] S2, calibrating the second camera 105 to ensure that the weld surface image can be accurately obtained;

[0078] S3, the second camera 105 collects the weld surface image;

[0079] S4, detecting surface defects of the weld according to the established deep learning detection model.

[0080] The weld surface defect recognition method provided by the present invention combines computer vision and deep learning technology, which can timely detect and deal with weld surface defect problems, improve production quality and efficiency, and provide important technical support for industrial production.

[0081] Preferably, in step S4, the method for establishing the deep learning detection model includes:

[0082] S41, collecting a large number of defective weld surface images. It is necessary to prepare weld samples with different types of defects and obtain defect images in a laboratory or factory environment.

[0083] S42, data enhancement is performed on the weld surface image, including rotation, flipping, scaling and other operations, to expand the data set and improve the generalization ability of the detection model.

[0084] S43, feature annotation is performed on the weld surface image after data enhancement, and the location and type of surface defects, i.e., defect area and defect type, are annotated. This step is crucial because the annotation quality directly affects the training effect of the subsequent model. Next, a corresponding surface defect database is established based on the annotated data.

[0085] S44, YOLOv8 is selected as the deep learning detection model, and the deep learning detection model is trained and optimized through the surface defect database, so that the deep learning detection model can quickly detect various defects on the weld surface. The surface defect types in the detection results are such as pores, cracks, etc. At the same time, the detection results also give detailed information such as the size and location of the defects, providing users with a comprehensive quality assessment.

[0086] The method for establishing a deep learning detection model needs to fully consider the characteristics and discrimination of different defect types, as well as the robustness and generalization ability of the detection model, so as to ensure that various defects on the weld surface can be reliably detected in practical applications. The present invention provides a prediction model with a deep learning neural network as the core, which has high prediction accuracy and strong adaptability to different materials and different welding methods. For new application scenarios, adaptation to new scenarios can be achieved by increasing the training data set. Therefore, the deep learning detection model provided by the invention can be expanded to a wide range of fields and has strong adaptability.

[0087] Figure 5 The schematic diagram of the effect of the weld surface defect recognition method according to an embodiment of the present invention is shown. As shown in the figure, image acquisition is performed in step S3 to obtain a surface image of the weld, and defect detection is performed in step S4 to detect that the category of the weld surface defect is a crack, and the corresponding position and confidence are obtained.

[0088] Figure 6The flowchart of a weld size defect measurement method according to an embodiment of the present invention is shown. As shown in the figure, the present invention also provides a weld size defect measurement method, which is applicable to the aforementioned weld defect detection system 100. The weld size defect measurement method comprises the steps of:

[0089] T1, calibrating the first camera 104 and the laser 106 to calibrate the spatial relationship between the image and the laser stripe data;

[0090] T2, the first camera 104 collects the stripe information irradiated by the laser 106 on the weld surface, that is, the weld is quickly scanned using laser scanning technology, and the first camera 104 collects the laser stripe information on the weld surface and performs coordinate transformation on the stripe information. Coordinate transformation refers to the coordinate transformation between the first camera 104 and the world coordinate system, and aligns the laser stripe information image with the coordinate system of the subsequently obtained three-dimensional model to ensure the accuracy and consistency of the measurement.

[0091] T3, extract the key feature points of the fringe information after coordinate transformation and measure the size defects of the weld;

[0092] T4, based on the fringe information and key feature points, the corresponding point cloud image is generated, and the three-dimensional point cloud data of the weld is obtained by time series superposition;

[0093] T5, through the 3D point cloud reconstruction algorithm, the collected 3D point cloud data is processed to generate a 3D model of the weld. Users can intuitively view the 3D model of the weld and obtain the corresponding data of the weld size defects, which provides an important basis for the evaluation of welding quality.

[0094] Fig. 7A A schematic diagram showing a single frame of stripe information captured by a first camera according to an embodiment of the present invention. Figure 7B A schematic diagram showing fringe information and key feature points before coordinate transformation according to an embodiment of the present invention is shown. Figure 7C A schematic diagram of a single-frame point cloud image according to an embodiment of the present invention is shown. Fig.7D FIG. 1 is a schematic diagram showing a three-dimensional point cloud diagram of a weld according to an embodiment of the present invention. Fig. 7A As shown, in step T2, the first camera 104 collects single-frame fringe information of the laser 106 irradiating the weld surface. By coordinate transformation, the corresponding fringe information is obtained. In step T3, the key feature points are extracted, referring to Figure 7B The red dots in the figure, the key feature points include the left and right boundary points of the weld, etc. In step T4, based on the stripe information and the key feature points, generate Figure 7C In step T5, a three-dimensional point cloud image of the weld is obtained by time-series superposition.

[0095] The weld size defect measurement method provided by the present invention combines computer vision and three-dimensional reconstruction technology, and finally uses a measurement algorithm to measure and analyze the size of the weld, identify the size defects, and output the corresponding results. Through this defect measurement method, the automatic detection and accurate measurement of weld size defects can be realized, which improves production efficiency and product quality, and provides important technical support for welding technology.

[0096] A weld defect detection system, a weld surface defect identification method and a weld size defect measurement method provided by the present invention have the following advantages:

[0097] 1. The weld defect detection system uses a magnetic structure between the clamping unit and the shell, making the overall installation faster and more convenient, with a wider reach and adjustment angle for the components inside the shell;

[0098] 2. The weld defect detection system is easy to install, maintain, modify and disassemble as a whole; it has the characteristics of high flexibility, ease of use, rich functions, accurate results, convenient function expansion, etc., and can realize the automation of weld defect detection;

[0099] 3. It can effectively improve product quality and excellence, simplify the working process and reduce costs, and ultimately improve the degree of automation of welding to a certain extent.

[0100] It will be apparent to those skilled in the art that various modifications and variations may be made to the above exemplary embodiments of the present invention without departing from the spirit and scope of the present invention. Therefore, it is intended that the present invention covers modifications and variations of the present invention that fall within the scope of the appended claims and their equivalent technical solutions.

Claims

1. A weld defect detection system, comprising: case; The clamping unit comprises a movable arm, one end of which is fixed to the welding device, and the other end of which is fixed to the shell; A collection unit is arranged in the housing, the collection unit comprises a first camera, a second camera and a laser, the laser is used to scan the surface of the weld, the first camera is used to collect stripe information irradiated by the laser on the surface of the weld, and the second camera is used to collect the surface image of the weld; The acquisition unit adjusts the acquisition angle through the movable arm of the clamping unit so that the laser irradiates the weld surface, and the first camera and the second camera can obtain corresponding fringe information and surface images.

2. The weld defect detection system according to claim 1, characterized in that: A camera fixture and a laser fixture are provided in the housing, the laser fixture is used to fix the laser, and the camera fixture is used to fix the first camera and the second camera on both sides of the housing; The laser irradiation angle and the first camera shooting angle form a set angle.

3. The weld defect detection system according to claim 2, characterized in that: A first mounting groove, a second mounting groove and a third mounting groove are provided at the bottom of the shell, the bottom of the first camera is fixed in cooperation with the first mounting groove, the bottom of the second camera is fixed in cooperation with the second mounting groove, and the bottom of the laser is fixed in cooperation with the third mounting groove.

4. The weld defect detection system according to claim 3, characterized in that: The first camera includes a first camera body and a first visual lens connected to the first camera body, and an end of the first visual lens is fixedly matched with the first mounting groove; The second camera includes a second camera body and a second visual lens connected to the second camera body, and an end of the second visual lens is fixed in cooperation with the second mounting groove.

5. The weld defect detection system according to claim 4, characterized in that: A light reduction filter system is also provided at the bottom of the housing, comprising a group of light reduction filters, and the light reduction filters are coaxial with the first visual lens.

6. The weld defect detection system according to claim 2, characterized in that: A bottom plate is arranged on the bottom surface of the shell, and the bottom plate comprises high temperature resistant protective glass.

7. The weld defect detection system according to claim 1, characterized in that: A cooling air duct is formed on the inner wall of the shell, and an air inlet hole and an air outlet hole are opened on the top of the shell. The air inlet hole and the air outlet hole are connected with the cooling air duct to form a cooling circuit, and the cooling circuit is used to take away the heat generated by the first camera and the second camera.

8. The weld defect detection system according to claim 1, characterized in that: An aviation socket and a data cable slot are provided on the top of the shell. The first camera, the second camera and the laser are powered by the aviation socket. The data cable slot is used to arrange data cables. The first camera and the second camera receive instructions and / or send collected data to the outside through the data cables.

9. The weld defect detection system according to claim 1, characterized in that: The clamping unit further comprises a first crab claw clamp and a second crab claw clamp, the first crab claw clamp is arranged at one end of the movable arm, and the movable arm is fixedly clamped on the welding device by the first crab claw clamp; A second crab claw is provided at the other end of the movable arm, and the second crab claw is used to clamp an iron block or a magnet. The movable arm is fixed to the shell by magnetic attraction through the iron block or the magnet.

10. The weld defect detection system according to claim 9, characterized in that: The movable arm comprises a first connecting arm, a second connecting arm and a universal joint, and the first connecting arm and the second connecting arm are connected through the universal joint and the connection angle between them can be adjusted; The first crab claw clamp is fixedly arranged at one end of the first connecting arm away from the universal joint, and the second crab claw clamp is fixedly arranged at one end of the second connecting arm away from the universal joint.

11. A method for identifying weld surface defects, applicable to the weld defect detection system according to claim 1, characterized in that: Includes steps: S1, adjusting the acquisition angle of the second camera by the clamping unit; S2, calibrating the second camera; S3, the second camera collects a surface image of the weld; S4, detecting surface defects of the weld according to the established deep learning detection model.

12. The weld surface defect identification method according to claim 11, characterized in that: The method for establishing the deep learning detection model includes: S41, collects a large number of defective weld surface images; S42, data enhancement of the weld surface image; S43, feature annotation is performed on the weld surface image after data enhancement, the location and type of surface defects are annotated, and a corresponding surface defect database is established; S44, select YOLOv8 as a deep learning detection model, and train and optimize the deep learning detection model through a surface defect database.

13. A method for measuring weld size defects, applicable to the weld defect detection system according to claim 1, characterized in that: Includes steps: T1, calibrating the first camera and laser; T2, the first camera collects the stripe information of the laser irradiating the surface of the weld and performs coordinate transformation on the stripe information; T3, extract the key feature points of the fringe information after coordinate transformation and measure the size defects of the weld; T4, based on the fringe information and key feature points, generating a corresponding point cloud image, and obtaining three-dimensional point cloud data of the weld by time series superposition; T5, the collected 3D point cloud data is processed by a 3D point cloud reconstruction algorithm to generate a 3D model of the weld.