Real-time detection method for shear strength, nugget size and position of resistance welding

Through the combination of neural network and vector screening channel, real-time detection of resistance welding is realized, which solves the problem in the existing technology of being unable to detect and accurately determine the size and position of the nugget in real time, and meets the needs of online adjustment and mass welding in production. .

CN112132779BInactive Publication Date: 2024-08-27CHINA NAT UNIV OF ADVANCED STUDIES (SHAOXING SHANGYU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010809704.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-13
Publication Date
2024-08-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology cannot realize real-time detection and non-destructive testing of resistance welding, cannot meet the demand for online, real-time dynamic adjustment in production, and is difficult to accurately determine the size and position of the nugget during welding.

Method used

Using neural network combined with thermal image and vector screening channel method, by establishing a large sample database and real-time detection neural network, the shear strength, nugget position and size of welded parts can be predicted in real time, using convolutional neural network and high-order information amount Screen the model for feature extraction and noise removal.

Benefits of technology

It realizes real-time non-destructive testing of resistance welding, meets the online adjustment needs in production, and accurately determines the size and position of the nugget during welding. It is suitable for large-volume multi-part welding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112132779B
    Figure CN112132779B
Patent Text Reader

Abstract

The present invention discloses a real-time detection method for shear strength, weld nugget position and size of resistance welding, including S1 establishing a large sample database corresponding to thermal images and shear strength values, weld nugget size and position; S2 using a box to frame the weld nugget of the welded part in the thermal image; S3 establishing a vector screening channel for denoising and screening residual features on the thermal image; S4 inserting the vector screening channel established in step S3 into a neural network to establish a new neural network; S5 using a sample library to train the new neural network; S6 inputting the welding thermal image to be detected, and detecting in real time that the vector output by the neural network represents different resistance welding parameters (shear strength, weld nugget position and size). This detection method can achieve non-destructive detection and real-time detection in production, meet the needs of online, real-time dynamic adjustment in production, and can accurately determine the size and position of the weld nugget formed during resistance welding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of real-time detection, and in particular to a real-time detection method for resistance welding shear strength, weld nugget position and size. Background Art

[0002] Resistance welding is a method of welding by applying electricity to the object to be welded through electrodes and applying a certain pressure to form a molten core. It has the advantages of concentrated heat, simple process and high welding efficiency. Shear strength is an important indicator for evaluating welding quality, which is usually measured by destructive testing of workpieces. However, this type of testing cannot achieve non-destructive testing and real-time testing in production, and cannot meet the needs of online, real-time dynamic adjustment in production. In addition, in order to meet the needs of large-scale multi-part matching in automobile production, the size and position of the molten core formed during resistance welding need to be accurately determined. Summary of the invention

[0003] The object of the present invention is to provide a real-time detection method for the shear strength, position and size of a resistance welding nugget, which can solve one or more of the above-mentioned technical problems.

[0004] In order to achieve the above object, the technical solution proposed by the present invention is as follows:

[0005] The real-time detection method of the shear strength, nugget position and size of resistance welding comprises the following steps:

[0006] S1 establishes a large sample database corresponding to thermal images, shear strength values, weld nugget sizes and positions;

[0007] S2 uses a box to frame the nugget of the weld in the thermal image;

[0008] S3 establishes a vector screening channel for denoising and screening residual features on thermal images;

[0009] S4 inserts the vector screening channel established in step S3 into a neural network to establish a new neural network;

[0010] S5: using the big data sample library in step S1 to train the new neural network established in step S4 to obtain a fully trained real-time detection neural network;

[0011] S6 inputs the welding thermal image to be detected into the real-time detection neural network in step S5. The first digit of the vector output by the real-time detection neural network represents the shear strength of the weld predicted by the network based on the thermal image in real time. The second and third digits of the output vector represent the horizontal and vertical positions of the molten core in the image predicted by the network respectively. The fourth and fifth digits of the output vector represent the horizontal and vertical lengths of the molten core respectively.

[0012] Furthermore, the neural network requires the following input images: 480px high and 480px wide.

[0013] Furthermore: the center point of the box corresponds to the position of the molten core on the thermal image, and the longitudinal diameter and transverse diameter from the center point to the boundary correspond to the size of the molten core.

[0014] Further: the neural network for inserting the vector screening channel in step S4 includes, in sequence, a first convolutional layer, a first pooling layer, a second convolutional layer, a second pooling layer, a third convolutional layer, a fourth convolutional layer, a fifth convolutional layer, a sixth convolutional layer, a seventh convolutional layer, an eighth convolutional layer, a ninth convolutional layer, a tenth convolutional layer, and a third pooling layer;

[0015] There are 64 convolution kernels of size 7×7 in the first convolution layer, and the maximum pooling is used in the first pooling layer, with the kernel and stride both being 2.

[0016] There are 256 convolution kernels of size 5×5 in the second convolution layer. The second pooling layer uses maximum pooling, and the kernel size and stride are both 2.

[0017] There are 256 convolution kernels of size 1×1 in the third convolution layer.

[0018] There are 256 convolution kernels of size 3×3 in the fourth convolution layer.

[0019] There are 512 convolution kernels of size 1×1 in the fifth convolution layer.

[0020] There are 512 convolution kernels of size 3×3 in the sixth convolution layer.

[0021] There are 512 convolution kernels of size 1×1 in the seventh convolution layer.

[0022] There are 512 convolution kernels of size 3×3 in the eighth convolution layer.

[0023] There are 1024 convolution kernels of size 1×1 in the ninth convolution layer.

[0024] There are 1024 convolution kernels of size 3×3 in the tenth convolution layer. Maximum pooling is used in the third pooling layer, and the kernel size and stride are both 2.

[0025] Further: after the vector screening channel is inserted into the third pooling layer, the output of the third pooling layer is used as the input value of the vector screening channel for feature selection.

[0026] Further: the vector screening channel establishment process in step S3 is as follows:

[0027] S31 establishes a high-order information screening model: Where N=30, M=30; x represents the eigenvalue of each feature channel; the high-order information of each feature channel of the input is calculated according to the above model;

[0028] S32 establishes a threshold judgment channel: t is the threshold;

[0029] S33 performs convolution calculation on the input amount to obtain a threshold vector for high-order information screening model screening, and defines the digital value of the threshold vector as a threshold t;

[0030] S34 applies the threshold judgment channel of step S32, and performs element-by-element threshold judgment on the threshold t of each channel in the threshold vector of step S33 and the high-order information amount kur of each feature channel in step S31; thereby obtaining a channel weight vector;

[0031] S35 performs a dot multiplication of the channel weight vector and the input amount to obtain the seventh eigenvector;

[0032] S36 adds the seventh eigenvector to the input value element by element to obtain the final filtered eigenvector output.

[0033] Further: The specific process in step S6 is as follows:

[0034] S61 preprocesses the output vector, using a flattening layer to deform the output vector after passing through two fully connected layers;

[0035] S62 divides the image evenly into n×n blocks, each of which corresponds to an output vector of length 6; setting: from left to right, they represent the predictions of the real-time detection neural network based on the corresponding image area: the shear strength t of the weldment f , the horizontal relative coordinate t of the border in this area x , the relative vertical coordinate of the border in the area t y , the relative width of the border in this area is t w , the relative height of the border in this area h ; The credibility C of the border in the area;

[0036] S63 obtains relevant parameters of the frame on the thermal image based on step 62;

[0037] S631 According to the area t f , predict shear force: F = t f ;

[0038] S632 is based on the relative coordinate t of the center of the nugget frame in the area x , predict the horizontal axis center coordinate b of the real bounding box in the area x :b x=f(t x )+A x , where A x The horizontal coordinate of the area on the picture; To predict b x The convergence function applied to the horizontal axis center coordinate;

[0039] S633 is based on the relative coordinate t of the center of the nugget frame in the area. y , the predicted horizontal axis center vertical axis coordinate b of the real box y :b y =f(t y )+A y , A y is the vertical coordinate of the area on the picture; To calculate b y The convergence function applied to the horizontal axis center coordinate;

[0040] S634 is based on the relative width of the border in the area w , the predicted true bounding box width Where P w is the width of the prior box, P h is the height of the prior box. By clustering the width and height of the box representing the size of the fusion kernel in the label, P w =45;

[0041] S635 is based on the relative height of the border in the area h ; The predicted true bounding box height Where P h is the height of the prior box. By clustering the width and height of the box representing the size of the fusion kernel in the label, P h =45;

[0042] S636 calculates a confidence level C based on the predicted border and the real border of the region;

[0043] S64 outputs n×n (30×30) prediction results of the network; performs non-maximum suppression screening according to the confidence of each output result, and obtains the shear strength, nugget size and position of the welded part after the resistance welding is completed, which are finally predicted by the network;

[0044] S65 compares the shear strength, nugget size, and position of the weldment after resistance welding, which are finally predicted by the network, with its label to construct a loss function.

[0045] Further: The loss function consists of two parts, one of which is the error between the labeled shear strength and the predicted shear strength; the other is the error between the predicted value of the nugget size and position and the actual value of the nugget size and position; both errors are calculated using SSE.

[0046] Furthermore, the training algorithm for SSE calculation can be any one of the following: stochastic gradient descent algorithm, Adam algorithm, RMSProp algorithm, Adagrad algorithm, Adade lta algorithm, and Adamax algorithm.

[0047] Further: the welding thermal image to be detected is scaled to an image with a height of 360px and a width of 480px, and then filled with black in the vertical direction of the image to convert the thermal image into an image with a height and a width of 480px.

[0048] The technical effects of the present invention are:

[0049] The detection method of the present invention can achieve non-destructive detection and real-time detection in production, meeting the needs of online and real-time dynamic adjustment in production. In addition, it can also meet the matching requirements of large-scale multi-part welding, such as the matching requirements of large-scale multi-parts in automobile production, and can accurately determine the size and position of the molten nugget formed during resistance welding. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The drawings in the specification, which constitute a part of this application, are used to provide a further understanding of the present invention. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0051] In the attached picture:

