Workpiece welding seam identification method, system and equipment based on multi-feature fusion and medium

Through multi-feature fusion and attention mechanism, combined with long short-term memory network, the environmental interference and timeliness problems of the existing weld recognition system are solved, and the accuracy and robustness of weld recognition are improved.

CN118691799AActive Publication Date: 2024-09-24HONORFAITH FURNITURE +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410847850.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-24
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

Existing weld recognition systems rely on a single visual sensor and are susceptible to environmental interference and timeliness limitations, resulting in low weld recognition accuracy, poor fault tolerance, and difficulty in capturing changes in weld shape.

Method used

A multi-feature fusion method is used to obtain the feature sequence of two-dimensional images and three-dimensional point clouds, and combine the attention mechanism and long short-term memory network to perform short-term adjacent frame feature fusion to generate the final weld recognition result.

Benefits of technology

It improves the accuracy and robustness of weld seam recognition, reduces the impact of environmental interference on weld seam recognition results, and can better track the weld seam change process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691799A
    Figure CN118691799A
Patent Text Reader

Abstract

The invention discloses a workpiece welding seam recognition method, system and device based on multi-feature fusion and a medium, and the method comprises the steps that multiple frames of two-dimensional images and multiple frames of three-dimensional point clouds corresponding to a to-be-detected workpiece in the welding process are obtained, and the multiple frames of two-dimensional images and the multiple frames of three-dimensional point clouds have a time corresponding relation; performing feature extraction on the multiple frames of two-dimensional images to obtain a plurality of image feature sequences; performing feature extraction on the multi-frame three-dimensional point clouds to obtain a plurality of point cloud feature sequences; according to a time corresponding relation, fusing the plurality of image feature sequences and the plurality of point cloud feature sequences to obtain a plurality of initial fusion feature sequences; performing short-time adjacent frame fusion on the plurality of initial fusion feature sequences by adopting an attention mechanism to obtain a plurality of final fusion feature sequences; and detecting the plurality of final fusion feature sequences to obtain a plurality of weld joint recognition results. According to the invention, the accuracy and robustness of weld joint identification 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 recognition method, system, equipment and medium based on multi-feature fusion. Background Art

[0002] At present, welding technology has become an indispensable key process in the industrial field. With the development of production and the advancement of science and technology, its application scope covers aviation, nuclear industry, shipbuilding, construction and machinery manufacturing. Welding technology refers to heating metal or non-metal materials to a molten state, then cooling and combining them together to achieve a strong connection. It is suitable for the manufacture and repair of various structures.

[0003] With the continuous evolution of welding technology, welding robots have become the key representative of welding automation. They are equipped with a weld seam recognition system, which automatically adjusts the position of the welding gun by real-time monitoring of the weld seam position, so that the welding gun always welds along the weld seam, ensuring the consistency and stability of welding quality. However, the existing weld seam recognition system mainly detects the current frame image collected by the visual sensor carried by the welding robot, which easily leads to low accuracy of the weld seam recognition result. Summary of the invention

[0004] The present invention provides a workpiece weld identification method, system, equipment and medium based on multi-feature fusion to solve one or more technical problems existing in the prior art and at least provide a beneficial option or create conditions.

[0005] In a first aspect, a workpiece weld recognition method based on multi-feature fusion is provided, the method comprising:

[0006] Acquire multiple frames of two-dimensional images and multiple frames of three-dimensional point clouds corresponding to the workpiece to be measured during the welding process, wherein there is a time correspondence relationship between the multiple frames of two-dimensional images and the multiple frames of three-dimensional point clouds;

[0007] Extracting features from the multiple frames of two-dimensional images to obtain multiple image feature sequences;

[0008] Extracting features from the multiple frames of three-dimensional point clouds to obtain multiple point cloud feature sequences;

[0009] According to the time correspondence, the plurality of image feature sequences and the plurality of point cloud feature sequences are fused to obtain a plurality of initial fused feature sequences;

[0010] Using an attention mechanism to fuse the multiple initial fused feature sequences in adjacent frames in a short time to obtain multiple final fused feature sequences;

[0011] The multiple final fusion feature sequences are detected to obtain multiple weld recognition results.

