Welding seam size detection method and device and electronic equipment

By acquiring and processing the boundaries of three-dimensional point sets, the automation of weld size detection is realized, solving the problems of low efficiency and high labor intensity in the existing technology, and improving detection accuracy and applicability.

CN118776458APending Publication Date: 2024-10-15ZOOMLION HEAVY INDUSTRY SCIENCE AND TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410797019.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In existing welding technology, weld size detection mainly relies on manual use of inspection tools or measuring tools, which is inefficient and labor-intensive and cannot meet the needs of modernization and digital development.

Method used

A three-dimensional point set is used to obtain the boundary of the weld area. By obtaining the three-dimensional point set of the first part and the second part, the boundary of the weld area is extracted, and based on this, the detection result information of the weld size is obtained. Using industrial-grade three-dimensional Cameras, depth cameras, three-dimensional laser scanners and other equipment realize automated detection.

Benefits of technology

It improves the accuracy and efficiency of weld size detection, increases the degree of automation, and can be applied to more weld size detection scenarios, including round pipe welding with different diameters and intersection angles, irregular welds, micro precision parts and small spaces Welding inspection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118776458A_ABST
    Figure CN118776458A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a welding seam size detection method and device, electronic equipment, welding seam size detection equipment and a computer readable storage medium. The welding seam size detection method comprises the steps that three-dimensional point sets of a first part and a second part are obtained, the first part and the second part are welded to each other, and the three-dimensional point sets of the first part and the second part comprise welding seam area three-dimensional point sets corresponding to welding seams of the first part and the second part; extracting the boundary of the three-dimensional point set of the weld zone; and based on the boundary of the three-dimensional point set of the weld zone, obtaining detection result information of the weld size. According to the technical scheme of the embodiment of the invention, the precision and efficiency of welding seam size detection can be improved, and the method can be suitable for more welding seam size detection scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of welding technology, and in particular to a weld size detection method and device, electronic equipment, weld size detection equipment, and a computer-readable storage medium. Background Art

[0002] Welding is the most commonly used processing method in the manufacturing industry. Whether in mechanical manufacturing, aerospace, vehicle manufacturing, power electronics and other fields, welding is a key process. However, welding is also a physical and chemical reaction process affected by many factors. Fluctuations in one or more factors may lead to unqualified weld appearance dimensions. As an important indicator for evaluating whether the weld quality is qualified, the detection of weld size is very important.

[0003] In related technologies, the detection of weld size is mainly done manually using inspection fixtures or measuring tools, which is inefficient and labor-intensive, and cannot meet the needs of modern and digital development of welding production quality management. Summary of the invention

[0004] The present disclosure provides a weld size detection method and device, electronic equipment, weld size detection equipment, and computer-readable storage medium to improve the accuracy and efficiency of weld size detection and be applicable to more weld size detection scenarios.

[0005] According to one aspect of the present disclosure, a weld size detection method is provided, comprising:

[0006] Acquire a three-dimensional point set about a first part and a second part, wherein the first part and the second part are welded to each other, and the three-dimensional point set about the first part and the second part includes a three-dimensional point set of a weld area corresponding to a weld of the first part and the second part;

[0007] Extracting the boundary of the three-dimensional point set of the weld area; and

[0008] Based on the boundary of the three-dimensional point set in the weld area, the detection result information of the weld size is obtained.

[0009] According to one aspect of the present disclosure, there is provided a weld size detection device, comprising:

[0010] An acquisition unit is configured to acquire a three-dimensional point set about a first part and a second part, wherein the first part and the second part are welded to each other, and the three-dimensional point set about the first part and the second part includes a three-dimensional point set of a weld area corresponding to a weld of the first part and the second part;

[0011] An extraction unit configured to extract the boundary of the three-dimensional point set of the weld area; and

[0012] The detection unit is configured to obtain detection result information of the weld size based on the boundary of the three-dimensional point set of the weld area.

[0013] According to one aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the weld size detection method of the aforementioned embodiment.

[0014] According to one aspect of the present disclosure, a weld size detection device is provided, comprising: an acquisition device for acquiring a three-dimensional point set about a first part and a second part, wherein the first part and the second part are welded to each other, and the three-dimensional point set about the first part and the second part includes a three-dimensional point set of a weld area corresponding to the welds of the first part and the second part; and an electronic device according to the aforementioned embodiment connected to the acquisition device.

[0015] According to one aspect of the present disclosure, a computer-readable storage medium storing computer instructions is provided, where the computer instructions are configured to enable a computer to execute the weld size detection method of the aforementioned embodiment.

[0016] According to one or more embodiments of the present disclosure, when detecting the weld size of a first part and a second part welded to each other, the boundary of the three-dimensional point set of the weld area is first extracted from the three-dimensional point set of the first part and the second part, and then based on the boundary of the three-dimensional point set of the weld area, the detection result information of the weld size is obtained. Compared with the related technology that mainly relies on manual use of inspection tools or measuring tools to complete the inspection, not only the inspection accuracy and efficiency are higher, the degree of automation is higher, but also it can be applied to more weld size inspection scenarios.

[0017] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0019] Figure 1 It is a schematic diagram of the process of the weld size detection method according to some embodiments of the present disclosure;

[0020] Figure 2AA graphical schematic diagram of data structure of a three-dimensional point set of a first part and a second part according to some embodiments of the present disclosure;

[0021] Figure 2B A graphical schematic diagram of data structure of a three-dimensional point set of a first part and a second part according to some embodiments of the present disclosure;

