Welding seam tracking point identification method and device, electronic equipment and storage medium
By generating seed straight lines and identifying breakpoints, the problem of high cost and noise when improving speed and accuracy of welding seam identification technology is solved, efficient welding seam tracking point identification is achieved, and the accuracy and speed requirements of high-speed welding are met.
Patent Information
- Application Number
- CN202410970247.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-20
AI Technical Summary
When existing welding seam recognition technology improves welding speed and accuracy, it is difficult to meet the requirements for accuracy and speed at the same time. Especially when processing large curvature welds, the cost is high and there are many noise points, resulting in a decrease in recognition accuracy.
By obtaining the point cloud data of the workpiece to be welded, a small batch of points is used to generate seed straight lines, and the weld tracking points are determined according to the preset breakpoint identification algorithm, which reduces the calculation time of the filtering process, improves the recognition speed, and ensures the recognition accuracy.
It achieves an increase in recognition speed without reducing the accuracy of weld tracking point recognition, meets the large field of view and high precision requirements of high-speed welding, and can calculate the breakpoints and tracking of 3200 laser line scan camera point cloud data within 1 ms. point.
Smart Images

Figure CN118664137A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of weld seam identification and tracking, and in particular to a weld seam tracking point identification method, device, electronic equipment and storage medium. Background Art
[0002] At present, the weld seam recognition technology generally obtains point cloud data through a laser line scan camera, filters the point cloud data, calculates weld seam tracking points, and guides the welding gun to weld based on the weld seam tracking points. With the increase in welding speed, the speed and accuracy of weld seam recognition are also relatively higher.
[0003] In the prior art, higher welding speed and welding accuracy are met by increasing the accuracy of the laser line scan camera and increasing the camera-welding gun distance. However, increasing the accuracy of the laser line scan camera and increasing the welding gun distance not only increases the cost, but is also not conducive to processing large curvature welds.
[0004] The Chinese patent with publication number CN108898158A discloses a weld identification method based on piecewise linear fitting. This method shortens the filtering time of weld identification points by removing the filtering step, thereby shortening the overall time of weld identification. However, due to the lack of filtering, there are many noise points, which reduces the accuracy of weld identification. On the other hand, since this method finds all segments through continuous iterative subdivision and then finds weld identification points, it needs to repeatedly calculate the distance from the point to the straight line during the iterative subdivision process. Therefore, although the filtering time is shortened, the calculation time of the weld identification points is increased. As a result, this method cannot meet the current welding requirements in terms of accuracy and speed. Summary of the invention
[0005] In view of this, an object of the present invention is to provide a weld tracking point recognition method, device, electronic device and storage medium to improve the recognition speed of weld tracking points without reducing the accuracy of weld tracking point recognition.
[0006] In a first aspect, a method for identifying weld tracking points is provided, the method comprising:
[0007] Obtain an ordered set of point cloud data of each laser line scan point on the weld of the workpiece to be welded;
[0008] Taking the starting laser line scan point as a reference point, sequentially selecting a first preset number of laser line scan points to generate a seed straight line; the first preset number is less than the total number of laser line scan points;
[0009] The remaining laser line scanning points after the seed line is generated are extended according to the preset extension algorithm to obtain the target line;
[0010] The remaining laser line scan points after obtaining the target straight line are used to generate and extend new seed straight lines in the same way to obtain a new target straight line until all point cloud data are used to generate the target straight line;
[0011] Identify breakpoints between target straight lines according to a preset breakpoint identification algorithm;
[0012] The weld tracking point is determined based on the breakpoint and the weld shape of the workpiece to be welded.
[0013] Optionally, taking the starting laser line scan point as a reference point, sequentially selecting a first preset number of laser line scan points to generate a seed straight line includes:
[0014] Taking the starting laser line scan point as a reference point, sequentially selecting a first preset number of laser line scan points;
[0015] Based on a first preset number of laser line scan points, a fitting straight line is generated according to a preset straight line generation algorithm;
[0016] Determine the distance from each laser line scan point in the selected laser line scan points to the fitting straight line, which is called the first distance;
[0017] comparing the first distance with a first preset threshold;
[0018] If the number of laser line scan points whose first distance is less than the first preset threshold reaches a preset ratio, the fitted straight line is determined as a seed straight line.
[0019] Optionally, if the number of laser line scan points whose first distance is less than the first preset threshold value does not reach a preset ratio, the method further includes:
[0020] Delay one reference point, continue to select the first preset number of laser line scanning points, and regenerate the fitting straight line;
[0021] Re-determine whether the number of laser line scan points whose distance to the new fitting straight line is less than the first preset threshold satisfies a preset ratio;
[0022] If it is reached, the new fitting straight line is determined as the seed straight line;
[0023] If not reached, continue to postpone one reference point and reselect the first preset number of laser line scanning points until a seed straight line is generated.
[0024] Optionally, if no seed line is generated after all laser line scan points are selected, the method further includes:
[0025] Increase the first preset threshold or reduce the first preset number of selected laser line scan points.
[0026] Optionally, the remaining laser line scan points after the seed line is generated are extended according to a preset extension algorithm to obtain a target line including:
[0027] Selecting target points in the remaining laser line scan points after the seed line is generated according to the preset interval number sequence;
[0028] Calculate the distance from the target point to the seed line, called the second distance;
[0029] Determining whether the second distance is less than a second preset threshold;
[0030] If it is less than a second preset threshold, the seed line is extended with the target point as the extension point;
[0031] If it is greater than the second preset threshold, determine whether the distances from the second preset number of laser line scan points before and after the target point to the seed straight line are all greater than the second preset threshold; wherein the second preset number of laser line scan points before and after the target point at least includes all laser line scan points in the interval in front of the target point;
[0032] If the second preset number of consecutive laser line scan points are not all greater than the second preset threshold, the seed line is extended with the target point as the extension point;
[0033] If a second preset number of consecutive laser line scan points are greater than a second preset threshold, the seed line is extended with the previous target point as the end point of the seed line to obtain the target line.
[0034] Optionally, identifying breakpoints between target straight lines according to a preset breakpoint identification algorithm includes:
[0035] Get the depth value of the laser line scan point between every two adjacent target straight lines;
[0036] Determine the number of laser line scan points between adjacent target lines that exceed a preset depth value based on the depth value;
[0037] If the number of laser line scan points exceeding the preset depth value exceeds the preset number, the endpoints of the adjacent sides of the adjacent target straight lines are determined as breakpoints;
[0038] If the number of laser line scan points exceeding the preset depth value is less than the preset number, it is determined whether the angle between adjacent target straight lines is greater than the preset angle;
[0039] If it is greater than the preset angle, the intersection of the adjacent target straight lines is determined as the breakpoint.
[0040] Optionally, determining the weld tracking point based on the breakpoint and the weld shape of the workpiece to be welded includes:
[0041] Based on the weld shape of the workpiece to be welded, determine the target breakpoint among all the identified breakpoints;
[0042] Connect the target breakpoints to obtain a weld straight line;
[0043] Select a preset number of points on the weld line and determine them as weld tracking points.
[0044] In a second aspect, a weld tracking point identification device is provided, the device comprising:
[0045] An acquisition unit, used to acquire an ordered set of point cloud data of each laser line scan point on the weld of the workpiece to be welded;
[0046] A generating unit, configured to sequentially select a first preset number of laser line scan points to generate a seed straight line with a starting laser line scan point as a reference point; the first preset number is less than the total number of laser line scan points;
[0047] An extension unit is used to extend the seed straight line according to a preset extension algorithm by using the remaining laser line scanning points after the seed straight line is generated to obtain a target straight line;
[0048] Generate an extension unit, which is used to generate and extend a new seed straight line using the same method for the remaining laser line scan points after the target straight line is obtained, to obtain a new target straight line, until all point cloud data are used to generate the target straight line;
[0049] An identification unit, used for identifying breakpoints between target straight lines according to a preset breakpoint identification algorithm;
[0050] The determination unit is used to determine the weld tracking point based on the breakpoint and the weld shape of the workpiece to be welded.
[0051] In a third aspect, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0052] Memory, used to store computer programs;
[0053] The processor is used to implement any method step of the first aspect when executing the program stored in the memory.
[0054] According to a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any method step of the first aspect is implemented.
[0055] The weld tracking point recognition method, device, electronic device and storage medium provided by the embodiment of the present invention, by using a small batch of points to generate seed lines, the remaining laser line scan points only need to determine whether they belong to the seed lines, and directly use the return point cloud data of the laser line scan camera, minus the time-consuming calculation of the filtering process, and no need to perform filtering operation settings, etc., which greatly reduces the time of weld tracking point recognition and improves the speed of weld tracking point recognition; and because a small batch of point cloud data is used to generate seed lines, the generated seed lines are less affected by noise points, ensuring the quality of the seed lines, and then ensuring the accuracy of weld recognition, which can meet 3200 laser line scan camera point cloud data, calculate breakpoints and tracking points in 1ms, and meet the large field of view and high precision requirements of high-speed welding. The weld tracking point recognition method of the present invention can meet the weld tracking point calculation requirements of laser welding with a speed of more than 10 meters / minute and an accuracy of 0.1mm.
[0056] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0058] Figure 1 A flow chart of a weld tracking point identification method provided by an embodiment of the present invention is shown;
[0059] Figure 2 A schematic diagram showing the structure of seed line generation provided by an embodiment of the present invention is shown;
[0060] Figure 3 A schematic diagram of the structure of multiple target straight lines provided by an embodiment of the present invention is shown;
[0061] Figure 4 A schematic structural diagram of a weld tracking point identification device provided by an embodiment of the present invention is shown;
[0062] Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.
[0064] Considering that the speed and accuracy of the current weld tracking point recognition cannot meet the current welding requirements, based on this, an embodiment of the present invention provides a method and device for weld tracking point recognition, which is described below through an embodiment.
[0065] The embodiment of the present invention provides a method for identifying weld tracking points. Figure 1 As shown, the method comprises the following steps:
[0066] Step S101: obtaining an ordered set of point cloud data of each laser line scan point on the weld of the workpiece to be welded.
[0067] In the embodiment of the present application, the surface of the workpiece to be welded can be scanned by a laser line scan camera to obtain point cloud data of the laser line scan points.
[0068] Step S102: Taking the starting laser line scan point as the reference point, sequentially selecting a first preset number of laser line scan points to generate a seed line. The first preset number is less than the total number of laser line scan points.
[0069] In the embodiment of the present application, the first preset number is, for example, 10, 30, or between 10 and 30. Specifically, in the ordered point cloud data obtained in step S101, 15 laser line scan points are obtained starting from the first point as seeds to generate seed lines. A small section of seed lines is first generated by a small number of laser line scan points. Even if the laser line scan points are not filtered, fewer noise points are generated, which has less impact on the quality of the generated seed lines, and has less impact on the accuracy of the subsequently identified tracking points.
[0070] The specific implementation of using seeds to generate seed lines will be described in detail in the following embodiments and will not be repeated here.
[0071] Step S103: Extend the seed line according to a preset extension algorithm using the remaining laser line scan points after the seed line is generated to obtain a target line.
[0072] In this step, the remaining laser line scan points after the seed straight line is generated will not be used to extend the seed straight line due to the existence of welds or grooves. The extension will stop after the preset conditions of the preset extension algorithm are met. Therefore, there will be remaining laser line scan points after the target straight line is generated.
[0073] Since the amount of calculation required to determine whether a point belongs to a straight line is less than the amount of calculation required to generate a straight line, a small batch of laser line scan points are used to generate seed straight lines, and the remaining laser line scan points only need to be judged whether they belong to the seed straight line to obtain the target straight line, which greatly reduces the time for weld tracking point recognition and thus improves the speed of weld tracking point recognition.
[0074] The specific method of extending the seed line will be described in detail in the following embodiments and will not be described in detail here.
[0075] Step S104: Generate and extend the remaining laser line scan points after obtaining the target straight line in the same way to obtain a new seed straight line, until all point cloud data are used to generate the target straight line.
[0076] In the embodiment of the present application, the method of step S102 and step S103 is used to generate and extend a new seed straight line. Due to the existence of the weld or groove, at least two target straight lines will be obtained.
[0077] Step S105: Identify breakpoints between target straight lines according to a preset breakpoint identification algorithm.
[0078] In the embodiments of the present application, a breakpoint is a point that separates a target straight line. In some examples, a breakpoint may be an end point of a target straight line, or may be a dispersed laser line scan point between target straight lines. How to identify a breakpoint will be described in detail in the following embodiments, and will not be repeated here.
[0079] Step S106: Determine the weld tracking point based on the breakpoint and the weld shape of the workpiece to be welded.
[0080] In an embodiment of the present application, the weld shape includes at least straight line, V-shape, T-shape, etc. For example, when the weld shape is straight line, then among all the breakpoints, find the breakpoints that can be connected into a straight line to determine the weld tracking point.
[0081] The method of step S101 to step S106 can be implemented by C++ programming, and the parameters of the hardware device for processing this step can be Intel 12th Gen Intel(R) Core(TM) i7-12700F and 16G memory.
[0082] This application uses a small batch of points to generate seed lines, and the remaining laser line scan points only need to determine whether they belong to the seed lines, and directly use the return point cloud data of the laser line scan camera, minus the time-consuming calculation of the filtering process, and does not need to perform filtering operation settings, etc., which greatly reduces the time for weld tracking point recognition and ensures the accuracy of weld recognition. It can meet 3200 laser line scan camera point cloud data, calculate breakpoints and tracking points in 1ms, and meet the large field of view and high precision requirements of high-speed welding. The weld tracking point recognition method of the present invention can meet the weld tracking point calculation requirements of laser welding with an accuracy of more than 10 meters / minute and 0.1mm.
[0083] In addition, since the embodiment of the present application does not increase the distance between the laser line scan camera and the welding gun, it can meet the requirements of large curvature welding.
[0084] Based on the above embodiment, taking the starting laser line scan point as the reference point, sequentially selecting a first preset number of laser line scan points to generate a seed line includes the following steps:
[0085] Step S1021: Taking the starting laser line scan point as a reference point, sequentially selecting a first preset number of laser line scan points.
[0086] In this step, sequentially selecting a first preset number of laser line scan points means selecting, for example, 10-30 laser line scan points from a batch of ordered point cloud data collected by the laser line scan camera according to the point cloud sequence.
[0087] Step S1022: Based on a first preset number of laser line scanning points, a fitting straight line is generated according to a preset straight line generation algorithm.
[0088] In this step, the preset straight line generation algorithm is, for example, the least squares method, which seeks the best function matching of the data by minimizing the sum of squares of errors.
[0089] In a specific example, 25 laser line scan points are selected, namely ((x_1, y_1), (x_2, y_2), ..., (x_25, y_25)). The goal of the least squares method is to find the best fitting straight line A*x+B*y+C=0 with straight line parameters A, B, and C, where A and B are the slopes of the straight line and C is a constant, so that the sum of the squares of the distances from the 25 points to the straight line is minimized.
[0090] Step S1023: Determine the distance from each of the selected laser line scan points to the fitting straight line, which is called the first distance.
[0091] Step S1024: Compare the first distance with a first preset threshold.
[0092] Step S1025: If the number of laser line scan points whose first distance is smaller than the first preset threshold reaches a preset ratio, the fitting straight line is determined as a seed straight line.
[0093] In one example, the preset ratio is 85%. Based on the example of step S1021, if the distances from 85% of the 25 laser line scan points to the fitting line are less than the first preset threshold, the fitting line can be determined as the seed line.
[0094] Based on the above embodiment, if the number of laser line scan points whose first distance is less than the first preset threshold value does not reach a preset ratio, the method further includes:
[0095] Delay one reference point, continue to select the first preset number of laser line scanning points, and regenerate the fitting straight line;
[0096] Re-determine whether the number of laser line scan points whose distance to the new fitting straight line is less than the first preset threshold satisfies a preset ratio;
[0097] If it is reached, the new fitting straight line is determined as the seed straight line;
[0098] If not reached, continue to postpone one reference point and reselect the first preset number of laser line scanning points until a seed straight line is generated.
[0099] Based on the above example, for example, if the proportion of the 25 points whose distance to the fitting straight line is less than the first preset threshold value does not reach 85%, then starting from the next point of the starting laser line scan point, continue to select 25 points to continue to generate the fitting straight line. If the conditions are still met, continue to start from the next point of the starting laser line scan point, continue to select 25 points, calculate the distance, and judge the distance until a seed straight line that meets the first preset threshold value is found.
[0100] Based on the above embodiment, if no seed line is generated after all laser line scanning points are selected, the method further includes:
[0101] Increase the first preset threshold or reduce the first preset number of selected laser line scan points.
[0102] In one example, the first preset threshold or the first preset number may be dynamically adjusted each time according to the effect of the last adjustment.
[0103] If the seed line cannot be found even after the last batch of point cloud data, it means that the first preset threshold for setting the point to line is too small or the number of points selected in a batch is too large. It is necessary to reset the first preset threshold or the number of batch points and execute steps S1021-S1025 again until the seed line is generated.
[0104] Based on the above embodiment, the remaining laser line scan points after the seed line is generated are extended according to a preset extension algorithm to obtain a target line, which includes the following steps:
[0105] Step S1031: Select target points in order of a preset number of intervals from the remaining laser line scan points after the seed line is generated.
[0106] In one example, a laser line scan point is selected at intervals of 3-4 points. When judging whether a point belongs to a seed line, large interval sampling points are used instead of all point judgments, which reduces the amount of calculation, speeds up the calculation time, and further improves the speed of weld tracking point recognition.
[0107] Step S1032: Calculate the distance from the target point to the seed line, which is called the second distance.
[0108] Step S1033: Determine whether the second distance is less than a second preset threshold.
[0109] In this step, because the required accuracy for generating the seed straight line is higher than the required accuracy for extending the seed straight line, the accuracy requirement of the second preset threshold is smaller than that of the first preset threshold.
[0110] Step S1034: If it is less than the second preset threshold, the seed line is extended with the target point as the extension point.
[0111] In this step, if the distance is less than the second preset threshold, then the target point and the interval point both belong to the seed line. Then continue to select a point every 3-4 points, and continue to determine whether it belongs to the seed line, until the distance of the target point is greater than the second preset threshold.
[0112] Step S1035: If it is greater than the second preset threshold, determine whether the distances from the second preset number of consecutive laser line scan points before and after the target point to the seed straight line are all greater than the second preset threshold; wherein the second preset number of consecutive laser line scan points before and after the target point at least includes all laser line scan points in the interval in front of the target point.
[0113] In an example, for example, the second preset number is 7, that is, 7 consecutive points before and after the target point, including 3-4 points in the interval before the target point and 3-4 points behind the target point. If the second distances of these 7 points are all greater than the second preset threshold, it means that these points no longer belong to the seed line and a new seed line needs to be regenerated.
[0114] Step S1036: If the second preset number of consecutive laser line scan points are not all greater than the second preset threshold, the seed line is extended with the target point as the extension point.
[0115] Based on the above example, if among the 7 points, the second distance of one point is less than the second preset threshold, for example, the second distances of 2 points in the interval are less than the second preset threshold, and the second distances of 2 points are greater than the second preset threshold, then the two points greater than the second preset threshold and the target point are regarded as noise points of the seed line, and are also determined to belong to the seed line.
[0116] Step S1037: If the second preset number of consecutive laser line scan points are greater than the second preset threshold, the seed line is extended with the previous target point as the end point of the seed line to obtain the target line.
[0117] Based on the above example, if the second distances of the seven points are all greater than the second preset threshold, the seed line is extended with the last target point as the end point of the seed line, and the first point of the seven points is used as the starting laser line scan point to continue generating a new seed line. Figure 2 As shown, Figure 2 The abnormal point is a point that exceeds the second preset threshold.
[0118] Based on the above embodiment, identifying the breakpoints between the target straight lines according to the preset breakpoint identification algorithm includes:
[0119] Get the depth value of the laser line scan point between every two adjacent target lines.
[0120] The number of laser line scan points between adjacent target lines that exceed a preset depth value is determined based on the depth value.
[0121] If the number of laser line scan points exceeding the preset depth value exceeds the preset number, the endpoints of adjacent sides of adjacent target straight lines are determined as breakpoints.
[0122] A point exceeding the preset depth value indicates that the point is located relatively low in the physical space of the workpiece to be welded, lower than the surface of the workpiece, indicating that there is a weld there, and the target straight line must be disconnected there.
[0123] If the number of laser line scan points exceeding the preset depth value is less than the preset number, it is determined whether the angle between adjacent target straight lines is greater than the preset angle.
[0124] If it is greater than the preset angle, the intersection of the adjacent target straight lines is determined as the breakpoint.
[0125] In one example, if there are three consecutive points exceeding the preset depth value between two adjacent target lines, then the endpoints of the adjacent sides of the two target lines are breakpoints. If there are no three points of excessive depth, then it is determined whether the angle between the two target lines is greater than 5 degrees. If it is greater than 5 degrees, the two lines are extended to obtain an intersection, and the intersection is determined as a breakpoint.
[0126] In another embodiment, if the included angle between adjacent target straight lines is smaller than a preset included angle, the two target straight lines are merged into one target straight line, so as to correct the target straight line.
[0127] Based on the above embodiment, determining the weld tracking point based on the breakpoint and the weld shape of the workpiece to be welded includes:
[0128] Based on the weld shape of the workpiece to be welded, a target breakpoint is determined among all the identified breakpoints.
[0129] Connect the target breakpoints to obtain the weld straight line.
[0130] Select a preset number of points on the weld line and determine them as weld tracking points.
[0131] In the embodiment of the present application, points of one-half or two-thirds of the weld line can be selected as weld tracking points. The corresponding proportion can be selected according to actual conditions.
[0132] In one example, if Figure 3 As shown, it includes target lines 1-4, the intersection between target line 1 and target line 2 is breakpoint 1, the endpoints of target line 2 and target line 3 are breakpoint 2 and breakpoint 3 respectively, the intersection between target line 3 and target line 4 is breakpoint 4, and the weld shape is a straight line. Then, breakpoint 1 and breakpoint 4 are connected to obtain a weld straight line, and two-thirds of the points on the weld straight line are selected as weld tracking points.
[0133] Based on the same inventive concept, a welding seam tracking point identification device is provided, such as Figure 4 As shown, the device comprises:
[0134] The acquisition unit 401 is used to acquire an ordered set of point cloud data of each laser line scan point on the weld of the workpiece to be welded.
[0135] The generating unit 402 is used to sequentially select a first preset number of laser line scan points to generate a seed line with the starting laser line scan point as a reference point. The first preset number is less than the total number of laser line scan points.
[0136] The extension unit 403 is used to extend the seed line according to a preset extension algorithm by using the remaining laser line scanning points after the seed line is generated to obtain a target line.
[0137] The generation extension unit 404 is used to generate and extend a new seed straight line using the same method for the remaining laser line scan points after the target straight line is obtained, to obtain a new target straight line, until all point cloud data are used to generate the target straight line.
[0138] The identification unit 405 is used to identify the breakpoints between the target straight lines according to a preset breakpoint identification algorithm.
[0139] The determination unit 406 is used to determine the weld tracking point based on the breakpoint and the weld shape of the workpiece to be welded.
[0140] Optionally, the generating unit is specifically used for:
[0141] Taking the starting laser line scan point as a reference point, sequentially selecting a first preset number of laser line scan points;
[0142] Based on a first preset number of laser line scan points, a fitting straight line is generated according to a preset straight line generation algorithm;
[0143] Determine the distance from each laser line scan point in the selected laser line scan points to the fitting straight line, which is called the first distance;
[0144] comparing the first distance with a first preset threshold;
[0145] If the number of laser line scan points whose first distance is less than the first preset threshold reaches a preset ratio, the fitted straight line is determined as a seed straight line.
[0146] If the number of laser line scan points whose first distance is less than the first preset threshold value does not reach the preset ratio, one reference point is postponed, and the first preset number of laser line scan points are continuously selected to regenerate the fitting straight line;
[0147] Re-determine whether the number of laser line scan points whose distance to the new fitting straight line is less than the first preset threshold satisfies a preset ratio;
[0148] If it is reached, the new fitting straight line is determined as the seed straight line;
[0149] If not reached, continue to postpone one reference point and reselect the first preset number of laser line scanning points until a seed straight line is generated.
[0150] If no seed line is generated after all the laser line scan points are selected, the first preset threshold is increased or the first preset number of selected laser line scan points is reduced.
[0151] Optionally, the extension unit is specifically used for:
[0152] Selecting target points in the remaining laser line scan points after the seed line is generated according to the preset interval number sequence;
[0153] Calculate the distance from the target point to the seed line, called the second distance;
[0154] Determining whether the second distance is less than a second preset threshold;
[0155] If it is less than a second preset threshold, the seed line is extended with the target point as the extension point;
[0156] If it is greater than the second preset threshold, determine whether the distances from the second preset number of laser line scan points before and after the target point to the seed straight line are all greater than the second preset threshold; wherein the second preset number of laser line scan points before and after the target point at least includes all laser line scan points in the interval in front of the target point;
[0157] If the second preset number of consecutive laser line scan points are not all greater than the second preset threshold, the seed line is extended with the target point as the extension point;
[0158] If a second preset number of consecutive laser line scan points are greater than a second preset threshold, the seed line is extended with the previous target point as the end point of the seed line to obtain the target line.
[0159] Optionally, the identification unit is specifically used for:
[0160] Get the depth value of the laser line scan point between every two adjacent target straight lines;
[0161] Determine the number of laser line scan points between adjacent target lines that exceed a preset depth value based on the depth value;
[0162] If the number of laser line scan points exceeding the preset depth value exceeds the preset number, the endpoints of the adjacent sides of the adjacent target straight lines are determined as breakpoints;
[0163] If the number of laser line scan points exceeding the preset depth value is less than the preset number, it is determined whether the angle between adjacent target straight lines is greater than the preset angle;
[0164] If it is greater than the preset angle, the intersection of the adjacent target straight lines is determined as the breakpoint.
[0165] Optionally, the determining unit is specifically configured to:
[0166] Based on the weld shape of the workpiece to be welded, determine the target breakpoint among all the identified breakpoints;
[0167] Connect the target breakpoints to obtain a weld straight line;
[0168] Select a preset number of points on the weld line and determine them as weld tracking points.
[0169] Based on the same technical concept, an embodiment of the present invention further provides an electronic device, such as Figure 5 As shown, it includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504;
[0170] Memory 503, used for storing computer programs;
[0171] The processor 501 is used to implement the steps of the weld tracking point identification method when executing the program stored in the memory 503.
[0172] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0173] The communication interface is used for communication between the above electronic device and other devices.
[0174] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0175] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0176] The computer program product for performing weld tracking point identification provided in the embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0177] The weld tracking point identification device provided in the embodiment of the present invention can be specific hardware on the device or software or firmware installed on the device. The implementation principle and technical effects of the device provided in the embodiment of the present invention are the same as those of the aforementioned method embodiment. For the sake of brief description, the parts not mentioned in the device embodiment can refer to the corresponding contents in the aforementioned method embodiment. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.
[0178] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0179] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0180] In addition, each functional unit in the embodiment provided by the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0181] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0182] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0183] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions described in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or perform equivalent replacements on some of the technical features thereof; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. They should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A weld tracking point identification method, characterized in that: The method comprises: Obtain an ordered set of point cloud data of each laser line scan point on the weld of the workpiece to be welded; Taking the starting laser line scan point as a reference point, sequentially selecting a first preset number of laser line scan points to generate a seed straight line; the first preset number is less than the total number of laser line scan points; Extend the seed straight line according to a preset extension algorithm using the remaining laser line scan points after the seed straight line is generated to obtain a target straight line; The remaining laser line scan points after obtaining the target straight line are used to generate and extend new seed straight lines in the same way to obtain a new target straight line until all point cloud data are used to generate the target straight line; Identify breakpoints between the target straight lines according to a preset breakpoint identification algorithm; The weld tracking point is determined based on the breakpoint and the weld shape of the workpiece to be welded.
2. The method according to claim 1, characterized in that The method of taking the starting laser line scan point as the reference point and sequentially selecting a first preset number of laser line scan points to generate a seed straight line comprises: Taking the starting laser line scan point as a reference point, sequentially selecting a first preset number of laser line scan points; Based on the first preset number of laser line scanning points, generating a fitting straight line according to a preset straight line generation algorithm; Determine the distance from each of the selected laser line scan points to the fitting straight line, which is called the first distance; comparing the first distance with a first preset threshold; If the number of laser line scan points whose first distance is smaller than the first preset threshold reaches a preset ratio, the fitting straight line is determined as a seed straight line.
3. The method according to claim 2, characterized in that If the number of laser line scan points whose first distance is less than the first preset threshold value does not reach a preset ratio, the method further includes: Delay one reference point, continue to select the first preset number of laser line scanning points, and regenerate the fitting straight line; Re-determine whether the number of laser line scan points whose distance to the new fitting straight line is less than the first preset threshold satisfies a preset ratio; If it is reached, the new fitting straight line is determined as the seed straight line; If not reached, continue to postpone one reference point and reselect the first preset number of laser line scanning points until a seed straight line is generated.
4. The method according to claim 3, characterized in that If no seed straight line is generated after all laser line scanning points are selected, the method further includes: The first preset threshold is increased or the first preset number of selected laser line scan points is reduced.
5. The method according to claim 1, characterized in that The step of extending the seed straight line according to a preset extension algorithm using the remaining laser line scan points after the seed straight line is generated to obtain the target straight line comprises: Selecting target points in the order of a preset number of intervals from the remaining laser line scan points after generating the seed straight line; Calculate the distance from the target point to the seed line, which is called the second distance; Determining whether the second distance is less than a second preset threshold; If it is less than the second preset threshold, extending the seed straight line with the target point as the extension point; If it is greater than the second preset threshold, determine whether the distances from the second preset number of laser line scan points before and after the target point to the seed straight line are all greater than the second preset threshold; wherein the second preset number of laser line scan points before and after the target point at least includes all laser line scan points in the interval in front of the target point; If the second preset number of consecutive laser line scan points are not all greater than the second preset threshold, extending the seed line with the target point as the extension point; If the second preset number of consecutive laser line scan points are all greater than the second preset threshold, the seed line is extended with the previous target point as the end point of the seed line to obtain the target line.
6. The method according to claim 1, characterized in that The step of identifying the breakpoints between the target straight lines according to a preset breakpoint identification algorithm comprises: Get the depth value of the laser line scan point between every two adjacent target straight lines; Determining the number of laser line scan points between adjacent target straight lines that exceed a preset depth value based on the depth value; If the number of laser line scan points exceeding the preset depth value exceeds the preset number, the endpoints of the adjacent sides of the adjacent target straight lines are determined as breakpoints; If the number of laser line scan points exceeding the preset depth value is less than the preset number, determining whether the angle between the adjacent target straight lines is greater than the preset angle; If it is greater than a preset angle, the intersection point of the adjacent target straight lines is determined as a breakpoint.
7. The method according to claim 1, characterized in that The step of determining the weld tracking point based on the breakpoint and the weld shape of the workpiece to be welded comprises: Based on the weld morphology of the workpiece to be welded, determining a target breakpoint among all identified breakpoints; Connect the target breakpoints to obtain a weld straight line; A preset number of points are selected on the weld straight line and determined as weld tracking points.
8. A welding seam tracking point identification device, characterized in that: The device comprises: An acquisition unit, used to acquire an ordered set of point cloud data of each laser line scan point on the weld of the workpiece to be welded; A generating unit, configured to sequentially select a first preset number of line scan points to generate a seed straight line with a starting laser line scan point as a reference point; the first preset number is less than the total number of laser line scan points; An extension unit, used for extending the seed straight line according to a preset extension algorithm by using the remaining laser line scanning points after the seed straight line is generated, to obtain a target straight line; A generation extension unit is used to generate and extend a new seed straight line using the same method for the remaining laser line scan points after obtaining the target straight line, to obtain a new target straight line, until all point cloud data are used to generate the target straight line; An identification unit, used for identifying breakpoints between the target straight lines according to a preset breakpoint identification algorithm; The determination unit is used to determine the weld tracking point based on the breakpoint and the weld shape of the workpiece to be welded.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 7 when executing a program stored in a memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Cylindrical surface longitudinal weld seam feature area extraction and weld seam tracking method and system based on structured light
CN110064819A
Welding method, device and system based on pre-scanning and electronic equipment
CN110814584A
T-shaped workpiece welding seam identification method and device, electronic equipment and storage medium
CN114372981A
Welding control method and system, welding equipment and storage medium
CN114769988A
Weld joint identification method and device, welding method and device and electronic equipment
CN117830297A
