Screen mesh welding method based on three-dimensional point cloud

The welding method based on three-dimensional point cloud solves the problems of complexity and low recognition rate of automatic welding recognition in the existing technology, achieves efficient and high-precision welding feature recognition and automatic welding, and simplifies the welding process.

CN118848162APending Publication Date: 2024-10-29SUZHOU QUANSHI INTELLIGENT OPTOELECTRONICS CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410960180.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The existing automatic welding seam recognition technology has problems such as complex algorithms, weak anti-interference ability, low recognition rate and complex data processing in screen welding, making it difficult to achieve efficient and high-precision welding feature recognition.

Method used

A welding method based on three-dimensional point cloud is adopted to obtain the three-dimensional point cloud of the screen, convert it into the user coordinate system, perform two-dimensional depth map processing, perform connected domain analysis and centroid point sorting, calculate the Euclidean distance ratio, and perform interpolation to ensure Accuracy and continuity of welding sequences.

Benefits of technology

It achieves efficient and high-precision identification of steel bar intersections and weld characteristics, facilitates automatic welding, simplifies the welding process, and improves anti-interference capability and identification accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118848162A_ABST
    Figure CN118848162A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of welding, and relates to a three-dimensional point cloud-based screen mesh welding method, which comprises the following steps of: 1) acquiring a three-dimensional point cloud of a screen mesh in a world coordinate system; 2) converting into a three-dimensional point cloud under a user coordinate system; 3) converting into a two-dimensional depth map; 4) carrying out binarization and connected domain analysis to obtain a connected domain of each sieve pore, and meanwhile, obtaining a centroid point of each connected domain; 5) carrying out two-dimensional sorting on the centroid points, and obtaining an average distance between two adjacent points in each row; 6) judging whether interpolation needs to be carried out or not, and carrying out equidistant interpolation when interpolation needs to be carried out; 7) obtaining coordinates of the identification points in the two-dimensional depth map, calculating depth values of the identification points, and converting the depth values into coordinate values under a user coordinate system; and 8) converting to coordinate values under a world coordinate system, and welding based on the coordinate values under the world coordinate system. The method can identify the characteristics of steel bar intersection points and weld joints in real time, efficiently and precisely, and is convenient for automatic welding of the screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of welding and relates to a screen welding method, in particular to a screen welding method based on three-dimensional point cloud. Background Art

[0002] The application of screens is closely related to the national economy and people's livelihood, and is mainly used in aerospace, aviation, printing, dyeing, electronics, mining, pharmaceuticals, grain, food processing, chemical industry and other fields.

[0003] Traditional manual welding of screen mesh has very strict technical requirements on workers, high work intensity, and arc radiation, smoke and dust generated during welding will cause harm to the health of welders. With the continuous development of computer vision technology, automatic identification of welds has been widely used in the field of welding. By adopting automated welding technology, it can not only improve production efficiency and quality, reduce costs, but also improve the working environment, alleviate the shortage of skilled welding workers, and bring huge economic benefits to enterprises and society.

[0004] However, the existing automatic weld recognition technology has the following main disadvantages: 1. The traditional algorithm processing process is too complicated and has weak anti-interference ability; 2. The method based on image deep learning has the problem that the stability and recognition rate cannot reach 100%, and because image recognition lacks depth information and is easily affected by the background during pixel-level segmentation, the accuracy of the identified welding features is not high. At the same time, training requires a large number of data sets, which is not suitable for on-site project development; 3. The method based on point cloud deep learning requires a large number of annotated data sets for model training. Data processing and annotation are extremely complicated. In addition, the construction site environment is complex and noisy, and it is difficult to obtain point cloud data sets through large-scale scanning.

[0005] Therefore, in view of the defects existing in the above-mentioned prior art, it is necessary to develop a new screen welding method based on three-dimensional point cloud. Summary of the invention

[0006] In order to solve the above defects and shortcomings in the prior art, the present invention proposes a screen welding method based on three-dimensional point cloud, which can identify the intersection points of steel bars and weld features in real time, efficiently and accurately, and facilitates the automatic welding of the screen.

[0007] In order to achieve the above object, the present invention provides the following technical solutions:

[0008] A screen welding method based on three-dimensional point cloud, characterized in that it comprises the following steps:

[0009] 1) Obtain the three-dimensional point cloud of the screen in the world coordinate system;

[0010] 2) Convert the 3D point cloud in the world coordinate system into the 3D point cloud in the user coordinate system;

