Method, device, equipment and storage medium for detecting whether welding track is offset

Through metallographic inspection and image processing of the welded joint, the maximum penetration depth and effective penetration depth of the weld area are obtained, which solves the problem of low accuracy in welding track offset detection and achieves higher judgment accuracy.

CN118091079BActive Publication Date: 2024-09-24CATL (JIANGSU) NEW ENERGY TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410510004.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-26
Publication Date
2024-09-24
Estimated Expiration
2044-04-26

AI Technical Summary

Technical Problem

In the prior art, welding track offset detection only stops at the outer surface of the weld seam of the welded joint, resulting in insufficient accuracy of the judgment results.

Method used

Through metallographic inspection of the welded joints of two workpieces assembled together, a metallographic structure image is obtained. Based on the image, the maximum penetration and effective penetration of the weld area are obtained, and based on these parameters, it is judged whether the welding trajectory has shifted.

Benefits of technology

It greatly improves the accuracy of judging whether the welding track is offset, reduces the interference of pixels inside the weld area on data acquisition, and improves the accuracy of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118091079B
    Figure CN118091079B
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and storage medium for detecting whether a welding trajectory is offset. The method for detecting whether a welding trajectory is offset comprises: performing a metallographic inspection on a weld joint of two workpieces assembled together by welding to obtain a metallographic structure image; marking the contour of the weld area in the weld joint and a preset reference line in the metallographic structure image; obtaining the maximum penetration depth and the effective penetration depth of the weld area based on the contour and the preset reference line; and judging whether the welding trajectory is offset according to the maximum penetration depth and the effective penetration depth. The method of the embodiment of the present application obtains the maximum penetration depth and the effective penetration depth of the weld area in the weld joint based on the metallographic structure image, and judges whether the welding trajectory is offset according to the maximum penetration depth and the effective penetration depth, thereby improving the accuracy of the obtained welding trajectory, and greatly improving the accuracy of the judgment result of whether the welding trajectory is offset.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of welding technology, and in particular to a method, device, electronic device and computer-readable storage medium for detecting whether a welding track is offset. Background Art

[0002] Welding is a commonly used metal connection process, which can be divided into many different types according to different connection methods and operating characteristics. For example, laser welding, arc welding, plasma arc welding, etc. Whether the welding trajectory is offset is an important indicator for evaluating welding quality. In the related art, multiple samplings are performed on the outer surface of the weld of the welding joint to obtain multiple sampling points, and the multiple sampling points are connected together as a welding trajectory line, and the welding trajectory is judged whether it is offset based on the welding trajectory line. The detection of trajectory offset only stays on the outer surface of the weld of the welding joint, so the accuracy of the judgment result on whether the welding trajectory is offset is not high enough.

[0003] The above statements are only used to provide background information related to the present application and do not necessarily constitute prior art. Summary of the invention

[0004] In view of the fact that the detection of trajectory deviation in the above-mentioned related technologies only stays on the outer surface of the welding joint, resulting in the problem that the accuracy of the judgment result of whether the welding trajectory is offset is not high enough, the present application provides a method, device, electronic device and computer-readable storage medium for detecting whether the welding trajectory is offset, so as to improve the accuracy of the judgment result of whether the welding trajectory is offset.

[0005] According to a first aspect of an embodiment of the present application, there is provided a method for detecting whether a welding track is offset, comprising:

[0006] Conduct metallographic inspection on the welded joint of two workpieces assembled together by welding to obtain metallographic structure images;

[0007] Acquire the maximum penetration depth and effective penetration depth of the weld area in the weld joint based on the metallographic structure image;

[0008] Whether the welding track is offset is determined according to the maximum penetration depth and the effective penetration depth.

[0009] The first aspect of the embodiment of the present application provides a method for detecting whether a welding trajectory is offset. A metallographic inspection is performed on a weld joint of two workpieces assembled together by welding to obtain a metallographic structure image. Based on the metallographic structure image, a maximum penetration depth and an effective penetration depth of a weld area in the weld joint are obtained. The maximum penetration depth and the effective penetration depth are parameters of the internal space of the weld. Whether the welding trajectory is offset is judged based on the maximum penetration depth and the effective penetration depth, thereby greatly improving the accuracy of the judgment result on whether the welding trajectory is offset.

[0010] In some embodiments of the present application, the obtaining the maximum penetration depth and the effective penetration depth of the weld area in the weld joint based on the metallographic structure image includes:

[0011] Marking the outline of the weld area in the weld joint and a preset reference line in the metallographic structure image;

[0012] Based on the contour and the preset reference line, the maximum penetration depth and the effective penetration depth of the weld area are obtained.

[0013] After the outline of the weld area is marked in the metallographic structure image, it is easier to obtain the dimensions of the maximum penetration depth and the effective penetration depth, which greatly reduces the interference of the pixels inside the weld area on the acquisition process of the maximum penetration depth and the effective penetration depth, reduces the size acquisition error, and the obtained maximum penetration depth and effective penetration depth data are more accurate.

[0014] In some embodiments of the present application, obtaining the maximum penetration depth and the effective penetration depth of the weld area based on the profile and the preset reference line includes:

[0015] Obtaining the point on the contour that is farthest from the preset reference line to obtain the maximum penetration position point, it is more convenient and accurate to obtain the maximum penetration position point on the contour of the weld area, and the maximum penetration position point obtained based on the contour and the preset reference line has a higher accuracy;

[0016] The point farthest from the preset reference line on the first part is obtained to obtain an effective penetration position point, wherein the first part is the part of the contour located in the assembly gap area between the two workpieces. It is more convenient and accurate to obtain the effective penetration position point on the contour of the weld area. The effective penetration position point obtained based on the first part and the preset reference line has a high accuracy;

