Linear weld identification method, device and electronic equipment

By using coordinate system conversion, local point cloud extraction and plane detection methods in linear weld recognition, the problems of poor noise immunity and low efficiency in the existing technology are solved, and more accurate and efficient linear weld recognition is achieved.

CN118212233BActive Publication Date: 2024-09-27FAIR INNOVATION (SUZHOU) ROBOTIC SYSTEM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410621094.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-09-27
Estimated Expiration
2044-05-20

AI Technical Summary

Technical Problem

Existing linear weld recognition methods have problems with poor noise immunity and low weld recognition efficiency in point clouds, making it difficult to effectively identify the required linear welds.

Method used

By obtaining the workpiece point cloud of the target workpiece and the model point cloud of the standard workpiece, the coordinate system conversion relationship is established, the local point cloud is extracted and plane detection is performed, and the target straight line weld is determined based on the detection results, thereby removing interference information and improving recognition accuracy and efficiency.

Benefits of technology

It improves the accuracy and efficiency of linear weld recognition, reduces the amount of point cloud data that needs to be processed, and enhances the ability to identify target welds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118212233B
    Figure CN118212233B
Patent Text Reader

Abstract

This application provides a method, apparatus, and electronic device for recognizing straight welds, relating to the field of welding technology. The method includes: obtaining a workpiece point cloud of a target workpiece and a model point cloud of a standard workpiece corresponding to the target workpiece; obtaining a coordinate system transformation relationship between the model point cloud and the workpiece point cloud; performing transformation processing on the start and end point information of the standard straight weld corresponding to the standard workpiece according to the coordinate system transformation relationship to obtain a first start and end point; extracting a local point cloud from the workpiece point cloud based on the first start and end point, with a plane constituting the target straight weld included in the local point cloud as the target; performing plane detection on the local point cloud to obtain a plane detection result; and obtaining the target straight weld based on the plane detection result. Thus, by deleting some potentially interfering information in the point cloud, the accuracy and efficiency of straight weld recognition can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of welding technology, and in particular to a linear weld recognition method, device and electronic equipment. Background Art

[0002] At present, point cloud-based straight weld recognition is generally based on the following method: use a 3D camera to collect the point cloud of the workpiece, then pre-process the point cloud to filter out noise, and then use a plane fitting algorithm to fit the plane in the point cloud, and find the intersection of the plane as the straight weld. However, the plane fitted in the above method may include an interfering plane, which makes it easy to fail to recognize the required straight weld. It can be seen that the existing straight weld recognition method has shortcomings such as poor noise resistance and low weld recognition efficiency. Summary of the invention

[0003] The embodiments of the present application provide a linear weld recognition method, device, electronic device and readable storage medium, which can improve the accuracy and efficiency of linear weld recognition by deleting some interference information that may exist in the point cloud.

[0004] The embodiments of the present application can be implemented as follows:

[0005] In a first aspect, an embodiment of the present application provides a linear weld recognition method, the method comprising:

[0006] Obtaining a workpiece point cloud of a target workpiece and a model point cloud of a standard workpiece corresponding to the target workpiece;

[0007] Obtaining a coordinate system transformation relationship between the model point cloud and the workpiece point cloud;

[0008] According to the coordinate system conversion relationship, the start and end point information of the standard straight line weld corresponding to the standard workpiece is converted to obtain a first start and end point;

[0009] According to the first starting and ending points, taking the plane including the target straight weld in the local point cloud as the target, extracting the local point cloud from the workpiece point cloud;

[0010] Performing plane detection on the local point cloud to obtain a plane detection result;

[0011] The target straight weld is obtained according to the plane detection result.

[0012] In a second aspect, an embodiment of the present application provides a linear weld recognition device, the device comprising:

[0013] A point cloud acquisition module, used to obtain a workpiece point cloud of a target workpiece and a model point cloud of a standard workpiece corresponding to the target workpiece;

[0014] A conversion relationship obtaining module, used to obtain a coordinate system conversion relationship between the model point cloud and the workpiece point cloud;

[0015] A conversion module, used for converting the start and end point information of the standard straight weld corresponding to the standard workpiece according to the coordinate system conversion relationship to obtain a first start and end point;

[0016] An extraction module, configured to extract the local point cloud from the workpiece point cloud according to the first starting and ending points, taking the plane in the local point cloud that includes the target straight weld as the target;

[0017] A plane detection module, used to perform plane detection on the local point cloud to obtain a plane detection result;

[0018] The recognition module is used to obtain the target straight weld according to the plane detection result.

[0019] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions to implement the linear weld identification method described in the aforementioned embodiment.

[0020] In a fourth aspect, an embodiment of the present application provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the linear weld recognition method as described in the aforementioned embodiment is implemented.

[0021] The linear weld recognition method, device, electronic device and readable storage medium provided by the embodiment of the present application first obtain the workpiece point cloud of the target workpiece to be welded and the model point cloud of the standard workpiece corresponding to the target workpiece, then obtain the coordinate system conversion relationship between the coordinate system of the workpiece point cloud and the coordinate system of the model point cloud, and then based on the coordinate system conversion relationship, convert the start and end point information of the standard linear weld corresponding to the standard workpiece to obtain the first start and end point; then, according to the first start and end point, take the plane that includes the target linear weld in the local point cloud as the target, extract the local point cloud from the workpiece point cloud, and perform plane detection on the local point cloud to obtain the plane detection result; finally, based on the obtained plane detection result, determine the target linear weld in the workpiece point cloud. In this way, by intercepting the workpiece point cloud based on the first start and end point, and then performing linear weld recognition, some possible interference information can be deleted, the accuracy of weld recognition can be improved, and the amount of point cloud data that needs to be processed can be reduced, thereby improving the efficiency of weld recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application 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 paying creative work.

[0023] Figure 1 A block diagram of an electronic device provided in an embodiment of the present application;

[0024] Figure 2 A schematic diagram of a flow chart of a linear weld identification method provided in an embodiment of the present application;

[0025] Figure 3 for Figure 2 A schematic flow chart of the sub-steps included in step S140;

[0026] Figure 4 for Figure 2 A schematic flow chart of the sub-steps included in step S150;