[0011] 3) Convert the 3D point cloud in the user coordinate system into a 2D depth map;

[0012] 4) performing binarization and connected domain analysis on the two-dimensional depth map to obtain the connected domain of each sieve hole and the centroid point of each connected domain;

[0013] 5) Sort the centroid points of the connected domain in two dimensions and obtain the average distance between two adjacent points in each row;

[0014] 6) Calculating the ratio of the Euclidean distance between two adjacent points to the average distance row by row, judging whether interpolation is needed based on the ratio, and calculating the number of points to be interpolated if interpolation is needed, and performing equidistant interpolation on them;

[0015] 7) translating all interpolated points along the height direction of the two-dimensional depth map by half of the average distance to obtain the coordinates of the identified points in the two-dimensional depth map, calculating the depth values ​​of the identified points, and converting the depth values ​​of the two-dimensional depth map into coordinate values ​​in the user coordinate system;

[0016] 8) Convert the coordinate values ​​in the user coordinate system to the coordinate values ​​in the world coordinate system, and perform welding based on the coordinate values ​​in the world coordinate system.

[0017] Preferably, the step 2) is specifically as follows: three points in the world coordinate system are taken to establish a user coordinate system. The rule for taking the three points is as follows: the first point po is the origin of the user coordinate system, the second point px is the positive direction of the X axis of the user coordinate system, and the third point py is the positive direction of the Y axis of the user coordinate system. The user coordinate system T is established according to the right-hand rule. U , convert the 3D point cloud in the world coordinate system into the 3D point cloud in the user coordinate system.

[0018] Preferably, the step 3) is specifically as follows: using the user coordinate system T U The Z axis is the depth value, convert the 3D point cloud in the user coordinate system into a 2D depth map, and obtain the maximum value X in the X direction of the 3D point cloud max and minimum value X min , the maximum value Y in the Y direction max and minimum value Y min , the pixel size of the image width edge padding of the two-dimensional depth map is W pad The pixel size of the image height edge filling of the two-dimensional depth map is H pad , the resolution of the two-dimensional depth map in the image width direction is d x , the resolution of the two-dimensional depth map in the image height direction is d y, then the width width and height height of the two-dimensional depth map are:

[0019]

[0020] Among them, round() means rounding to the nearest integer, W pad ∈[0,30],H pad ∈[0,30],d x ∈[0.01,3],d y ∈[0.01,3];

[0021] The coordinates of a point in a 3D point cloud in the user coordinate system are (x, y, z), and the coordinates of the point after conversion to a 2D depth map are (u, v), then:

[0022]

[0023] The pixel value of this point is I (u,v) =z, that is, the pixel value of the point is the Z coordinate of the point.

[0024] Preferably, in step 4), the centroid of the connected domain is (u c ,v c ),but:

[0025]

[0026] Among them, w i 、h i are the width coordinate and height coordinate of the i-th pixel in the connected domain, respectively, and N is the total number of pixels in the connected domain.

[0027] Preferably, between step 4) and step 5), the method further includes: eliminating connected domains whose areas do not meet the requirements, wherein the areas of the connected domains are calculated as follows:

[0028]

[0029] Where hole is the aperture size of the sieve, that is, the area of ​​the connected domain is smaller than z min or greater than z max All connected domains will be removed.

[0030] Preferably, in step 5), when the centroid points of the connected domain are sorted in two dimensions, they are first sorted according to the row coordinates to obtain the centroid points of each row, and then the centroid points in each row are arranged in ascending order according to the column coordinates to obtain the sorted result; and when obtaining the average distance between two adjacent points in each row, the Euclidean distance disED between the two adjacent points is first calculated row by row, and disED is subjected to histogram statistics, wherein the number of groups k in the histogram is determined according to the range R, R=max(disED)-min(disED), k=round(R), and then the group distance h=R / k is obtained, the boundary value of each group is determined, the frequency of each group is counted, the group n with the largest frequency is found, k intervals are expanded before and after n, and a distance value set disED_sub in the [nk, n+k] group is obtained, and the average distance is calculated. Where M is the number of distance values ​​in disED_sub, K∈[1,3].

[0031] Preferably, the step 6) is specifically:

[0032] 6.1) Calculate the ratio of the Euclidean distance between two adjacent points to the average distance mDis row by row. When the ratio is greater than the threshold thrRat∈(1.5,∞), it means that the distance between the two adjacent points is too large, that is, a point in the middle is missed and not detected, and interpolation is required;