[0012] Furthermore, the step of extracting features from the multiple frames of two-dimensional images to obtain multiple image feature sequences includes:

[0013] For any frame of two-dimensional image, a convolutional neural network is used to extract features of the frame of two-dimensional image to obtain several feature maps;

[0014] The average pooling operation is used to convert the several feature maps into several feature vectors of fixed length to form an image feature sequence.

[0015] Furthermore, the step of extracting features from the multiple frames of three-dimensional point clouds to obtain multiple point cloud feature sequences includes:

[0016] For any frame of 3D point cloud, the 3D point cloud of the frame is layered sampled to obtain multiple point cloud sets;

[0017] Using a multi-layer perceptron to extract features from the plurality of point cloud sets to obtain a plurality of local features;

[0018] The multiple local features are aggregated by using upsampling operations and maximum pooling operations to obtain a point cloud feature sequence.

[0019] Furthermore, the fusing the multiple image feature sequences and the multiple point cloud feature sequences according to the time correspondence to obtain multiple initial fused feature sequences includes:

[0020] For an image feature sequence and a point cloud feature sequence with the same association time, a fully connected layer that introduces a nonlinear activation function is used to fuse the image feature sequence and the point cloud feature sequence to obtain an initial fused feature sequence.

[0021] Furthermore, the use of the attention mechanism to fuse the multiple initial fused feature sequences into short-term adjacent frames to obtain multiple final fused feature sequences includes:

[0022] The initial fusion feature sequence with the earliest association time is taken as its corresponding final fusion feature sequence;

[0023] For two initial fusion feature sequences with adjacent association times, the initial fusion feature sequence with an earlier association time is recorded as a first initial fusion feature sequence, and the initial fusion feature sequence with a later association time is recorded as a second initial fusion feature sequence, and a similarity matrix between the two initial fusion feature sequences is determined;

[0024] Multiplying the similarity matrix by the first initial fused feature sequence to obtain a reconstructed fused feature sequence;

[0025] A weighted sum is performed on the reconstructed fusion feature sequence and the second initial fusion feature sequence to obtain a final fusion feature sequence corresponding to the second initial fusion feature sequence.

[0026] Furthermore, the detecting the multiple final fusion feature sequences to obtain multiple weld recognition results includes:

[0027] Using a target detection network to process the multiple final fusion feature sequences to obtain multiple initial weld recognition results;

[0028] The multiple initial weld recognition results are corrected using a long short-term memory network to obtain multiple final weld recognition results.

[0029] Furthermore, the target detection network includes a bounding box regression layer and a category prediction layer, and the target detection network is used to process the multiple final fusion feature sequences to obtain multiple initial weld recognition results including:

[0030] For any final fused feature sequence, the final fused feature sequence is processed using the bounding box regression layer to obtain a plurality of position parameters corresponding to a plurality of target bounding boxes;

[0031] The final fused feature sequence is processed by the category prediction layer to obtain a plurality of category information corresponding to the plurality of target bounding boxes, and then all feature subsequences corresponding to all target bounding boxes belonging to the weld category are extracted from the final fused feature sequence;

[0032] All the feature subsequences are processed by morphological operations to obtain all shape parameters corresponding to all the target bounding boxes, and then together with all position parameters corresponding to all the target bounding boxes, an initial weld recognition result is generated.

[0033] In a second aspect, a workpiece weld recognition system based on multi-feature fusion is provided, the system comprising:

[0034] The first module is used to obtain multiple frames of two-dimensional images and multiple frames of three-dimensional point clouds corresponding to the workpiece to be tested during the welding process, and there is a time correspondence relationship between the multiple frames of two-dimensional images and the multiple frames of three-dimensional point clouds;

[0035] The second module is used to extract features from the multiple frames of two-dimensional images to obtain multiple image feature sequences;

[0036] The third module is used to extract features from the multi-frame three-dimensional point clouds to obtain multiple point cloud feature sequences;

[0037] A fourth module is used to fuse the multiple image feature sequences and the multiple point cloud feature sequences according to the time correspondence to obtain multiple initial fused feature sequences;