[0027] Figure 5 for Figure 4 A schematic flow chart of the sub-steps included in sub-step S153;

[0028] Figure 6 for Figure 2 A schematic flow chart of the sub-steps included in step S160;

[0029] Figure 7 for Figure 6 A schematic flow chart of the sub-steps included in sub-step S163;

[0030] Figure 8 A schematic diagram of a process for obtaining a candidate plane provided in an embodiment of the present application;

[0031] Fig. 9 A block diagram of a linear weld identification device provided in an embodiment of the present application.

[0032] Icons: 100 - electronic device; 110 - memory; 120 - processor; 130 - communication unit; 200 - straight weld recognition device; 210 - point cloud acquisition module; 220 - conversion relationship acquisition module; 230 - conversion module; 240 - extraction module; 250 - plane detection module; 260 - recognition module. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0034] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0035] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0036] At present, a linear weld recognition method is as follows: first, obtain the point cloud data of the workpiece to be welded; then, perform point cloud surface segmentation processing on the point cloud data to obtain multiple point cloud patches, one point cloud patch corresponds to one surface of the workpiece to be welded; then, extract at least one point cloud patch pair composed of intersecting point cloud patches from the multiple point cloud patches, and one point cloud patch pair includes two intersecting target point cloud patches. Finally, calculate the intersection line between the intersecting target point cloud patches in at least one point cloud patch pair, and generate the weld of the workpiece to be welded based on the intersection line.

[0037] In the above method, after the point cloud surface segmentation processing, a large number of planes existing in the point cloud will be detected. Since there are usually some noise and interference in the collected point cloud, the plane segmentation step will not only detect the real plane corresponding to the target welding workpiece, but also detect some noise interference planes formed by noise. After a large number of planes are detected from the point cloud, it is impossible to determine which planes are real planes and which are noise interference planes. Even if the real planes can be determined, it is impossible to determine which planes in the real planes are required planes, which will have a great impact on the subsequent weld recognition and even cause the weld recognition to fail. Therefore, when there is noise and interference in the point cloud, the existing weld recognition method is easy to fail to recognize the required weld. It can be seen that the existing weld recognition algorithm has the shortcomings of poor noise resistance and low weld recognition efficiency.

[0038] In view of the above situation, the embodiments of the present application provide a linear weld recognition method, device, electronic device and readable storage medium, which improve the accuracy and efficiency of linear weld recognition by deleting some interference information that may exist in the point cloud of the workpiece to be welded.

[0039] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0040] Please refer to Figure 1 , Figure 1 A block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 may be, but is not limited to, a computer, a server, a welding robot, etc. The electronic device 100 may include a memory 110, a processor 120, and a communication unit 130. The memory 110, the processor 120, and the communication unit 130 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components may be electrically connected to each other via one or more communication buses or signal lines.

[0041] The memory 110 is used to store programs or data. The memory 110 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc.

[0042] The processor 120 is used to read / write data or programs stored in the memory 110 and execute corresponding functions. For example, the memory 110 stores a linear weld recognition device 200, which includes at least one software function module that can be stored in the memory 110 in the form of software or firmware. The processor 120 executes various functional applications and data processing by running software programs and modules stored in the memory 110, such as the linear weld recognition device 200 in the embodiment of the present application, that is, realizing the linear weld recognition method in the embodiment of the present application.

[0043] The communication unit 130 is used to establish a communication connection between the electronic device 100 and other communication terminals through a network, and to send and receive data through the network.

[0044] It should be understood that Figure 1 The structure shown is only a schematic diagram of the structure of the electronic device 100. The electronic device 100 may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0045] Please refer to Figure 2 , Figure 2 The following is a flow chart of a linear weld recognition method provided in an embodiment of the present application. The method can be applied to the electronic device 100. The specific flow of the linear weld recognition method is described in detail below. In this embodiment, the method can include steps S110 to S160.

[0046] Step S110 , obtaining a workpiece point cloud of a target workpiece and a model point cloud of a standard workpiece corresponding to the target workpiece.

[0047] In this embodiment, the target workpiece is a workpiece to be welded, which can be determined in combination with actual needs. A 3D camera can be used to collect point clouds of the target workpiece to obtain an initial workpiece point cloud of the target workpiece. Optionally, the initial workpiece point cloud can be directly used as the workpiece point cloud of the target workpiece, or the initial workpiece point cloud can be converted to a coordinate system to obtain a point cloud in a specific coordinate system, and the point cloud obtained after the coordinate system conversion is used as the workpiece point cloud of the target workpiece. Among them, the specific coordinate system can be set in combination with actual needs, and the coordinate system where the workpiece point cloud is located is the target coordinate system.

[0048] For example, the welding robot includes a 3D camera, and the specific coordinate system is the base coordinate system of the welding robot, that is, the target coordinate system is the base coordinate system of the welding robot. When the initial workpiece point cloud is obtained, the hand-eye calibration matrix can be used to transform the initial workpiece point cloud from the camera coordinate system to the base coordinate system of the welding robot, and the transformed initial workpiece point cloud is used as the workpiece point cloud of the target workpiece.

[0049] The standard workpiece is a workpiece with standard size, scale angle, etc. The target workpiece is a workpiece manufactured based on information such as standard size, scale angle, etc. The model point cloud of the standard workpiece can be obtained in any way. For example, a CAD model of the standard workpiece is obtained, and the model point cloud is generated based on the CAD model. The CAD model can be in a standard position, and the generated model point cloud is also in a standard position. The standard position makes the main plane of the workpiece parallel to the plane of the coordinate system, or makes the main plane of the workpiece parallel to the front standard plane, the top standard plane and the right standard plane.

[0050] Step S120, obtaining a coordinate system conversion relationship between the model point cloud and the workpiece point cloud.

[0051] When the model point cloud and the workpiece point cloud are obtained, the coordinate system conversion relationship between the coordinate system of the model point cloud and the target coordinate system of the workpiece point cloud can be obtained in any manner. After the model point cloud and one of the workpiece point clouds are converted based on the coordinate system conversion relationship, the converted point cloud can be roughly overlapped with the other point cloud of the model point cloud and the workpiece point cloud.