[0017] Acquire a first distance between the maximum penetration position point and the preset reference line to obtain the maximum penetration depth;

[0018] A second distance between the effective penetration position point and the preset reference line is obtained to obtain the effective penetration.

[0019] It is more convenient and accurate to obtain the maximum melting depth position point and the effective melting depth position point based on the contour, and the data of the maximum melting depth and the effective melting depth finally obtained have higher accuracy.

[0020] In some embodiments of the present application, judging whether the welding trajectory is offset according to the maximum penetration depth and the effective penetration depth includes:

[0021] Calculating the length difference between the maximum penetration depth and the effective penetration depth;

[0022] Acquire a third distance between the maximum melting depth position point and the effective melting depth position point in the direction of the preset reference line;

[0023] Based on the size relationship between the length difference and the preset difference threshold, as well as the size relationship between the third distance and the preset distance threshold, it is judged whether the welding trajectory is offset. The length difference and the third distance have a high accuracy in characterizing the degree of offset of the welding trajectory. The judgment result of whether the welding trajectory is offset obtained by using this judgment standard has a high accuracy.

[0024] In some embodiments of the present application, judging whether the welding track is offset according to the size relationship between the length difference and the preset difference threshold, and the size relationship between the third distance and the preset distance threshold, includes:

[0025] When the length difference is less than or equal to the preset difference threshold, and the third distance is less than or equal to the preset distance threshold, determining that the welding track is not offset;

[0026] Otherwise, the welding track is determined to be offset. The determination result of whether the welding track is offset obtained by using the above determination criteria has a high accuracy.

[0027] In some embodiments of the present application, obtaining the point on the contour farthest from the preset reference line to obtain the maximum penetration position point includes:

[0028] A first straight line is drawn in the metallographic structure image, the first straight line being a tangent line of the contour parallel to the preset reference line, and the tangent point between the first straight line and the contour is the maximum penetration position point. The maximum penetration position point is obtained by drawing the first straight line, and the accuracy is high.

[0029] In some embodiments of the present application, the step of obtaining the point on the first portion that is farthest from the preset reference line to obtain the effective penetration position point includes:

[0030] A second straight line is drawn in the metallographic structure image, wherein the second straight line is the straight line with the largest distance from the preset reference line among all straight lines parallel to the preset reference line and having 1 intersection with the first part, and the intersection of the second straight line and the first part is the effective penetration position point. The effective penetration position point is obtained by drawing the second straight line in the metallographic structure image, and the accuracy is high.

[0031] In some embodiments of the present application, the step of obtaining the point on the first portion that is farthest from the preset reference line to obtain the effective penetration position point includes:

[0032] Acquire the maximum width of the assembly gap area between the two workpieces in the width direction; the width direction of the assembly gap area is parallel to the direction of the preset reference line;

[0033] When the maximum width is less than or equal to a preset width threshold, obtaining a fitting straight line perpendicular to the preset reference line in the assembly gap area;

[0034] The fitting straight line is used to replace the assembly gap area, and the first part is the effective penetration position point.

[0035] After the assembly gap area is replaced by the fitting straight line, the first part becomes the intersection of the fitting straight line and the contour, thus simplifying the operation steps of obtaining the effective penetration position point.

[0036] According to a second aspect of an embodiment of the present application, there is provided a device for detecting whether a welding track is offset, comprising:

[0037] A metallographic inspection module is used to perform metallographic inspection on the welded joint of two workpieces assembled together by welding to obtain a metallographic structure image;

[0038] A marking module, used to mark the outline of the weld area in the weld joint and a preset reference line in the metallographic structure image;

[0039] A penetration acquisition module, used for acquiring the maximum penetration and effective penetration of the weld area based on the profile and the preset reference line;

[0040] A judgment module is used to judge whether the welding track is offset according to the maximum penetration depth and the effective penetration depth.

[0041] The technical solution of the second aspect of the embodiment of the present application can achieve the same beneficial technical effect as the technical solution of the first aspect.

[0042] In a third aspect of the embodiments of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for detecting whether a welding track is offset as described in any embodiment of the present application. The technical solution of the third aspect of the embodiments of the present application can achieve the same beneficial technical effect as the technical solution of the first aspect.

[0043] In a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program is executed by a processor to implement the method for detecting whether a welding track is offset as described in any embodiment of the present application. The technical solution of the fourth aspect of the embodiments of the present application can achieve the same beneficial technical effect as the technical solution of the first aspect.

[0044] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] By reading the detailed description of the following embodiments, various other advantages and benefits will become clear to those of ordinary skill in the art. The accompanying drawings are only used to illustrate the embodiments of the present application and are not to be considered as limitations of the present application. In addition, the same reference numerals are used to represent the same components throughout the drawings.

[0046] Figure 1 The present invention is a flow chart of a method for detecting whether a welding track is offset according to one or more embodiments.

[0047] Figure 2 is a schematic diagram of a weld joint in a metallographic structure image according to one or more embodiments.

[0048] FIG. 3( a ) is a metallographic structure image according to one or more embodiments.

[0049] FIG. 3( b ) is a metallographic structure image according to one or more embodiments.

[0050] Figure 4 The present invention is a flowchart of obtaining the maximum penetration depth and the effective penetration depth of the weld area in the weld joint based on the metallographic structure image according to one or more embodiments.

[0051] Figure 5 A flow chart of obtaining a maximum penetration depth and an effective penetration depth of a weld region based on a contour of the weld region and a preset reference line according to one or more embodiments.