[0033] 6.2) When interpolation is required, assume that the two adjacent points are p1(x1, y1) and p2(x2, y2), and calculate the number of interpolation points required interNum = floor(ratio-0.5), where floor() means rounding down;

[0034] 6.3) Determine the coordinates of each interpolation point based on the number of interpolation points. Specifically,

[0035]

[0036] Then the coordinates of the first insertion point are (x1+Δx, y1+Δy), the coordinates of the second insertion point are (x1+Δx*2, y1+Δy*2), and so on, until all interNum points are interpolated;

[0037] 6.4) Repeat for all rows until the interpolation is completed and the interpolated points are obtained.

[0038] Preferably, the step 7) is specifically as follows:

[0039] 7.1) Shifting all interpolated points along the image height direction of the two-dimensional depth map by half of the average distance mDis / 2, the coordinates of the identified points in the two-dimensional depth map can be obtained;

[0040] 7.2) Merge the identification points of every two adjacent rows and sort them in ascending order of column coordinates to obtain the output order of welding, that is, the actual welding order;

[0041] 7.3) Calculate the depth value of the identified point;

[0042] 7.4) Convert the identified points in the two-dimensional depth map into three-dimensional points in the user coordinate system.

[0043] Preferably, the step 7.3) is specifically as follows: let the identification point q(q x ,q y ), with q as the center, expand exp = diameter / d up, down, left and right x pixels, get the sub-image depth[x-exp:x+exp,y-exp:y+exp] of the two-dimensional depth map, then identify the depth value q of point q z is the average value of the depth in the sub-graph, and diameter is the steel bar diameter of the screen.

[0044] Preferably, in step 7.4), the three-dimensional point q in the user coordinate system is the identification point q in the two-dimensional depth map. U The coordinates of ((q x -W pad )*d x +X min ,(q y -W pad )*d y +X min ,q z ).

[0045] Compared with the prior art, the screen mesh welding method based on three-dimensional point cloud of the present invention has one or more of the following beneficial technical effects:

[0046] 1. The present invention does not directly search for intersections, but indirectly searches for intersections by searching for sieve holes, which is simple, accurate, and resistant to interference.

[0047] 2. The present invention counts the histogram of the distance between two points and determines the average distance value according to the mode mean, which is more accurate and convenient for subsequent point insertion.

[0048] 3. In the present invention, two adjacent rows are output alternately to ensure that the arc is not extinguished during the welding process (the arc will be extinguished after the welding wire leaves the steel bar, so it needs to move along the steel bar). BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a flow chart of the screen welding method based on three-dimensional point cloud of the present invention.

[0050] Figure 2 Schematic diagram of the established user coordinate system.

[0051] Figure 3 This is the screen depth diagram of Example 1.

[0052] Figure 4 This is a diagram of the connected domain of the sieve holes of Example 1.

[0053] Figure 5 This is a histogram of the centroid distances of the connected domains of the sieve holes in Example 1.

[0054] Figure 6 This is the recognition result after interpolation in the first embodiment.

[0055] Figure 7 This is the welding track of the first embodiment.

[0056] Figure 8 This is the screen depth diagram of Example 2.

[0057] Fig. 9 This is a diagram of the connected domain of the sieve holes of Example 2.

[0058] Fig.10 This is a histogram of the centroid distances of the connected domains of the sieve holes in Example 2.

[0059] Fig.11 This is the recognition result after interpolation in the second embodiment.

[0060] Fig.12 This is the welding track of the second embodiment. DETAILED DESCRIPTION

[0061] Before describing in detail any embodiment of the present invention, it should be understood that the present invention is not limited in its application to the construction and arrangement details of the components described below or illustrated in the following figures. The present invention can have other embodiments and can be practiced or carried out in various ways. In addition, it should be understood that the words and terms used here are for descriptive purposes and should not be considered restrictive. The use of "including" or "having" and its variations herein is intended to cover the items and their equivalents and additional items displayed below. Unless otherwise specified or limited, the terms "install", "connect", "support" and "couple" and their variations are widely used and cover direct installation and indirect installation, connection, support and connection. In addition, "connect" and "couple" are not limited to physical or mechanical connections or connections.

[0062] Furthermore, in the disclosure of the present invention, the term "one" should be understood as "at least one" or "one or more", that is, in one embodiment, the number of an element may be one, while in another embodiment, the number of the element may be multiple, and the term "one" should not be understood as a limitation on the quantity.