[0052] Optionally, the model point cloud and the workpiece point cloud can be registered by any registration method to obtain the coordinate system transformation relationship. For example, through the registration algorithm, the rotation matrix R and translation vector T of the model point cloud to the workpiece point cloud are obtained, and after the model point cloud is transformed using R and T, the transformed model point cloud and the workpiece point cloud can roughly overlap. Wherein, the coordinate system transformation relationship includes the rotation matrix R and the translation vector T.

[0053] Step S130, converting the start and end point information of the standard straight weld corresponding to the standard workpiece according to the coordinate system conversion relationship to obtain a first start and end point.

[0054] In this embodiment, the start and end point information of the standard straight weld corresponding to the standard workpiece can be obtained in any manner. The start and end point information of the standard straight weld is used to indicate the positions of the start and end points of the standard straight weld on the standard workpiece. When the coordinate system conversion relationship between the model point cloud and the model point cloud of the standard workpiece is obtained, the start and end point information of the standard straight weld can be converted according to the coordinate system conversion relationship, and the two points indicated by the converted start and end point information of the standard straight weld are used as the first start and end point. It can be understood that the first start and end point are two position points in the coordinate system used by the workpiece point cloud.

[0055] Step S140: extracting the local point cloud from the workpiece point cloud according to the first starting and ending points, taking the plane in the local point cloud that includes the target straight weld as the target.

[0056] There may be a certain deviation between the target workpiece and the standard workpiece, for example, the length of a certain part differs from the corresponding standard length by 3mm. It can be seen that the first starting and ending point is located near the target linear weld to be identified, but due to the existence of processing errors, the linear weld with the starting and ending points may not completely coincide with the target linear weld to be identified. Therefore, in order to improve the recognition accuracy of the target linear weld finally obtained, the target linear weld can be identified in combination with the first starting and ending points and the workpiece point cloud. Among them, the target linear weld is the linear weld on the target workpiece corresponding to the starting and ending point information of the standard linear weld.

[0057] Since the first starting and ending point is already located near the target linear weld to be identified, the local point cloud can be extracted from the workpiece point cloud based on the first starting and ending point, with the plane that constitutes the target linear weld included in the local point cloud as the target. Generally, the target linear weld is formed by two planes, so the local point cloud can be obtained from the workpiece point cloud with the two planes that constitute the target linear weld included in the local point cloud as the target. The specific extraction method of the local point cloud can be determined in combination with actual needs and is not specifically limited here.

[0058] Step S150, performing plane detection on the local point cloud to obtain a plane detection result.

[0059] Step S160, obtaining the target straight weld according to the plane detection result.

[0060] After obtaining the local point cloud, the local point cloud can be subjected to plane detection to obtain plane detection results including multiple planes. The specific plane detection method can be determined in combination with actual needs and is not specifically limited here. Afterwards, the target linear weld can be analyzed based on the plane detection results.

[0061] In this embodiment, the workpiece point cloud of the target workpiece is intercepted according to the first starting and ending points to obtain a local point cloud, and then the target straight weld is identified based on the local point cloud. In this way, some possible interference information can be deleted, and the amount of point cloud data to be processed can be reduced, thereby improving the accuracy and efficiency of straight weld identification.

[0062] It is worth noting that a plurality of standard straight weld start and end point information can be obtained, and each standard straight weld start and end point information corresponds to a standard straight weld in the standard workpiece. Based on a standard straight weld start and end point information, a target straight weld corresponding to the standard straight weld start and end point information can be obtained through steps S130 to S160. When a plurality of standard straight weld start and end point information is obtained, the target straight weld corresponding to each standard straight weld start and end point information can be obtained by repeatedly executing steps S130 to S160.

[0063] For a welding task, which welds need to be welded, and the starting and ending points of each weld are generally specified by a person. Optionally, in this embodiment, the standard straight weld starting and ending point information can be obtained based on interactive information input by a user. Optionally, the standard straight weld starting and ending point information can be generated based on a received user selection operation on a model point cloud of a workpiece model of a standard workpiece, or can be generated based on a received user selection operation on a workpiece model of the standard workpiece.

[0064] It is a relatively simple and easy operation for a person to select the starting point and end point of the weld to be welded on the workpiece model. Therefore, as a possible implementation method, the positions of the starting point and the end point can be determined based on the user's selection operation on the workpiece model of the standard workpiece, so as to obtain the start and end point information of the standard straight weld. In this case, the start and end point information of the standard straight weld can include the coordinates of the start and end point selected by the user on the workpiece model of the standard workpiece in the coordinate system of the model point cloud. Among them, the starting point indicated by the start and end point information of the standard straight weld can be expressed as , the indicated endpoint is expressed as .

[0065] As a possible implementation method, the rotation matrix R and the translation vector T of the model point cloud to the workpiece point cloud are obtained by registration. , Located in the standard coordinate system where the model point cloud is located, the transformation process can be completed using the rotation matrix R and the translation vector T based on the following transformation formula: , ,in, Indicates the first starting point among the first starting and ending points obtained after conversion. Indicates the first endpoint among the first starting and ending points obtained after conversion.

[0066] Alternatively, as a possible implementation, Figure 3 The local point cloud is obtained in the manner shown. Figure 3 , Figure 3 for Figure 2 Schematic diagram of the flow of sub-steps included in step S140. In this embodiment, step S140 may include sub-steps S141 and S142.

[0067] Sub-step S141, determining a cylinder according to the first starting and ending points.

[0068] Sub-step S142, taking the point cloud points in the workpiece point cloud located in the cylinder as the point cloud points in the local point cloud, so as to obtain the local point cloud.

[0069] In this embodiment, the two points of the first starting and ending points can be , As the axis of a cylinder, a preset radius r is used as the bottom radius of the cylinder, thereby determining the cylinder located in the target coordinate system. The preset radius r can be determined in combination with actual needs, for example, it can be set in combination with the actual size of the target workpiece. If the target workpiece is large, the preset radius r can be set slightly larger. After obtaining the cylinder, the cylinder can be used to intercept the local point cloud to obtain the local point cloud.