[0038] A fifth module is used to use an attention mechanism to fuse the multiple initial fused feature sequences in short time adjacent frames to obtain multiple final fused feature sequences;

[0039] The sixth module is used to detect the multiple final fusion feature sequences to obtain multiple weld recognition results.

[0040] 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 recognition method based on multi-feature fusion as described in the first aspect.

[0041] 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 identifying a workpiece weld based on multi-feature fusion as described in the first aspect is implemented.

[0042] The present invention has at least the following beneficial effects: by adopting the method of feature fusion of two-dimensional images and three-dimensional point clouds, the limitation of single data source in traditional weld recognition technology can be overcome, and by adopting the short-term feature fusion method based on attention mechanism and long short-term memory network, the feature information in different time dimensions can be fully utilized to better track the change process of the weld, and the influence of environmental interference in the welding process on the weld recognition result can be reduced as much as possible, which helps to improve the accuracy and robustness of weld recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] 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 on the technical solution of the present invention.

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

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

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

[0047] 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.

[0048] 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.

[0049] The existing weld recognition system configured by the welding robot has the following defects: First, the image collected by the visual sensor carried by the welding robot is easily disturbed by environmental factors, such as smoke, sparks and spatter that are easy to appear during the welding process, resulting in a decrease in image quality, which is mainly reflected in the blurred weld contour; the welding robot has an incompletely smooth movement during the welding process, which causes the visual sensor to shake, further increasing the overall blur and noise of the image; second, the timeliness of the system is limited, only considering the instantaneous current frame image, lacking the analysis of global context information, and it is difficult to capture the shape changes and overall evolution of the weld at different time points; the system has poor fault tolerance, and the ability to handle noise and occasional interference in the image is limited, which easily leads to erroneous weld recognition. Based on this, the embodiment of the present invention provides a workpiece weld recognition method, system, device and medium based on multi-feature fusion to overcome the defects of the existing weld recognition system as much as possible.

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

[0051] Convolutional Neural Networks (CNN) is a type of feedforward neural network with deep structure and convolutional calculation. It has the ability of representation learning and can classify input information in a translation-invariant manner according to its hierarchical structure. It is constructed by imitating the visual perception mechanism of organisms and can perform supervised and unsupervised learning. The convolution kernel parameter sharing in the hidden layer and the sparsity of the inter-layer connection enable the convolutional neural network to learn grid features such as pixels and audio with a smaller amount of computation, with stable results and without additional feature engineering requirements for the data.

[0052] Multilayer Perceptron (MLP) is a feed-forward artificial neural network model that maps multiple input data sets to a single output data set.

[0053] Average pooling refers to taking the average value of all elements in each local area in the input feature map as the output value corresponding to the local area.

[0054] 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.

[0055] Long Short-Term Memory (LSTM) is a deep learning model for processing time series data. It is an improvement on the Recurrent Neural Network (RNN) and aims to solve the gradient vanishing and gradient exploding problems in RNN, while being able to better capture long-term dependencies.

[0056] The core idea of ​​LSTM is to introduce a gate structure to selectively control the flow of information, which is composed of an input gate, a forget gate and an output gate, wherein: the input gate combines the current input with the previous memory state by using a sigmoid activation function to obtain a value between 0 and 1, and then uses the tanh activation function to take the combination of the current input and the memory state as a new memory candidate value; the forget gate evaluates the combination of the previous memory state and the current input by using a sigmoid activation function to obtain a value between 0 and 1, and then multiplies the value by the previous memory state to determine the information that needs to be retained; the output gate evaluates the combination of the current input and the memory state by using a sigmoid activation function to obtain a value between 0 and 1, and then uses the tanh activation function to process the current memory state and multiply it by the value to determine the current output of the LSTM.

[0057] Please refer to Figure 1 , Figure 1 1 is a flow chart of a workpiece weld recognition method based on multi-feature fusion provided by an embodiment of the present invention, the method comprising the following steps:

[0058] Step S110, obtaining a plurality of frames of two-dimensional images and a plurality of frames of three-dimensional point clouds corresponding to the workpiece to be measured during the welding process, wherein there is a time correspondence relationship between the plurality of frames of two-dimensional images and the plurality of frames of three-dimensional point clouds;