[0052] Figure 1 It is a schematic diagram of the overall structure of the system of the present invention;

[0053] Figure 2 It is a schematic diagram of the workflow of the present invention;

[0054] Figure 3 It is a schematic diagram of the network structure of the present invention;

[0055] Figure 4 It is a schematic diagram of the network structure of the vector screening channel;

[0056] Figure 5 It is a schematic diagram of box screening. DETAILED DESCRIPTION

[0057] The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments, wherein the illustrative embodiments and descriptions are only used to explain the present invention but are not intended to be improper limitations of the present invention.

[0058] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0059] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0060] like Figure 1 As shown, the detection system formed according to the method includes a thermal imager, a computer and a serial port for computer-related communications. The computer is embedded with the detection method.

[0061] The thermal imager is used to collect thermal images of welded parts during the welding process. The collected thermal images are 640px high and 480px wide. The computer collects and stores the thermal images through the relevant communication serial port.

[0062] After image preprocessing, manual marking is used to frame the weld core of the weld in the thermal image using a square frame, where the length and width of the frame correspond to the longitudinal diameter and transverse diameter of the weld core, respectively, and the center point of the frame indicates the position of the weld core in the thermal image.

[0063] The shear strength of the welded parts corresponding to the thermal image is determined by process destructive experiments.