[0052] Figure 6 is a schematic diagram of a weld joint in a metallographic structure image according to one or more embodiments.

[0053] FIG. 7( a ) is a schematic diagram of a weld joint in a metallographic structure image according to one or more embodiments.

[0054] FIG. 7( b ) is a schematic diagram of a weld joint in a metallographic structure image according to one or more embodiments.

[0055] FIG. 7( c ) is a schematic diagram of a weld joint in a metallographic structure image according to one or more embodiments.

[0056] Figure 8 The present invention is a structural block diagram of a device for detecting whether a welding track is offset according to one or more embodiments.

[0057] Fig. 9 is a structural block diagram of an electronic device according to one or more embodiments.

[0058] Fig.10 FIG. 1 is a schematic diagram of a computer-readable storage medium according to one or more embodiments. DETAILED DESCRIPTION

[0059] The following embodiments of the technical solution of the present application will be described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0060] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0061] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two (including two), unless otherwise clearly and specifically defined.

[0062] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0063] Welding is a metal connection process widely used in the manufacturing industry, usually for workpiece assembly. For example, in the field of lithium-ion battery manufacturing technology, the battery top cover and the battery housing side panel are usually assembled together by welding. Welding can form a stable connection between metal materials, and the welded joint has high strength and can withstand large loads. Compared with other connection methods (such as bolt connection), welding can make the structure more simple and compact, and there will be no protruding connection parts. According to different connection methods and operating characteristics, welding can be divided into many different types, such as laser welding, arc welding, plasma arc welding, etc., especially laser welding, which is widely used in metal workpiece welding.

[0064] The welding trajectory refers to the path or track that the welding gun or welding head moves on the surface of the workpiece during the welding process. Whether the welding trajectory is offset is an important indicator for evaluating the welding quality. The offset of the welding trajectory usually causes the connection between the workpieces being welded together to be not strong enough, which makes the welding part easy to break. For example, in the laser welding method, the laser beam is shot onto the workpiece, and the laser irradiated area on the workpiece heats up and melts to produce a molten pool. The offset of the welding trajectory will cause the position of the laser spot to shift, thereby causing the molten pool to shift. In addition, the offset of the welding trajectory will cause the keyhole to fail to be generated in time, the reflection is serious, the laser absorption is greatly reduced, and the overall melt becomes smaller and flatter, resulting in the welding part between the two workpieces being not strong enough and easy to break. Therefore, in order to improve the welding quality, it is necessary to detect the offset of the welding trajectory.

[0065] In the related art, the method for detecting whether the welding trajectory line is offset is to take samples multiple times on the outer surface of the weld of the welding joint to obtain multiple sampling points, connect the multiple sampling points together as the welding trajectory line, and then judge whether the welding trajectory is offset based on the welding trajectory line. The weld of the welding joint is a three-dimensional structure, and the basis for obtaining the welding trajectory in the related art only stays on the outer surface of the weld. The welding trajectory obtained by sampling from the outer surface of the weld is not accurate, so the accuracy of the judgment result on whether the welding trajectory is offset is not high enough.

[0066] In response to the technical problem in the related art that the accuracy of the judgment result on whether the welding trajectory is offset is not high enough, an embodiment of the present application provides a method for detecting whether the welding trajectory is offset, performing metallographic inspection on the weld joint of two workpieces assembled together by welding, obtaining a metallographic structure image, and obtaining the maximum penetration depth and effective penetration depth of the weld area in the weld joint based on the metallographic structure image, the maximum penetration depth and the effective penetration depth are parameters of the internal space of the weld, and judging whether the welding trajectory is offset is based on the maximum penetration depth and the effective penetration depth, which greatly improves the accuracy of the judgment result on whether the welding trajectory is offset, and greatly improves the situation in the related art that the basis for obtaining the welding trajectory only stays on the outer surface of the weld, resulting in the accuracy of the judgment result on whether the welding trajectory is offset is not high enough.

[0067] The method for detecting whether a welding trajectory is offset provided in an embodiment of the present application can be, but is not limited to, applied in application scenarios where two or more workpieces are assembled together by welding. For example, the method can be applied in a scenario where a top cover of a lithium battery and a side plate of a battery shell are welded together by laser welding, and is used to detect whether the welding trajectory is offset after the top cover and the side plate of the battery shell are assembled together by welding.

[0068] The following describes a method, device, electronic device and computer-readable storage medium for detecting whether a welding track is offset according to an embodiment of the present application in conjunction with the accompanying drawings.

[0069] refer to Figure 1 As shown, an embodiment of the present application provides a method for detecting whether a welding track is offset, which may include:

[0070] S10. Performing metallographic inspection on the welded joint of two workpieces assembled together by welding to obtain a metallographic structure image.

[0071] A workpiece is a raw material or part that needs to be processed or assembled during the processing or manufacturing process. Multiple workpieces can be assembled together to obtain a product by welding, and the welding method can be, for example, laser welding, arc welding, plasma arc welding, etc.

[0072] A weld joint is the area where two workpieces are connected together during the welding process, including the weld, as well as the fusion zone, base metal, and heat-affected zone. The weld is the area that connects the two workpieces and is the most important part of a weld joint. The weld is the connection formed by the melted workpiece material after cooling during the welding process. Each of the fusion zone, base metal, and heat-affected zone is composed of a portion of each of the two workpieces. In other words, a weld joint includes the weld and a portion of each of the two workpieces.

[0073] refer to Figure 2 As shown, Figure 2 A schematic diagram of a welded joint in an example metallographic structure image is shown. In this example, two workpieces assembled together by welding are a first workpiece 1 and a second workpiece 2. The first workpiece 1 may be, for example, a top cover of a lithium battery, and the second workpiece 2 may be, for example, a side panel of a battery casing. The first workpiece 1 and the second workpiece 2 are welded together to form a weld 4.