[0063] Unless otherwise specified, the length unit used for the data in the present invention is millimeter (mm), the length unit in the image is pixel, the direction vector has no unit, diameter is the steel bar diameter, and hole is the sieve aperture.

[0064] Figure 1 The flowchart of the screen welding method based on three-dimensional point cloud of the present invention is shown. Figure 1 As shown, the screen welding method based on three-dimensional point cloud of the present invention comprises the following steps:

[0065] 1. Obtain the three-dimensional point cloud of the sieve in the world coordinate system.

[0066] The three-dimensional point cloud of the screen is obtained by the laser radar, and the coordinate system at this time is recorded as the world coordinate system. Therefore, what is obtained by the laser radar is the three-dimensional point cloud of the screen in the world coordinate system.

[0067] 2. Convert the 3D point cloud in the world coordinate system into the 3D point cloud in the user coordinate system.

[0068] In the present invention, if Figure 2 As shown, the user takes three points in the world coordinate system to establish the user coordinate system. The rule for taking the three points is: the first point po is the origin of the user coordinate system, the second point px is the positive direction of the X axis of the user coordinate system, and the third point py is the positive direction of the Y axis of the user coordinate system. The user coordinate system T is established according to the right-hand rule. U , convert the 3D point cloud of the screen in the world coordinate system into the 3D point cloud in the user coordinate system.

[0069] 3. Convert the 3D point cloud in the user coordinate system into a 2D depth map.

[0070] In the present invention, the user coordinate system T U The Z axis is the depth value, and the 3D point cloud in the user coordinate system is converted into a 2D depth map. Specifically, the maximum value X in the X direction of the 3D point cloud is obtained. max and minimum value X min , the maximum value Y in the Y direction max and minimum value Y min , the pixel size of the image width edge padding of the two-dimensional depth map is W pad The pixel size of the image height edge filling of the two-dimensional depth map is H pad , the resolution of the two-dimensional depth map in the image width direction is d x , the resolution of the two-dimensional depth map in the image height direction is d y In general, W pad =H pad , d x =d y Among them, X max and Xmin The unit is mm, d x The unit of W is mm / pixel, so the unit of the division between the two is pixel. pad The unit of is also pixel, which can be directly added and subtracted. In this way, the pixel width of the two-dimensional depth map is formed as a whole. Similarly, the pixel height of the two-dimensional depth map is obtained, that is, the width and height of the two-dimensional depth map are:

[0071]

[0072] Among them, round() means rounding to the nearest integer, W pad ∈[0,30],H pad ∈[0,30],d x ∈0.01,3],d y ∈[0.01,3].

[0073] If the coordinates of a point in the 3D point cloud in the user coordinate system are (x, y, z), and the coordinates of the point after conversion to the 2D depth map are (u, v), then:

[0074]

[0075]

[0076] The pixel value of this point is I (u,v) =z, that is, the pixel value of the point is the Z coordinate of the point.

[0077] Fourth, binarization and connected domain analysis are performed on the two-dimensional depth map to obtain the connected domain of each sieve hole and the centroid point of each connected domain.

[0078] In the present invention, the two-dimensional depth map is binarized and connected domain analysis is performed to obtain a separate area of ​​each sieve hole, that is, each separate connected domain, and the centroid of each area is obtained. c ,v c )for:

[0079]

[0080] Among them, w i 、h i are the width coordinate and height coordinate of the i-th pixel in the connected domain, respectively, and N is the total number of pixels in the current connected domain.

[0081] After obtaining the centroid of each connected domain, it is necessary to remove the connected domains whose area does not meet the requirements. The area of ​​the connected domain is calculated as follows:

[0082]

[0083] Where hole is the aperture size of the sieve, that is, the area of ​​the connected domain is smaller than z min or greater than z max All connected domains will be removed.

[0084] 5. Sort the centroid points of the connected domain in two dimensions and obtain the average distance between two adjacent points in each row.

[0085] In the present invention, when the centroid points of the remaining connected domains are sorted in two dimensions, they are first sorted according to row coordinates to obtain the centroid points of each row, and then the centroid points in each row are arranged in ascending order according to column coordinates to obtain the sorted results.

[0086] When obtaining the average distance between two adjacent points in each row, first calculate the Euclidean distance disED between two adjacent points row by row, and perform histogram statistics on disED. Among them, the number of groups k in the histogram is determined according to the range R, R = max(disED)-min(disED), k = round(R), and then obtain the group distance h = R / k, determine the boundary value of each group, count the frequency of each group, find the group n with the highest frequency, expand k intervals before and after n, and obtain the distance value set disED_sub in the [nk, n+k] group, and calculate the average distance Where M is the number of distance values ​​in disED_sub, K∈[1,3].