[0064] The thermal images stored in the computer are integrated to form a data set, and the shear strength, position and size information of the weld core corresponding to each thermal image are integrated to produce label data to form a label set (large sample database).

[0065] The computer inputs the collected thermal image data set and label data set into the network for training to obtain a trained neural network.

[0066] During the welding process, the thermal imager collects thermal images of the welding process in real time. The computer pre-processes the thermal images and inputs them into the neural network. The neural network predicts the shear strength, size and position of the weld nugget after welding is completed, thereby realizing real-time detection.

[0067] Based on the adaptive frame and feature channel selection convolutional neural network structure Figure 3 shown.

[0068] The process flow chart is as follows Figure 2 shown.

[0069] The steps are as follows:

[0070] Step 1:

[0071] During the resistance welding process of the welded parts, the thermal imager collects the thermal image of the welded parts during welding, and inputs the heat with a height of 480px and a width of 640px into the computer through the communication serial port with the computer. The computer stores the thermal image and the corresponding welded parts information.

[0072] Step 2:

[0073] At least 10,000 thermal images of different welded parts were selected, and the images with a height of 480px and a width of 640px stored in the computer were scaled to images with a height of 360px and a width of 480px. Then, the images were filled vertically with black to convert the thermal images to images with a height and width of 480px to form a data set.

