Workpiece welding seam position detection method, system and equipment based on multi-feature fusion

Through multi-feature fusion technology, two-dimensional images and three-dimensional point cloud data are used, combined with neural network models, to solve the accuracy problem of weld position detection under environmental interference during the welding process, and achieve higher welding quality and stability.

CN118710885APending Publication Date: 2024-09-27HONORFAITH FURNITURE +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410847855.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing welding technology is difficult to accurately detect the position of the weld seam under environmental interference such as light and smoke, resulting in unstable welding quality.

Method used

Using a method based on multi-feature fusion, two-dimensional images and three-dimensional point cloud data are combined, feature extraction, correction and enhancement are performed through the neural network model, and the weld position is finally obtained through grayscale threshold detection.

Benefits of technology

It effectively reduces the impact of environmental interference on weld position detection and improves welding accuracy and consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710885A
    Figure CN118710885A
Patent Text Reader

Abstract

The invention discloses a workpiece welding seam position detection method, system and device based on multi-feature fusion and a storage medium. The method comprises the steps that a corresponding data set of a to-be-detected workpiece at the current welding moment is obtained; performing feature extraction on the data set to obtain a feature map set; processing the feature map set by using a trained first neural network model to obtain a deviation set; correcting the feature map set according to the deviation set to obtain a corrected feature map set; using a trained second neural network model to process the correction feature map set to obtain an attention map set; strengthening the corrected feature map set according to the attention map set to obtain a strengthened feature map set; fusing the enhanced feature map set and the to-be-detected two-dimensional image to obtain a two-dimensional enhanced image; and detecting the two-dimensional enhanced image according to the gray threshold to obtain the weld position of the to-be-detected workpiece. A multi-feature fusion processing mode is adopted, and the accuracy of welding seam position detection can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a workpiece weld position detection method, system, device and storage medium based on multi-feature fusion. Background Art

[0002] Weld position tracking plays an important role in the welding process. It can monitor the position of the weld in real time through certain means during the welding process to ensure welding quality and improve welding accuracy and consistency. However, for a long time, due to the environmental interference such as light and smoke during the welding process, weld position tracking usually relies on point cloud images obtained by laser scanning or grayscale images obtained by structured light for detection. In the case of severe interference, neither of these two images can accurately reflect the weld position information alone. Summary of the invention

[0003] The present invention provides a workpiece weld position detection method, system, device and storage medium based on multi-feature fusion to solve one or more technical problems existing in the prior art and at least provide a beneficial choice or create conditions.

[0004] In a first aspect, a method for detecting a workpiece weld position based on multi-feature fusion is provided, comprising:

[0005] Acquire a data set corresponding to the workpiece to be measured at the current welding moment, wherein the data set includes a denoised two-dimensional image to be measured and a three-dimensional point cloud to be measured;

[0006] Performing feature extraction on the data set to obtain a feature graph set;

[0007] Processing the feature graph set using the trained first neural network model to obtain a deviation set;

[0008] Correcting the feature map set according to the deviation set to obtain a corrected feature map set;

[0009] Processing the set of corrected feature maps using the trained second neural network model to obtain a set of attention maps;

[0010] According to the attention map set, the correction feature map set is enhanced to obtain an enhanced feature map set;

[0011] Fusing the enhanced feature map set and the two-dimensional image to be tested to obtain a two-dimensional enhanced image;

[0012] The two-dimensional enhanced image is detected according to the grayscale threshold to obtain the weld position of the workpiece to be detected.

[0013] Furthermore, the extracting features from the data set to obtain a feature graph set includes:

[0014] Using an edge detection algorithm to extract features from the two-dimensional image to be tested, to obtain a two-dimensional feature map;

[0015] The nearest neighbor algorithm is used to extract features from the three-dimensional point cloud to obtain a three-dimensional feature map.

[0016] Furthermore, the first neural network model includes a first PointFlow model and a first PointNetLK model, and the feature map set is processed using the trained first neural network model to obtain a deviation set including:

[0017] Processing the three-dimensional feature map using the trained first PointFlow model to obtain a two-dimensional deviation;

[0018] The two-dimensional feature map and the three-dimensional feature map are processed by using the trained first PointNetLK model to obtain a three-dimensional deviation.

[0019] Further, the correcting the feature map set according to the deviation set to obtain the corrected feature map set includes:

[0020] According to the two-dimensional deviation, the two-dimensional feature map is corrected by using a bilinear interpolation algorithm to obtain a two-dimensional corrected feature map;

