A weld quality self-assessment method and system based on multi-dimensional images

Through multi-dimensional image processing and neural network models, weld image feature information is extracted, which solves the problem of insufficient accuracy and robustness of the traditional CNN model in weld quality assessment, and achieves more efficient weld quality assessment.

CN118470000BActive Publication Date: 2024-10-18INST OF INTELLIGENT MFG GUANGDONG ACAD OF SCI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410909865.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-18
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

The traditional CNN model has insufficient accuracy and robustness in weld quality assessment and cannot effectively adapt to different industrial production environments.

Method used

A self-assessment method for weld quality based on multi-dimensional images is adopted. By acquiring weld images taken from different dimensions and angles, the neural network model is used to process these images, extract image feature information, and perform quality assessment through convolution layers and logical reasoning layers. , improve the accuracy and robustness of evaluation.

Benefits of technology

It achieves a more accurate and robust assessment of weld quality, can adapt to different industrial production environments, and improves the efficiency and accuracy of weld quality assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470000B_ABST
    Figure CN118470000B_ABST
Patent Text Reader

Abstract

The present invention provides a weld quality self-assessment method and system based on multidimensional images, which belongs to the field of automated welding technology and is applied to electronic equipment. The method comprises: the electronic equipment obtains M weld images, the M weld images are images taken from different dimensions / angles for the weld, and M is an integer greater than or equal to 3; the electronic equipment processes the M weld images through a neural network model to obtain image feature information sets of the M weld images, a total of M image feature information sets, and the scales of the image feature information sets of any two weld images in the M weld images are different; the electronic equipment processes the M image feature information sets through a neural network model to obtain a self-assessment result of the weld quality. By adopting the method of the present invention, it is possible to evaluate the weld quality from different dimensions, and the self-assessment result of the weld quality can be obtained to be more accurate and more robust.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automated welding technology, and in particular to a weld quality self-assessment method and system based on multi-dimensional images. Background Art

[0002] With the development of industrial automation and intelligent manufacturing technology, weld quality assessment has become increasingly important in the industrial field. Weld quality assessment is a key industrial issue because it is directly related to the quality and safety of industrial products. Traditional assessment methods usually rely on expert experience and visual inspection, which may be subjective and inefficient. Therefore, it is of great significance to develop an automated, accurate and efficient weld quality assessment method. For example, convolutional layers and pooling layers can be used to extract feature information from weld images, and then the extracted feature information is input into the fully connected layer for quality assessment and defect identification. In order to improve the robustness of the neural network model, noise and interference can also be introduced during the training process so that the model can adapt to different industrial production environments.

[0003] However, practical applications have found that although noise and interference are introduced, the accuracy and robustness of traditional CNN models in evaluating weld quality are still not good enough. Summary of the invention

[0004] The embodiments of the present application provide a weld quality self-assessment method and system based on multi-dimensional images, so as to improve the accuracy and robustness of weld quality assessment.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, a weld quality self-assessment method based on multidimensional images is provided, which is applied to electronic devices, and the method includes: the electronic device obtains M weld images, where the M weld images are images taken of the weld from different dimensions / angles, and M is an integer greater than or equal to 3; the electronic device processes the M weld images through a neural network model to obtain image feature information sets of the M weld images, a total of M image feature information sets, and the scales of the image feature information sets of any two weld images in the M weld images are different; the electronic device processes the M image feature information sets through a neural network model to obtain a self-assessment result of the weld quality.

[0007] Optionally, the electronic device processes M weld images through a neural network model to obtain a set of image feature information for each of the M weld images, including: the electronic device determines that each of the M weld images only contains a sub-weld image of the area where the weld is located, for a total of M sub-weld images; the electronic device performs convolution of different scales on the M sub-weld images through the convolution layer of the neural network model to obtain M image feature information sets.

[0008] Optionally, for the i-th weld image among the M weld images, in the process of i traversing from 1 to M, the angle between the shooting direction of the i-th weld image and the surface where the weld is located is first increased from less than 90° to 90°, and then decreased from 90° to less than 90°. On this basis, the electronic device performs convolutions of different scales on the M sub-weld images through the convolution layer of the neural network model to obtain M sets of image feature information, including:

[0009] In the case of i=1, the shooting direction of the first sub-weld image in the M weld images has an angle less than 90° with the surface where the weld is located. For the first sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #1 to convolve the first sub-weld image through the convolution layer of the neural network model to obtain an image feature information set of the first sub-weld image;

[0010] In the case where i=[M / 2]-1 is incremented with a step size of 1, [] represents rounding up or rounding down, the angle between the shooting direction of the [M / 2]-1th sub-weld image in the M weld images and the surface where the weld is located is less than 90°, and is greater than the angle between the shooting direction of the first weld image and the surface where the weld is located, for the [M / 2]-1th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #[M / 2]-1 through the convolution layer of the neural network model to convolve the [M / 2]-1th sub-weld image to obtain an image feature information set of the [M / 2]-1th sub-weld image; the size of the convolution kernel #[M / 2]-1 is greater than the size of the convolution kernel #1;

[0011] When i=[M / 2] is incremented with a step size of 1, the shooting direction of the [M / 2]th sub-weld image in the M weld images has an angle of 90° with the surface where the weld is located. For the [M / 2]th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #[M / 2] to convolve the [M / 2]th sub-weld image through the convolution layer of the neural network model to obtain an image feature information set of the [M / 2]th sub-weld image, and the size of the convolution kernel #[M / 2] is larger than the size of the convolution kernel #[M / 2]-1;

[0012] When i=[M / 2]+1 is incremented with a step size of 1, the shooting direction of the [M / 2]+1th sub-weld image in the M weld images has an angle less than 90° with the surface where the weld is located. For the [M / 2]+1th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #[M / 2]+1 through the convolution layer of the neural network model to convolve the [M / 2]+1th sub-weld image to obtain an image feature information set of the [M / 2]+1th sub-weld image, and the size of the convolution kernel #[M / 2]+1 is smaller than the size of the convolution kernel #[M / 2];