[0074] The method of manual marking is adopted, and the nugget of the weld is framed in the thermal image with a square frame, where the length and width of the frame correspond to the longitudinal diameter and transverse diameter of the nugget respectively, and the center point of the frame indicates the position of the nugget in the thermal image. The shear strength of the weld corresponding to the thermal image is determined by a process destructive experiment. The thermal images stored in the computer are integrated to form a data set, and the shear strength, position and size information of the nugget corresponding to each thermal image are integrated to produce label data to form a label set.

[0075] Step 3:

[0076] Construct a residual feature channel selection convolutional neural network based on high-order information denoising, and train the network using the data set and label set obtained in step 2;

[0077] The network input is a picture with a height of 480px and a width of 480px.

[0078] The output is a vector of length 5. The first digit of the output vector represents the shear strength of the weld predicted by the network based on the thermal image in real time. The second and third digits of the output vector represent the horizontal and vertical positions of the molten core in the image predicted by the network. The fourth and fifth digits of the output vector represent the horizontal and vertical lengths of the molten core.

[0079] There are 64 convolution kernels of 7×7 in the first convolution layer, and the maximum pooling is used in the first pooling layer, with the kernel and stride both being 2;

[0080] There are 256 convolution kernels of size 5×5 in the second convolution layer. The second pooling layer uses maximum pooling, and the kernel size and stride are both 2.

[0081] There are 256 convolution kernels of size 1×1 in the third convolution layer;

[0082] There are 256 convolution kernels of size 3×3 in the fourth convolution layer;

[0083] There are 512 convolution kernels of size 1×1 in the fifth convolution layer;

[0084] There are 512 convolution kernels of size 3×3 in the sixth convolution layer;

[0085] There are 512 convolution kernels of size 1×1 in the seventh convolution layer;

[0086] There are 512 convolution kernels of size 3×3 in the eighth convolution layer;

[0087] There are 1024 convolution kernels of size 1×1 in the ninth convolution layer;

[0088] There are 1024 convolution kernels of size 3×3 in the tenth convolution layer;

[0089] The third pooling layer is the maximum pooling layer. The output of the third pooling layer is used as input and input into the residual feature channel selection mechanism based on high-order information denoising as shown in the figure for feature selection.

[0090] The structure of the feature selection mechanism is as follows: Figure 4 As shown, each feature channel of the input is converted to an absolute value, and a new feature vector with all positive values ​​and a shape of 30×30×1024 is obtained, which is recorded as the second feature vector.

[0091] After the second eigenvector passes through a convolution layer containing 1024 convolution kernels of size 1×1, a vector of size 30×30×1024 is generated, which is recorded as the third eigenvector.

[0092] After the third eigenvector passes through a convolution layer containing 1024 convolution kernels of size 30×30, a eigenvector of size 1×1×1024 is generated, which is recorded as the fourth eigenvector.