[0074] Metallographic inspection is mainly based on the principle of quantitative metallography, using the measurement and calculation of the metallographic microscope structure of the ground surface of a two-dimensional metallographic specimen or a thin film to determine the spatial morphology of the alloy structure (analyze the relative position of the welding laser track), thereby establishing a quantitative relationship between alloy composition, structure and performance. It not only greatly improves the inspection accuracy but also increases the inspection speed, shortens the working time, and plays a vital role in mass production wire drawing, controlling welding quality, and monitoring whether the welding track is offset.

[0075] In some embodiments, metallographic inspection of the welded joint of two workpieces assembled together by welding to obtain a metallographic structure image may include: cutting and sampling the two workpieces assembled together by welding to obtain a welded joint; corroding, cleaning, grinding and polishing the welded joint to obtain a surface to be observed of the welded joint; observing the surface to be observed using a metallographic microscope, and taking a photo of the surface to be observed by an image recording device to obtain a metallographic structure image. The surface to be observed of the welded joint is obtained by making a cross section perpendicular to the welded track through a point on the welded track during grinding. The welded track can be observed through the outer surface of the workpiece. Referring to Figures 3 (a) and 3 (b), Figures 3 (a) and 3 (b) respectively show metallographic structure images in an example, and Figures 3 (a) and 3 (b) both show a first workpiece 1 and a second workpiece 2, and the first workpiece 1 and the second workpiece 2 are welded together to form a weld 4.

[0076] S20. Acquire the maximum penetration depth and effective penetration depth of the weld area in the weld joint based on the metallographic structure image.

[0077] Maximum penetration refers to the maximum penetration depth of the weld. Effective penetration refers to the maximum penetration depth of the weld in the assembly gap area. The assembly gap between two workpieces refers to the gap between the two workpieces when the two workpieces are assembled together. Figure 2 As shown in FIG. 3 ( a ) and FIG. 3 ( b ), there is an assembly gap area 5 between the first workpiece 1 and the second workpiece 2 that are assembled together.

[0078] refer to Figure 4 As shown, exemplarily, obtaining the maximum penetration depth and effective penetration depth of the weld area in the weld joint based on the metallographic structure image may include:

[0079] S201, marking the outline of the weld area in the weld joint and a preset reference line in the metallographic structure image.

[0080] The preset reference line can be preset according to the shapes of the two workpieces to be welded and assembled together, and the assembly gap of the two workpieces. For example, the preset reference line can be set as a straight line passing through at least one first intersection point and perpendicular to the direction in which the melt flows along the assembly gap area during the welding process, wherein the first intersection point is the intersection point of the contour of the weld area and the outer surface of any of the two workpieces. The melt refers to the workpiece material that is heated to melt during the welding process.

[0081] refer to Figure 2 3 (a) and 3 (b), the first workpiece 1 may be, for example, a top cover of a lithium battery, the second workpiece 2 may be, for example, a side plate of a battery housing, and the preset reference line a is Figure 2The straight line where the upper edge of the first workpiece 1 is located, there is an assembly gap area 5 between the first workpiece 1 and the second workpiece 2, the preset reference line a is perpendicular to the direction in which the melt flows from the outside to the inside along the assembly gap area 5 during welding, and the preset reference line a passes through the first intersection E, the first intersection E is the intersection of the contour 41 of the weld area 4 and the outer surface of the first workpiece 1, and in the metallographic structure image, the first intersection E is the intersection of the upper edge of the first workpiece 1 and the contour 41. For example, when the assembly gap area 5 is a rectangle, the extension direction of the assembly gap area 5 is the direction of the long side of the rectangle.

[0082] The contour of the weld area can be identified and marked by performing image processing on the metallographic structure image. Figure 2 As shown in FIG. 1 , the shape of the contour 41 of the weld seam 4 is approximately an inverted triangle.

[0083] S202: Based on the contour of the weld area and a preset reference line, obtain the maximum penetration depth and effective penetration depth of the weld area.

[0084] When directly obtaining the maximum penetration and effective penetration of the weld area, it is necessary to directly find the points corresponding to the maximum penetration and the effective penetration in the weld area. The pixels inside the weld area will affect the acquisition accuracy of the two points, thereby affecting the acquisition accuracy of the maximum penetration and the effective penetration. The outline of the weld area marked in the metallographic structure image is a curve. Compared with directly obtaining the maximum penetration and the effective penetration of the weld area, it is more convenient and accurate to obtain the maximum penetration and the effective penetration based on the curve of the outline of the weld area. After marking the outline of the weld area in the metallographic structure image, it is easier to obtain the size of the maximum penetration and the effective penetration, which greatly reduces the interference of the pixels inside the weld area on the acquisition process of the maximum penetration and the effective penetration, reduces the size acquisition error, and obtains the maximum penetration and the effective penetration The data has a higher accuracy.

[0085] refer to Figure 5 As shown, illustratively, based on the contour of the weld area and the preset reference line, obtaining the maximum penetration depth and effective penetration depth of the weld area may include:

[0086] S2021. Obtain the point on the contour of the weld area that is farthest from a preset reference line to obtain the maximum penetration position point.

[0087] If the maximum penetration point is found directly in the weld area, the pixels inside the weld area will affect the accuracy of obtaining the maximum penetration point. Compared with finding the maximum penetration point directly in the weld area, it is more convenient and accurate to obtain the maximum penetration point on the contour of the weld area. The maximum penetration point obtained based on the contour and the preset baseline has a higher accuracy.