[0070] Since the target straight weld to be identified is located at the first starting point and the first endpoint However, we do not know the target straight weld relative to the first starting point. and the first endpoint As shown in the above method, using a cylinder to intercept the point cloud can ensure that the plane constituting the target straight weld is located in the local point cloud, thereby improving the accuracy of the target straight weld identified subsequently.

[0071] Optionally, in this embodiment, when a local point cloud is extracted, plane detection can be performed on the local point cloud by using a random hough transform algorithm, a random sample consensus (RANSAC) algorithm, a region growing algorithm, etc. to obtain the plane detection result.

[0072] As a possible way, Figure 4The plane detection result is obtained in a way that a small plane can be detected with a high degree of certainty. Figure 4 , Figure 4 for Figure 2 Schematic diagram of the flow of sub-steps included in step S150. In this embodiment, step S150 may include sub-steps S151 to S153.

[0073] Sub-step S151, calculating and obtaining the normal of each point cloud point in the local point cloud.

[0074] Sub-step S152, dividing the local point cloud into sets according to the normal direction of each point cloud point and different normal direction ranges, to obtain at least one point cloud set.

[0075] In this embodiment, the normal of each point cloud point in the local point cloud can be calculated. Then, the local point cloud points can be divided into point cloud sets based on the normal of each point cloud point and different normal ranges that have been divided in advance, so as to obtain at least one point cloud set. The normal of the point cloud points in one point cloud set is within one normal range.

[0076] Among them, the point cloud set can be obtained in the following way.

[0077] First, the normal of each point cloud point in the local point cloud can be calculated. Then, the point cloud points in the local point cloud are traversed to obtain the point cloud points traversed to Normal , and according to the point cloud point Normal Calculated and , Indicates normal direction The angle with the z-axis, Indicates normal direction The angle between the projection on the xy plane and the x-axis. Calculated and : , , Indicates normal direction The x-component of Indicates normal direction The z component of .

[0078] Then, according to the quantization step size, and The total angle range corresponding to each is divided into multiple normal ranges, each normal range corresponds to a The angle range and a The quantization step size can be set according to actual needs, such as 1 degree. You can also set the target normal corresponding to each normal range. The target normal corresponding to one normal range is within the corresponding normal range.

[0079] According to the corresponding point cloud points and , and the corresponding normal ranges Angle range and Angle range, the point cloud points in the local point cloud are divided into different point cloud sets. It can be understood that if a point cloud point corresponds to and Located in a normal range corresponding to Angle range and If the angle range is within the range, the point cloud point belongs to the point cloud set corresponding to the normal range.

[0080] Sub-step S153: performing plane detection on each point cloud set to be processed to determine a plane.

[0081] In this embodiment, when at least one point cloud set is obtained, a point cloud set to be processed can be determined from the at least one point cloud set obtained, and then plane detection can be performed on each point cloud set to be processed to detect the plane corresponding to each point cloud set to be processed.

[0082] The point cloud set to be processed is a point cloud set determined from the at least one point cloud set for obtaining a plane through processing, and the specific determination method can be determined in combination with actual needs. For example, each point cloud set can be used as a point cloud set to be processed, or a point cloud set in which the number of point cloud points in the multiple point cloud sets is greater than or equal to the first number can be used as the point cloud set to be processed.

[0083] In this application, the normals of the point cloud points in each point cloud set to be processed are approximately the same, so the speed of detecting a plane based on the point cloud set to be processed is faster than the speed of detecting a plane directly based on a local point cloud. It can be seen that the speed of obtaining plane detection results can be improved by the above method.

[0084] As a possible implementation, Figure 5 The method described above determines a plane from a set of point clouds to be processed. Figure 5 , Figure 5 for Figure 4 Schematic diagram of the flow of sub-steps included in sub-step S153. In this embodiment, sub-step S153 may include sub-steps S1531 to S1533.

[0085] Sub-step S1531, projects each point cloud point in the point cloud set to be processed onto the target normal corresponding to the normal range corresponding to the point cloud set to be processed, obtains the projection point, and calculates the third distance between each projection point and the origin of the coordinate system where the local point cloud is located.

[0086] Sub-step S1532, dividing the point cloud set to be processed into subsets according to the third distance and different distance ranges corresponding to each point cloud point in the point cloud set to be processed, to obtain at least one point cloud subset.

[0087] In this embodiment, for a point cloud point in the to-be-processed point cloud set, the point cloud point can be projected onto the target normal direction corresponding to the normal direction range corresponding to the to-be-processed point cloud set to obtain a projection point. Then, the distance between the projection point and the origin of the target coordinate system where the local point cloud is located is calculated and used as the third distance.

[0088] The point cloud to be processed may be divided into at least one point cloud subset according to different predetermined distance ranges and the third distances corresponding to the point cloud points. The third distances corresponding to the point cloud points in a point cloud subset are within a distance range. The point cloud set to be processed may correspond to one plane or may correspond to multiple mutually parallel planes. By the above subset division method, a point cloud subset corresponding to only one plane may be obtained.

[0089] The different distance ranges may be obtained in the following manner.

[0090] First, the centroid of the local point cloud is calculated. Then, the local point cloud is moved to a coordinate system with the centroid as the origin. Next, the minimum and maximum values ​​of the converted local point cloud in the x, y, and z directions are determined, which are , , , , , , and then determine the maximum values ​​in the x, y, and z directions, that is , and the same goes for y and z. Then, determine the length of the semi-diagonal: , then the total distance range is (-r, r), and multiple different distance ranges are obtained based on the total distance range. For example, if the distance range is 1000, 2r / 1000 can be used to obtain the quantization interval length, that is, 1000 different distance ranges are obtained, each distance range can correspond to a target distance value, and the target distance value is the value within the corresponding distance range.

[0091] Sub-step S1533, based on each of the to-be-processed point cloud subsets, determining the plane corresponding to each of the to-be-processed point cloud subsets.

[0092] In the case of obtaining the at least one point cloud subset, a point cloud subset used to obtain a plane can be determined from the at least one point cloud subset as the point cloud subset to be processed. Then, based on each subset to be processed, the plane corresponding to the subset to be processed is determined. The specific method for determining the subset to be processed can be determined in combination with actual needs. For example, each point cloud subset can be used as a point cloud subset to be processed; or, a point cloud subset with a number of point cloud points greater than or equal to a second number can be used as the point cloud subset to be processed, and the second number can be less than or equal to the first number.