[0093] Perform global average pooling on each feature channel of the second eigenvector to obtain a feature vector of size 1×1×1024, which is recorded as the fifth eigenvector.

[0094] Calculate the high-order information of each feature channel of the input, x represents the eigenvalue of each feature channel, and the calculation formula (1) is as follows, generating a feature vector of size 1×1×1024, which is recorded as the sixth feature vector.

[0095]

[0096] Multiply the fifth eigenvector by the fourth eigenvector to get a eigenvector of size 1×1×1024, recorded as the threshold vector. Each number is the threshold t of the corresponding high-order information.

[0097] Then, the threshold t of each channel in the threshold vector and the high-order information amount kur of each feature channel corresponding to the sixth vector are used to make threshold judgment element by element. Formula (2) is as follows:

[0098]

[0099] A feature vector with a shape of 1×1×1024 and values ​​of only 0 and 1 is obtained, which is recorded as the channel weight vector.

[0100] Multiply the channel weight vector by the input to obtain a feature vector with a shape of 30×30×1024, which is recorded as the seventh feature vector;

[0101] Then, the seventh eigenvector is added to the input element by element to obtain a eigenvector with a shape of 30×30×1024, which is used as the output of the residual feature channel (vector screening channel) selection mechanism after high-order information denoising.

[0102] Using the flat layer, the number of neurons in the first fully connected layer immediately following it is 43904, and the number of neurons in the second fully connected layer is 5400, and the output shape is a vector of (5400, 1), which transforms the vector of shape (5400, 1) into a vector of (30, 30, 6);

[0103] like Figure 5 As shown, the image is evenly divided into 30×30 (n×n) block regions, each of which corresponds to an output vector of length 6.

[0104] From left to right, they represent the predictions of the real-time detection neural network based on the corresponding image area: the shear strength t of the weldment f , the horizontal relative coordinate t of the border in this area x , the relative vertical coordinate of the border in the area t y , the relative width of the border in this area is t w , the relative height of the border in this area h ; The confidence level C of the border in the area.

[0105] Based on the above settings, obtain the relevant parameters of the frame on the thermal image;

[0106] According to the area t f , predict shear force: F = t f ;

[0107] According to the relative coordinate t of the center of the weld nugget frame in the area x , predict the horizontal axis center coordinate b of the real bounding box in the area x :b x =f(t x )+Ax , where A x The horizontal coordinate of the area on the picture; To predict b x The convergence function applied to the horizontal axis center coordinate; different from the commonly used sigmoid function, this convergence function converges faster to calculate the horizontal axis center coordinate b of the real border in the area x .

[0108] According to the relative coordinate t of the center of the weld nugget frame in the area y , the predicted horizontal axis center vertical axis coordinate b of the real box y :b y =f(t y )+A y , A y is the vertical coordinate of the area on the picture; To calculate b y The convergence function applied to the horizontal axis center coordinate; different from the commonly used sigmoid function, this convergence function converges faster to calculate the horizontal axis center coordinate b of the real border in the area y .

[0109] According to the relative width of the border in the area w , the predicted true bounding box width Where P w is the width of the prior box, P h is the height of the prior box. By clustering the width and height of the box representing the size of the fusion kernel in the label, P w =45;

[0110] According to the relative height of the border in this area h ; The predicted true bounding box height Where P h is the height of the prior box. By clustering the width and height of the box representing the size of the fusion kernel in the label, P h =45;

[0111] Calculate the confidence C based on the predicted border and the true border of the area;

[0112] The n×n (30×30) prediction results output by the network are selected; non-maximum suppression screening is performed according to the confidence level of each output result to obtain the shear strength, nugget size and position of the welded part after resistance welding is completed, which is finally predicted by the network;

[0113] The shear strength, nugget size, and location of the weldment after resistance welding, which are finally predicted by the network, are compared with their labels to construct a loss function.

[0114] The 30×30 prediction results output by the network are screened by non-maximum suppression according to the confidence level of each output result, and the shear strength, nugget size and position of the weldment after resistance welding are finally predicted by the network.