[0087] 6. Calculate the ratio of the Euclidean distance between two adjacent points to the average distance row by row, determine whether interpolation is needed based on the ratio, and if interpolation is needed, calculate the number of points that need to be interpolated, and perform equidistant interpolation on them.

[0088] Specifically, the ratio ratio of the Euclidean distance disED of two adjacent points to the average distance mDis is first calculated row by row. When the ratio is greater than the threshold thrRat∈(1.5,∞), it means that the distance between the two adjacent points is too large, that is, a point in the middle is missed and not detected, and interpolation is required.

[0089] When interpolation is required, assume that the two adjacent points are p1(x1, y1) and p2(x2, y2), and calculate the number of interpolation points required interNum = floor(ratio-0.5), where floor() represents rounding down.

[0090] Then, the coordinates of each interpolation point are determined based on the number of interpolation points. Specifically,

[0091]

[0092] The coordinates of the first insertion point are (x1+Δx, y1+Δy), the coordinates of the second insertion point are (x1+Δx*2, y1+Δy*2), and so on, until all interNum points are interpolated.

[0093] Finally, repeat all rows until the interpolation is completed and obtain the interpolated points.

[0094] 7. All interpolated points are translated by half of the average distance in the height direction of the two-dimensional depth map to obtain the coordinates of the identified points in the two-dimensional depth map, and the depth values ​​of the identified points are calculated, and the depth values ​​of the two-dimensional depth map are converted into coordinate values ​​in the user coordinate system.

[0095] Specifically, first, all interpolated points are translated along the image height direction of the two-dimensional depth map by half of the average distance mDis / 2, so as to obtain the coordinates of the identification points in the two-dimensional depth map.

[0096] Next, merge the identification points of each two adjacent rows (that is, merge the identification points of the 1st and 2nd rows, merge the identification points of the 3rd and 4th rows, merge the identification points of the 5th and 6th rows, and so on), and sort them in ascending order of column coordinates to obtain the output sequence of welding, that is, the actual welding sequence. Welding in this sequence can ensure that the arc is not extinguished during the welding process and continuous welding can be achieved.

[0097] Then, the depth values ​​of the identified points are calculated.

[0098] According to the two-dimensional depth map and the identification point q(q x ,q y ), with q as the center, expand exp = diameter / d up, down, left and right x pixels, get the sub-image depth[x-exp:x+exp,y-exp:y+exp] of the two-dimensional depth map, then identify the depth value q of point q z is the average value of the depth in the sub-graph, and diameter is the steel bar diameter of the screen.

[0099] Finally, the identified point in the two-dimensional depth map is converted into a three-dimensional point in the user coordinate system. At this time, the three-dimensional point q in the user coordinate system is U The coordinates of ((q x -W pad )*d x +X min ,(q y -W pad )*d y +x min ,q z ).

[0100] 8. Convert the coordinate values ​​in the user coordinate system to the coordinate values ​​in the world coordinate system, and perform welding based on the coordinate values ​​in the world coordinate system. W =T U -1 *q U .

[0101] The following describes in detail the screen welding method based on three-dimensional point cloud of the present invention with several specific embodiments, so that those skilled in the art can better understand the present invention.

[0102] Example 1: The diameter of the steel bar is 8 mm and the hole diameter is 12 mm. The specific steps are as follows:

[0103] 1. Obtain the three-dimensional point cloud data of the sieve in the world coordinate system.

[0104] 2. Given three points po(1045.173,655.908,-647.46), px(1037.816,-571.9,-646.72), py(600.15,672.96,-647.27), establish the user coordinate system Convert the point cloud to the user coordinate system to get the point cloud.

[0105] 3. Convert the 3D point cloud into a 2D depth map, such as Figure 3 As shown, the resolutions dx and dy are both 1 mm.

[0106] 4. Two-dimensional depth Figure 2 The connected domain of the mesh is obtained by quantization, and the connected domain with an area outside [48,432] is eliminated. The result is as follows Figure 4 shown.

[0107] 5. Obtain the centroid point of the sieve hole area, as shown in the following table.