[0093] Optionally, a plane can be fitted based on the point cloud points in a subset to be processed; or a plane equation can be determined based on the target normal corresponding to the point cloud set in which the subset to be processed is located and the target distance corresponding to the distance range corresponding to the subset to be processed.

[0094] As a possible implementation method, a plane can be detected from the local point cloud based on a deterministic voting method. Deterministic voting is a plane detection method based on Hough transform. The main processing process of deterministic voting is similar to the above steps S151 to S153. The following describes how to detect a plane from the local point cloud based on a deterministic voting method.

[0095] First, the normal of each point cloud point in the local point cloud is calculated, and then each point cloud point in the local point cloud is traversed, and voting is performed in the normal voting accumulation based on the normal of the point cloud point and the quantization step size of the normal voting accumulator. Among them, the point cloud points within a normal range will be accumulated in the normal voting accumulator. After traversing all the point cloud points in the local point cloud, the voting results for each target normal in the normal voting accumulation can be obtained. Each target normal in the normal voting accumulator corresponds to a normal range, and different target normals correspond to different normal ranges. The target normal corresponding to one normal range is within the corresponding normal range.

[0096] Afterwards, the extreme point M in the normal voting accumulator is detected, that is, the maximum voting value M in the normal voting accumulator is detected. After the extreme point M in the normal voting accumulator, the extreme point M in the normal voting accumulator is deleted from the normal voting accumulator to determine whether the extreme point M is greater than or equal to the first number. Assuming that the target normal corresponding to the extreme point i is n, if the extreme point M is greater than or equal to the first number, it indicates that there is at least one plane with the target normal n corresponding to the extreme point M as the normal, and there may also be multiple parallel planes with the target normal n corresponding to the extreme point M as the normal. Among them, the first number is used to represent the plane normal voting preset value, which can be set according to actual needs, for example, set to 200.

[0097] Assume that the point cloud points corresponding to the extreme point M in the local point cloud form a point cloud set P n , the extreme point M is greater than or equal to the first number. For a plane, the projection values ​​of the points on the plane on the plane normal are the same. Based on the above characteristics, the plane can be determined Parameters (where represents the constant term of the corresponding distance in the plane equation). The specific method is as follows. Traverse the point cloud set P n For each point cloud point in the n direction, project these points respectively, and obtain the corresponding third distance according to the projection point, and then obtain the projection position based on the third distance based on a certain quantization step size, and then Voting is performed at the corresponding position in the voting accumulator. One position in the voting accumulator corresponds to one distance range. Different positions in the voting accumulator correspond to different distance ranges, each distance range corresponds to a target distance value, and a target distance value is a value within the corresponding distance range.

[0098] The third distance corresponding to a point cloud point can be obtained by performing an inner product between a point cloud point and a corresponding target normal.

[0099] Based on the point cloud set P n After voting, check The extreme point N in the voting accumulator, that is, the detection of the The maximum vote value N in the voting accumulator. After voting for the extreme point N in the accumulator, delete The extreme point N in the voting accumulator. Suppose the extreme point N is The position in the voting accumulator is j. When the voting value at j is greater than or equal to the second quantity, it indicates that a plane has been detected, the normal of the plane is n, and the plane equation corresponding to the plane is is the target distance value corresponding to the position range at j. The voting preset value can be set according to actual needs. For example, it can be set to 200. Voting accumulator (at this time The voting accumulator has deleted the previously detected extreme point N) to detect new extreme points to detect new planes until the newly found The extreme value points in the voting accumulator are smaller than the second number. The extreme value points in the voting accumulator are smaller than the second number, indicating that no significant plane can be detected in the normal direction.

[0100] After completing the plane recognition for a point cloud set, the extreme points in the normal voting accumulator are detected again (the extreme point M previously detected has been deleted from the normal voting accumulator at this time), and when the newly detected extreme points are greater than or equal to the first number, the same method as above is used to generate the extreme point M. When the newly detected extreme value points from the normal voting accumulator are less than the first number, it means that all the significant planes in the entire local point cloud have been detected, and the plane detection process can be stopped at this time.

[0101] The above method does not involve a random point selection process, so it is a deterministic voting method.

[0102] The plane detection result includes a plurality of planes. After obtaining the plane detection result, the plane detection result can be screened to screen out two required target planes, and then the target linear weld is determined based on the target planes.

[0103] As a possible implementation, Figure 6 The method shown is to obtain the target straight weld based on the plane detection result. In this embodiment, one of the two points in the first starting and ending points is the first point and the other point is the second point. For example, if the first point is the first starting point in the first starting and ending points, the second point is the first ending point of the first starting and ending points; if the first point is the first ending point in the first starting and ending points, the second point is the first starting point in the first starting and ending points.

[0104] Please refer to Figure 6 , Figure 6 for Figure 2 Schematic diagram of the flow of sub-steps included in step S160. In this embodiment, step S160 may include sub-steps S161 to S163.

[0105] Sub-step S161, calculating and obtaining a first distance between each plane in the plane detection result and the first point.

[0106] Sub-step S162: taking the plane corresponding to the minimum first distance among the obtained multiple first distances as the first candidate plane, and taking the plane with the minimum first distance in the first plane set as the second candidate plane.

[0107] In this embodiment, the planes in the plane detection result may be traversed, and for the currently traversed plane, the distance between the plane and the first point may be calculated, and the calculated distance may be used as the first distance. Then, the first distances corresponding to the planes in the plane detection may be compared to determine the minimum first distance among the first distances corresponding to the planes in the plane detection, and the plane corresponding to the determined minimum first distance may be used as the first candidate plane.

[0108] Afterwards, the plane with the smallest first distance in the first plane set can be used as the second candidate plane. Among them, the planes in the first plane set are planes whose angles with the first candidate plane are greater than the preset angle among the remaining planes in the plane detection results except the first candidate plane. The angle between two planes is equal to the angle between the normals of the two planes, and the angle between the two planes can be calculated based on the normals of the two planes. The preset angle can be determined in combination with the angle between the two planes corresponding to the target straight line weld. For example, if the two planes corresponding to the target straight line weld are perpendicular, the preset angle can be set to 45 degrees or 60 degrees, etc. That is, the larger the angle between the two planes corresponding to the target straight line weld is, the larger the preset angle can be set.