[0115] The shear strength, nugget size, and location of the weldment after resistance welding, which are finally predicted by the network, are compared with their labels to construct a loss function.

[0116] The loss function consists of two parts, one of which is the error between the labeled shear strength and the predicted shear strength; the other is the error between the predicted value of the nugget size and position and the actual value of the nugget size and position; both errors are calculated using SSE.

[0117] The training algorithms for SSE calculation can be: stochastic gradient descent algorithm, Adam algorithm, RMSProp algorithm, Adagrad algorithm, Adadelta algorithm, Adamax algorithm, etc.

[0118] Step 4:

[0119] In actual production, during the welding process, a thermal imaging instrument is used to collect thermal images of welded parts in real time, and the thermal images are transmitted to the computer in real time through the computer communication serial port.

[0120] Step 5:

[0121] The computer will scale the thermal image transmitted by the serial port into an image with a height of 360px and a width of 480px, and then use black to fill the vertical direction of the image to convert the thermal image into an image with a height and width of 480px. The image is input into the trained neural network, and the network predicts the shear strength of the weld, the size and position of the weld core in real time, thereby realizing real-time detection.

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

Claims

1. A real-time detection method for resistance welding shear strength, nugget position and size, characterized in that: include S1 establishes a large sample database corresponding to thermal images, shear strength values, weld nugget sizes and positions; S2 uses a box to frame the nugget of the weld in the thermal image; S3 establishes a vector screening channel for denoising and screening residual features on thermal images; S4 inserts the vector screening channel established in step S3 into a neural network to establish a new neural network; S5: using the big data sample library in step S1 to train the new neural network established in step S4 to obtain a fully trained real-time detection neural network; S6: input the welding thermal image to be detected into the real-time detection neural network in step S5; the first number of the vector output by the real-time detection neural network represents the shear strength of the weld predicted by the network based on the thermal image in real time; the second and third numbers of the output vector represent the horizontal and vertical positions of the molten core in the image predicted by the network; the fourth and fifth numbers of the output vector represent the horizontal and vertical lengths of the molten core; The process of establishing the vector screening channel in step S3 is as follows: S31 establishes a high-order information screening model: Where N=30, M=30; x represents the eigenvalue of each feature channel; the high-order information of each feature channel of the input is calculated according to the above model; S32 establishes a threshold judgment channel: t is the threshold; S33 performs convolution calculation on the input amount to obtain a threshold vector for high-order information screening model screening, and defines the digital value of the threshold vector as a threshold t; S34 applies the threshold judgment channel of step S32, and performs element-by-element threshold judgment on the threshold t of each channel in the threshold vector of step S33 and the high-order information amount kur of each feature channel in step S21; and obtains a channel weight vector; S35 performs a dot multiplication of the channel weight vector and the input amount to obtain the seventh eigenvector; S36 adds the seventh eigenvector to the input element by element to obtain the final filtered eigenvector output vector The neural network for inserting the vector screening channel in step S4 sequentially includes a first convolution layer, a first pooling layer, a second convolution layer, a second pooling layer, a third convolution layer, a fourth convolution layer, a fifth convolution layer, a sixth convolution layer, a seventh convolution layer, an eighth convolution layer, a ninth convolution layer, a tenth convolution layer, and a third pooling layer; There are 64 convolution kernels of size 7×7 in the first convolution layer, and the maximum pooling is used in the first pooling layer, with the kernel and stride both being 2. There are 256 convolution kernels of size 5×5 in the second convolution layer. The second pooling layer uses maximum pooling, and the kernel size and stride are both 2. There are 256 convolution kernels of size 1×1 in the third convolution layer. There are 256 convolution kernels of size 3×3 in the fourth convolution layer. There are 512 convolution kernels of size 1×1 in the fifth convolution layer. There are 512 convolution kernels of size 3×3 in the sixth convolution layer. There are 512 convolution kernels of size 1×1 in the seventh convolution layer. There are 512 convolution kernels of size 3×3 in the eighth convolution layer. There are 1024 convolution kernels of size 1×1 in the ninth convolution layer. There are 1024 convolution kernels of size 3×3 in the tenth convolution layer, and the maximum pooling is used in the third pooling layer, with the kernel size and stride both being 2; After the vector screening channel is inserted into the third pooling layer, the output of the third pooling layer is used as the input value of the vector screening channel for feature selection.