[0088] Specifically, a first straight line is drawn in the metallographic structure image, the first straight line being a tangent line of the contour of the weld area parallel to the preset reference line, and the tangent point between the first straight line and the contour is the maximum penetration position point. The maximum penetration position point is obtained by drawing the first straight line, and the accuracy is high.

[0089] refer to Figure 2 As shown, in one example, the maximum penetration position point A is the tangent point between the first straight line b and the contour 41 .

[0090] S2022, obtaining the point on the first part that is farthest from the preset reference line to obtain an effective penetration position point, wherein the first part is a part whose contour is located in the assembly gap area between the two workpieces.

[0091] If the effective penetration position point is directly found in the weld area, the pixels inside the weld area will affect the accuracy of obtaining the effective penetration position point. Compared with directly finding the effective penetration position point in the weld area, it is more convenient and accurate to obtain the effective penetration position point on the contour of the weld area. The effective penetration position point obtained based on the contour and the preset baseline has a higher accuracy.

[0092] In one example, a second straight line can be drawn in the metallographic structure image. The second straight line is the straight line with the largest distance from the preset reference line among all straight lines parallel to the preset reference line and having 1 intersection with the first part. The intersection of the second straight line and the first part is the effective penetration position point. The effective penetration position point is obtained by drawing the second straight line in the metallographic structure image with high accuracy.

[0093] refer to Figure 2 As shown, the intersection points between the contour 41 and the two edge lines of the assembly gap area 5 (the two edge lines are perpendicular to the preset reference line a) are point B and point D respectively, the first part is a curve segment with point B and point D as endpoints, the first part in this example is a monotonic curve, and the straight line with the largest distance from the preset reference line a among all straight lines having 1 intersection point with the curve segment is the second straight line c, and point B is the effective melting depth position point.

[0094] In another example, first obtain the maximum width of the assembly gap area between the two workpieces in the width direction, wherein the width direction of the assembly gap area is parallel to the direction of the preset reference line; when the maximum width is less than or equal to the preset width threshold, obtain a fitting straight line of the assembly gap area perpendicular to the preset reference line; use the fitting straight line to replace the assembly gap area, the first part is the intersection of the fitting straight line and the contour, and the first part is the effective penetration position point. That is, when the maximum width is less than or equal to the preset width threshold, the assembly gap area can be regarded as a line segment, the first part is the intersection of the line segment and the contour, and the effective penetration position point is the intersection of the line segment and the contour, which can simplify the steps of obtaining the effective penetration position point.

[0095] The method of obtaining the fitting straight line of the assembly gap region perpendicular to the preset reference line may be, for example, using the least square method to perform straight line fitting on the assembly gap region along the direction perpendicular to the preset reference line.

[0096] When the assembly gap area is a rectangle, the central axis of the rectangle perpendicular to the preset reference line can be used as the fitting line of the assembly gap area, which can simplify the steps of obtaining the fitting line, thereby further simplifying the operation steps of obtaining the effective penetration position point. Figure 6 As shown, after the assembly gap area is replaced by the fitting straight line 6, the intersection point B between the fitting straight line 6 and the contour 41 is the effective penetration position point.

[0097] S2023. Obtain a first distance between the maximum penetration depth position point and a preset reference line to obtain a maximum penetration depth.

[0098] Specifically, a vertical line segment is drawn from the maximum penetration position to the preset reference line, and the length of the vertical line segment is measured, which is the maximum penetration. The length can be marked proportionally in the metallographic structure image to facilitate the measurement of the length of the line segment.

[0099] refer to Figure 2 As shown, a perpendicular line segment AA' is drawn from the maximum penetration position point A to the preset reference line a, and the maximum penetration is obtained by measuring the length of the perpendicular line segment AA'.

[0100] S2024. Obtain a second distance between the effective penetration position point and a preset reference line to obtain an effective penetration depth.

[0101] Specifically, a vertical line segment is drawn from the effective penetration position point to the preset reference line, and the length of the vertical line segment is measured, which is the effective penetration depth. The length can be marked proportionally in the metallographic structure image to facilitate the measurement of the length of the line segment.

[0102] refer to Figure 2 As shown, a vertical line segment BB' is made from the effective penetration position point B to the preset reference line a, and the length of the vertical line segment BB' is measured to obtain the effective penetration. Figures 3 (a) and 3 (b) are respectively an example of metallographic structure images, and Figures 3 (a) and 3 (b) both mark the first workpiece 1, the second workpiece 2, the weld 4, the assembly gap area 5, the preset reference line a, the first straight line b, the second straight line c, the maximum penetration position point A and the effective penetration position point B. In Figure 3 (a), the maximum penetration obtained by measurement is 1057μm, and the effective penetration is 681μm. In Figure 3 (b), the maximum penetration obtained by measurement is 1219μm, and the effective penetration is 1058μm.

[0103] It is more convenient and accurate to obtain the maximum penetration depth position point and the effective penetration depth position point based on the contour of the weld area, and the data of the maximum penetration depth and the effective penetration depth finally obtained are more accurate.

[0104] S30, judging whether the welding track is offset according to the maximum penetration depth and the effective penetration depth.

[0105] The maximum penetration depth and effective penetration depth are parameters of the internal space of the weld, and can characterize the spatial characteristics inside the weld. Therefore, compared with the technical solution in the related art that only judges whether the weld trajectory is offset based on the sampling data of the weld surface, judging whether the weld trajectory is offset based on the maximum penetration depth and effective penetration depth greatly improves the accuracy of the judgment result on whether the weld trajectory is offset.