[0021] According to the three-dimensional deviation, the three-dimensional feature map is corrected using a trilinear interpolation algorithm to obtain a three-dimensional corrected feature map.

[0022] Furthermore, the second neural network model includes a second PointFlow model and a second PointNetLK model, and the correction feature map set is processed by using the trained second neural network model to obtain an attention map set including:

[0023] Processing the three-dimensional rectified feature map using the trained second PointFlow model to obtain a two-dimensional attention map;

[0024] The two-dimensional rectified feature map and the three-dimensional rectified feature map are processed using the trained second PointNetLK model to obtain a three-dimensional attention map.

[0025] Furthermore, the step of enhancing the corrected feature map set according to the attention map set to obtain the enhanced feature map set includes:

[0026] Multiplying the two-dimensional attention map with the two-dimensional correction feature map to obtain a two-dimensional enhanced feature map;

[0027] The three-dimensional attention map is multiplied by the three-dimensional correction feature map to obtain a three-dimensional enhanced feature map.

[0028] Furthermore, the step of fusing the enhanced feature map set and the two-dimensional image to be tested to obtain a two-dimensional enhanced image includes:

[0029] Performing a maximum pooling operation on the three-dimensional enhanced feature map to obtain a first two-dimensional enhanced feature map;

[0030] Performing a maximum pooling operation on the first two-dimensional enhanced feature map and the two-dimensional enhanced feature map to obtain a fused feature map;

[0031] The fused feature map is multiplied by the two-dimensional image to be tested to obtain a two-dimensional enhanced image.

[0032] In a second aspect, a workpiece weld position detection system based on multi-feature fusion is provided, comprising:

[0033] The first module is used to obtain a data set corresponding to the workpiece to be tested at the current welding moment, wherein the data set includes a denoised two-dimensional image to be tested and a three-dimensional point cloud to be tested;

[0034] The second module is used to extract features from the data set to obtain a feature map set;

[0035] A third module is used to process the feature graph set using the trained first neural network model to obtain a deviation set;

[0036] A fourth module is used to correct the feature map set according to the deviation set to obtain a corrected feature map set;

[0037] A fifth module is used to process the correction feature map set using the trained second neural network model to obtain an attention map set;

[0038] A sixth module is used to enhance the correction feature map set according to the attention map set to obtain an enhanced feature map set;

[0039] A seventh module is used to fuse the enhanced feature map set and the two-dimensional image to be tested to obtain a two-dimensional enhanced image;

[0040] The eighth module is used to detect the two-dimensional enhanced image according to the grayscale threshold to obtain the weld position of the workpiece to be detected.

[0041] In a third aspect, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the workpiece weld position detection method based on multi-feature fusion as described in the first aspect.

[0042] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for detecting the position of a workpiece weld based on multi-feature fusion as described in the first aspect is implemented.

[0043] The present invention has at least the following beneficial effects: by using a two-dimensional image and a three-dimensional point cloud in combination to realize the weld position detection task, the limitation of a single data source existing in the traditional weld position tracking technology can be overcome; by using a neural network model to cross-process feature maps of different dimensions to obtain two key deviations, and then combining an appropriate linear interpolation algorithm to correct the feature maps of different dimensions, and then using a cross-attention mechanism to strengthen the corrected feature maps of different dimensions, the feature map finally fused can more accurately reflect the weld position information, and minimize the adverse effects of environmental interference in the welding process on the weld position detection results. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation to the technical solution of the present invention.

[0045] Figure 1 It is a schematic flow chart of a workpiece weld position detection method based on multi-feature fusion in an embodiment of the present invention;

[0046] Figure 2 Schematic diagram of the composition of a workpiece weld position detection system based on multi-feature fusion in an embodiment of the present invention;

[0047] Figure 3 It is a schematic diagram of the hardware structure of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0049] It should be noted that, although the functional modules are divided in the system schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order from the module division in the system or the order in the flow chart. The terms "first", "second", "third", "fourth", etc. in the specification of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, such as processes, methods, systems, products or devices that include a series of steps or units, which are not necessarily limited to those steps or units clearly listed, but may include other steps or units inherent to these processes, methods, products or devices that are not clearly listed.

[0050] Regarding the technology of weld position detection, some scholars have pointed out in the published paper "Spatial Position Detection System of Fillet Welds Based on Structured Light": The shape information of the weld is obtained from the captured structured light 3D point cloud image by extracting the main grayscale peak column by column, and the extracted data is smoothed using the iterative endpoint fitting method to eliminate possible noise and discontinuity. Then, the corner points in the structured light 3D point cloud image are determined by the progressive Hough transform method to more accurately mark the key positions of the weld.