[0013] By analogy, when i=M is ​​incremented with a step size of 1, the angle between the shooting direction of the M-th sub-weld image in the M weld images and the surface where the weld is located is less than 90°, and is less than the angle between the shooting direction of the [M / 2]+1-th weld image and the surface where the weld is located. For the M-th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #M through the convolution layer of the neural network model to convolve the M-th sub-weld image to obtain an image feature information set of the M-th sub-weld image, and the size of the convolution kernel #M is less than the size of the convolution kernel #[M / 2]+1;

[0014] So far, a total of M image feature information sets are obtained.

[0015] Optionally, from convolution kernel #1 to convolution kernel #[M / 2]-1, convolution kernel #[M / 2], convolution kernel #[M / 2]+1, and then to convolution kernel #M, the size of the convolution kernel increases from the initial size of convolution kernel #1 to the size of convolution kernel #[M / 2] by first increasing the row size and then increasing the column size, and then the size of the convolution kernel #[M / 2] is reduced to the size of the convolution kernel #M by first reducing the column size and then reducing the row size; or, the size of the convolution kernel increases from the initial size of convolution kernel #1 to the size of convolution kernel #[M / 2] by first increasing the column size and then increasing the row size, and then the size of the convolution kernel #[M / 2] is reduced to the size of the convolution kernel #M by first reducing the row size and then reducing the column size.

[0016] Optionally, the electronic device determines that each of the M weld images only contains a sub-weld image of the area where the weld is located, totaling M sub-weld images, including: the electronic device determines an edge area of ​​the weld contained in each of the M weld images in the image, that is, obtains the edge area of ​​each of the M weld images; the electronic device determines, based on the edge area of ​​each of the M weld images, that each of the M weld images only contains a sub-weld image of the area where the weld is located, totaling M sub-weld images.

[0017] Optionally, the electronic device processes M image feature information sets through a neural network model to obtain a self-assessment result of the weld quality, including: the electronic device fuses the M image feature information sets in an extraction manner to obtain a fused image feature information set; the electronic device inputs the fused image feature information set into the logical reasoning layer of the neural network model for processing to obtain a self-assessment result of the weld quality, and the logical reasoning layer sequentially includes an activation layer, a pooling layer, and a fully connected layer.

[0018] Optionally, the electronic device fuses M image feature information sets in an extraction manner to obtain a fused image feature information set, including: for the i-th image feature information set in the M image feature information sets, the electronic device extracts part of the image feature information subset #i from the i-th image feature information set according to the size of the convolution kernel #i used in the convolution of the i-th sub-weld image in the M weld images, and when i traverses from 1 to M, a total of M image feature information subsets are obtained, and the number of image feature information in the image feature information subset #i is negatively correlated with the size of the convolution kernel #i; the electronic device fuses the M image feature information subsets into one to obtain a fused image feature information set.

[0019] Optionally, the electronic device extracts part of the image feature information subset #i from the ith image feature information set according to the size of the convolution kernel #i used when convolving the ith sub-weld image among the M weld images, including: the electronic device determines a step size #i for extracting the image feature information set according to the size of the convolution kernel #i used when convolving the ith sub-weld image among the M weld images, and the size of the step size #i is negatively correlated with the size of the convolution kernel #i; the electronic device extracts the image feature information set from the ith image feature information set in a manner that two adjacent extracted image feature information sets are separated by a step size #i of image feature information sets, to obtain the image feature information subset #i.

[0020] Optionally, the electronic device merges M image feature information subsets into one to obtain a merged image feature information set, including: the electronic device interweaves the image feature information located at the tail position of the i-th image feature information subset in the M image feature information subsets with the image feature information located at the head position of the i+1-th image feature information subset in the M image feature information subsets, and obtains the merged image feature information set when i traverses 1 to M-1.

[0021] In a second aspect, a weld quality self-assessment system based on multidimensional images is provided, the system includes an electronic device, and the system is configured as follows: the electronic device obtains M weld images, the M weld images are images taken of the weld from different dimensions / angles, and M is an integer greater than or equal to 3; the electronic device processes the M weld images through a neural network model to obtain image feature information sets of each of the M weld images, and the scales of the image feature information sets of any two of the M weld images are different; the electronic device processes the image feature information sets of each of the M weld images through a neural network model to obtain a self-assessment result of the weld quality.

[0022] Optionally, the electronic device processes M weld images through a neural network model to obtain a set of image feature information for each of the M weld images, including: the electronic device determines that each of the M weld images only contains a sub-weld image of the area where the weld is located, for a total of M sub-weld images; the electronic device performs convolution of different scales on the M sub-weld images through the convolution layer of the neural network model to obtain M image feature information sets.

[0023] Optionally, for the i-th weld image among the M weld images, in the process of i traversing from 1 to M, the angle between the shooting direction of the i-th weld image and the surface where the weld is located is first increased from less than 90° to 90°, and then decreased from 90° to less than 90°. On this basis, the electronic device performs convolutions of different scales on the M sub-weld images through the convolution layer of the neural network model to obtain M sets of image feature information, including:

[0024] In the case of i=1, the shooting direction of the first sub-weld image in the M weld images has an angle less than 90° with the surface where the weld is located. For the first sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #1 to convolve the first sub-weld image through the convolution layer of the neural network model to obtain an image feature information set of the first sub-weld image;

[0025] In the case where i=[M / 2]-1 is incremented with a step size of 1, [] represents rounding up or rounding down, the angle between the shooting direction of the [M / 2]-1th sub-weld image in the M weld images and the surface where the weld is located is less than 90°, and is greater than the angle between the shooting direction of the first weld image and the surface where the weld is located, for the [M / 2]-1th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #[M / 2]-1 through the convolution layer of the neural network model to convolve the [M / 2]-1th sub-weld image to obtain an image feature information set of the [M / 2]-1th sub-weld image; the size of the convolution kernel #[M / 2]-1 is greater than the size of the convolution kernel #1;