[0106] In some embodiments, judging whether the welding track is offset according to the maximum penetration depth and the effective penetration depth may include: calculating the length difference between the maximum penetration depth and the effective penetration depth, obtaining the third distance between the maximum penetration depth position point and the effective penetration depth position point in the direction of the preset reference line, and judging whether the welding track is offset according to the size relationship between the length difference and the preset difference threshold, and the size relationship between the third distance and the preset distance threshold. The length difference and the third distance have a high accuracy in characterizing the offset degree of the welding track, and the judgment result of whether the welding track is offset obtained by using this judgment standard has a high accuracy.

[0107] The smaller the length difference between the maximum penetration depth and the effective penetration depth, the smaller the deviation of the welding trajectory; the smaller the third distance between the maximum penetration depth position point and the effective penetration depth position point in the preset reference line direction, the smaller the deviation of the welding trajectory. Conversely, the larger the length difference between the maximum penetration depth and the effective penetration depth, the larger the deviation of the welding trajectory; the smaller the third distance between the maximum penetration depth position point and the effective penetration depth position point in the preset reference line direction, the smaller the deviation of the welding trajectory. The size relationship between the comprehensive length difference and the preset difference threshold, as well as the size relationship between the third distance and the preset distance threshold, can more comprehensively and accurately determine whether the welding trajectory is offset.

[0108] For example, when the length difference is less than or equal to the preset difference threshold and the third distance is less than or equal to the preset distance threshold, it can be determined that the welding track is not offset; otherwise, it is determined that the welding track is offset. That is, when at least one of the two situations occurs, the length difference is greater than the preset difference threshold and the third distance is greater than the preset distance threshold, it can be determined that the welding track is offset. The judgment result of whether the welding track is offset obtained by using the above judgment standard has a high accuracy and can more accurately reflect the welding quality.

[0109] In addition, in some embodiments, if the welding trajectory is determined to be offset, when the length difference is greater than a preset difference threshold, the degree of offset can be further determined based on the difference between the length difference and the preset difference threshold. The greater the difference between the length difference and the preset difference threshold, the greater the degree of offset. If the welding trajectory is determined to be offset, when the third distance is greater than the preset distance threshold, the degree of offset can be further determined based on the difference between the third distance and the preset distance threshold. The greater the difference between the third distance and the preset distance threshold, the greater the degree of offset.

[0110] The preset difference threshold and the preset distance threshold may be preset according to welding accuracy requirements in actual applications.

[0111] FIG7 (a) shows a schematic diagram of a welded joint in a metallographic image of an example, wherein the first workpiece 1 and the second workpiece 2 are welded together by a laser beam 3 to form a weld 4, and the maximum penetration position point in this example is located in the region of the first workpiece 1. FIG7 (b) shows a schematic diagram of a welded joint in a metallographic image of another example, wherein the first workpiece 1 and the second workpiece 2 are welded together by a laser beam 3 to form a weld 4, and the maximum penetration position point in this example is located in the region of the second workpiece 2. FIG7 (c) shows a schematic diagram of a welded joint in a metallographic image of another example, wherein the first workpiece 1 and the second workpiece 2 are welded together by a laser beam 3 to form a weld 4, and the maximum penetration position point in this example is located in the assembly gap region 5, and the maximum penetration position point in this example is the same point as the effective penetration position point. The method of this embodiment can be used to detect whether the welding trajectory in the examples shown in FIG7 (a) to FIG7 (c) is offset.

[0112] In some embodiments, the method may further include step S40, in which a prompt signal is issued when it is determined that the welding track is offset. The prompt signal may be an audible and visual alarm signal, such as a buzzer emitting a sound signal, a flashlight emitting a light signal, or a prompt message sent to a user terminal, such as a user's mobile phone or computer. The prompt signal is used to remind the user that the welding track is offset so that the user can take corresponding treatment measures in time.

[0113] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0114] refer to Figure 6 As shown, a method for detecting whether a welding track is offset in a specific example may include:

[0115] A metallographic inspection is performed on the welded joint of the first workpiece 1 and the second workpiece 2 assembled together by welding to obtain a metallographic structure image. The contour 41 of the weld area 4 in the welded joint and the preset reference line a are marked in the metallographic structure image, wherein the preset reference line a is a straight line passing through the first intersection point E and perpendicular to the direction in which the melt flows along the assembly gap area 5 during the welding process, and the first intersection point E is the intersection of the contour 41 of the weld area 4 and the outer surface of the first workpiece 1. In this example, the preset reference line a is the upper edge line of the contour of the first workpiece 1.

[0116] A first straight line b is drawn in the metallographic structure image. The first straight line b is a tangent line of the aforementioned contour 41 parallel to the preset reference line a. The tangent point of the first straight line b and the aforementioned contour 41 is the maximum penetration position point A. Since the assembly gap area is a rectangle with a small width (the width is less than or equal to the preset width threshold), the central axis 6 of the rectangle along the length direction of the rectangle is used to replace the assembly gap area to simplify the steps of obtaining the effective penetration position point. The intersection of the central axis 6 and the contour 41 of the weld area 4 is the effective penetration position point B.

[0117] Mark the length in the metallographic structure image in proportion to facilitate the measurement of the length of the line segment. Draw a vertical line segment AA' from the maximum penetration point A to the preset reference line a, and measure the length of the vertical line segment AA', which is the maximum penetration; draw a vertical line segment BB' from the effective penetration point B to the preset reference line a (point B' is the intersection of the central axis 6 and the straight line a), and measure the length of the vertical line segment BB', which is the effective penetration.