[0108] Sieve hole Centroid Sieve hole Centroid Sieve hole Centroid 1 [198.141,320.121] 372 [562.001,246.500] 743 [926.880,291.121] 2 [198.500,348.500] 373 [561.951,274.980] 745 [925.880,403.120] 3 [197.880,376.120] 374 [561.951,274.980] 746 [926.880,291.121] … … … … … … 369 [561.302,387.069] 740 [925.500,431.000] 1111 [1280.767,87.000] 370 [561.141,415.141] 741 [925.890,374.670] 1112 [1282.010,30.000] 371 [561.362,443.362] 742 [925.880,403.120] - -

[0109] 6. Sort the centroid points in two dimensions. First, sort them by row coordinates to obtain the data points of each row. Then, sort the points in the row in ascending order by column coordinates to obtain the sorted results, as shown in the following table.

[0110] Number of lines Each row has centroid points in ascending order of columns 1 [201.638,37.590],[230.638,35.590],[260.500,34.453],…,[1282.001,30.953] 2 [216.127,50.645],[245.362,49.362],[274.545,47.976],…,[1267.500,43.500] 3 [201.780,65.975],[231.064,64.354],[260.001,63.001],…,[1281.002,58.001] … … 29 [197.294,432.500],[226.880,430.880],[255.655,430.354],…,[1273.500,425.500] 30 [212.127,445.646],[241.409,445.339],[270.120,444.120],…,[1259.000,440.001]

[0111] 7. Count the distances between adjacent points in a row and get the distance distribution histogram as follows Figure 5 As shown, the center of the mode interval is 29.015. Two intervals are expanded forward and backward, and a total of 1030 distance values ​​are obtained. The average value of the distance is 29.167.

[0112] 8. Interpolate the undetected points. Determine the number of missed points based on the distance between adjacent points and interpolate evenly. A total of 12 points are interpolated, as shown in the following table. So far, a total of 1124 points have been detected.

[0113]

[0114] 9. All centroid points are translated along the Y axis by half of the average distance, i.e. 29.166 / 2 = 14.583 pixels, and the result is used as the final recognition point. The interpolated result is as follows: Figure 6 As shown in the figure, the small gray dots are the initial recognition points, and the large gray dots are the interpolated points. The sorting results after interpolation are shown in the following table.

[0115] Number of lines Each row has identification points arranged in ascending order by column 1 [201.638,51.528],[230.638,49.528],[260.500,48.390],…,[1282.001,44.890] 2 [216.127,65.229],[245.362,63.946],[274.545,62.559],…,[1267.500,58.083] 3 [201.780,80.558],[231.064,78.938],[260.001,77.583],…,[1281.002,72.583] … … 29 [197.294,447.083],[226.880,445.463],[255.655,444.938],…,[1273.500,440.083] 30 [212.127,460.229],[241.409,459.923],[270.120,458.703],…,[1259.000,454.583]

[0116] 10. Take two adjacent rows as a group and arrange them in ascending order according to the column coordinates. That is, the two rows in a group are output alternately to form a "W"-shaped welding track. The welding track is as follows: Figure 7 Shown by the black line.

[0117] 11. Obtain the depth value of the identification point according to the depth map, that is, the Z coordinate, and then convert the three-dimensional point in the user coordinate system to the world coordinate system. The coordinates of the identification point in the world coordinate system are shown in the table below.

[0118]

[0119] Example 2: The diameter of the steel bar is 12 mm and the hole diameter is 22 mm. The specific steps are as follows:

[0120] 1. Obtain the three-dimensional point cloud data of the sieve in the world coordinate system.

[0121] 2. Three points are known: po(1048.173,472.908,-644.46), px(1043.816,-666.90,

[0122] -645.72), py(600.15,469.62,-644.27), establish the user coordinate system

[0123] Convert the point cloud to the user coordinate system to get the point cloud.

[0124] 3. Convert the 3D point cloud into a 2D depth map, such as Figure 8 As shown, the resolution dx and dy are both 1 mm.

[0125] 4. Two-dimensional depth Figure 2 The connected domain of the mesh is obtained by quantization, and the connected domain with an area outside [161.33,1452] is eliminated. The result is as follows Fig. 9shown.

[0126] 5. Obtain the centroid point of the sieve hole area, as shown in the following table.

[0127] Sieve hole Centroid Sieve hole Centroid Sieve hole Centroid 1 [112.931,382.197] 86 [454.097,414.020] 171 [793.999,381.041] 2 [112.498,440.177] 87 [455.511,238.771] 172 [796.421,87.316] 3 [113.200,323.999] 88 [457.645,61.050] 173 [796.414,34.323] … … … … … … 83 [425.660,35.160] 168 [794.941,205.277] 253 [1134.205,111.695] 84 [454.859,297.347] 169 [794.360,264.084] 254 [1134.204,287.923] 85 [454.618,355.932] 170 [794.183,322.342] 255 [1134.381,452.751]