[0051] Another scholar pointed out in the published paper "Improved Canny Algorithm for Detecting the Weld Position of Straight Seam Welded Pipes": By analyzing the characteristics of straight seam welded pipe images, the local mean deviation in the gradient direction is introduced to perform non-maximum, thereby effectively suppressing noise points and retaining edge information. Then, the Otsu method is used to calculate the threshold, and according to the distribution characteristics of strong and weak edges in the actual collected straight seam welded pipe images, the strong edge boundary is used as an additional connection condition to retain more pipe edges and weld edges, thereby more accurately obtaining the weld position information.

[0052] In actual industrial welding scenarios, the image acquisition process is easily disturbed by the external environment. However, the above two methods are proposed based on the absence of external environmental interference. When they are officially put into use, their stability is relatively poor and they cannot extract weld position information more accurately. Based on this, the embodiments of the present invention provide a workpiece weld position detection method, system, device and storage medium based on multi-feature fusion to minimize the adverse effects of external environmental interference on weld position detection results.

[0053] First, some of the terms involved in the present invention are explained as follows:

[0054] Neural Networks (NN) is a complex network system formed by a large number of simple processing units (also called neurons) that are widely interconnected. It reflects many basic characteristics of human brain functions and is a highly complex nonlinear dynamic learning system. Neural networks have large-scale parallel, distributed storage and processing, self-organization, self-adaptation and self-learning capabilities, and are particularly suitable for processing imprecise and fuzzy information processing problems that require considering many factors and conditions at the same time.

[0055] Edge detection algorithm is a technology used to detect edge features in images. It mainly identifies edge features in images by calculating the gradient or difference of the image. The Canny algorithm is a classic edge detection algorithm that combines Gaussian smoothing, non-maximum suppression and double threshold processing to improve the accuracy and stability of detection. It has a good suppression effect on noise and can detect the real edges in the image.

[0056] The nearest neighbor algorithm (KNN, K-NearestNeighbor) is a basic machine learning classification technology. Its specific implementation process includes the following: Step 1, calculate the distance between the test data and each training data respectively; Step 2, arrange each training data in ascending order of distance, and then select K training data with the smallest distance; Step 3, determine the frequency of occurrence of the category of the K training data, and then use the category with the highest frequency as the category of the test data.

[0057] The bilinear interpolation algorithm is an interpolation method based on two variables. It calculates the value of an unknown point by performing linear interpolation in two directions respectively. The core idea is to use the information of four neighboring points to calculate the value of the target point. These neighboring points are usually existing pixels in the original image.

[0058] The trilinear interpolation algorithm is a method for linear interpolation on a tensor product grid of three-dimensional discrete sampling data. The tensor product grid may have arbitrary non-overlapping grid points in each dimension, but it is not a triangulated finite element analysis grid. The core idea is to linearly approximate the value of the target point on a local rectangular prism through the data points on the grid.

[0059] Max pooling refers to taking the maximum value in each local area in the input feature map as the output value corresponding to the local area, so as to retain the most significant features.

[0060] Please refer to Figure 1 , Figure 1 1 is a flow chart of a method for detecting a weld position of a workpiece based on multi-feature fusion provided by an embodiment of the present invention, wherein the method comprises the following steps:

[0061] Step S110, obtaining a data set corresponding to the workpiece to be measured at the current welding moment, wherein the data set includes a denoised two-dimensional image to be measured and a three-dimensional point cloud to be measured;

[0062] Step S120, extracting features from the data set to obtain a feature graph set;

[0063] Step S130: Processing the feature graph set using the trained first neural network model to obtain a deviation set;

[0064] Step S140: correcting the feature map set according to the deviation set to obtain a corrected feature map set;

[0065] Step S150: Processing the corrected feature map set using the trained second neural network model to obtain an attention map set;

[0066] Step S160: According to the attention map set, the correction feature map set is enhanced to obtain an enhanced feature map set;

[0067] Step S170, fusing the enhanced feature map set and the two-dimensional image to be tested to obtain a two-dimensional enhanced image;

[0068] Step S180: Detect the two-dimensional enhanced image according to the grayscale threshold to obtain the weld position of the workpiece to be detected.