[0118] The length difference between the maximum penetration depth and the effective penetration depth is calculated to obtain the third distance between the maximum penetration depth position point A and the effective penetration depth position point B in the preset reference line direction. If the length difference is less than or equal to the preset difference threshold, and the third distance is less than or equal to the preset distance threshold, it is determined that the welding trajectory is not offset; otherwise, it is determined that the welding trajectory is offset.

[0119] The maximum penetration depth and effective penetration depth are parameters of the internal space of the weld, and can characterize the spatial characteristics inside the weld. Therefore, compared with the technical solution in the related art that only judges whether the weld trajectory is offset based on the sampling data of the weld surface, the method of judging whether the welding trajectory is offset based on the maximum penetration depth and effective penetration depth greatly improves the accuracy of the judgment result on whether the welding trajectory is offset.

[0120] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0121] refer to Figure 8 As shown, an embodiment of the present application provides a device for detecting whether a welding track is offset, which may include:

[0122] A metallographic inspection module is used to perform metallographic inspection on the welded joint of two workpieces assembled together by welding to obtain a metallographic structure image;

[0123] A marking acquisition module, used for acquiring the maximum penetration depth and effective penetration depth of the weld area in the weld joint based on the metallographic structure image;

[0124] The judgment module is used to judge whether the welding track is offset according to the maximum penetration depth and the effective penetration depth.

[0125] In some implementations, the tag acquisition module may include:

[0126] A marking module, used to mark the outline of the weld area in the weld joint and a preset reference line in the metallographic structure image;

[0127] The penetration depth acquisition module is used to obtain the maximum penetration depth and effective penetration depth of the weld area based on the aforementioned contour and preset reference line.

[0128] Exemplarily, the depth of penetration acquisition module is further specifically used to: obtain the point on the aforementioned contour that is farthest from a preset baseline to obtain a maximum depth of penetration position point; obtain the point on the first part that is farthest from the preset baseline to obtain an effective depth of penetration position point, the first part being the part of the aforementioned contour located in the assembly gap area between the two workpieces; obtain a first distance between the maximum depth of penetration position point and the preset baseline to obtain a maximum depth of penetration; obtain a second distance between the effective depth of penetration position point and the preset baseline to obtain an effective depth of penetration.

[0129] Exemplarily, the judgment module may include:

[0130] A calculation unit, used for calculating the length difference between the maximum melting depth and the effective melting depth;

[0131] A third distance acquisition unit, used to acquire a third distance between the maximum melting depth position point and the effective melting depth position point in the direction of a preset reference line;

[0132] The offset judgment unit is used to judge whether the welding track is offset according to the size relationship between the length difference and the preset difference threshold, and the size relationship between the third distance and the preset distance threshold.

[0133] Exemplarily, the offset judgment unit is further specifically used to determine that the welding trajectory is not offset when the length difference is less than or equal to a preset difference threshold and the third distance is less than or equal to a preset distance threshold; otherwise, determine that the welding trajectory is offset.

[0134] Exemplarily, the penetration acquisition module is further specifically used to make a first straight line in the metallographic structure image, the first straight line is a tangent line of the contour parallel to the preset reference line, and the tangent point of the first straight line and the contour is the maximum penetration position point.

[0135] Exemplarily, the melt depth acquisition module is further specifically used to make a second straight line in the metallographic structure image, the second straight line is the straight line with the largest distance from the preset baseline among all straight lines parallel to the preset baseline and having 1 intersection with the first part, and the intersection of the second straight line and the first part is the effective melt depth position point.

[0136] Exemplarily, the penetration depth acquisition module is further specifically used to: obtain the maximum width in the width direction of the assembly gap area between the two workpieces; the width direction of the assembly gap area is parallel to the direction of a preset reference line; when the maximum width is less than or equal to a preset width threshold, obtain a fitted straight line of the assembly gap area that is perpendicular to the preset reference line; use the fitted straight line to replace the assembly gap area, and the first part is the effective penetration depth position point.

[0137] The device for detecting whether a welding trajectory is offset in the embodiment of the present application can perform metallographic inspection on the weld joint of two workpieces assembled together by welding, obtain a metallographic structure image, and obtain the maximum penetration depth and effective penetration depth of the weld area in the weld joint based on the metallographic structure image. The maximum penetration depth and the effective penetration depth are parameters of the internal space of the weld. Whether the welding trajectory is offset is judged based on the maximum penetration depth and the effective penetration depth, which greatly improves the accuracy of the judgment result on whether the welding trajectory is offset.

[0138] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0139] Another embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method of detecting whether a welding track is offset according to any embodiment of the present application.

[0140] refer to Fig. 9 As shown, the electronic device 10 may include: a processor 100, a memory 101, a bus 102 and a communication interface 103, and the processor 100, the communication interface 103 and the memory 101 are connected via the bus 102; the memory 101 stores a computer program that can be run on the processor 100, and when the processor 100 runs the computer program, it executes the method provided in any of the aforementioned embodiments of the present application.

[0141] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the device network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0142] The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 101 is used to store a program, and the processor 100 executes the program after receiving an execution instruction. The method disclosed in any implementation of the aforementioned embodiment of the present application may be applied to the processor 100, or implemented by the processor 100.

[0143] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 100 or an instruction in the form of software. The above processor 100 may be a general-purpose processor, which may include a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the above method in combination with its hardware.

[0144] The electronic device provided in the embodiment of the present application and the method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, operated or implemented by them.

[0145] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0146] Another embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the method of detecting whether a welding track is offset according to any embodiment of the present application.

[0147] refer to Fig.10 As shown, the computer-readable storage medium shown is a CD 20 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, the method provided by any of the aforementioned embodiments will be executed.