[0128] 6. Sort the centroid points in two dimensions. First, sort them by row coordinates to obtain the data points in each row. Then, sort the points in the row in ascending order by column coordinates to obtain the sorted results. The results are shown in the following table.

[0129]

[0130] 7. Count the distances between adjacent points in a row and get the distance distribution histogram as follows Fig.10 As shown, the center of the mode interval is 61.458. By expanding the two intervals forward and backward, a total of 236 distance values ​​are obtained, and the average value of the distance is 61.816.

[0131] 8. Interpolate the undetected points, determine the number of missed points based on the distance between adjacent points, and interpolate evenly. A total of 0 points are interpolated.

[0132] 9. All centroid points are translated along the Y axis by half of the average distance, i.e. 61.816 / 2 = 30.908 pixels, and the result is used as the final recognition point. The results before and after interpolation are plotted as follows: Fig.11 As shown in the figure, the small gray dots are the initial recognition points, and the large gray dots are the interpolated points. Since there are no interpolated points, Fig.11 There is no large gray origin in the image. The sorting results are shown in the following table.

[0133]

[0134] 10. Take two adjacent rows as a group and arrange them in ascending order according to the column coordinates. That is, the two rows in a group are output alternately to form a "W"-shaped welding track. The welding track is as follows: Fig.12 Shown by the black line.

[0135] 11. Obtain the depth value of the identification point according to the depth map, that is, the Z coordinate of the point in the user coordinate system, and then convert the point in the user coordinate system to the world coordinate system. The coordinates of the identification point in the world coordinate system are shown in the table below.

[0136]

[0137]

[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention, rather than to limit the scope of protection of the present invention. Those skilled in the art can modify or replace the technical solution of the present invention according to the idea of ​​the present invention without departing from the essence and scope of the technical solution of the present invention.

Claims

1. A screen welding method based on three-dimensional point cloud, characterized in that: The following steps are involved: 1) Obtain the three-dimensional point cloud of the screen in the world coordinate system; 2) Convert the 3D point cloud in the world coordinate system into the 3D point cloud in the user coordinate system; 3) Convert the 3D point cloud in the user coordinate system into a 2D depth map; 4) performing binarization and connected domain analysis on the two-dimensional depth map to obtain the connected domain of each sieve hole and the centroid point of each connected domain; 5) Sort the centroid points of the connected domain in two dimensions and obtain the average distance between two adjacent points in each row; 6) Calculating the ratio of the Euclidean distance between two adjacent points to the average distance row by row, judging whether interpolation is needed based on the ratio, and calculating the number of points to be interpolated if interpolation is needed, and performing equidistant interpolation on them; 7) translating all interpolated points along the height direction of the two-dimensional depth map by half of the average distance to obtain the coordinates of the identified points in the two-dimensional depth map, calculating the depth values ​​of the identified points, and converting the depth values ​​of the two-dimensional depth map into coordinate values ​​in the user coordinate system; 8) Convert the coordinate values ​​in the user coordinate system to the coordinate values ​​in the world coordinate system, and perform welding based on the coordinate values ​​in the world coordinate system.

2. The screen welding method based on three-dimensional point cloud according to claim 1, characterized in that: The step 2) is specifically as follows: three points in the world coordinate system are taken to establish a user coordinate system. The rule for taking the three points is as follows: the first point po is the origin of the user coordinate system, the second point px is the positive direction of the X axis of the user coordinate system, and the third point py is the positive direction of the Y axis of the user coordinate system. The user coordinate system T is established according to the right-hand rule. U , convert the 3D point cloud in the world coordinate system into the 3D point cloud in the user coordinate system.

3. The screen welding method based on three-dimensional point cloud according to claim 2 is characterized in that: The step 3) is specifically as follows: using the user coordinate system T U The Z axis is the depth value, convert the 3D point cloud in the user coordinate system into a 2D depth map, and obtain the maximum value X in the X direction of the 3D point cloud max and minimum value X min , the maximum value Y in the Y direction max and minimum value Y min , the pixel size of the image width edge padding of the two-dimensional depth map is W pad The pixel size of the image height edge filling of the two-dimensional depth map is H pad , the resolution of the two-dimensional depth map in the image width direction is d x , the resolution of the two-dimensional depth map in the image height direction is d y , then the width width and height height of the two-dimensional depth map are: Among them, round() means rounding to the nearest integer, W pad ∈[0,30],H pad ∈[0,30],d x ∈[0.01,3],d y ∈[0.01,3]; The coordinates of a point in a 3D point cloud in the user coordinate system are (x, y, z), and the coordinates of the point after conversion to a 2D depth map are (u, v), then: The pixel value of this point is I (u,v) =z, that is, the pixel value of the point is the Z coordinate of the point.