2. The real-time detection method for resistance welding shear strength, nugget position and size according to claim 1, characterized in that: The image input requirements of the neural network are: 480px high and 480px wide.

3. The real-time detection method for resistance welding shear strength, nugget position and size according to claim 1, characterized in that: The center point of the box corresponds to the position of the molten core on the thermal image, and the longitudinal diameter and transverse diameter from the center point to the boundary correspond to the size of the molten core.

4. The real-time detection method for resistance welding shear strength, nugget position and size according to claim 1, characterized in that: The specific process in step S6 is as follows: S61 preprocesses the output vector, using a flattening layer to deform the output vector after passing through two fully connected layers; S62 divides the image evenly into n×n blocks, each of which corresponds to an output vector of length 6; Settings: From left to right, they represent the predictions of the real-time detection neural network based on the corresponding image area: the shear strength t of the weldment f , the horizontal relative coordinate t of the border in this area x , the relative vertical coordinate of the border in the area t y , the relative width of the border in this area is t w , the relative height of the border in this area h ; The credibility C of the border in the area; S63 obtains relevant parameters of the frame on the thermal image based on step 62; S631 According to the area t f , predict shear force: F = t f ; S632 is based on the relative coordinate t of the center of the nugget frame in the area x , predict the horizontal axis center coordinate b of the real bounding box in the area x :b x =f(t x )+A x , where A x The horizontal coordinate of the area on the picture; To predict b x The convergence function applied to the horizontal axis center coordinate; S633 is based on the relative coordinate t of the center of the nugget frame in the area. y , the predicted horizontal axis center vertical axis coordinate b of the real box y :b y =f(t y )+A y , A y is the vertical coordinate of the area on the picture; To calculate b y The convergence function applied to the horizontal axis center coordinate; S634 is based on the relative width of the border in the area w , the predicted true bounding box width Where P w is the width of the prior box. By clustering the width and height of the box representing the size of the fusion kernel in the label, P w =45; S635 is based on the relative height of the border in the area h ; The predicted true bounding box height Where P h is the height of the prior box. By clustering the width and height of the box representing the size of the fusion kernel in the label, P h =45; S636 calculates a confidence level C based on the predicted border and the real border of the region; S64 performs non-maximum suppression screening on the n×n prediction results output by the network according to the confidence level of each output result, and obtains the shear strength, nugget size and position of the welded part after the resistance welding is finally predicted by the network; S65 compares the shear strength, nugget size, and position of the weldment after resistance welding, which are finally predicted by the network, with its label to construct a loss function.

5. The real-time detection method for resistance welding shear strength, nugget position and size according to claim 4, characterized in that: The loss function consists of two parts, one of which is the error between the labeled shear strength and the predicted shear strength; the other is the error between the predicted value of the nugget size and position and the actual value of the nugget size and position; both errors are calculated using SSE.

6. The real-time detection method for resistance welding shear strength, nugget position and size according to claim 5, characterized in that: The training algorithm for SSE calculation is: any one of the stochastic gradient descent algorithm, Adam algorithm, RMSProp algorithm, Adagrad algorithm, Adadelta algorithm, and Adamax algorithm.

7. The real-time detection method for resistance welding shear strength, nugget position and size according to claim 1, characterized in that: The welding thermal image to be detected is scaled to an image with a height of 360px and a width of 480px, and then filled with black in the vertical direction of the image to convert the thermal image into an image with a height and a width of 480px.