[0069] In some embodiments of the present invention, the welding robot is mainly controlled to weld the weld on the workpiece to be tested according to the teaching trajectory input by the user, and a point cloud acquisition device and an image acquisition device are set on the welding robot. The point cloud acquisition device and the image acquisition device are preferably arranged on both sides of the welding robot to avoid mutual interference during data acquisition. The point cloud acquisition device preferably uses a structured light camera, and the image acquisition device preferably uses a laser scanner.

[0070] On this basis, the implementation method of the above-mentioned step S110 is: at the current welding moment, the point cloud acquisition device is controlled to acquire a frame of original three-dimensional point cloud toward the welding surface of the workpiece to be measured, and the image acquisition device is controlled to acquire a frame of original two-dimensional image toward the welding surface of the workpiece to be measured, and the original two-dimensional image is actually a two-dimensional grayscale image; the original three-dimensional point cloud is processed by a point cloud denoising method to obtain the three-dimensional point cloud to be measured, and the point cloud denoising method can be but not limited to any one of filtering operations (such as average filtering, median filtering, Gaussian filtering, neighborhood filtering, etc.), sampling operations (such as volume-based sampling, grid-based sampling, etc.), morphological operations, etc.; the original two-dimensional image is processed by an image denoising method to obtain the two-dimensional image to be measured, and the image denoising method can be but not limited to any one of spatial domain filtering (such as neighborhood averaging, median filtering, low-pass filtering, etc.), transform domain filtering (such as Fourier transform, wavelet transform, etc.), etc.

[0071] In some embodiments of the present invention, the feature map set includes a two-dimensional feature map and a three-dimensional feature map, and the implementation process of the above step S120 includes but is not limited to the following:

[0072] Step S121, using an edge detection algorithm to extract features from the two-dimensional image to be tested, so as to obtain the corresponding two-dimensional feature map;

[0073] Step S122: extract features from the three-dimensional point cloud to be measured by combining a nearest neighbor algorithm to obtain the corresponding three-dimensional feature map.

[0074] More specifically, the above step S121 is preferably performed using the Canny edge detection algorithm, and the corresponding implementation process includes but is not limited to the following:

[0075] Step S121.1, using a Gaussian filter to smooth the two-dimensional image to obtain a first grayscale image;

[0076] Step S121.2, using the Sobel operator to calculate the gradient strength of each pixel point contained in the first grayscale image in different gradient directions (i.e., horizontal direction and vertical direction);

[0077] Step S121.3, performing non-maximum suppression processing on the first grayscale image to obtain a second grayscale image, that is, for each pixel point included in the first grayscale image, determining from the first grayscale image two pixel points adjacent to the pixel point in the gradient direction where the pixel point is located, and retaining only the pixel point with the largest gradient intensity between the pixel point and the two pixel points, which is conducive to eliminating the blur effect on the edge;

[0078] Step S121.4, performing double threshold processing on the second grayscale image to obtain a third grayscale image, that is: classifying and marking all pixel points contained in the second grayscale image, according to a preset first intensity threshold and a second intensity threshold, the first intensity threshold is less than the second intensity threshold, marking each pixel point with a gradient intensity less than the first intensity threshold as a non-edge pixel point, marking each pixel point with a gradient intensity greater than the second intensity threshold as a strong edge pixel point, and marking each pixel point with a gradient intensity between the first intensity threshold and the second intensity threshold as a weak edge pixel point;

[0079] Step S121.5: Connect each weak edge pixel point contained in the third grayscale image with the surrounding strong edge pixel points to obtain the final required two-dimensional feature map.

[0080] More specifically, the implementation process of the above step S122 includes but is not limited to the following:

[0081] Step S122.1: for any point cloud data contained in the three-dimensional point cloud to be measured, a neighborhood point set centered on the point cloud data is extracted from the three-dimensional point cloud to be measured using a nearest neighbor algorithm;

[0082] Step S122.2: Calculate the covariance matrix between the point cloud data and the neighborhood point set based on the coordinate information of the point cloud data and the coordinate information of each point cloud data contained in the neighborhood point set. The mathematical expression used in this calculation process is:

[0083]

[0084] In the formula, C is the covariance matrix, N is the number of all point cloud data contained in the neighborhood point set, (x0, y0, z0) is the coordinate information of the point cloud data, (x i ,y i ,z i ) is the coordinate information of the i-th point cloud data contained in the neighborhood point set;

[0085] Step S122.3, calculating all eigenvalues ​​of the covariance matrix, and then taking the maximum value of all the eigenvalues ​​as the curvature associated with the point cloud data, the curvature reflecting the surface concavity of the point cloud data;