[0022] Figure 3 A schematic diagram of collecting multiple groups of three-dimensional point sets about a first part and a second part according to some embodiments of the present disclosure;

[0023] Figure 4 It is a schematic diagram of the process of the weld size detection method according to some embodiments of the present disclosure;

[0024] Figure 5 A schematic diagram of a process for extracting the boundary of a three-dimensional point set in a weld area according to some embodiments of the present disclosure;

[0025] Figure 6 is a schematic diagram of the boundary of a three-dimensional point set in a weld area according to some embodiments of the present disclosure;

[0026] Figure 7 is a structural block diagram of a weld size detection device according to some embodiments of the present disclosure;

[0027] Figure 8 The present invention is a structural block diagram of a weld size detection device according to some embodiments of the present disclosure.

[0028] Reference numerals:

[0029] 220-first part; 230-second part; 200-three-dimensional point set about the first part and the second part;

[0030] 210-weld; 21-3D point set of weld area; 110-boundary; 111-first boundary; 112-second boundary; 22-3D point set of first part area; 23-3D point set of second part area; 24-3D point set of background area;

[0031] 240-first intermediate three-dimensional point set; 250-second intermediate three-dimensional point set;

[0032] 100-weld size detection method; 500-weld size detection device; 51-acquisition unit;

[0033] 52-extraction unit; 53-detection unit; 600-weld size detection equipment; 61-collection equipment;

[0034] 62-electronic equipment; S101~S103, S201~S205, S1021~S1024-steps. DETAILED DESCRIPTION

[0035] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0036] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, temporal relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.

[0037] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.

[0038] In related technologies, the detection of weld size is mainly done manually using inspection tools or measuring tools. This is a contact-type detection with low efficiency and high labor intensity, and cannot meet the needs of modern and digital development of welding production quality management.

[0039] Based on this, the embodiments of the present disclosure provide a weld size detection method and device, electronic equipment, weld size detection equipment, computer-readable storage medium, and computer program product to improve the accuracy and efficiency of weld size detection and be applicable to more weld size detection scenarios. The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0040] refer to Figure 1 As shown, some embodiments of the present disclosure provide a weld size detection method 100, which includes the following steps S101 to S103.

[0041] In step S101, a three-dimensional point set about a first part and a second part is obtained, wherein the first part and the second part are welded to each other, and the three-dimensional point set about the first part and the second part includes a three-dimensional point set of a weld area corresponding to the welds of the first part and the second part.

[0042] In step S102, the boundary of the three-dimensional point set of the weld area is extracted.

[0043] In step S103, based on the boundary of the three-dimensional point set of the weld area, the detection result information of the weld size is obtained.

[0044] The weld size detection scenarios applicable to the embodiments of the present disclosure may include, but are not limited to: for example, the detection scenario of the intersecting welding of two circular tubes of different diameters and / or different crossing angles, the detection scenario of irregular welds, the welding detection scenario of large parts that are not convenient for manual operation, the welding detection scenario of micro-precision parts that are not convenient for manual operation or observation, the welding detection scenario of parts in a small space that are not convenient for manual operation, and the like.

[0045] In the disclosed embodiment, the above-mentioned weld size detection result information may include at least one of the weld width detection result, the weld length detection result, or the weld height detection result, wherein the weld width is a key parameter to ensure welding quality and reliability. In order to ensure that the weld width meets the standard requirements, the welding process needs to be strictly controlled.

[0046] According to the technical solution of the embodiment of the present disclosure, when detecting the weld size of a first part and a second part welded to each other, the boundary of the three-dimensional point set of the weld area is firstly extracted from the three-dimensional point set of the first part and the second part, and then based on the boundary of the three-dimensional point set of the weld area, the detection result information of the weld size is obtained. Compared with the related technology which mainly relies on manual use of inspection tools or measuring tools to complete the inspection, not only the inspection accuracy and efficiency are higher, the degree of automation is higher, but also it can be applied to more weld size inspection scenarios and has strong robustness.

[0047] A three-dimensional point set is also generally referred to as a point cloud, which can be understood as a collection of three-dimensional data about multiple points in a given spatial coordinate system. In the embodiment of the present disclosure, the three-dimensional point set about the first part and the second part can be acquired using an acquisition device with a three-dimensional data acquisition function. The acquisition device may include, but is not limited to, for example, an industrial-grade three-dimensional camera, an industrial-grade depth camera, a three-dimensional laser scanner, or a three-dimensional laser radar.

[0048] Industrial-grade 3D cameras generally have 3D data acquisition functions and can also have 2D data acquisition functions. Industrial-grade depth cameras can acquire depth images, which can specifically be TOF (time of flight) cameras, structured light cameras, or binocular cameras. 3D laser scanners can quickly obtain 3D coordinate data of the surface of the target object over a large area and with high resolution through high-speed laser scanning measurement methods. 3D laser radar is a radar system that detects the position, speed and other characteristic quantities of the target object by emitting laser beams, and can accurately and efficiently obtain 3D coordinate data of the surface of the target object.

[0049] like Figure 2A and Figure 2BAs shown in FIG. 1 , it is a graphical schematic diagram of the data structure of the three-dimensional point set 200 of the first part and the second part in some embodiments of the present disclosure. As described above with respect to the definition of the three-dimensional point set, although the three-dimensional point set 200 is shown as a two-dimensional graph in the figure, it is actually a data set of points in a given coordinate system.