[0059] Step S120, performing feature extraction on the multiple frames of two-dimensional images to obtain multiple image feature sequences;

[0060] Step S130, performing feature extraction on the multi-frame three-dimensional point clouds to obtain a plurality of point cloud feature sequences;

[0061] Step S140: fusing the plurality of image feature sequences and the plurality of point cloud feature sequences according to the time correspondence to obtain a plurality of initial fused feature sequences;

[0062] Step S150, using an attention mechanism to fuse the multiple initial fused feature sequences in short time adjacent frames to obtain multiple final fused feature sequences;

[0063] Step S160: Detect the multiple final fusion feature sequences to obtain multiple weld recognition results.

[0064] In some embodiments of the present invention, a welding robot is used to complete the welding task of the workpiece to be tested. A point cloud acquisition device and an image acquisition device are arranged 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 implementation method of the above step S110 is: controlling the welding robot to weld the weld on the workpiece to be tested according to the teaching trajectory input by the user, and controlling the point cloud acquisition device to acquire a frame of three-dimensional point cloud toward the welding surface of the workpiece to be tested in a timing manner during the welding process, and controlling the image acquisition device to acquire a frame of two-dimensional image toward the welding surface of the workpiece to be tested. Multiple frames of three-dimensional point clouds and multiple frames of two-dimensional images with a time correspondence relationship can be obtained through multiple timing control operations. The multiple frames of three-dimensional point clouds are recorded as {P1, P2, ..., P N}, the multiple frames of two-dimensional images are recorded in the order of acquisition time from earliest to latest as {I1, I2, ..., I N}, and a frame of three-dimensional point cloud P i The acquisition time of a two-dimensional image I i The acquisition time is the same, i=1,2,...,N.

[0065] In some embodiments of the present invention, any one of the two-dimensional images I included in the multiple two-dimensional images is used. i For example, the implementation process of the above step S120 includes but is not limited to the following:

[0066] Step S121: the two-dimensional image I i Input into a convolutional neural network for feature extraction to obtain several feature maps; wherein the convolutional neural network preferably adopts a pre-trained ResNet residual network, and mainly calculates the feature representation of the frame of two-dimensional image in the network by forward propagation to capture features from low-level to high-level;

[0067] Step S122: for each feature map included in the plurality of feature maps, convert the feature map into a feature vector of fixed length by average pooling, and then combine the converted feature vectors into an image feature sequence and record it as IS i ;

[0068] After processing each frame of the two-dimensional image contained in the multiple frames of two-dimensional images according to the above steps S121 to S122, multiple image feature sequences can be generated and recorded as {IS1, IS2, ..., IS N}.

[0069] In some embodiments of the present invention, any one frame of three-dimensional point cloud P included in the multiple frames of three-dimensional point cloud is used. i For example, the above step S130 actually uses the PointNet++ algorithm to implement point cloud feature extraction, and the corresponding implementation process includes but is not limited to the following:

[0070] Step S131: Calculate the three-dimensional point cloud P of the frame i Perform layered sampling to transform the frame 3D point cloud P i Decompose into multiple different point cloud sets;

[0071] Step S132: for each point cloud set included in the plurality of point cloud sets, input each point cloud set into a multi-layer perceptron for feature extraction to obtain local features;

[0072] Step S133: Aggregate the obtained multiple local features by upsampling and maximum pooling to obtain a point cloud feature sequence containing key information of the weld and record it as PS i ;

[0073] After processing each frame of the three-dimensional point cloud contained in the multiple frames of three-dimensional point cloud according to the above steps S131 to S133, multiple point cloud feature sequences can be generated and recorded as {PS1, PS2, ..., PS N}.

[0074] In some embodiments of the present invention, any one of the image feature sequences IS included in the plurality of image feature sequences is used. i For example, obtain the image feature sequence IS from the multiple point cloud feature sequences i The point cloud feature sequence PS with the same association time i The implementation process of the above step S140 includes but is not limited to the following:

[0075] Step S141, setting various basic parameters required for the fully connected layer, including the bias parameter b, the weight matrix W1 for the image feature sequence, and the weight matrix W2 for the point cloud feature sequence, and limiting the nonlinear activation function used by the fully connected layer to a ReLU (Rectified Linear Unit) function;