[0086] Step S122.4, determining whether the curvature is greater than a preset curvature threshold; if so, retaining the point cloud data in the three-dimensional point cloud to be measured; if not, discarding the point cloud data in the three-dimensional point cloud to be measured;

[0087] Each point cloud data included in the three-dimensional point cloud to be measured is processed according to the above steps S122.1 to S122.4, and the three-dimensional point cloud to be measured that is finally updated can be used as the three-dimensional feature map that is finally required.

[0088] In some embodiments of the present invention, the first neural network model mentioned in the above step S130 specifically includes a first PointNetLK model and a first PointFlow model. After training, the first PointNetLK model can obtain the required three-dimensional deviation according to the input two-dimensional image and three-dimensional image, and the first PointFlow model can obtain the required two-dimensional deviation according to the input three-dimensional image after training; wherein, the first PointNetLK model includes a first PointNet network layer, a second PointNet network layer, a first feature matching layer and a first regression layer, the first PointNet network layer is connected to the first feature matching layer, the second PointNet network layer is connected to the first feature matching layer, the first feature matching layer is connected to the first regression layer, and the first PointFlow model includes a first encoder and a first decoder connected in sequence.

[0089] On this basis, the deviation set includes a two-dimensional deviation amount and a three-dimensional deviation amount. The implementation process of the above step S130 includes but is not limited to the following:

[0090] Step S131, inputting the three-dimensional feature map into a pre-trained first PointFlow model for processing to obtain a two-dimensional deviation;

[0091] Specifically, the first encoder is used to learn the input three-dimensional feature map, and the learned three-dimensional point cloud features are mapped to the latent space; the first decoder is then used to map the latent feature representation to the two-dimensional image space, and the two-dimensional deviation is predicted;

[0092] Step S132: input the three-dimensional feature map and the two-dimensional feature map simultaneously into a pre-trained first PointNetLK model for processing to obtain a three-dimensional deviation;

[0093] Specifically, the first PointNet network layer is used to learn the input three-dimensional feature map, and the learned three-dimensional point cloud features are output to the first feature matching layer; and the second PointNet network layer is used to learn the input two-dimensional feature map, and the learned two-dimensional image features are output to the first feature matching layer; the first feature matching layer is then used to calculate the matching information between the input three-dimensional point cloud features and the two-dimensional image features and output it to the first regression layer; finally, the first regression layer is used to predict the three-dimensional deviation according to the input matching information.

[0094] In some embodiments of the present invention, the set of correction feature maps includes a two-dimensional correction feature map and a three-dimensional correction feature map, and the implementation process of the above step S140 includes but is not limited to the following:

[0095] Step S141: Based on the two-dimensional deviation, the two-dimensional feature map is corrected by a bilinear interpolation algorithm to obtain a two-dimensional corrected feature map. The mathematical expression used in this correction process is:

[0096] F′(x,y)=(1-Δx)(1-Δy)F(x,y)+Δx(1-Δy)F(x+1,y)+(1-Δx)ΔyF(x,y+1)+ΔxΔyF(x+1,y+1);

[0097] The above mathematical expression is mainly used to correct the feature information reflected by a pixel point contained in the two-dimensional feature map, wherein: (x, y) is the coordinate information of the pixel point, F(x, y) is the feature information reflected by the pixel point, F′(x, y) is the feature information reflected by the pixel point after correction, (x+1, y), (x, y+1) and (x+1, y+1) are the coordinate information of three pixel points that are adjacent to the pixel point, F(x+1, y), F(x, y+1) and F(x+1, x+1) are the feature information reflected by the three pixel points, and (Δx, Δy) is the two-dimensional deviation;

[0098] Step S142: Based on the three-dimensional deviation, the three-dimensional feature map is corrected by a trilinear interpolation algorithm to obtain a three-dimensional corrected feature map. The mathematical expression used in this correction process is:

[0099] (1) Perform bilinear interpolation in the X direction:

[0100]

[0101] (2) Perform bilinear interpolation in the Y direction:

[0102]

[0103] (3) Linear interpolation in the Z direction:

[0104] f=(1-Δz)f0+Δzf1;