[0148] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0149] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.

[0150] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0151] It should be noted that the term "module" is not intended to be limited to a specific physical form. Depending on the specific application, a module can be implemented as hardware, firmware, software, and / or a combination thereof. In addition, different modules can share common components or even be implemented by the same components. There may or may not be clear boundaries between different modules.

[0152] The algorithm and display provided herein are not inherently related to any specific computer, virtual device or other equipment. Various general devices can also be used together with examples based on this. According to the above description, it is obvious to construct the structure required for this type of device. In addition, the application is not directed to any specific programming language yet. It should be understood that various programming languages ​​can be utilized to realize the content of the application described herein, and the description made to specific languages ​​above is for the purpose of disclosing the best mode of implementation of the application.

[0153] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0154] The above embodiments only express the implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for detecting whether a welding track is offset, characterized in that: include: Conduct metallographic inspection on the welded joint of two workpieces assembled together by welding to obtain metallographic structure images; Marking the outline of the weld area in the weld joint and a preset reference line in the metallographic structure image; Based on the profile and the preset reference line, the maximum penetration depth and the effective penetration depth of the weld area are measured and obtained; the maximum penetration depth is the maximum penetration depth of the weld area, and the effective penetration depth is the maximum penetration depth of the weld area in the assembly gap area, and the assembly gap is the gap between the two workpieces assembled together; Determining whether the welding track is offset according to the maximum penetration depth and the effective penetration depth; The step of judging whether the welding track is offset according to the maximum penetration depth and the effective penetration depth includes: Calculating the length difference between the maximum penetration depth and the effective penetration depth; Obtaining a third distance between the maximum melting depth position point and the effective melting depth position point in the direction of the preset reference line; Determining whether the welding track is offset according to the magnitude relationship between the length difference and a preset difference threshold, and the magnitude relationship between the third distance and a preset distance threshold; The determining whether the welding track is offset according to the size relationship between the length difference and the preset difference threshold, and the size relationship between the third distance and the preset distance threshold, comprises: When the length difference is less than or equal to the preset difference threshold, and the third distance is less than or equal to the preset distance threshold, determining that the welding track is not offset; Otherwise, it is determined that the welding trajectory is offset.

2. The method according to claim 1, characterized in that The step of measuring and obtaining the maximum penetration depth and the effective penetration depth of the weld area based on the profile and the preset reference line includes: Obtaining the point on the contour that is farthest from the preset reference line to obtain the maximum penetration position point; Obtaining a point on the first part that is farthest from the preset reference line to obtain an effective penetration position point, wherein the first part is a part of the contour located in an assembly gap area between the two workpieces; Measuring and acquiring a first distance between the maximum penetration position point and the preset reference line to obtain the maximum penetration depth; The second distance between the effective penetration position point and the preset reference line is measured to obtain the effective penetration.

3. The method according to claim 2, characterized in that The step of obtaining the point on the contour that is farthest from the preset reference line to obtain the maximum penetration position point includes: A first straight line is drawn in the metallographic structure image, wherein the first straight line is a tangent line of the contour parallel to the preset reference line, and the point of intersection between the first straight line and the contour is the maximum penetration position point.

4. The method according to claim 2, characterized in that: The step of obtaining the point on the first part that is farthest from the preset reference line to obtain the effective penetration position point includes: A second straight line is drawn in the metallographic structure image, wherein the second straight line is the straight line with the largest distance from the preset baseline among all straight lines parallel to the preset baseline and having 1 intersection with the first part, and the intersection of the second straight line and the first part is the effective melting depth position point.

5. The method according to claim 2, characterized in that: The step of obtaining the point on the first part that is farthest from the preset reference line to obtain the effective penetration position point includes: Acquire the maximum width of the assembly gap area between the two workpieces in the width direction; the width direction of the assembly gap area is parallel to the direction of the preset reference line; When the maximum width is less than or equal to a preset width threshold, obtaining a fitting straight line perpendicular to the preset reference line in the assembly gap area; The fitting straight line is used to replace the assembly gap area, and the first part is the effective penetration position point.

6. A device for detecting whether a welding track is offset, characterized in that: include: A metallographic inspection module is used to perform metallographic inspection on the welded joint of two workpieces assembled together by welding to obtain a metallographic structure image; A marking module, used to mark the outline of the weld area in the weld joint and a preset reference line in the metallographic structure image; A penetration acquisition module, for measuring and acquiring a maximum penetration depth and an effective penetration depth of the weld region based on the profile and the preset reference line; the maximum penetration depth is a maximum penetration depth of the weld region, the effective penetration depth is a maximum penetration depth of the weld region in an assembly gap region, and the assembly gap is a gap between two workpieces assembled together; A judging module, used for judging whether a welding track is offset according to the maximum penetration depth and the effective penetration depth; The judging module comprises: A calculation unit, used for calculating the length difference between the maximum penetration depth and the effective penetration depth; A third distance acquisition unit, used for acquiring a third distance between the maximum melting depth position point and the effective melting depth position point in the direction of the preset reference line; An offset judgment unit, used to judge whether the welding track is offset according to the size relationship between the length difference and the preset difference threshold, and the size relationship between the third distance and the preset distance threshold; The offset judgment unit is further used to determine that the welding trajectory is not offset when the length difference is less than or equal to the preset difference threshold and the third distance is less than or equal to the preset distance threshold; otherwise, determine that the welding trajectory is offset.

7. An electronic device, characterized in that: It comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for detecting whether a welding track is offset as described in any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is executed by a processor to implement the method for detecting whether a welding track is offset as described in any one of claims 1 to 5.