[0109] Optionally, the angle between each plane in the plane detection result, except the first candidate plane, and the first candidate plane can be calculated based on the normal of each plane in the plane detection result. The planes in the plane detection result, except the first candidate plane, can be sorted in the order of the first distance from small to large, and then the first plane in the sorting whose angle is greater than the preset angle is taken as the second candidate plane. It is worth noting that the above-mentioned method for determining the second candidate plane is only an example, and the specific determination method can be determined in combination with actual needs.

[0110] Sub-step S163, obtaining the target straight weld according to the first candidate plane and the second candidate plane.

[0111] Optionally, when the first candidate plane and the second candidate plane are determined, the intersection line of the first candidate plane and the second candidate plane can be calculated, and then the target straight line weld can be determined based on the intersection line. The target straight line weld can be a straight line segment corresponding to the first starting and ending points on the intersection line of the first candidate plane and the second candidate plane.

[0112] Optionally, in order to ensure the accuracy of the identified target straight weld, Figure 7 The target straight weld is obtained in the above manner. Figure 7 , Figure 7 for Figure 6 Schematic diagram of the flow of sub-steps included in sub-step S163. In this embodiment, sub-step S163 may include sub-steps S1631 to S1633.

[0113] Sub-step S1631: taking the plane with the smallest first distance in the second plane set as the third candidate plane.

[0114] The planes in the second plane set are planes other than the first candidate plane and the second candidate plane in the plane detection result, whose angles with the first candidate plane and the second candidate plane are greater than the preset angle.

[0115] Optionally, the angle between each plane in the plane detection result, except the first candidate plane and the second candidate plane, and the first candidate plane and the second candidate plane can be calculated based on the normal of each plane in the plane detection result. The planes in the plane detection result, except the first candidate plane and the second candidate plane, can be sorted in the order of the first distance from small to large, and then the first plane in the sorting whose two corresponding angles are both greater than the preset angle is taken as the third candidate plane. It is worth noting that the above-mentioned method of determining the third candidate plane is only an example, and the specific determination method can be determined in combination with actual needs.

[0116] Optionally, as a possible implementation method, in order to reduce the amount of calculation, Figure 8 The first candidate plane, the second candidate plane and the third candidate plane are obtained in the manner shown.

[0117] Sub-step S1601 , sorting a plurality of planes in the plane detection result in an ascending order of the first distances based on the first distances corresponding to the respective planes to obtain a sorting result.

[0118] In this embodiment, the first distance between each plane in the plane detection result and the first point can be calculated, and the direction of each plane in the plane detection result can be obtained. Then, the first distance is sorted from small to large, and the corresponding normal is adjusted to obtain a sorting result. The sorting result may include a plane identifier (such as a plane serial number), a first distance corresponding to a plane, and a normal corresponding to a plane.

[0119] Sub-step S1602: taking the first plane in the sorting result as the first candidate plane.

[0120] Sub-step S1603: traverse the planes located after the first candidate plane in the sorting result according to the sorting result, and when the angle between the currently traversed plane and the first candidate plane is greater than the preset angle, use the currently traversed plane as the second candidate plane.

[0121] Sub-step S1604: traverse the planes that are located after the second candidate plane in the sorting result according to the sorting result, and when the angles between the currently traversed plane and the first candidate plane and the second candidate plane are all greater than the preset angles, use the currently traversed plane as the third candidate plane.

[0122] The plane with the shortest distance can be taken from the sorting results as the first candidate plane, and the normal direction of the first candidate plane can be obtained.

[0123] Then, according to the order in the sorting result, the planes after the first candidate plane in the sorting result are traversed, and the angle between the current plane traversed to and the first candidate plane is calculated. If the angle is greater than the preset angle, the traversal is stopped and the current plane is used as the second candidate plane; if the angle is not greater than the preset angle, the traversal is continued to determine the second candidate plane.

[0124] When the second candidate plane is determined, the planes after the second candidate plane in the sorting result may be traversed in the order of the sorting result, and the angles between the current plane traversed to and the first candidate plane and the second candidate plane are calculated. If both angles are greater than the preset angle, the current plane is used as the third candidate plane. If both angles are not greater than the preset angle, the traversal is continued to determine the third candidate plane. Among the two angles, one angle represents the angle between the current plane and the first candidate plane, and the other angle represents the angle between the current plane and the second candidate plane.

[0125] In this way, the first candidate plane, the second candidate plane and the third candidate plane can be determined through one sorting.

[0126] For example, assuming that there are 10 planes in the plane detection result, they are sorted in ascending order of the first distance from the first point as follows: plane 1, plane 2, ..., plane 10. Then plane 1 is selected as the first candidate plane. After that, the second candidate plane is selected starting from plane 2 according to the sorting. If, according to the sorting, plane 5 is the first plane whose angle with plane 1 is greater than the preset angle, plane 5 is selected as the second candidate plane. Then, according to the sorting, the angles between the current plane and planes 1 and 5 are calculated starting from plane 6 to select the third candidate plane.

[0127] Sub-step S1632, calculate the second distances between the first candidate plane, the second candidate plane, the third candidate plane and the second point respectively, and use the candidate planes corresponding to the two smaller second distances among the three calculated second distances as two target planes.

[0128] In this embodiment, the second distances between the first candidate plane, the second candidate plane, and the third candidate plane and the second point can be calculated, thereby obtaining three second distances. Then, the three second distances are compared to determine the two smaller second distances among the three second distances, and the candidate planes corresponding to the two smaller second distances are used as the screened target planes, thereby obtaining two target planes.

[0129] Optionally, the three candidate planes (i.e., the first candidate plane, the second candidate plane, and the third candidate plane) may be sorted in the order of the second distance from small to large based on the second distance corresponding to each candidate plane, and then the two planes with the closest distances are used as the screened target planes.