[0105] The above three sets of mathematical expressions are mainly used to correct the feature information reflected by a pixel point contained in the three-dimensional feature map, where: 00 、f 10 、f 01 、f 11 are the four feature components reflected by the pixel after correction in the X direction, f0 and f1 are the two feature components reflected by the pixel after further correction in the Y direction, and f is the single feature component reflected by the pixel after further correction in the Z direction. It can also be directly understood as the feature information reflected by the pixel after a complete correction. The eight pixels closest to the pixel are found from the three-dimensional feature map. The coordinate information of the eight pixels are respectively (x0, y0, z0), (x1, y0, z0), (x0, y1, z0), (x1, y1, z0), (x0, y0, z1), (x1, y0, z1), (x0, y1, z1), (x1, y1, z1), and the feature information reflected by the eight pixels is respectively F 000 、F 100 、F 010 、F 110 、F 001 、F 101 、F 011 、F 111 , (Δx, Δy, Δz) is the three-dimensional deviation.

[0106] In some embodiments of the present invention, the second neural network model mentioned in the above step S150 specifically includes a second PointNetLK model and a second PointFlow model, and the second PointNetLK model can obtain the required three-dimensional attention map based on the input two-dimensional image and three-dimensional image after training, and the second PointFlow model can obtain the required two-dimensional attention map based on the input three-dimensional image after training; wherein, the second PointNetLK model includes a third PointNet network layer, a fourth PointNet network layer, a second feature matching layer and a second regression layer, the third PointNet network layer is connected to the second feature matching layer, the fourth PointNet network layer is connected to the second feature matching layer, the second feature matching layer is connected to the second regression layer, and the second PointFlow model includes a second encoder and a second decoder connected in sequence.

[0107] On this basis, the attention map set includes a two-dimensional attention map and a three-dimensional attention map. The implementation process of the above step S150 includes but is not limited to the following:

[0108] Step S151: input the three-dimensional corrected feature map into a pre-trained second PointFlow model for processing to obtain a two-dimensional attention map;

[0109] Specifically, the input three-dimensional rectified feature map is learned by using the second encoder, and the learned three-dimensional point cloud features are mapped into a latent space; and the latent feature representation is mapped into a two-dimensional image space by using the second decoder to generate a two-dimensional attention map;

[0110] Step S152: input the three-dimensional corrected feature map and the two-dimensional corrected feature map into a pre-trained second PointNetLK model for processing to obtain a three-dimensional attention map;

[0111] Specifically, the third PointNet network layer is used to learn the input three-dimensional rectification feature map, and the learned three-dimensional point cloud features are output to the second feature matching layer; and the fourth PointNet network layer is used to learn the input two-dimensional rectification feature map, and the learned two-dimensional image features are output to the second feature matching layer; the second feature matching layer is then used to calculate the matching information between the input three-dimensional point cloud features and the two-dimensional image features and output it to the second regression layer; finally, the second regression layer is used to generate a three-dimensional attention map according to the input matching information.

[0112] In some embodiments of the present invention, the set of enhanced feature maps includes a two-dimensional enhanced feature map and a three-dimensional enhanced feature map, and the implementation process of the above step S160 includes but is not limited to the following:

[0113] Step S161, multiplying the two-dimensional attention map and the two-dimensional correction feature map to obtain a two-dimensional enhanced feature map;

[0114] Step S162: multiply the three-dimensional attention map and the three-dimensional correction feature map to obtain a three-dimensional enhanced feature map.

[0115] In some embodiments of the present invention, the implementation process of step S170 includes but is not limited to the following:

[0116] Step S171: Perform dimensionality reduction processing on the three-dimensional enhanced feature map by using a maximum pooling operation to obtain a first two-dimensional enhanced feature map;

[0117] Step S172: using a maximum pooling operation to fuse the two-dimensional enhanced feature map and the first two-dimensional enhanced feature map to obtain a fused feature map;

[0118] Step S173: multiply the fused feature map and the two-dimensional image to be tested to obtain a two-dimensional enhanced image.

[0119] In some embodiments of the present invention, the implementation method of the above-mentioned step S180 is: filter out all pixel points whose grayscale values ​​are greater than a preset grayscale threshold from the two-dimensional enhanced image, the area formed by all the pixel points is the area where the weld is located, and then the average value of the coordinate information of all the pixel points is used as the weld position.

[0120] In an embodiment of the present invention, the weld position detection task is realized by combining two-dimensional images and three-dimensional point clouds, which can overcome the limitation of a single data source in traditional weld position tracking technology; by using a neural network model to cross-process feature maps of different dimensions to obtain two key deviations, and then combining an appropriate linear interpolation algorithm to correct the feature maps of different dimensions, and then using a cross-attention mechanism to enhance the corrected feature maps of different dimensions, the feature map finally fused can more accurately reflect the weld position information, thereby minimizing the adverse effects of environmental interference in the welding process on the weld position detection results.