[0026] When i=[M / 2] is incremented with a step size of 1, the shooting direction of the [M / 2]th sub-weld image in the M weld images has an angle of 90° with the surface where the weld is located. For the [M / 2]th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #[M / 2] to convolve the [M / 2]th sub-weld image through the convolution layer of the neural network model to obtain an image feature information set of the [M / 2]th sub-weld image, and the size of the convolution kernel #[M / 2] is larger than the size of the convolution kernel #[M / 2]-1;

[0027] When i=[M / 2]+1 is incremented with a step size of 1, the shooting direction of the [M / 2]+1th sub-weld image in the M weld images has an angle less than 90° with the surface where the weld is located. For the [M / 2]+1th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #[M / 2]+1 through the convolution layer of the neural network model to convolve the [M / 2]+1th sub-weld image to obtain an image feature information set of the [M / 2]+1th sub-weld image, and the size of the convolution kernel #[M / 2]+1 is smaller than the size of the convolution kernel #[M / 2];

[0028] By analogy, when i=M is ​​incremented with a step size of 1, the angle between the shooting direction of the M-th sub-weld image in the M weld images and the surface where the weld is located is less than 90°, and is less than the angle between the shooting direction of the [M / 2]+1-th weld image and the surface where the weld is located. For the M-th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #M through the convolution layer of the neural network model to convolve the M-th sub-weld image to obtain an image feature information set of the M-th sub-weld image, and the size of the convolution kernel #M is less than the size of the convolution kernel #[M / 2]+1;

[0029] So far, a total of M image feature information sets are obtained.

[0030] Optionally, from convolution kernel #1 to convolution kernel #[M / 2]-1, convolution kernel #[M / 2], convolution kernel #[M / 2]+1, and then to convolution kernel #M, the size of the convolution kernel increases from the initial size of convolution kernel #1 to the size of convolution kernel #[M / 2] by first increasing the row size and then increasing the column size, and then the size of the convolution kernel #[M / 2] is reduced to the size of the convolution kernel #M by first reducing the column size and then reducing the row size; or, the size of the convolution kernel increases from the initial size of convolution kernel #1 to the size of convolution kernel #[M / 2] by first increasing the column size and then increasing the row size, and then the size of the convolution kernel #[M / 2] is reduced to the size of the convolution kernel #M by first reducing the row size and then reducing the column size.

[0031] Optionally, the electronic device determines that each of the M weld images only contains a sub-weld image of the area where the weld is located, totaling M sub-weld images, including: the electronic device determines an edge area of ​​the weld contained in each of the M weld images in the image, that is, obtains the edge area of ​​each of the M weld images; the electronic device determines, based on the edge area of ​​each of the M weld images, that each of the M weld images only contains a sub-weld image of the area where the weld is located, totaling M sub-weld images.

[0032] Optionally, the electronic device processes M image feature information sets through a neural network model to obtain a self-assessment result of the weld quality, including: the electronic device fuses the M image feature information sets in an extraction manner to obtain a fused image feature information set; the electronic device inputs the fused image feature information set into the logical reasoning layer of the neural network model for processing to obtain a self-assessment result of the weld quality, and the logical reasoning layer sequentially includes an activation layer, a pooling layer, and a fully connected layer.

[0033] Optionally, the electronic device fuses M image feature information sets in an extraction manner to obtain a fused image feature information set, including: for the i-th image feature information set in the M image feature information sets, the electronic device extracts part of the image feature information subset #i from the i-th image feature information set according to the size of the convolution kernel #i used in the convolution of the i-th sub-weld image in the M weld images, and when i traverses from 1 to M, a total of M image feature information subsets are obtained, and the number of image feature information in the image feature information subset #i is negatively correlated with the size of the convolution kernel #i; the electronic device fuses the M image feature information subsets into one to obtain a fused image feature information set.

[0034] Optionally, the electronic device extracts part of the image feature information subset #i from the ith image feature information set according to the size of the convolution kernel #i used when convolving the ith sub-weld image among the M weld images, including: the electronic device determines a step size #i for extracting the image feature information set according to the size of the convolution kernel #i used when convolving the ith sub-weld image among the M weld images, and the size of the step size #i is negatively correlated with the size of the convolution kernel #i; the electronic device extracts the image feature information set from the ith image feature information set in a manner that two adjacent extracted image feature information sets are separated by a step size #i of image feature information sets, to obtain the image feature information subset #i.

[0035] Optionally, the electronic device merges M image feature information subsets into one to obtain a merged image feature information set, including: the electronic device interweaves the image feature information located at the tail position of the i-th image feature information subset in the M image feature information subsets with the image feature information located at the head position of the i+1-th image feature information subset in the M image feature information subsets, and obtains the merged image feature information set when i traverses 1 to M-1.

[0036] In a third aspect, a computer-readable storage medium is provided, comprising: a computer program or instructions; when the computer program or instructions are executed on a computer, the computer is caused to execute the method described in the first aspect.

[0037] In summary, the above method and system have the following technical effects:

[0038] The electronic device can obtain images taken of the weld from different dimensions / angles, such as M weld images; thus, the electronic device processes the M weld images through a neural network model to obtain a set of image feature information of each of the M weld images, and the scales of the image feature information sets of any two of the M weld images are different. In this way, the electronic device processes the set of image feature information of each of the M weld images through a neural network model, thereby evaluating the weld quality from different dimensions, and obtaining a more accurate and robust self-assessment result of the weld quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A schematic diagram of a process flow of a weld quality self-assessment method based on multi-dimensional images provided in an embodiment of the present application;

[0040] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0042] The present application will present various aspects, embodiments or features around a system that may include multiple devices, components, modules, etc. It should be understood and appreciated that each system may include additional devices, components, modules, etc., and / or may not include all of the devices, components, modules, etc. discussed in conjunction with the figures. In addition, combinations of these schemes may also be used.