[0050] In the embodiment of the present disclosure, the three-dimensional point set 21 of the weld area can be understood as the weld 210 (eg, Figure 2A and Figure 2B As shown in the left figure, also called a weld joint) corresponds to the three-dimensional point set 200 (such as Figure 2A and Figure 2B The part shown in the right figure).

[0051] Based on the difference in the acquisition field of view of the acquisition device in the spatial coordinate system, the specific shapes of the first part 220 and the second part 230, or the specific welding positions of the first part 220 and the second part 230, the three-dimensional point set 200 of the first part and the second part may include a three-dimensional point set corresponding to the entire weld 210 of the first part 220 and the second part 230 (e.g. Figure 2B Alternatively, the three-dimensional point set 200 about the first part and the second part includes a three-dimensional point set corresponding to a portion of the weld 210 of the first part 220 and the second part 230 (as shown in Figure 2A The acquisition field of view of the acquisition device can be understood as the spatial range in which the three-dimensional data information can be captured by the acquisition device at the acquisition position.

[0052] Continue to refer to Figure 2A and Figure 2B As shown, the three-dimensional point set 200 regarding the first part and the second part, in addition to the three-dimensional point set 21 of the weld area, may also include a three-dimensional point set 22 of the first part area, a three-dimensional point set 23 of the second part area and a three-dimensional point set 24 of the background area.

[0053] The first part area 3D point set 22 can be understood as the portion of the first part 220 corresponding to the 3D point set 200 for the first part and the second part; similarly, the second part area 3D point set 23 can be understood as the portion of the second part 230 corresponding to the 3D point set 200 for the first part and the second part. The background area 3D point set 24 can be understood as the portion of the data collection background that appears in the collection field of view of the collection device when the collection device collects 3D data of the measured object (such as the first part 220 and the second part 230) and corresponds to the 3D point set 200 for the first part and the second part.

[0054] In some embodiments, based on the different acquisition fields of the acquisition equipment, at least one of the first part area 3D point set 22, the second part area 3D point set 23, and the background area 3D point set 24 may not be included in the 3D point set 200 for the first part and the second part, that is, the data that the present disclosure must rely on when detecting the weld size. In some embodiments, part of the data of the first part area 3D point set 22 and the second part area 3D point set 23 may be included in the 3D point set 200 for the first part and the second part.

[0055] It can be understood that the boundary of the weld zone three-dimensional point set 21 is still a three-dimensional data set. In the embodiment of the present disclosure, the boundary of the weld zone three-dimensional point set 21 may have a variety of shapes. For example, in some embodiments, Figure 2A As shown, the first part 220 and the second part 230 are welded together to form a weld 210 in the shape of an intersection line, so that the shape of the boundary of the three-dimensional point set 21 of the weld area matches the shape of at least a portion of the weld 210. For example, in some embodiments, Figure 2B As shown, the first part 220 and the second part 230 are spliced ​​and welded to form a weld 210 in the shape of a splicing line, so that the shape of the boundary of the three-dimensional point set 21 of the weld area matches the shape of at least a portion of the weld 210 .

[0056] In some embodiments of the present disclosure, the above-mentioned step S101 may include: obtaining N groups of three-dimensional point sets about the first part and the second part, wherein the N groups of three-dimensional point sets about the first part and the second part are collected by the collection device at N different collection positions one by one, wherein the collection field of view of the mth collection position overlaps with the collection field of view of the m+1th collection position, and the collection field of view of the Nth collection position overlaps with the collection field of view of the 1st collection position, wherein N≥2, 1≤m≤N-1.

[0057] In some embodiments, the acquisition device can move and switch between multiple acquisition positions and perform data acquisition, so as to collect multiple sets of three-dimensional point sets about the first part and the second part within different acquisition fields of view. In other embodiments, the acquisition device can include multiple acquisition units, which are arranged in a one-to-one correspondence at multiple acquisition positions and perform data acquisition simultaneously, so as to simultaneously collect multiple sets of three-dimensional point sets about the first part and the second part within different acquisition fields of view. The embodiments of the present disclosure do not limit the specific configuration and setting method of the acquisition device.

[0058] In these embodiments, a collection of N groups of three-dimensional point sets about the first part and the second part may contain three-dimensional data information corresponding to the entire weld. The method of this embodiment is particularly suitable for 360° dimension detection of welds in a closed loop shape (such as an intersecting line shape). Among the N acquisition positions, the acquisition field of view of adjacent acquisition positions overlaps. On the one hand, it can reduce or even avoid the weld information of the first part and the second part from being missed. On the other hand, it can provide redundant considerations for information acquisition, thereby minimizing the distortion of the acquired information caused by factors such as reflection, distortion, or equipment jitter at the edge of the acquisition field of view. These are conducive to improving the comprehensiveness and accuracy of weld size detection.

[0059] In the embodiment of the present disclosure, the specific value of the value N is not limited, for example, it can be 2 groups, 3 groups, 4 groups or more groups, etc.

[0060] like Figure 3 As shown, it is a schematic diagram of collecting multiple groups of three-dimensional point sets 200 about the first part 220 and the second part 230 according to some embodiments of the present disclosure. In this embodiment, N is specifically taken as 4, and a collection device (not shown in the figure) can be used to move and switch between collection positions P1, P2, P3, and P4 and collect information, so as to collect three-dimensional point sets 200 under four different collection field of view ranges, wherein the collection angle of each collection position is about 180°. The collection device can complete the three-dimensional data collection under the area S1+S2 at the collection position P1, the collection device can complete the three-dimensional data collection under the area S2+S3 at the collection position P2, the collection device can complete the three-dimensional data collection under the area S3+S4 at the collection position P3, and the collection device can complete the three-dimensional data collection under the area S4+S1 at the collection position P4. The overlapping ratio of the collection angles of adjacent collection positions is approximately half of the collection angles of each collection position.

[0061] For each of the collected data in areas S1+S2, S2+S3, S3+S4, and S4+S1, the weld size detection is performed with reference to the aforementioned steps S102 and S103, and more comprehensive and accurate detection result information of the weld size of the first part and the second part can be obtained.

[0062] In some embodiments, the acquisition device specifically uses an industrial-grade depth camera. Figure 3 For the detection scenario shown, you can debug the industrial depth camera as follows:

[0063] Adjust the relative position of the industrial-grade depth camera and the weld 210 to be detected (which can be part of a closed intersecting line weld) to ensure that the weld 210 to be detected is clearly focused. For example, the distance between the industrial-grade depth camera and the weld 210 to be detected can be controlled within the range of 300 to 500 mm, and the focus is completed within this distance range; adjust the acquisition field of view of the industrial-grade depth camera so that the acquisition field of view covers the weld 210 to be detected, and the weld 210 to be detected is roughly located in the middle of the acquisition field of view and the structure is roughly symmetrical. Considering that the industrial-grade depth camera has large distortion at the edge of the acquisition field of view, which may cause distortion of the acquired data, in order to achieve comprehensive detection of welds, you can refer to Figure 3 The acquisition positions P1, P2, P3, and P4 are planned, and the acquisition positions P1, P2, P3, and P4 are moved and switched and photographed to acquire depth images under four acquisition perspectives, thereby obtaining four groups of three-dimensional point sets 200 about the first part and the second part.

[0064] In some embodiments of the present disclosure, the above-mentioned acquisition of N groups of three-dimensional point sets about the first part and the second part may include: acquiring the nth group of three-dimensional point sets about the first part and the second part, wherein n is the arrangement order of the three-dimensional point sets about the first part and the second part, and 1≤n≤N. On this basis, the weld size detection method of some embodiments of the present disclosure may include: after obtaining the detection result information of the weld size corresponding to the nth group of three-dimensional point sets about the first part and the second part, if n≤N-1, assign n=n+1, and return to the above-mentioned step of acquiring the nth three-dimensional point set about the first part and the second part.

[0065] Based on this embodiment, Figure 4 As shown, the weld size detection method 100 of some embodiments of the present disclosure may specifically include the following steps S201 to S205.

[0066] In step S201, the nth group of three-dimensional point sets about the first part and the second part is obtained, where 1≤n≤N. n is the arrangement order of the three-dimensional point sets about the first part and the second part, and the initial value can be 1. The nth group of three-dimensional point sets about the first part and the second part includes the three-dimensional point set of the weld area.

[0067] In step S202, a boundary of a three-dimensional point set of a weld zone is extracted from the nth group of three-dimensional point sets about the first part and the second part.

[0068] In step S203, based on the boundary of the three-dimensional point set of the weld area, the detection result information of the weld size associated with the nth group of three-dimensional point sets about the first part and the second part is obtained.

[0069] In step S204, it is determined whether n is less than or equal to N-1. If so, the process proceeds to step S205, otherwise, the process ends;

[0070] In step S205, assign n=n+1, and return to step S201.

[0071] Since the method of this embodiment can automatically and sequentially obtain the associated detection result information for each group of three-dimensional point sets about the first part and the second part, after automatically looping through the above method steps, the weld size detection of the first part and the second part can basically cover the entire weld, and the detection is not only more comprehensive and accurate, but also has a high degree of automation, so that it can be applied to more weld size detection scenarios.

[0072] refer to Figure 5 As shown, in some embodiments of the present disclosure, the three-dimensional point set 200 of the first part and the second part includes a three-dimensional point set 21 of the weld area, a three-dimensional point set 22 of the first part area, a three-dimensional point set 23 of the second part area, and a three-dimensional point set 24 of the background area. The above step S102 may include:

[0073] Step S1021, removing the background area three-dimensional point set 24 from the three-dimensional point set 200 related to the first part and the second part to obtain a first intermediate three-dimensional point set 240;

[0074] Step S1022, removing the first part area 3D point set 22 and the second part area 3D point set 23 from the first intermediate 3D point set 240 to obtain a second intermediate 3D point set 250;

[0075] Step S1023, performing denoising processing on the second intermediate three-dimensional point set 250 to obtain a weld area three-dimensional point set 21; and

[0076] Step S1024, extracting the boundary 110 of the three-dimensional point set 21 of the weld area.

[0077] The three-dimensional point set 200 regarding the first part and the second part is sequentially subjected to the processes of removing the three-dimensional point set 24 in the background area, removing the three-dimensional point set 22 in the first part area and the three-dimensional point set 23 in the second part area, and denoising. The processing logic is simple and clear, which can improve the data accuracy and calculation efficiency of the three-dimensional point set 21 in the weld area obtained in step S1023, thereby being more conducive to accurately extracting the boundary 110 of the three-dimensional point set 21 in the weld area in step S1024.

[0078] The embodiment of the present disclosure does not specifically limit the algorithm strategy applicable to the above steps S1021 to S1024.

[0079] In some embodiments of the present disclosure, the above step S1021 may include: removing the background area three-dimensional point set 24 from the three-dimensional point set 200 regarding the first part and the second part based on at least one of a statistical filtering algorithm, a Euclidean clustering algorithm, or a region growing algorithm.

[0080] The basic idea of ​​the statistical filtering algorithm is that the three-dimensional point set (also referred to as the "point cloud" in some descriptions below) should present a relatively uniform distribution as a whole, that is, the average distance between each point in the point cloud and its K neighboring points will not exceed the threshold, otherwise it will be considered an outlier. When executing the statistical filtering algorithm, parameters such as the number of neighboring points of the query point and the standard deviation multiplier are set, and outliers are filtered out based on this and the above basic idea. In the embodiments of the present disclosure, the statistical filtering algorithm can specifically be a mean filtering algorithm, a median filtering algorithm, or a Gaussian filtering algorithm.

[0081] The Euclidean clustering algorithm is an algorithm used for point cloud data processing. It divides point cloud data into different clusters (or "clusters") based on the Euclidean distance between points. The main purpose of this algorithm is to classify points with close distances into the same cluster, so as to identify different objects or structures. When executing the Euclidean clustering algorithm, parameters such as the Euclidean distance threshold, the minimum number of cluster points, and the maximum number of cluster points need to be set.

[0082] The region growing algorithm is an image segmentation algorithm based on pixel neighborhood information. Its main idea is to start from some pixel seed points and gradually merge the adjacent pixels into a region, maintaining a certain similarity and connectivity during the merging process.

[0083] In step S1021, the statistical filtering algorithm, the Euclidean clustering algorithm, or the region growing algorithm may be used alone or in combination. For example, the three algorithms are used to perform calculations respectively, and the accuracy of the calculation results of the three algorithms is comprehensively considered to obtain the first intermediate three-dimensional point set 240.

[0084] In some embodiments of the present disclosure, the above step S1022 may include: removing the first part area three-dimensional point set 22 and the second part area three-dimensional point set 23 from the first intermediate three-dimensional point set 240 based on a CAD digital model registration algorithm and / or a point cloud curvature algorithm.

[0085] Taking the first part and the second part as cylindrical pipes respectively, and the two parts intersecting and welding as an example, the first part area 3D point set 22 and the second part area 3D point set 23 in the first intermediate 3D point set 240 are removed based on the CAD digital model registration algorithm, which can be performed by referring to the following steps:

[0086] (1) Convert the CAD digital model of the unwelded first part and the second part from .stl format to .pcd format;

[0087] (2) The four-point congruent set (4PCS) algorithm is used to roughly align the point cloud with the CAD model. It is necessary to set the overlap of the two point clouds to be aligned, the parameter weighting factor, the number of sampling points to verify the alignment effect, and other parameters. The four-point algorithm searches for similar subsets by finding common points in the two point clouds. Once similar subsets are found, the rigid transformation relationship between them is calculated and aligned. By repeatedly executing this process, more similar subsets can be found, thereby establishing the correspondence between the entire point clouds.

[0088] (3) Use the iterative closest point (ICP) algorithm to complete the precise registration of the point cloud and the CAD digital model. It is necessary to set parameters such as the maximum number of iterations, the difference threshold between the two transformation matrices, the registration mean square error, and the maximum distance between the corresponding point pairs. The basic idea of ​​the iterative closest point algorithm is to find a transformation, such as translation, rotation, scaling, etc., so that the corresponding points in the two point clouds can minimize the distance. Through the continuous iteration process, the optimal transformation parameters are found to achieve precise registration of the two point clouds.

[0089] (4) Set the distance threshold between the point cloud and the CAD digital model, traverse the point cloud, calculate the distance between each point and the CAD digital model, if it is less than the distance threshold, it is identified as a cylindrical point cloud and removed, if it is greater than the distance threshold, it is identified as a weld point cloud and retained. Through this process, the cylindrical point cloud can be segmented and removed, thereby removing the first part area three-dimensional point set 22 and the second part area three-dimensional point set 23.

[0090] In some embodiments of the present disclosure, in step S1022, the first part area three-dimensional point set 22 and the second part area three-dimensional point set 23 in the first intermediate three-dimensional point set 240 may also be removed based on the point cloud curvature algorithm. In the point cloud, curvature can help distinguish the flat area and the curved area of ​​the object surface, thereby more accurately expressing the geometric features of the object. The point cloud curvature algorithm can calculate the curvature of the object surface from the point cloud data, thereby identifying the cylindrical point cloud.

[0091] In step S1022, the CAD digital model registration algorithm and the point cloud curvature algorithm can be used either alone or in combination. For example, the two algorithms are used to perform calculations respectively, and the accuracy of the calculation results of the two algorithms is comprehensively considered to obtain the second intermediate three-dimensional point set 250.

[0092] In some embodiments of the present disclosure, the above step S1023 may include: based on the radius filtering algorithm and / or the Euclidean clustering algorithm, performing denoising on the second intermediate 3D point set 250. In this step, the radius filtering algorithm and the Euclidean clustering algorithm may be used either or in combination.

[0093] The basic idea of ​​the Euclidean clustering algorithm is as described above, wherein the Euclidean distance threshold, the minimum number of cluster points, and the maximum number of cluster points of the clustering need to be set. The Euclidean clustering algorithm can be used to separate the three-dimensional point set 21 of the weld area from irrelevant outliers, thereby retaining only the three-dimensional point set 21 of the weld area.

[0094] The radius filtering algorithm performs filtering based on the number of adjacent points within the radius range of the spatial point. The basic idea is to set a threshold for the number of adjacent points of each point within a certain radius in the point cloud data. If the number of adjacent points of a point within this radius is less than the threshold, it will be eliminated.

[0095] In some embodiments of the present disclosure, the aforementioned step S102 or the aforementioned step S1024 may include the following sub-steps 1 to 4.

[0096] In sub-step 1, the three-dimensional point set of the weld area is projected onto a two-dimensional reference plane to obtain a two-dimensional point set of the weld area. Since the three-dimensional point set of the weld area is usually in a strip shape and there is no occlusion, the three-dimensional point set of the weld area can be projected onto a two-dimensional reference plane, such as a reference plane under a plane rectangular coordinate system XY, to obtain a two-dimensional point set of the weld area.

[0097] In sub-step 2, statistical filtering is performed on the two-dimensional point set in the weld area to obtain an intermediate two-dimensional point set. The statistical filtering algorithm may specifically include at least one of a mean filtering algorithm, a median filtering algorithm, or a Gaussian filtering algorithm. By performing statistical filtering on the two-dimensional point set in the weld area, a relatively uniform intermediate two-dimensional point set may be obtained.

[0098] In sub-step three, the boundary of the intermediate two-dimensional point set is extracted. In this sub-step, the boundary of the intermediate two-dimensional point set can be extracted based on the AlphaShapes algorithm and / or the normal estimation algorithm.

[0099] The AlphaShapes algorithm is a simple, effective and fast algorithm for extracting boundary points. The principle is as follows: for a two-dimensional point set of arbitrary shape, set the radius of the rolling circle and roll around it. The points formed by the rolling trajectory are the boundary points.

[0100] In some embodiments, a normal estimation algorithm can also be used to extract the boundary of the intermediate two-dimensional point set, wherein the number of neighboring points for normal estimation and the number of neighboring points for boundary estimation are set, and the neighborhood size can be calculated by the neighborhood normal change rate and the boundary, thereby determining whether each point is the boundary of the two-dimensional point set.

[0101] In sub-step 4, based on the conversion relationship between the two-dimensional reference plane and the three-dimensional coordinate system, the boundary of the intermediate two-dimensional point set is mapped to the three-dimensional coordinate system to obtain the boundary of the three-dimensional point set of the weld area.

[0102] When executing this sub-step, the boundary of the intermediate two-dimensional point set can be traversed, and based on the transformation relationship between the two-dimensional reference plane and the three-dimensional coordinate system, the boundary of the intermediate two-dimensional point set can be mapped to the three-dimensional coordinate system to complete the dimensionality upgrade and obtain the boundary of the three-dimensional point set in the weld area.

[0103] By extracting the boundary of the three-dimensional point set in the weld area through this method, compared with directly extracting the boundary from the three-dimensional point set in the weld area, the proportion of outlier noise points in the extraction result can be reduced from about 60% to about 10%, and the extraction effect is greatly improved, which is conducive to further improving the accuracy and efficiency of weld size detection.

[0104] In some embodiments of the present disclosure, the weld size detection result information includes the weld width detection result, and the aforementioned step S103 may include:

[0105] refer to Figure 6 As shown, the boundary 110 of the three-dimensional point set of the weld zone is divided into a first boundary 111 and a second boundary 112 extending along the length direction of the weld; and

[0106] Based on the first boundary 111 and the second boundary 112 , a detection result of the weld width is obtained.

[0107] Since the three-dimensional point set in the weld area is usually in the shape of a strip, according to the method of this embodiment, the width detection result of the weld in the three-dimensional space can be quickly obtained with high accuracy and high calculation efficiency.

[0108] In some embodiments, obtaining a detection result of the weld width based on the first boundary 111 and the second boundary 112 may specifically include the following steps:

[0109] Determine a minimum spacing between the first boundary 111 and the second boundary 112, a first boundary point Q1 associated with the minimum spacing of the first boundary, and a second boundary point Q2 associated with the minimum spacing of the second boundary, wherein the minimum spacing is used as a minimum value of the weld width;

[0110] Determine the weld width coefficient associated with the first boundary point Q1 and the second boundary point Q2 based on the position information of the first boundary point Q1 and the second boundary point Q2, and the corresponding relationship between the boundary point and the weld width coefficient; and

[0111] In response to the minimum weld width satisfying: w min *c≥w std , the weld width test result is determined to be qualified, otherwise, the weld width test result is determined to be unqualified, where c is the weld width coefficient, w std is the standard value of weld width, w min The minimum value of the weld width. The weld width coefficient c and the standard value of the weld width w std is a constant and can be determined through experience or experiment.

[0112] It should be noted that since the boundary 110 of the three-dimensional point set of the weld zone is still a three-dimensional data set, and the calculation of the minimum spacing between the first boundary 111 and the second boundary 112 is based on the three-dimensional data of the boundary 110, the first boundary point Q1 associated with the minimum spacing of the first boundary 111 and the second boundary point Q2 associated with the minimum spacing of the second boundary 112 are not necessarily located at the inflection point position of the boundary 110 shown in the figure. According to the actual welding process, the first boundary point Q1 and the second boundary point Q2 may appear at any position of the three-dimensional point set of the weld zone. For example, for two pipes welded at an inclined intersection, the minimum value of the weld width may appear in the acute angle area of ​​the two pipes, but it may also appear in the obtuse angle area of ​​the two pipes due to poor welding.

[0113] According to the method of this embodiment, not only the width data of regular or irregular welds in three-dimensional space can be obtained, but also the specific position of the detection result data on the actual weld can be automatically matched, so as to compare and analyze with the weld width index required by the specification. The weld width detection result thus obtained has high accuracy and high calculation efficiency.

[0114] In some embodiments, the above-mentioned segmentation of the boundary 110 of the three-dimensional point set of the weld zone into the first boundary 111 and the second boundary 112 may include:

[0115] Traverse the Q nodes on the boundary of the three-dimensional point set of the weld zone, and at node P q , calculate and save node P q To Node P q+1 direction vector α q , and, at node P Q , calculate and save node P Q Direction vector α to node P1 Q , where 1≤q≤Q-1;

[0116] In response to α q With α q+1 The angle between the nodes is greater than the angle threshold, and the node P is determined q+1 is the inflection point of the boundary of the three-dimensional point set of the weld zone, and, in response to α Q The angle between α1 and α1 is greater than the angle threshold, and the node P1 is determined to be the inflection point of the boundary of the three-dimensional point set in the weld area; and

[0117] Based on the determined inflection point of the boundary of the three-dimensional point set of the weld area, the boundary of the three-dimensional point set of the weld area is segmented into a first boundary and a second boundary. For example, a Euclidean clustering algorithm can be used to segment the first boundary and the second boundary, wherein parameters such as a Euclidean distance threshold of clustering, a minimum number of clustering points, and a maximum number of clustering points need to be set.

[0118] According to the method steps of this embodiment, the boundary segmentation of the weld area can be performed quickly with high accuracy and high calculation efficiency.

[0119] like Figure 7 As shown, according to some embodiments of the present disclosure, a weld size detection device 500 is also provided, which includes:

[0120] An acquisition unit 51 is configured to acquire a three-dimensional point set about a first part and a second part, wherein the first part and the second part are welded to each other, and the three-dimensional point set about the first part and the second part includes a three-dimensional point set of a weld area corresponding to a weld of the first part and the second part;

[0121] An extraction unit 52 configured to extract the boundary of the three-dimensional point set of the weld area; and

[0122] The detection unit 53 is configured to obtain detection result information of the weld size based on the boundary of the three-dimensional point set of the weld area.

[0123] An embodiment of the present disclosure also provides an electronic device, comprising at least one processor and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the aforementioned weld size detection method.

[0124] The device or electronic device of the embodiment of the present disclosure is applied to weld size detection, which not only has high detection accuracy and efficiency and a high degree of automation, but also can be applied to more weld size detection scenarios.

[0125] like Figure 8 As shown, according to some embodiments of the present disclosure, a weld size detection device 600 is also provided, which includes a collection device 61, and an electronic device 62 described in the aforementioned embodiment connected to the collection device 61, wherein the collection device 61 is used to collect a three-dimensional point set about a first part and a second part, wherein the first part and the second part are welded to each other, and the three-dimensional point set about the first part and the second part includes a three-dimensional point set of a weld area corresponding to the weld of the first part and the second part.

[0126] In the embodiment of the present disclosure, the acquisition device 61 may include but is not limited to an industrial-grade 3D camera, an industrial-grade depth camera, a 3D laser scanner, or a 3D lidar, etc.

[0127] In some embodiments, the acquisition device 61 can move and switch between multiple acquisition positions and perform data acquisition, so as to acquire multiple sets of three-dimensional point sets about the first part and the second part within different acquisition fields of view. In other embodiments, the acquisition device 61 can include multiple acquisition units, which are arranged in a one-to-one correspondence at multiple acquisition positions and perform data acquisition simultaneously, so as to simultaneously acquire multiple sets of three-dimensional point sets about the first part and the second part within different acquisition fields of view. The embodiments of the present disclosure do not limit the specific configuration and setting method of the acquisition device.

[0128] The weld size detection device according to the embodiment of the present disclosure has high accuracy and efficiency in weld size detection and can be applied to a wider range of weld size detection scenarios, which may include but are not limited to: for example, detection scenarios of intersecting welding of two circular tubes of different diameters and / or different crossing angles, detection scenarios of irregular welds, welding detection scenarios of large parts that are not convenient for manual operation, welding detection scenarios of micro-precision parts that are not convenient for manual operation or observation, welding detection scenarios of parts in a narrow space that are not convenient for manual operation, and the like.

[0129] The embodiments of the present disclosure also provide a computer-readable storage medium storing computer instructions, wherein the computer instructions are configured to enable a computer to execute the weld size detection method of any of the aforementioned embodiments.

[0130] The embodiments of the present disclosure also provide a computer program product, including a computer program, wherein the computer program implements the weld size detection method of any of the aforementioned embodiments when executed by a processor.

[0131] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but only by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples can be omitted or replaced by their equivalent elements. In addition, each step can be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that with the evolution of technology, many elements described herein can be replaced by equivalent elements that appear after the present disclosure.

[0132] In the welding process, the size of the weld width is directly affected by factors such as welding current, welding speed, welding pressure, etc. Generally speaking, the greater the welding current and welding speed, the greater the weld width; the greater the welding pressure, the smaller the weld width.

Claims

1. A weld size detection method based on three-dimensional point sets, characterized in that: include: Acquire a three-dimensional point set about a first part and a second part, wherein the first part and the second part are welded to each other, and the three-dimensional point set about the first part and the second part includes a three-dimensional point set of a weld area corresponding to a weld of the first part and the second part; Extracting the boundary of the three-dimensional point set of the weld area; and Based on the boundary of the three-dimensional point set in the weld area, the detection result information of the weld size is obtained.

2. The weld size detection method according to claim 1, characterized in that: The weld size detection result information includes the weld width detection result. The weld size detection result information obtained based on the boundary of the three-dimensional point set of the weld area includes: Splitting the boundary of the three-dimensional point set of the weld zone into a first boundary and a second boundary extending along the length direction of the weld; and Based on the first boundary and the second boundary, a detection result of the weld width is obtained.

3. The weld size detection method according to claim 2, characterized in that: The method of obtaining a detection result of the weld width based on the first boundary and the second boundary includes: Determine a minimum spacing between the first boundary and the second boundary, a first boundary point associated with the minimum spacing, and a second boundary point associated with the minimum spacing, wherein the minimum spacing is used as a minimum value of the weld width; Determining the weld width coefficient associated with the first boundary point and the second boundary point based on the position information of the first boundary point and the second boundary point, and the corresponding relationship between the boundary point and the weld width coefficient; and In response to the minimum weld width satisfying: w min *c≥w std , the weld width test result is determined to be qualified, otherwise, the weld width test result is determined to be unqualified, where c is the weld width coefficient, w std is the standard value of weld width, w min Minimum weld width.

4. The weld size detection method according to claim 2, characterized in that: The step of dividing the boundary of the three-dimensional point set of the weld zone into a first boundary and a second boundary comprises: Traverse the Q nodes on the boundary of the three-dimensional point set of the weld zone, and at node P q , calculate and save node P q To Node P q+1 direction vector α q , and, at node P Q , calculate and save node P Q Direction vector α to node P1 Q , where 1≤q≤Q-1; In response to α q With α q+1 The angle between the nodes is greater than the angle threshold, and the node P is determined q+1 is the inflection point of the boundary of the three-dimensional point set of the weld zone, and, in response to α Q The angle between α1 and α1 is greater than the angle threshold, and the node P1 is determined to be the inflection point of the boundary of the three-dimensional point set in the weld area; and Based on the determined inflection point of the boundary of the three-dimensional point set of the weld seam area, the boundary of the three-dimensional point set of the weld seam area is segmented into a first boundary and a second boundary.

5. The weld size detection method according to claim 1, characterized in that: Extract the boundary of the 3D point set in the weld area, including: Projecting the three-dimensional point set of the weld area onto the two-dimensional reference plane to obtain a two-dimensional point set of the weld area; Perform statistical filtering on the two-dimensional point set in the weld area to obtain an intermediate two-dimensional point set; extracting the boundary of the intermediate two-dimensional point set; and Based on the conversion relationship between the two-dimensional reference plane and the three-dimensional coordinate system, the boundary of the intermediate two-dimensional point set is mapped to the three-dimensional coordinate system to obtain the boundary of the three-dimensional point set in the weld area.

6. The weld size detection method according to claim 5, characterized in that: The step of extracting the boundary of the intermediate two-dimensional point set comprises: Based on the AlphaShapes algorithm and / or the normal estimation algorithm, the boundary of the intermediate two-dimensional point set is extracted.

7. The weld size detection method according to claim 1, characterized in that: The three-dimensional point set about the first part and the second part also includes: a three-dimensional point set of a first part area corresponding to the first part, a three-dimensional point set of a second part area corresponding to the second part, and a three-dimensional point set of a background area corresponding to the data acquisition background; The weld size detection method further comprises: after acquiring the three-dimensional point set about the first part and the second part and before extracting the boundary of the three-dimensional point set of the weld area, Remove the background area three-dimensional point set from the three-dimensional point sets about the first part and the second part to obtain a first intermediate three-dimensional point set; Removing the first part area 3D point set and the second part area 3D point set from the first intermediate 3D point set to obtain a second intermediate 3D point set; and The second intermediate three-dimensional point set is denoised to obtain a three-dimensional point set of the weld area.

8. The weld size detection method according to claim 1, characterized in that: The obtaining of the three-dimensional point set about the first part and the second part comprises: obtaining N groups of three-dimensional point sets about the first part and the second part, wherein: N groups of three-dimensional point sets about the first part and the second part are collected by the collection device at N different collection positions in a one-to-one correspondence, wherein the collection field of view corresponding to the m-th collection position overlaps with the collection field of view corresponding to the m+1-th collection position, and the collection field of view corresponding to the N-th collection position overlaps with the collection field of view corresponding to the 1st collection position, wherein N≥2, 1≤m≤N-1.

9. A weld size detection device, characterized in that: include: An acquisition unit is configured to acquire a three-dimensional point set about a first part and a second part, wherein the first part and the second part are welded to each other, and the three-dimensional point set about the first part and the second part includes a three-dimensional point set of a weld area corresponding to a weld of the first part and the second part; An extraction unit configured to extract the boundary of the three-dimensional point set of the weld area; and The detection unit is configured to obtain detection result information of the weld size based on the boundary of the three-dimensional point set of the weld area.

10. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the weld size detection method according to any one of claims 1 to 8.

11. A weld size detection device, characterized in that: include: A collection device, used for collecting a three-dimensional point set about a first part and a second part, wherein the first part and the second part are welded to each other, and the three-dimensional point set about the first part and the second part includes a three-dimensional point set of a weld area corresponding to a weld of the first part and the second part; and The electronic device according to claim 10 is connected to a collection device.

12. The weld size detection device according to claim 11, characterized in that: The acquisition device is used to move and switch between multiple acquisition positions to acquire multiple groups of three-dimensional point sets about the first part and the second part based on different acquisition field of view ranges.

13. A computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are configured to enable a computer to execute the weld size detection method according to any one of claims 1 to 8.