4. The screen welding method based on three-dimensional point cloud according to claim 3 is characterized in that: In step 4), the centroid of the connected domain is (u c ,v c ),but: Among them, w i 、h i are the width coordinate and height coordinate of the i-th pixel in the connected domain, respectively, and N is the total number of pixels in the connected domain.

5. The screen welding method based on three-dimensional point cloud according to claim 4, characterized in that: Between step 4) and step 5), the method further includes: eliminating connected domains whose areas do not meet the requirements, wherein the areas of the connected domains are calculated as follows: Where hole is the aperture size of the sieve, that is, the area of ​​the connected domain is smaller than z min or greater than z max All connected domains will be removed.

6. The screen welding method based on three-dimensional point cloud according to claim 5, characterized in that: In the step 5), when the centroid points of the connected domain are sorted in two dimensions, they are first sorted according to the row coordinates to obtain the centroid points of each row, and then the centroid points in each row are arranged in ascending order according to the column coordinates to obtain the sorted result; and when obtaining the average distance between two adjacent points in each row, the Euclidean distance disED between the two adjacent points is first calculated row by row, and disED is statistically analyzed in a histogram, wherein the number of groups k in the histogram is determined according to the range R, R=max(disED)-min(disED), k=round(R), and then the group distance h=R / k is obtained, the boundary value of each group is determined, the frequency of each group is counted, the group n with the highest frequency is found, k intervals are expanded before and after n, and a distance value set disED_sub in the [nk, n+k] group is obtained, and the average distance is calculated. Where M is the number of distance values ​​in disED_sub, K∈[1,3].

7. The screen welding method based on three-dimensional point cloud according to claim 6, characterized in that: The step 6) is specifically as follows: 6.1) Calculate the ratio of the Euclidean distance between two adjacent points to the average distance mDis row by row. When the ratio is greater than the threshold thrRat∈(1.5,∞), it means that the distance between the two adjacent points is too large, that is, a point in the middle is missed and not detected, and interpolation is required; 6.2) When interpolation is required, assume that the two adjacent points are p1(x1, y1) and p2(x2, y2), and calculate the number of interpolation points required interNum = floor(ratio-0.5), where floor() means rounding down; 6.3) Determine the coordinates of each interpolation point based on the number of interpolation points. Specifically, Then the coordinates of the first insertion point are (x1+Δx, y1+Δy), the coordinates of the second insertion point are (x1+Δx*2, y1+Δy*2), and so on, until all interNum points are interpolated; 6.4) Repeat for all rows until the interpolation is completed and the interpolated points are obtained.

8. The screen welding method based on three-dimensional point cloud according to claim 7, characterized in that: The step 7) is specifically as follows: 7.1) Shifting all interpolated points along the image height direction of the two-dimensional depth map by half of the average distance mDis / 2, the coordinates of the identified points in the two-dimensional depth map can be obtained; 7.2) Merge the identification points of every two adjacent rows and sort them in ascending order of column coordinates to obtain the output order of welding, that is, the actual welding order; 7.3) Calculate the depth value of the identified point; 7.4) Convert the identified points in the two-dimensional depth map into three-dimensional points in the user coordinate system.

9. The screen welding method based on three-dimensional point cloud according to claim 8, characterized in that: The step 7.3) is specifically as follows: let the identification point q(q x ,q y ), with q as the center, expand exp = diameter / d up, down, left and right x pixels, get the sub-image depth[x-exp:x+exp,y-exp:y+exp] of the two-dimensional depth map, then identify the depth value q of point q z is the average value of the depth in the sub-graph, and diameter is the steel bar diameter of the screen.

10. The screen welding method based on three-dimensional point cloud according to claim 9, characterized in that: In step 7.4), the coordinates of the three-dimensional point qU in the user coordinate system of the identification point q in the two-dimensional depth map are ((q x -W pad )*d x +X min ,(q y -W pad )*d y +X min ,q z ).

Citation Information

Cited By

  • Method for localizing welding points for reinforcement cage

    WO2026123605A1