[0043] In addition, in the embodiments of the present application, words such as "exemplary" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "exemplary" is intended to present concepts in a concrete way.

[0044] In the embodiments of the present application, "information", "signal", "message", "channel" and "signaling" can sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings they intend to express are matched. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings they intend to express are matched. In addition, the " / " mentioned in the present application can be used to express an "or" relationship.

[0045] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0046] For example, Figure 1 The present invention provides a schematic flow chart of a method for self-assessment of weld quality based on multi-dimensional images. The method can be applied to electronic devices.

[0047] like Figure 1 As shown, the process of the weld quality self-assessment method based on multi-dimensional images is as follows:

[0048] S101, the electronic device obtains M weld seam images.

[0049] The M weld images are images taken of the weld from different dimensions / angles, and M is an integer greater than or equal to 3. For example, for the i-th weld image in the M weld images, in the process of i traversing from 1 to M, the angle between the shooting direction of the i-th weld image and the surface where the weld is located first increases from less than 90° to 90°, and then decreases from 90° to less than 90°, that is, the shooting device, such as a camera / camera, can gradually move from the shooting direction having an angle with the surface where the weld is located to the shooting direction being perpendicular to the surface where the weld is located, and then gradually move to the shooting direction having an angle with the surface where the weld is located. For example, M=5, and the angles between the shooting direction and the surface where the weld is located of the 5 weld images are 45°, 70°, 90°, -70°, and -45°, respectively.

[0050] The electronic device can obtain M weld images from the shooting device.

[0051] S102, the electronic device processes M weld images through a neural network model to obtain image feature information sets of the M weld images, a total of M image feature information sets, and the scales of the image feature information sets of any two weld images among the M weld images are different.

[0052] The neural network model may be a convolutional neural network model (CNN). The neural network model may be configured so that each processing layer is decoupled, that is, the information obtained by convolution is first output by the neural network model, rather than being directly input into the next layer by the neural network model, and then processed by the electronic device and then input into the next layer of the neural network model by the electronic device, and so on for other layers. The neural network model may be configured so that the size of the convolution kernel is adjustable, which may be manually adjusted or automatically adjusted, such as automatically adjusting the size of the convolution kernel according to the adjustment rules after each convolution process, so as to perform the next convolution process.

[0053] First, the electronic device can determine that each of the M weld images only contains a sub-weld image of the area where the weld is located, and there are a total of M sub-weld images. For example, the electronic device determines (such as by binarization or grayscale) the edge area of ​​the weld contained in each of the M weld images in the image, that is, obtains the edge area of ​​each of the M weld images; the electronic device determines, based on the edge area of ​​each of the M weld images, that each of the M weld images only contains a sub-weld image of the area where the weld is located, and there are a total of M sub-weld images. It can be understood that the edge area may not be a neat shape, and the electronic device can extract the sub-weld image from the weld image by determining the circumscribed rectangle of the edge area, that is, the image contained in each circumscribed rectangle in the weld image is the sub-weld image.

[0054] Secondly, the electronic device performs convolutions of different scales on the M sub-weld images through the convolution layer of the neural network model to obtain M sets of image feature information.

[0055] In the case of i=1, the shooting direction of the first sub-weld image in the M weld images has an angle less than 90° with the surface where the weld is located. For the first sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #1 to convolve the first sub-weld image through the convolution layer of the neural network model to obtain an image feature information set of the first sub-weld image;

[0056] In the case where i=[M / 2]-1 is incremented with a step size of 1, [] represents rounding up or rounding down, the angle between the shooting direction of the [M / 2]-1th sub-weld image in the M weld images and the surface where the weld is located is less than 90°, and is greater than the angle between the shooting direction of the first weld image and the surface where the weld is located, for the [M / 2]-1th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #[M / 2]-1 through the convolution layer of the neural network model to convolve the [M / 2]-1th sub-weld image to obtain an image feature information set of the [M / 2]-1th sub-weld image; the size of the convolution kernel #[M / 2]-1 is greater than the size of the convolution kernel #1;

[0057] When i=[M / 2] is incremented with a step size of 1, the shooting direction of the [M / 2]th sub-weld image in the M weld images has an angle of 90° with the surface where the weld is located. For the [M / 2]th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #[M / 2] to convolve the [M / 2]th sub-weld image through the convolution layer of the neural network model to obtain an image feature information set of the [M / 2]th sub-weld image, and the size of the convolution kernel #[M / 2] is larger than the size of the convolution kernel #[M / 2]-1;

[0058] When i=[M / 2]+1 is incremented with a step size of 1, the shooting direction of the [M / 2]+1th sub-weld image in the M weld images has an angle less than 90° with the surface where the weld is located. For the [M / 2]+1th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #[M / 2]+1 through the convolution layer of the neural network model to convolve the [M / 2]+1th sub-weld image to obtain an image feature information set of the [M / 2]+1th sub-weld image, and the size of the convolution kernel #[M / 2]+1 is smaller than the size of the convolution kernel #[M / 2];

[0059] By analogy, when i=M is ​​incremented with a step size of 1, the angle between the shooting direction of the M-th sub-weld image in the M weld images and the surface where the weld is located is less than 90°, and is less than the angle between the shooting direction of the [M / 2]+1-th weld image and the surface where the weld is located. For the M-th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #M through the convolution layer of the neural network model to convolve the M-th sub-weld image to obtain an image feature information set of the M-th sub-weld image, and the size of the convolution kernel #M is less than the size of the convolution kernel #[M / 2]+1;

[0060] So far, a total of M image feature information sets are obtained.

[0061] It can be understood that M sub-weld images can be input into the neural network model in sequence. After the convolution of the previous image is completed and the output result is obtained, the convolution and size of the neural network model are manually / automatically adjusted, and then the next image is input for convolution, and finally M image feature information sets output by the neural network model are obtained.

[0062] In addition, for the above M convolutions, the step size of the convolution remains unchanged.