[0130] In the above method, first, according to the first distance, a plane closest to the first point is found as the first candidate plane; then, among all planes whose angles with the first candidate plane are greater than the preset angle, the plane closest to the first point is found as the second candidate plane; then, among all planes whose angles with the first candidate plane and the second candidate plane are greater than the preset angle, the plane closest to the first distance is found. Because the first point is already very close to the target straight weld, the above three planes must include the required two target planes (i.e., the two planes corresponding to the target straight weld). Three candidate planes are found because the first point may be located at the intersection of the three planes. After finding the three candidate planes, the three candidate planes are sorted based on the distances between the three candidate planes and the second point, and the two planes with the smallest distances must be the required planes. The above method can correctly screen out the required planes by comprehensively considering the distance from the plane to the point and the angle between the planes.

[0131] Sub-step S1633, calculating the intersection line of the two target planes, and obtaining the target straight weld according to the intersection line.

[0132] In this embodiment, when two target planes are obtained, the intersection line of the two target planes can be calculated. The first starting point and the end point can be projected onto the intersection line to obtain the second starting point and the end point, and the straight line segment corresponding to the second starting point and the end point on the intersection line is used as the target straight line weld. That is, the first starting point and the first end point of the first starting point and the end point are projected onto the intersection line, the projected first starting point can be used as the second starting point, and the projected first end point can be used as the second end point, and the straight line segment corresponding to the second starting point and the second end point on the intersection line is the target straight line weld. Among them, one endpoint of the straight line segment corresponding to the second starting point and the second end point on the intersection line is the second starting point, and the other endpoint is the second end point.

[0133] Optionally, the process of calculating the intersection line and the projection can be performed simultaneously. Let the coordinates of the projection point be (x, y, z), and the normals of the two target planes be , , 2 target planes They are , Because the projection point is located on the intersection of the two target planes, the projection point should satisfy the plane equation of the target plane. Because it is a projection point, the line connecting the projection point and the point before projection is perpendicular to the intersection line. The above three conditions are expressed as the following set of equations:

[0134]

[0135]

[0136] in, The solution of the above equations is the projection point, which is also the starting and ending point of the target straight weld.

[0137] In this embodiment, the starting point and end point of the linear weld to be welded selected by the user on the workpiece model can be used as interactive information, and then the first starting point and end point in the target coordinate system used by the workpiece point cloud of the target workpiece to be welded can be determined based on the interactive information, and the workpiece point cloud can be intercepted using a cylinder formed based on the first starting point and end point to obtain a local point cloud, thereby reducing the amount of subsequent point cloud processing and deleting some possible interference information. Among them, the first starting point and end point can be obtained by point cloud registration. For the local point cloud, the plane can be detected using the above-mentioned deterministic voting method, thereby ensuring the acquisition speed and accuracy of the plane detection result. For the plane detection result, the plane in the plane detection result is screened based on the first starting point and end point. The distance from the point to the plane and the angle between the planes are considered in the screening process, so as to accurately find the required plane and then determine the only linear weld. In this way, by combining point cloud registration, interactive information, plane detection and plane screening, the target linear weld on the target workpiece to be welded can be accurately identified.

[0138] In order to execute the corresponding steps in the above embodiments and various possible methods, a method for implementing a linear weld recognition device 200 is provided below. Optionally, the linear weld recognition device 200 can adopt the above Figure 1 The device structure of the electronic device 100 is shown. Fig. 9 , Fig. 9 The block diagram of the linear weld recognition device 200 provided in the embodiment of the present application. It should be noted that the basic principle and technical effect of the linear weld recognition device 200 provided in the present embodiment are the same as those of the above embodiment. For the sake of brief description, for the parts not mentioned in the present embodiment, reference can be made to the corresponding contents in the above embodiment. In the present embodiment, the linear weld recognition device 200 may include: a point cloud acquisition module 210, a conversion relationship acquisition module 220, a conversion module 230, an extraction module 240, a plane detection module 250 and a recognition module 260.

[0139] The point cloud acquisition module 210 is used to obtain a workpiece point cloud of a target workpiece and a model point cloud of a standard workpiece corresponding to the target workpiece.

[0140] The conversion relationship obtaining module 220 is used to obtain the coordinate system conversion relationship between the model point cloud and the workpiece point cloud.

[0141] The conversion module 230 is used to convert the start and end point information of the standard straight weld corresponding to the standard workpiece according to the coordinate system conversion relationship to obtain the first start and end point.

[0142] The extraction module 240 is used to extract the local point cloud from the workpiece point cloud according to the first starting and ending points, with the plane in the local point cloud including the target linear weld as the target.

[0143] The plane detection module 250 is used to perform plane detection on the local point cloud to obtain a plane detection result.

[0144] The recognition module 260 is used to obtain the target straight weld according to the plane detection result.

[0145] Optionally, the above modules can be stored in the form of software or firmware. Figure 1 The memory 110 shown in the figure may be fixed in the operating system (OS) of the electronic device 100 and may be Figure 1 Meanwhile, the data and program codes required for executing the above modules may be stored in the memory 110.

[0146] An embodiment of the present application also provides a readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the linear weld recognition method is implemented.

[0147] In summary, the embodiment of the present application provides a linear weld recognition method, device, electronic device and readable storage medium, firstly obtaining a workpiece point cloud of a target workpiece to be welded and a model point cloud of a standard workpiece corresponding to the target workpiece, then obtaining a coordinate system conversion relationship between the coordinate system of the workpiece point cloud and the coordinate system of the model point cloud, and then based on the coordinate system conversion relationship, converting the start and end point information of the standard linear weld corresponding to the standard workpiece to obtain a first start and end point; then, according to the first start and end point, taking the plane that constitutes the target linear weld in the local point cloud as the target, extracting the local point cloud from the workpiece point cloud, and performing plane detection on the local point cloud to obtain a plane detection result; finally, based on the obtained plane detection result, determining the target linear weld in the workpiece point cloud. In this way, by intercepting the workpiece point cloud based on the first start and end point, and then performing linear weld recognition, some possible interference information can be deleted, the accuracy of weld recognition can be improved, and the amount of point cloud data that needs to be processed can be reduced, thereby improving the efficiency of weld recognition.

[0148] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0149] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0150] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. 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, and other media that can store program codes.