[0076] Step S142: convert the image feature sequence IS i And the point cloud feature sequence PS i Input to the fully connected layer for fusion to obtain the initial fusion feature sequence and record it as The mathematical expression used in this fusion process is: f refers to the ReLU function;

[0077] According to the above step S142, the multiple point cloud feature sequences and the multiple image feature sequences are processed to generate multiple initial fusion feature sequences and recorded as

[0078] In some embodiments of the present invention, the initial fusion feature sequence with the earliest association time is It is directly defined as the final fusion feature sequence FS1 associated with it, and the initial fusion feature sequence with an associated time adjacent relationship among the multiple initial fusion feature sequences and the initial fusion feature sequence For example, the implementation process of the above step S150 includes but is not limited to the following:

[0079] Step S151: Calculate the initial fusion feature sequence With the initial fusion feature sequence This calculation process preferably uses a cosine similarity function, and each element in the similarity matrix represents the initial fusion feature sequence A certain feature data in and the initial fusion feature sequence The similarity between certain feature data in ;

[0080] Step S152: The similarity matrix and the initial fusion feature sequence Multiply them to obtain the reconstructed fusion feature sequence and record it as FS′ i-1 ;

[0081] Step S153: reconstruct the fusion feature sequence FS′ i-1 With the initial fusion feature sequence Perform weighted summation to obtain the initial fusion feature sequence The associated final fusion feature sequence FS i , the mathematical expression used in this weighted summation process is: a is the pre-set fusion weight;

[0082] By processing the multiple initial fusion feature sequences according to the above steps S151 to S153, multiple final fusion feature sequences can be generated and recorded as {FS1, FS2, ..., FS N}.

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

[0084] Step S161, processing the multiple final fusion feature sequences through a target detection network to obtain a corresponding multiple initial weld recognition results;

[0085] The target detection network preferably adopts a pre-trained YOLO (You Only Look Once) series network, such as a YOLOv3 network, a YOLOv5s network, etc.; the target detection network includes a bounding box regression layer and a category prediction layer, the bounding box regression layer is used to detect the bounding box of the target object and learn to predict its position parameters, and the category prediction layer is used to learn to predict the category parameters of the target object in each bounding box;

[0086] Step S162: input the multiple initial weld recognition results into the long short-term memory network for correction to obtain the final multiple weld recognition results.

[0087] More specifically, any one of the final fusion feature sequences FS included in the multiple final fusion feature sequences i For example, the implementation process of the above step S161 includes but is not limited to the following:

[0088] Step S161.1: The final fusion feature sequence FS i Inputting into the bounding box regression layer for processing to obtain a number of position parameters associated with a number of target bounding boxes;

[0089] Step S161.2: According to the plurality of position parameters, the final fusion feature sequence FS i Inputting into the category prediction layer for processing to obtain a plurality of category information associated with the plurality of target bounding boxes;

[0090] Step S161.3, determining all target bounding boxes belonging to the weld category among the target bounding boxes according to the plurality of category information, and then filtering out all position parameters associated with all the target bounding boxes from the plurality of position parameters;

[0091] Step S161.4: According to all the position parameters, from the final fusion feature sequence FS i Filter out all feature subsequences associated with all target bounding boxes;

[0092] Step S161.5, performing morphological operations, such as dilation or erosion, on all the feature subsequences respectively to obtain all shape parameters associated with all the target bounding boxes;

[0093] Step S161.6: for each target bounding box included in all the target bounding boxes, bind the associated position parameters and shape parameters to each target bounding box as the detection result of each target bounding box, thereby forming the final fusion feature sequence FS i The associated initial weld identification result is recorded as

[0094] By processing the multiple final fusion feature sequences according to the above steps S161.1 to S161.6, multiple initial weld recognition results can be generated and recorded as

[0095] More specifically, the above step S162 is proposed for the purpose of minimizing the impact of environmental interference (such as equipment vibration, welding smoke, rust, burrs, oil stains on the steel surface, etc.) on the weld recognition result in actual applications. The corresponding implementation method is as follows:

[0096] The multiple initial weld recognition results are originally arranged in the order of association time from the earliest to the latest. The multiple initial weld recognition results are constructed into a sequence, and then the sequence is input into a pre-trained long short-term memory network to learn the feature relationship and feature change trend between adjacent moments. That is, the initial weld recognition result with the earliest association time is It is directly defined as the final weld recognition result T1 associated with it, and for the initial weld recognition results that have an associated time adjacent relationship among the multiple initial weld recognition results and initial weld identification results The internal structure of the long short-term memory network will be based on the initial weld recognition results Adaptively smooth the initial weld identification result To obtain the initial weld recognition result The associated final weld identification result T i According to this smoothing method, the final multiple weld recognition results can be obtained and recorded as {T1, T2, ..., T N}.

[0097] In an embodiment of the present invention, by adopting a method of feature fusion of two-dimensional images and three-dimensional point clouds, the limitation of a single data source in traditional weld recognition technology can be overcome. By adopting a short-term feature fusion method based on an attention mechanism and a long short-term memory network, the feature information in different time dimensions can be fully utilized to better track the change process of the weld, and the influence of environmental interference in the welding process on the weld recognition result can be reduced as much as possible, which helps to improve the accuracy and robustness of weld recognition.

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

[0099] The first module 210 is used to obtain multiple frames of three-dimensional point clouds and multiple frames of two-dimensional images associated with the workpiece to be measured during the welding process, and there is a time correspondence relationship between the multiple frames of three-dimensional point clouds and the multiple frames of two-dimensional images;

[0100] The second module 220 is used to extract features from the multiple frames of two-dimensional images to obtain corresponding multiple image feature sequences;

[0101] The third module 230 is used to extract features from the multiple frames of three-dimensional point clouds to obtain corresponding multiple point cloud feature sequences;

[0102] The fourth module 240 is used to fuse the multiple point cloud feature sequences and the multiple image feature sequences according to a time correspondence relationship to obtain multiple initial fused feature sequences;

[0103] A fifth module 250 is used to perform short-term adjacent frame fusion on the multiple initial fusion feature sequences through an attention mechanism to obtain a corresponding multiple final fusion feature sequences;

[0104] The sixth module 260 is used to detect the multiple final fusion feature sequences to obtain corresponding multiple weld recognition results.

[0105] 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.

[0106] 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 recognition 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.

[0107] 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 3 The 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.

[0108] 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.

[0109] 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 recognition method based on multi-feature fusion in the above embodiment.

[0110] 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 recognition method based on multi-feature fusion, characterized in that: The method comprises: Acquire multiple frames of two-dimensional images and multiple frames of three-dimensional point clouds corresponding to the workpiece to be measured during the welding process, wherein there is a time correspondence relationship between the multiple frames of two-dimensional images and the multiple frames of three-dimensional point clouds; Extracting features from the multiple frames of two-dimensional images to obtain multiple image feature sequences; Extracting features from the multiple frames of three-dimensional point clouds to obtain multiple point cloud feature sequences; According to the time correspondence, the plurality of image feature sequences and the plurality of point cloud feature sequences are fused to obtain a plurality of initial fused feature sequences; Using an attention mechanism to fuse the multiple initial fused feature sequences in adjacent frames in a short time to obtain multiple final fused feature sequences; The multiple final fusion feature sequences are detected to obtain multiple weld recognition results.

2. The workpiece weld recognition method based on multi-feature fusion according to claim 1 is characterized in that: The extracting features from the multiple frames of two-dimensional images to obtain multiple image feature sequences comprises: For any frame of two-dimensional image, a convolutional neural network is used to extract features of the frame of two-dimensional image to obtain several feature maps; The average pooling operation is used to convert the several feature maps into several feature vectors of fixed length to form an image feature sequence.

3. The workpiece weld recognition method based on multi-feature fusion according to claim 1 is characterized in that: The extracting features of the multi-frame three-dimensional point clouds to obtain a plurality of point cloud feature sequences comprises: For any frame of 3D point cloud, the 3D point cloud of the frame is layered sampled to obtain multiple point cloud sets; Using a multi-layer perceptron to extract features from the plurality of point cloud sets to obtain a plurality of local features; The multiple local features are aggregated by using upsampling operations and maximum pooling operations to obtain a point cloud feature sequence.