[0063] That is to say, as the angle gradually increases to 90°, the size of the convolution kernel gradually increases. The smaller the size of the convolution kernel, and when the step size of the convolution remains unchanged, the more features are extracted by the convolution. For weld images with smaller angles between the shooting direction and the surface where the weld is located, since the weld is usually a three-dimensional structure rather than a completely planar structure, the information contained in the weld in the spatial scale can be richer, so a smaller convolution kernel can be used to extract more spatial scale information, so as to improve the accuracy and robustness of the evaluation results in the future. Of course, as the angle between the shooting direction and the surface where the weld is located gradually increases, and the information on its spatial scale becomes less and less, the size of the convolution kernel needs to be gradually increased to reduce the feature quantity, thereby reducing the computing power overhead.

[0064] Optionally, from convolution kernel #1 to convolution kernel #[M / 2]-1, convolution kernel #[M / 2], convolution kernel #[M / 2]+1, and then to convolution kernel #M, the size of the convolution kernel increases from the initial size of convolution kernel #1 to the size of convolution kernel #[M / 2] by first increasing the row size and then increasing the column size, and then the size of the convolution kernel #[M / 2] is reduced to the size of the convolution kernel #M by first reducing the column size and then reducing the row size; or, the size of the convolution kernel increases from the initial size of convolution kernel #1 to the size of convolution kernel #[M / 2] by first increasing the column size and then increasing the row size, and then the size of the convolution kernel #[M / 2] is reduced to the size of the convolution kernel #M by first reducing the row size and then reducing the column size. For example, M=5, convolution kernel #1 is 2*2, convolution kernel #2 is 4*2, convolution kernel #3 is 4*4, convolution kernel #4 is 4*2, and convolution kernel #5 is 2*2. The advantage of this is that the size of the convolution kernel increases linearly, which can reduce the training difficulty and complexity of the neural network model under different convolution kernel size changes.

[0065] S103, the electronic device processes M sets of image feature information through a neural network model to obtain a self-assessment result of the weld quality.

[0066] S1: The electronic device may fuse M image feature information sets in an extraction manner to obtain a fused image feature information set.

[0067] First, for the i-th image feature information set among the M image feature information sets, the electronic device extracts part of the image feature information subset #i from the i-th image feature information set according to the size of the convolution kernel #i used in the convolution of the i-th sub-weld image among the M weld images, and obtains M image feature information subsets in total when i traverses from 1 to M, and the number of image feature information in the image feature information subset #i is negatively correlated with the size of the convolution kernel #i. For example, the electronic device may determine the step size #i used to extract the image feature information set according to the size of the convolution kernel #i used in the convolution of the i-th sub-weld image among the M weld images, and the size of the step size #i is negatively correlated with the size of the convolution kernel #i, such as when the convolution kernel size is 2*2, the step size is 1, when the convolution kernel size is 4*2, the step size is 3, and when the convolution kernel size is 4*4, the step size is 5. The electronic device extracts the image feature information set from the i-th image feature information set in a manner of spacing a step of #i image feature information sets between two adjacent extracted image feature information sets to obtain image feature information subset #i. If the step size is 1, that is, 1 image feature information is extracted every time 1 image feature information is separated, 50 image feature information can be evenly extracted from 100 image feature information.

[0068] Secondly, the electronic device fuses M subsets of image feature information into one, and obtains a fused image feature information set. For example, the electronic device interweaves the image feature information at the tail position of the i-th image feature information subset in the M image feature information subsets with the image feature information at the head position of the i+1-th image feature information subset in the M image feature information subsets, and obtains a fused image feature information set when i traverses from 1 to M-1. For example, the i-th image feature information subset includes feature 1, feature 2, feature 3, feature 4, feature 5, feature 6, and the i+1-th image feature information subset includes feature A, feature B, feature C, feature D, feature E, and feature F, and the interweaving is: feature 1, feature 2, feature 3, feature 4, feature A, feature 5, feature B, feature 6, feature C, feature D, feature E, feature F, that is, the features of two adjacent image feature information subsets are associated by interweaving, rather than being separated, so as to improve the robustness of subsequent processing.

[0069] S2: The electronic device inputs the fused image feature information set into the logical reasoning layer of the neural network model for processing, and obtains the self-assessment result of the weld quality, such as whether the weld has defects and, if so, the severity of the defects. The logical reasoning layer includes the activation layer, the pooling layer, and the fully connected layer in sequence.

[0070] In summary: the electronic device can obtain images taken of the weld from different dimensions / angles, such as M weld images; thus, the electronic device processes the M weld images through a neural network model to obtain a set of image feature information of each of the M weld images, and the scales of the image feature information sets of any two of the M weld images are different. In this way, the electronic device processes the set of image feature information of each of the M weld images through a neural network model, thereby evaluating the weld quality from different dimensions, and obtaining a more accurate and robust self-assessment result of the weld quality.

[0071] Combination of the above Figure 1 The weld quality self-assessment method based on multidimensional images provided in the embodiment of the present application is described in detail. A weld quality self-assessment system based on multidimensional images for executing the weld quality self-assessment method based on multidimensional images provided in the embodiment of the present application is described in detail below.

[0072] The system includes an electronic device, and the system is configured as follows: the electronic device obtains M weld images, the M weld images are images taken of the weld from different dimensions / angles, and M is an integer greater than or equal to 3; the electronic device processes the M weld images through a neural network model to obtain image feature information sets of each of the M weld images, and the scales of the image feature information sets of any two of the M weld images are different; the electronic device processes the image feature information sets of each of the M weld images through a neural network model to obtain a self-assessment result of the quality of the weld.

[0073] Optionally, the electronic device processes M weld images through a neural network model to obtain a set of image feature information for each of the M weld images, including: the electronic device determines that each of the M weld images only contains a sub-weld image of the area where the weld is located, for a total of M sub-weld images; the electronic device performs convolution of different scales on the M sub-weld images through the convolution layer of the neural network model to obtain M image feature information sets.