[0121] Please refer to Figure 2 , Figure 2 : is a schematic diagram of the composition of a workpiece weld position detection system based on multi-feature fusion provided by an embodiment of the present invention, the system comprising:

[0122] The first module 210 is used to obtain a data set associated with the workpiece to be tested at the current welding moment, which includes a denoised three-dimensional point cloud to be tested and a two-dimensional image to be tested;

[0123] The second module 220 is used to extract features from the data set to obtain a feature map set;

[0124] The third module 230 is used to process the feature map set through the pre-trained first neural network model to obtain a deviation set;

[0125] A fourth module 240 is configured to correct the feature map set in combination with the deviation set to obtain a corrected feature map set;

[0126] A fifth module 250 is used to process the set of corrected feature maps through a pre-trained second neural network model to obtain a set of attention maps;

[0127] A sixth module 260 is used to enhance the corrected feature map set in combination with the attention map set to obtain an enhanced feature map set;

[0128] A seventh module 270 is used to fuse the enhanced feature map set and the two-dimensional image to be measured to obtain a two-dimensional enhanced image;

[0129] The eighth module 280 is used to detect the two-dimensional enhanced image in combination with a preset grayscale threshold to obtain the weld position of the workpiece to be detected.

[0130] The contents of the above method embodiments are all applicable to the present system embodiments. The functions implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are the same as those of the above method embodiments, which will not be repeated here.

[0131] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, a workpiece weld position detection method based on multi-feature fusion in the above embodiment is implemented. Wherein, the computer-readable storage medium includes but is not limited to any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. In other words, the storage device includes any medium that stores or transmits information in a readable form by a device (such as a computer, a mobile phone, etc.), which can be a read-only memory, a disk or an optical disk, etc.

[0132] also, Figure 3 3 is a schematic diagram of the hardware structure of a computer device provided in an embodiment of the present invention, wherein the computer device includes a processor 320, a memory 330, an input unit 340, a display unit 350 and other devices. Those skilled in the art can understand that Figure 3The device structure device shown does not constitute a limitation on all devices, and may include more or fewer components than shown, or combine certain components. The memory 330 can be used to store the computer program 310 and various functional modules, and the processor 320 runs the computer program 310 stored in the memory 330, thereby executing various functional applications and data processing of the device. The memory can be an internal memory or an external memory, or include an internal memory and an external memory. The internal memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory. The external memory may include a hard disk, a floppy disk, a U disk, a magnetic tape, etc. The memory 330 disclosed in the embodiment of the present invention includes but is not limited to the above-mentioned types of memory. The memory 330 disclosed in the embodiment of the present invention is only an example and not a limitation.

[0133] The input unit 340 is used to receive the input of the signal and the keyword input by the user. The input unit 340 may include a touch panel and other input devices. The touch panel can collect the user's touch operation on or near it (such as the user's operation on or near the touch panel using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a pre-set program; other input devices may include but are not limited to one or more of a physical keyboard, a function key (such as a playback control key, a switch key, etc.), a trackball, a mouse, a joystick, etc. The display unit 350 can be used to display the information input by the user or the information provided to the user and various menus of the terminal device. The display unit 350 can be in the form of a liquid crystal display, an organic light emitting diode, etc. The processor 320 is the control center of the terminal device, which uses various interfaces and lines to connect various parts of the entire device, and executes various functions and processes data by running or executing software programs and / or modules stored in the memory 330, and calling data stored in the memory 330.

[0134] As an embodiment, the computer device includes a processor 320, a memory 330 and a computer program 310, wherein the computer program 310 is stored in the memory 330 and is configured to be executed by the processor 320, and the computer program 310 is configured to execute a workpiece weld position detection method based on multi-feature fusion in the above embodiment.

[0135] Although the description of the present application has been quite detailed and specifically describes several described embodiments, it is not intended to be limited to any of these details or embodiments or any particular embodiment, but should be regarded as providing a broad possible interpretation of these claims by reference to the attached claims, taking into account the prior art, so as to effectively cover the intended scope of the present application. In addition, the above description of the present application is based on the embodiments foreseeable by the inventor, and its purpose is to provide a useful description, and those non-substantial changes to the present application that have not yet been foreseen may still represent equivalent changes to the present application.

Claims