4. The workpiece weld recognition method based on multi-feature fusion according to claim 1 is characterized in that: The step of fusing the plurality of image feature sequences and the plurality of point cloud feature sequences according to the time correspondence to obtain a plurality of initial fused feature sequences comprises: For an image feature sequence and a point cloud feature sequence with the same association time, a fully connected layer that introduces a nonlinear activation function is used to fuse the image feature sequence and the point cloud feature sequence to obtain an initial fused feature sequence.

5. The workpiece weld recognition method based on multi-feature fusion according to claim 1 is characterized in that: The use of the attention mechanism to fuse the multiple initial fusion feature sequences into short-term adjacent frames to obtain multiple final fusion feature sequences includes: The initial fusion feature sequence with the earliest association time is taken as its corresponding final fusion feature sequence; For two initial fusion feature sequences with adjacent association times, the initial fusion feature sequence with an earlier association time is recorded as a first initial fusion feature sequence, and the initial fusion feature sequence with a later association time is recorded as a second initial fusion feature sequence, and a similarity matrix between the two initial fusion feature sequences is determined; Multiplying the similarity matrix by the first initial fused feature sequence to obtain a reconstructed fused feature sequence; A weighted sum is performed on the reconstructed fusion feature sequence and the second initial fusion feature sequence to obtain a final fusion feature sequence corresponding to the second initial fusion feature sequence.

6. The workpiece weld recognition method based on multi-feature fusion according to claim 1 is characterized in that: The detecting of the multiple final fusion feature sequences to obtain multiple weld recognition results includes: Using a target detection network to process the multiple final fusion feature sequences to obtain multiple initial weld recognition results; The multiple initial weld recognition results are corrected using a long short-term memory network to obtain multiple final weld recognition results.

7. The workpiece weld recognition method based on multi-feature fusion according to claim 6 is characterized in that: The target detection network includes a bounding box regression layer and a category prediction layer. The target detection network is used to process the multiple final fusion feature sequences to obtain multiple initial weld recognition results, including: For any final fused feature sequence, the bounding box regression layer is used to process the final fused feature sequence to obtain a plurality of position parameters corresponding to a plurality of target bounding boxes; The final fused feature sequence is processed by the category prediction layer to obtain a plurality of category information corresponding to the plurality of target bounding boxes, and then all feature subsequences corresponding to all target bounding boxes belonging to the weld category are extracted from the final fused feature sequence; All the feature subsequences are processed by morphological operations to obtain all shape parameters corresponding to all the target bounding boxes, and then together with all position parameters corresponding to all the target bounding boxes, an initial weld recognition result is generated.

8. A workpiece weld recognition system based on multi-feature fusion, characterized in that: The system comprises: The first module is used to obtain multiple frames of two-dimensional images and multiple frames of three-dimensional point clouds corresponding to the workpiece to be tested during the welding process, and there is a time correspondence relationship between the multiple frames of two-dimensional images and the multiple frames of three-dimensional point clouds; The second module is used to extract features from the multiple frames of two-dimensional images to obtain multiple image feature sequences; The third module is used to extract features from the multi-frame three-dimensional point clouds to obtain multiple point cloud feature sequences; A fourth module is used to fuse the multiple image feature sequences and the multiple point cloud feature sequences according to the time correspondence to obtain multiple initial fused feature sequences; A fifth module is used to use an attention mechanism to fuse the multiple initial fused feature sequences in short time adjacent frames to obtain multiple final fused feature sequences; The sixth module is used to detect the multiple final fusion feature sequences to obtain multiple weld recognition results.

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 recognition 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 recognition method based on multi-feature fusion as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Object description parameter generation method and deep learning model training method

    CN114677572A

  • Three-dimensional target detection method and system based on multi-modal fusion

    CN115937819A

  • Airplane automatic berthing method, system and equipment based on two-dimensional and three-dimensional identification

    CN117806336A

  • Method and device for determining distance between teeth, electronic equipment and readable storage medium

    CN117911641A