[0074] Optionally, for the i-th weld image among the M weld images, in the process of i traversing from 1 to M, the angle between the shooting direction of the i-th weld image and the surface where the weld is located is first increased from less than 90° to 90°, and then decreased from 90° to less than 90°. On this basis, the electronic device performs convolutions of different scales on the M sub-weld images through the convolution layer of the neural network model to obtain M sets of image feature information, including:

[0075] In the case of i=1, the shooting direction of the first sub-weld image in the M weld images has an angle less than 90° with the surface where the weld is located. For the first sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #1 to convolve the first sub-weld image through the convolution layer of the neural network model to obtain an image feature information set of the first sub-weld image;

[0076] In the case where i=[M / 2]-1 is incremented with a step size of 1, [] represents rounding up or rounding down, the angle between the shooting direction of the [M / 2]-1th sub-weld image in the M weld images and the surface where the weld is located is less than 90°, and is greater than the angle between the shooting direction of the first weld image and the surface where the weld is located, for the [M / 2]-1th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #[M / 2]-1 through the convolution layer of the neural network model to convolve the [M / 2]-1th sub-weld image to obtain an image feature information set of the [M / 2]-1th sub-weld image; the size of the convolution kernel #[M / 2]-1 is greater than the size of the convolution kernel #1;

[0077] When i=[M / 2] is incremented with a step size of 1, the shooting direction of the [M / 2]th sub-weld image in the M weld images has an angle of 90° with the surface where the weld is located. For the [M / 2]th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #[M / 2] to convolve the [M / 2]th sub-weld image through the convolution layer of the neural network model to obtain an image feature information set of the [M / 2]th sub-weld image, and the size of the convolution kernel #[M / 2] is larger than the size of the convolution kernel #[M / 2]-1;

[0078] When i=[M / 2]+1 is incremented with a step size of 1, the shooting direction of the [M / 2]+1th sub-weld image in the M weld images has an angle less than 90° with the surface where the weld is located. For the [M / 2]+1th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #[M / 2]+1 through the convolution layer of the neural network model to convolve the [M / 2]+1th sub-weld image to obtain an image feature information set of the [M / 2]+1th sub-weld image, and the size of the convolution kernel #[M / 2]+1 is smaller than the size of the convolution kernel #[M / 2];

[0079] By analogy, when i=M is ​​incremented with a step size of 1, the angle between the shooting direction of the M-th sub-weld image in the M weld images and the surface where the weld is located is less than 90°, and is less than the angle between the shooting direction of the [M / 2]+1-th weld image and the surface where the weld is located. For the M-th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #M through the convolution layer of the neural network model to convolve the M-th sub-weld image to obtain an image feature information set of the M-th sub-weld image, and the size of the convolution kernel #M is less than the size of the convolution kernel #[M / 2]+1;

[0080] So far, a total of M image feature information sets are obtained.

[0081] Optionally, from convolution kernel #1 to convolution kernel #[M / 2]-1, convolution kernel #[M / 2], convolution kernel #[M / 2]+1, and then to convolution kernel #M, the size of the convolution kernel increases from the initial size of convolution kernel #1 to the size of convolution kernel #[M / 2] by first increasing the row size and then increasing the column size, and then the size of the convolution kernel #[M / 2] is reduced to the size of the convolution kernel #M by first reducing the column size and then reducing the row size; or, the size of the convolution kernel increases from the initial size of convolution kernel #1 to the size of convolution kernel #[M / 2] by first increasing the column size and then increasing the row size, and then the size of the convolution kernel #[M / 2] is reduced to the size of the convolution kernel #M by first reducing the row size and then reducing the column size.

[0082] Optionally, the electronic device determines that each of the M weld images only contains a sub-weld image of the area where the weld is located, totaling M sub-weld images, including: the electronic device determines an edge area of ​​the weld contained in each of the M weld images in the image, that is, obtains the edge area of ​​each of the M weld images; the electronic device determines, based on the edge area of ​​each of the M weld images, that each of the M weld images only contains a sub-weld image of the area where the weld is located, totaling M sub-weld images.

[0083] Optionally, the electronic device processes M image feature information sets through a neural network model to obtain a self-assessment result of the weld quality, including: the electronic device fuses the M image feature information sets in an extraction manner to obtain a fused image feature information set; the electronic device inputs the fused image feature information set into the logical reasoning layer of the neural network model for processing to obtain a self-assessment result of the weld quality, and the logical reasoning layer sequentially includes an activation layer, a pooling layer, and a fully connected layer.

[0084] Optionally, the electronic device fuses M image feature information sets in an extraction manner to obtain a fused image feature information set, including: for the i-th image feature information set in the M image feature information sets, the electronic device extracts part of the image feature information subset #i from the i-th image feature information set according to the size of the convolution kernel #i used in the convolution of the i-th sub-weld image in the M weld images, and when i traverses from 1 to M, a total of M image feature information subsets are obtained, and the number of image feature information in the image feature information subset #i is negatively correlated with the size of the convolution kernel #i; the electronic device fuses the M image feature information subsets into one to obtain a fused image feature information set.

[0085] Optionally, the electronic device extracts part of the image feature information subset #i from the ith image feature information set according to the size of the convolution kernel #i used when convolving the ith sub-weld image among the M weld images, including: the electronic device determines a step size #i for extracting the image feature information set according to the size of the convolution kernel #i used when convolving the ith sub-weld image among the M weld images, and the size of the step size #i is negatively correlated with the size of the convolution kernel #i; the electronic device extracts the image feature information set from the ith image feature information set in a manner that two adjacent extracted image feature information sets are separated by a step size #i of image feature information sets, to obtain the image feature information subset #i.

[0086] Optionally, the electronic device merges M image feature information subsets into one to obtain a merged image feature information set, including: the electronic device interweaves the image feature information located at the tail position of the i-th image feature information subset in the M image feature information subsets with the image feature information located at the head position of the i+1-th image feature information subset in the M image feature information subsets, and obtains the merged image feature information set when i traverses 1 to M-1.