1. A workpiece weld position detection method based on multi-feature fusion, characterized in that: include: Acquire a data set corresponding to the workpiece to be measured at the current welding moment, wherein the data set includes a denoised two-dimensional image to be measured and a three-dimensional point cloud to be measured; Performing feature extraction on the data set to obtain a feature graph set; Processing the feature graph set using the trained first neural network model to obtain a deviation set; Correcting the feature map set according to the deviation set to obtain a corrected feature map set; Processing the set of corrected feature maps using the trained second neural network model to obtain a set of attention maps; According to the attention map set, the correction feature map set is enhanced to obtain an enhanced feature map set; Fusing the enhanced feature map set and the two-dimensional image to be tested to obtain a two-dimensional enhanced image; The two-dimensional enhanced image is detected according to the grayscale threshold to obtain the weld position of the workpiece to be detected.

2. The workpiece weld position detection method based on multi-feature fusion according to claim 1 is characterized in that: The extracting features from the data set to obtain a feature graph set comprises: Using an edge detection algorithm to extract features from the two-dimensional image to be tested, to obtain a two-dimensional feature map; The nearest neighbor algorithm is used to extract features from the three-dimensional point cloud to obtain a three-dimensional feature map.

3. The workpiece weld position detection method based on multi-feature fusion according to claim 2 is characterized in that: The first neural network model includes a first PointFlow model and a first PointNetLK model, and the feature map set is processed using the trained first neural network model to obtain a deviation set including: Processing the three-dimensional feature map using the trained first PointFlow model to obtain a two-dimensional deviation; The two-dimensional feature map and the three-dimensional feature map are processed by using the trained first PointNetLK model to obtain a three-dimensional deviation.

4. The workpiece weld position detection method based on multi-feature fusion according to claim 3 is characterized in that: The correcting the feature map set according to the deviation set to obtain the corrected feature map set comprises: According to the two-dimensional deviation, the two-dimensional feature map is corrected by using a bilinear interpolation algorithm to obtain a two-dimensional corrected feature map; According to the three-dimensional deviation, the three-dimensional feature map is corrected using a trilinear interpolation algorithm to obtain a three-dimensional corrected feature map.

5. The workpiece weld position detection method based on multi-feature fusion according to claim 4 is characterized in that: The second neural network model includes a second PointFlow model and a second PointNetLK model, and the correction feature map set is processed by using the trained second neural network model to obtain an attention map set including: Processing the three-dimensional rectified feature map using the trained second PointFlow model to obtain a two-dimensional attention map; The two-dimensional rectified feature map and the three-dimensional rectified feature map are processed using the trained second PointNetLK model to obtain a three-dimensional attention map.

6. The workpiece weld position detection method based on multi-feature fusion according to claim 5 is characterized in that: The step of enhancing the corrected feature map set according to the attention map set to obtain an enhanced feature map set includes: Multiplying the two-dimensional attention map with the two-dimensional correction feature map to obtain a two-dimensional enhanced feature map; The three-dimensional attention map is multiplied by the three-dimensional correction feature map to obtain a three-dimensional enhanced feature map.

7. The workpiece weld position detection method based on multi-feature fusion according to claim 6 is characterized in that: The fusing the enhanced feature map set and the two-dimensional image to be tested to obtain a two-dimensional enhanced image comprises: Performing a maximum pooling operation on the three-dimensional enhanced feature map to obtain a first two-dimensional enhanced feature map; Performing a maximum pooling operation on the first two-dimensional enhanced feature map and the two-dimensional enhanced feature map to obtain a fused feature map; The fused feature map is multiplied by the two-dimensional image to be tested to obtain a two-dimensional enhanced image.

8. A workpiece weld position detection system based on multi-feature fusion, characterized in that: include: The first module is used to obtain a data set corresponding to the workpiece to be tested at the current welding moment, wherein the data set includes a denoised two-dimensional image to be tested and a three-dimensional point cloud to be tested; The second module is used to extract features from the data set to obtain a feature map set; A third module is used to process the feature graph set using the trained first neural network model to obtain a deviation set; A fourth module is used to correct the feature map set according to the deviation set to obtain a corrected feature map set; A fifth module is used to process the correction feature map set using the trained second neural network model to obtain an attention map set; A sixth module is used to enhance the correction feature map set according to the attention map set to obtain an enhanced feature map set; A seventh module is used to fuse the enhanced feature map set and the two-dimensional image to be tested to obtain a two-dimensional enhanced image; The eighth module is used to detect the two-dimensional enhanced image according to the grayscale threshold to obtain the weld position of the workpiece to be detected.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: The processor executes the computer program to implement the workpiece weld position detection method based on multi-feature fusion as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the workpiece weld position detection method based on multi-feature fusion as described in any one of claims 1 to 7 is implemented.