[0151] The above description is only an optional embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A linear weld recognition method, characterized in that: The method comprises: Obtaining a workpiece point cloud of a target workpiece and a model point cloud of a standard workpiece corresponding to the target workpiece; Obtaining a coordinate system transformation relationship between the model point cloud and the workpiece point cloud; According to the coordinate system conversion relationship, the start and end point information of the standard straight line weld corresponding to the standard workpiece is converted to obtain a first start and end point; According to the first starting and ending points, taking the plane including the target straight weld in the local point cloud as the target, extracting the local point cloud from the workpiece point cloud; Performing plane detection on the local point cloud to obtain a plane detection result; According to the plane detection result, the target straight weld is obtained; Wherein, according to the first starting and ending points, taking the plane constituting the target straight weld in the local point cloud as the target, extracting the local point cloud from the workpiece point cloud includes: According to the first starting and ending points, a cylinder is determined, wherein the axis of the cylinder is a line connecting two points of the first starting and ending points, and the bottom radius of the cylinder is a preset radius; Point cloud points in the workpiece point cloud located in the cylinder are used as point cloud points in the local point cloud to obtain the local point cloud.

2. The method according to claim 1, characterized in that The plane detection result includes a plurality of planes, one of the first starting and ending points is a first point, and obtaining the target straight weld according to the plane detection result includes: Calculate and obtain a first distance between each plane in the plane detection result and the first point; Taking a plane corresponding to the minimum first distance among the obtained multiple first distances as a first candidate plane, and taking a plane with the minimum first distance in the first plane set as a second candidate plane, wherein the planes in the first plane set are planes in the plane detection result whose angle with the first candidate plane is greater than a preset angle; The target straight weld is obtained according to the first candidate plane and the second candidate plane.

3. The method according to claim 2, characterized in that Another point in the first starting and ending points is a second point, and obtaining the target straight weld according to the first candidate plane and the second candidate plane includes: Taking the plane with the smallest first distance in the second plane set as the third candidate plane, wherein the planes in the second plane set are planes in the plane detection result whose angles with the first candidate plane and the second candidate plane are greater than the preset angle; Calculate the second distances between the first candidate plane, the second candidate plane, the third candidate plane and the second point, and use the candidate planes corresponding to the smaller two second distances among the three calculated second distances as two target planes; The intersection line of the two target planes is calculated, and the target straight weld is obtained according to the intersection line.

4. The method according to claim 3, characterized in that The first candidate plane, the second candidate plane and the third candidate plane are obtained by: Sorting the plurality of planes in the plane detection result in an ascending order of the first distances based on the first distances corresponding to the respective planes to obtain a sorting result; Taking the first plane in the sorting result as the first candidate plane; Traversing the planes after the first candidate plane in the sorting result according to the sorting result, and when the angle between the currently traversed plane and the first candidate plane is greater than the preset angle, taking the currently traversed plane as the second candidate plane; The planes located after the second candidate plane in the sorting result are traversed according to the sorting result, and when the angles between the currently traversed plane and the first candidate plane and the second candidate plane are all greater than the preset angle, the currently traversed plane is used as the third candidate plane.

5. The method according to claim 3, characterized in that: The calculating and obtaining the intersection line of the two target planes, and obtaining the target straight weld according to the intersection line, comprises: The first starting and ending points are projected onto the intersection line to obtain the second starting and ending points, and the straight line segment corresponding to the second starting and ending points on the intersection line is used as the target straight line weld.

6. The method according to any one of claims 1 to 5, characterized in that: The standard straight weld start and end point information is determined based on a received user selection operation on the workpiece model of the standard workpiece.

7. The method according to any one of claims 1 to 5, characterized in that: The performing plane detection on the local point cloud to obtain a plane detection result includes: Calculate and obtain the normal direction of each point cloud point in the local point cloud; According to the normal direction of each point cloud point and different normal direction ranges, the local point cloud is divided into sets to obtain at least one point cloud set, wherein the normal directions of the point cloud points in one point cloud set are within a normal direction range; Plane detection is performed on each point cloud set to be processed to determine a plane, wherein the point cloud set to be processed is a point cloud set determined from the at least one point cloud set for obtaining a plane through processing.

8. The method according to claim 7, characterized in that The performing plane detection on each point cloud set to be processed to determine a plane includes: Projecting each point cloud point in the to-be-processed point cloud set onto a target normal direction corresponding to a normal direction range corresponding to the to-be-processed point cloud set to obtain a projection point, and calculating a third distance between each projection point and the origin of the coordinate system where the local point cloud is located; Dividing the point cloud set to be processed into subsets according to the third distances and different distance ranges corresponding to each point cloud point in the point cloud set to be processed, to obtain at least one point cloud subset, wherein the third distances corresponding to the point cloud points in one point cloud subset are within a distance range; Based on each point cloud subset to be processed, a plane corresponding to each point cloud subset to be processed is determined, wherein the point cloud subset to be processed is a point cloud subset determined from the at least one point cloud subset for obtaining a plane.

9. A linear weld identification device, characterized in that: The device comprises: A point cloud acquisition module, used to obtain a workpiece point cloud of a target workpiece and a model point cloud of a standard workpiece corresponding to the target workpiece; A conversion relationship obtaining module, used to obtain a coordinate system conversion relationship between the model point cloud and the workpiece point cloud; A conversion module, used for converting the start and end point information of the standard straight weld corresponding to the standard workpiece according to the coordinate system conversion relationship to obtain a first start and end point; An extraction module, configured to extract the local point cloud from the workpiece point cloud according to the first starting and ending points, taking the plane in the local point cloud that includes the target straight weld as the target; A plane detection module, used to perform plane detection on the local point cloud to obtain a plane detection result; An identification module, used for obtaining the target straight weld according to the plane detection result; Among them, the extraction module is specifically used to: determine a cylinder based on the first starting and ending points, wherein the axis of the cylinder is the line connecting the two points in the first starting and ending points, and the bottom radius of the cylinder is a preset radius; use the point cloud points in the workpiece point cloud located in the cylinder as the point cloud points in the local point cloud to obtain the local point cloud.

10. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions to implement the linear weld recognition method described in any one of claims 1-8.