[0087] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. For example, the electronic device may be a terminal device, or a chip (system) or other component or assembly that can be set in the terminal device. Figure 2 As shown, the electronic device 400 may include a processor 401. Optionally, the electronic device 400 may also include a memory 402 and / or a transceiver 403. The processor 401 is coupled to the memory 402 and the transceiver 403, such as being connected via a communication bus. In addition, the electronic device 400 may also be a chip, such as including the processor 401, in which case the transceiver may be an output and input interface of the chip.

[0088] Combine the following Figure 2 The components of the electronic device 400 are specifically introduced as follows:

[0089] The processor 401 is the control center of the electronic device 400, and may be a processor or a general term for multiple processing elements. For example, the processor 401 is one or more central processing units (CPUs), or may be application specific integrated circuits (ASICs), or may be one or more integrated circuits configured to implement the embodiments of the present application, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (FPGAs).

[0090] Optionally, the processor 401 can execute various functions of the electronic device 400 by running or executing the software program stored in the memory 402 and calling the scientific data stored in the memory 402, such as executing the above Figure 1 The weld quality self-assessment method based on multi-dimensional images is shown.

[0091] In a specific implementation, as an embodiment, the processor 401 may include one or more CPUs, such as Figure 2CPU0 and CPU1 are shown in FIG.

[0092] In a specific implementation, as an embodiment, the electronic device 400 may also include multiple processors. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing scientific data (such as computer programs or instructions).

[0093] The memory 402 is used to store the software program for executing the solution of the present application, and the execution is controlled by the processor 401. The specific implementation method can refer to the above method embodiment, which will not be repeated here.

[0094] Optionally, the memory 402 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or scientific data structures and can be accessed by a computer, but is not limited thereto. The memory 402 may be integrated with the processor 401, or may exist independently and accessed through the interface circuit ( Figure 2 404 is coupled to the processor 401, which is not specifically limited in this embodiment of the present application.

[0095] The transceiver 403 is used for communication with other electronic devices. For example, if the electronic device 400 is a terminal device, the transceiver 403 can be used to communicate with a network device, or with another terminal device. For another example, if the electronic device 400 is a network device, the transceiver 403 can be used to communicate with a terminal device, or with another network device.

[0096] Optionally, the transceiver 403 may include a receiver and a transmitter ( Figure 2 The receiver is used to implement a receiving function, and the transmitter is used to implement a sending function.

[0097] Optionally, the transceiver 403 may be integrated with the processor 401, or may exist independently and communicate with the electronic device 400 through an interface circuit ( Figure 2 404 is coupled to the processor 401, which is not specifically limited in this embodiment of the present application.

[0098] Understandably, Figure 2 The structure of the electronic device 400 shown in the figure does not constitute a limitation on the electronic device, and the actual electronic device may include more or fewer components than those shown in the figure, or combine certain components, or arrange the components differently.

[0099] In addition, the technical effects of the electronic device 400 can refer to the technical effects of the methods described in the above method embodiments, which will not be repeated here.

[0100] It should be understood that the processor in the embodiments of the present application may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0101] It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0102] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer program or instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program or instruction can be transmitted from one website, computer, server or scientific data center to another website, computer, server or scientific data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a scientific data storage device such as a server, scientific data center, etc. that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0103] It should be understood that the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship, which can be understood by referring to the context before and after.

[0104] In this application, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0105] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0106] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0107] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0108] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0109] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0110] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0111] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0112] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A weld quality self-assessment method based on multidimensional images, characterized in that: Applied to electronic equipment, the method comprises: The electronic device acquires M weld images, where the M weld images are images taken of the weld from different angles, and M is an integer greater than or equal to 3; The electronic device processes the M weld images through a neural network model to obtain image feature information sets of the M weld images, a total of M image feature information sets, and the scales of the image feature information sets of any two weld images in the M weld images are different; The electronic device processes the M sets of image feature information through the neural network model to obtain a self-assessment result of the quality of the weld; The electronic device processes the M weld images through a neural network model to obtain a set of image feature information of each of the M weld images, including: The electronic device determines that each of the M weld images only includes a sub-weld image of the area where the weld is located, and there are a total of M sub-weld images; The electronic device performs convolution of different scales on the M sub-weld seam images through the convolution layer of the neural network model to obtain the M image feature information sets; For the i-th weld image in the M weld images, in the process of i traversing from 1 to M, the angle between the shooting direction of the i-th weld image and the surface where the weld is located first increases from a positive angle less than 90° to 90°, and then decreases from 90° to a negative angle less than 90°, wherein M=5, and the angles between the shooting directions of the 5 weld images and the surface where the weld is located are: 45°, 70°, 90°, -70°, and -45°, respectively. On this basis, the electronic device performs convolution of different scales on the M sub-weld images through the convolution layer of the neural network model, and obtains the M image feature information sets, including: In the case where i=1, the shooting direction of the first sub-weld image in the M weld images is at an angle less than 90° to the surface where the weld is located. For the first sub-weld image in the M sub-weld images, the electronic device convolves the first sub-weld image using convolution kernel #1 through the convolution layer of the neural network model to obtain an image feature information set of the first sub-weld image; In the case where i=[M / 2]-1 is incremented with a step size of 1, [] represents rounding up or rounding down, the angle between the shooting direction of the [M / 2]-1th sub-weld image in the M weld images and the surface where the weld is located is less than 90°, and is greater than the angle between the shooting direction of the first weld image and the surface where the weld is located, for the [M / 2]-1th sub-weld image in the M sub-weld images, the electronic device convolves the [M / 2]-1th sub-weld image using the convolution kernel #[M / 2]-1 through the convolution layer of the neural network model to obtain an image feature information set of the [M / 2]-1th sub-weld image; the size of the convolution kernel #[M / 2]-1 is greater than the size of the convolution kernel #1; In the case where i=[M / 2] is incremented with a step size of 1, the shooting direction of the [M / 2]th sub-weld image in the M weld images has an angle of 90° with the surface where the weld is located, and for the [M / 2]th sub-weld image in the M sub-weld images, the electronic device convolves the [M / 2]th sub-weld image using a convolution kernel #[M / 2] through the convolution layer of the neural network model to obtain an image feature information set of the [M / 2]th sub-weld image, and the size of the convolution kernel #[M / 2] is larger than the size of the convolution kernel #[M / 2]-1; In the case where i=[M / 2]+1 is incremented with a step size of 1, the angle between the shooting direction of the [M / 2]+1th sub-weld image in the M weld images and the surface where the weld is located is less than 90°, and for the [M / 2]+1th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #[M / 2]+1 through the convolution layer of the neural network model to convolve the [M / 2]+1th sub-weld image to obtain an image feature information set of the [M / 2]+1th sub-weld image, and the size of the convolution kernel #[M / 2]+1 is smaller than the size of the convolution kernel #[M / 2]; By analogy, when i=M is ​​incremented with a step size of 1, the angle between the shooting direction of the M-th sub-weld image in the M weld images and the surface where the weld is located is less than 90°, and is less than the angle between the shooting direction of the [M / 2]+1-th weld image and the surface where the weld is located. For the M-th sub-weld image in the M sub-weld images, the electronic device uses the convolution kernel #M of the convolution layer of the neural network model to convolve the M-th sub-weld image to obtain an image feature information set of the M-th sub-weld image, and the size of the convolution kernel #M is less than the size of the convolution kernel #[M / 2]+1; So far, a total of M sets of image feature information are obtained; From the convolution kernel #1 to the convolution kernel #[M / 2]-1, the convolution kernel #[M / 2], the convolution kernel #[M / 2]+1, and then to the convolution kernel #M, the size of the convolution kernel increases from the initial size of the convolution kernel #1 to the size of the convolution kernel #[M / 2] by first increasing the row size and then increasing the column size, and then the size of the convolution kernel #[M / 2] is reduced to the size of the convolution kernel #M by first reducing the column size and then reducing the row size; or, the size of the convolution kernel increases from the initial size of the convolution kernel #1 to the size of the convolution kernel #[M / 2] by first increasing the column size and then increasing the row size, and then the size of the convolution kernel #[M / 2] is reduced to the size of the convolution kernel #M by first reducing the row size and then reducing the column size; The electronic device determines that each of the M weld images only includes a sub-weld image of the area where the weld is located, and a total of M sub-weld images include: The electronic device determines the edge region of the weld contained in each of the M weld images, that is, obtains the edge region of each of the M weld images; The electronic device determines, based on the edge regions of the M weld images, that each of the M weld images only includes a sub-weld image of the region where the weld is located, and there are a total of the M sub-weld images; The electronic device determines the edge area of ​​the weld contained in each of the M weld images in the image by binarization to obtain the edge area of ​​each of the M weld images; the electronic device determines, based on the edge area of ​​each of the M weld images, a sub-weld image containing only the area where the weld is located, and the M sub-weld images are in total, wherein the edge area is not a neat shape, and the electronic device extracts the sub-weld image from the weld image by determining the circumscribed rectangle of the edge area, wherein the image contained in each of the circumscribed rectangles in the weld image is the sub-weld image; The electronic device processes the M sets of image feature information through the neural network model to obtain a self-assessment result of the quality of the weld, including: The electronic device fuses the M image feature information sets in an extraction manner to obtain a fused image feature information set; The electronic device inputs the fused image feature information set into the logic reasoning layer of the neural network model for processing to obtain a self-assessment result of the quality of the weld, wherein the logic reasoning layer sequentially includes an activation layer, a pooling layer, and a fully connected layer; the electronic device fuses the M image feature information sets in an extraction manner to obtain a fused image feature information set, including: For the i-th image feature information set in the M image feature information sets, the electronic device extracts a partial image feature information subset from the i-th image feature information set according to the size of the convolution kernel #i used in the convolution of the i-th sub-weld image in the M weld images, and obtains a total of M image feature information subsets when i traverses from 1 to M, and the number of image feature information in the image feature information subset is negatively correlated with the size of the convolution kernel #i; The electronic device merges the M subsets of image feature information into one subset to obtain the merged image feature information set.

2. The method according to claim 1, characterized in that The electronic device extracts a partial image feature information subset from the i-th image feature information set according to the size of the convolution kernel #i used in the convolution of the i-th sub-weld image in the M weld images, including: The electronic device determines a step length for extracting a set of image feature information according to a size of a convolution kernel #i used in convolution of an i-th sub-weld image among the M weld images, wherein the step length is negatively correlated with the size of the convolution kernel #i; The electronic device extracts image feature information sets from the i-th image feature information set with the step length of image feature information sets between two adjacent extracted image feature information sets to obtain the image feature information subset.

3. The method according to claim 1, characterized in that The electronic device merges the M subsets of image feature information into one subset to obtain the merged image feature information set, including: The electronic device interweaves the image feature information located at the tail position of the i-th image feature information subset among the M image feature information subsets with the image feature information located at the head position of the i+1-th image feature information subset among the M image feature information subsets, and obtains the fused image feature information set when i traverses 1 to M-1, wherein the i-th image feature information subset includes feature 1, feature 2, feature 3, feature 4, feature 5, and feature 6, and the i+1-th image feature information subset includes feature A, feature B, feature C, feature D, feature E, and feature F, and the interweaving is: feature 1, feature 2, feature 3, feature 4, feature A, feature 5, feature B, feature 6, feature C, feature D, feature E, and feature F, that is, the features of two adjacent image feature information subsets are associated by interweaving.

Citation Information

Patent Citations

  • Welding simulator virtual weld defect detection method based on deep learning

    CN110675370A

  • Weld defect identification method and device, electronic equipment and storage medium

    CN117853417A