Quality inspection method for intelligent welding production of alloy plates
By analyzing the reflection distribution rules and texture characteristics of the welding area, combined with the edge membership of the weld, the problem of difficult to distinguish undercut defects in alloy plate welding is solved, and the accuracy and efficiency of welding quality inspection are improved.
Patent Information
- Application Number
- CN202410962122.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-18
AI Technical Summary
During the welding process of alloy plates, due to the different stress-bearing stress and material load-bearing capacity of different parts, the undercut defects caused by it are similar in appearance to the normal welding area and are difficult to distinguish, which reduces the accuracy of quality inspection.
By analyzing the reflection distribution pattern in the welding area, we can obtain the welding reflection regularity and texture continuity, and combine the weld edge membership degree and defect degree to identify undercut defects and improve detection accuracy.
It enhances the identification of the differences between undercut defects and normal welding areas, and improves the accuracy and efficiency of alloy plate welding production quality inspection.
Smart Images

Figure CN118505698B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a quality detection method for intelligent welding production of alloy plates. Background Art
[0002] In construction scenarios, alloy formwork used for temporary support is mainly made of alloy plates after welding. In order to reduce the probability of safety accidents during construction, it is necessary to test the welding quality of alloy plates. When welding alloy plates, due to the different stresses borne by different parts and the different bearing capacity of alloy materials, some welding areas may have undercut defects. However, since these undercut defects are similar to the appearance of the welded parts, it is impossible to effectively distinguish the undercut defects, reducing the accuracy of quality inspection. Summary of the invention
[0003] The present invention provides a quality inspection method for intelligent welding production of alloy plates to solve the existing problem that when welding alloy plates, due to the different stresses borne by different parts and the different bearing capacities of the alloy materials, some welding areas may have undercut defects similar to the appearance of normal welding areas, and the undercut defects cannot be effectively distinguished.
[0004] The quality inspection method for intelligent welding production of alloy plates of the present invention adopts the following technical scheme:
[0005] The following steps are involved:
[0006] Acquire an alloy plate welding grayscale image of the alloy plate, wherein the alloy plate welding grayscale image includes a plurality of welding areas;
[0007] By analyzing the regularity of concentrated reflection distribution in the welding area, the welding reflection regularity of each welding area is obtained; the texture distribution of pixel points in the welding area is analyzed and combined with the welding reflection regularity to obtain the weld edge membership of each welding area;
[0008] Based on the regularity of welding reflection, the grayscale difference between the edge of the welding area and the inside of the welding area is compared, and the distribution similarity between the texture edge direction and the reflection distribution direction in the welding area is analyzed to obtain the degree of welding defects in each welding area.
[0009] The welding defect degree is combined with the weld edge membership to obtain the weld defect degree of the alloy plate welding grayscale image; and the quality inspection of the alloy plate welding grayscale image is performed according to the weld defect degree.
[0010] Preferably, the method for obtaining the welding reflection regularity is:
[0011] For any welding area, a number of reflective pixels are selected from the welding area according to the gray value;
[0012] Obtain the reflection distribution distance between each reflection pixel point in the welding area and the center of gravity of the welding area;
[0013] Obtain the variance of the reflection distance between all the reflection pixels in the welding area and the center of gravity of the welding area;
[0014] According to the reflection distribution distance and the reflection distance variance, the welding reflection regularity of the welding area is obtained; the welding reflection regularity is negatively correlated with the reflection distance variance and positively correlated with the reflection distribution distance.
[0015] Preferably, after calculating the welding reflection regularity, the method further includes:
[0016] The welding reflection regularity of each welding area is normalized.
[0017] Preferably, the method for obtaining the weld edge membership is:
[0018] For any welding area, the welding texture continuity of the welding area is obtained according to the continuous change of the gradient of the pixel points in the welding area;
[0019] The weld edge membership of the welding area is obtained according to the welding reflection regularity and the welding texture continuity of the welding area; the weld edge membership is negatively correlated with the welding reflection regularity and positively correlated with the welding texture continuity.
[0020] Preferably, the method for obtaining the degree of continuity of the welding texture is:
[0021] Perform edge detection on the welding area to obtain a number of welding texture pixel points; analyze the distance distribution between adjacent welding texture pixel points in the welding area to obtain the regional texture dispersion degree of the welding area;
[0022] Obtain the mean value of the gradient amplitude of all pixels in the welding area;
[0023] The welding texture continuity of the welding area is obtained according to the regional texture dispersion degree and the gradient amplitude mean value; the welding texture continuity degree is negatively correlated with the regional texture dispersion degree and positively correlated with the gradient amplitude mean value.
[0024] Preferably, the method for obtaining the degree of welding defects is:
[0025] For any welding area, the grayscale distribution inside the welding area is adjusted based on the welding reflection regularity, and the grayscale difference is compared with the edge of the welding area to obtain the edge reflection degree of the welding area;
[0026] Compare the similarity between the texture edge direction and the reflection distribution direction in the welding area to obtain the similarity of the defect texture in the welding area;
[0027] The welding defect degree of the welding area is obtained according to the edge reflection degree and the degree of similarity of the defect texture; the welding defect degree is negatively correlated with the edge reflection degree and positively correlated with the degree of similarity of the defect texture.
[0028] Preferably, the method for obtaining the edge reflection degree is:
[0029] The grayscale values of the pixels inside the welding area are weighted according to the regularity of welding reflection to obtain the weighted grayscale mean value inside the area;
[0030] Get the edge gray value of the pixel point on the edge of the welding area;
[0031] The edge reflection degree of the welding area is obtained according to the difference between the weighted grayscale mean value inside the area and the edge grayscale value; the edge reflection degree is negatively correlated with the difference.
[0032] Preferably, the method for obtaining the degree of similarity of the defect textures is:
[0033] Obtain the reflective main extension line of the welding area;
[0034] Obtaining the regional edge line of the welding area;
[0035] According to the angle between the main extension line of the reflection and the edge line of the area, the similarity of the defect textures in the welding area is obtained; the angle is negatively correlated with the similarity of the defect textures.
[0036] Preferably, the method for obtaining the degree of weld defects is:
[0037] For any welding area, the local weld defect degree of the welding area is obtained according to the welding defect degree of the welding area and the weld edge membership;
[0038] The average value of the local weld defect levels of all welding areas is taken as the weld defect level of the alloy plate welding grayscale image.
[0039] Preferably, before calculating the weld defect degree, the method further comprises:
[0040] The local weld defect degree of each welding area is normalized.
[0041] The beneficial effects of the technical solution of the present invention are as follows: by analyzing the regularity of concentrated distribution of reflections in the welding area, the welding reflection regularity is obtained; wherein the welding reflection regularity is used to describe the regularity and smoothness of the reflection distribution of light in the welding area, thereby improving the accuracy of identifying the concave and convex surface in the welding area; the texture distribution of pixel points in the welding area is analyzed and combined with the welding reflection regularity to obtain the weld edge membership; wherein the weld edge membership is used to describe the distribution content of the weld edge, and the detailed area of the alloy plate that has been welded can be screened out more accurately; based on the welding reflection regularity, the grayscale difference between the edge of the welding area and the inside of the welding area is compared, and the distribution similarity between the texture edge direction and the reflection distribution direction in the welding area is analyzed to obtain the degree of welding defects; wherein The welding defect degree is used to describe the ease of observation of the concave-convex changes in the edge texture surface of the weld in the welding area, which more accurately reflects the possibility of welding defects in the welding area; the welding defect degree is combined with the weld edge membership to obtain the weld defect degree; wherein the weld defect degree is used to describe the degree of possible undercut defects in the alloy plate welding grayscale image, thereby improving the accuracy of the quality problems of the alloy plate in the alloy plate welding grayscale image; the present invention enhances the difference characteristics between the undercut defect and the normal welding area by comprehensively analyzing the reflection conditions between the normal welding area and the undercut defect and the characteristic relationship of the edge texture changes of the alloy plate during welding, thereby effectively improving the accuracy of identifying the undercut defect and improving the quality inspection efficiency of the alloy plate welding production. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 It is a flow chart of the steps of the quality inspection method for intelligent welding production of alloy plates of the present invention;
[0044] Figure 2 It is a schematic diagram of the alloy plate image acquisition process of the present invention;
[0045] Figure 3 It is a schematic diagram of the alloy plate welding grayscale diagram of the present invention;
[0046] Figure 4 It is a schematic diagram of an ideal weld and undercut defect of the present invention. DETAILED DESCRIPTION
[0047] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the quality inspection method for intelligent welding production of alloy plates proposed by the present invention, its specific implementation method, structure, characteristics and effects are described in detail as follows in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0048] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0049] The specific scheme of the quality inspection method for intelligent welding production of alloy plates provided by the present invention is described in detail below with reference to the accompanying drawings.
[0050] See also Figure 1 , which shows a flow chart of the steps of a quality inspection method for intelligent welding production of alloy plates provided by an embodiment of the present invention, the method comprising the following steps:
[0051] Step S001: obtaining an alloy plate welding grayscale image of an alloy plate, wherein the alloy plate welding grayscale image includes a plurality of welding areas.
[0052] It should be noted that when alloy plates are welded, due to the different stresses in different parts and the different bearing capacities of alloy materials, some welding areas may have undercut defects. However, since these undercut defects are similar to the appearance of the welded parts, it is impossible to effectively distinguish the undercut defects, reducing the accuracy of quality inspection.
[0053] In a specific implementation of the embodiment of the present invention, the method for obtaining the alloy plate welding grayscale image and the welding area is:
[0054] Use parallel light source to illuminate the alloy plate at a certain angle, and use industrial camera to vertically shoot the alloy plate to obtain the alloy plate image, grayscale the alloy plate image to obtain the alloy plate welding grayscale image; perform superpixel segmentation on the alloy plate welding grayscale image to obtain several superpixel blocks, and record each superpixel block as the welding area. Figure 2 , which shows a schematic diagram of the alloy plate image acquisition process, Figure 2 includes detection objects, parallel light sources, and cameras; see Figure 3 , which shows a schematic diagram of the grayscale image of alloy plate welding.
[0055] It is particularly noted that the illumination direction of the parallel light source in this embodiment is described by taking the horizontal clockwise direction of 45 degrees as an example, and this embodiment does not make any specific limitations. The illumination direction of the parallel light source can be determined according to the specific implementation situation. Grayscale processing is a well-known technology, and the process of super-pixel segmentation of an image is a well-known content of the super-pixel segmentation algorithm, which will not be repeated in this embodiment.
[0056] So far, the alloy plate welding grayscale image and several welding areas of the alloy plate are obtained through the above method.
[0057] Step S002: Analyze the regularity of concentrated reflection distribution in the welding area to obtain the welding reflection regularity of each welding area; analyze the texture distribution of pixel points in the welding area and combine it with the welding reflection regularity to obtain the weld edge membership of each welding area.
[0058] It should be noted that, ideally, the welding surface of the alloy plate is relatively smooth, which can better connect the weld with other normal alloy surfaces in a relatively smooth state to ensure that the external pressure-bearing capacity of various parts on the alloy surface is close; in actual situations, due to the stress and the different materials of different alloy parts, the undercut parts will have a certain degree of concave area with other normal alloy surfaces, making the weld and the welding area surface have a relatively uneven connection state, and these two different connection states will present different reflection states; therefore, the welding reflection regularity of each welding area can be obtained by analyzing the regularity of the concentrated distribution of reflection in the welding area; if the welding reflection regularity is larger, it means that the reflection distribution of light in the welding area is more regular and smoother, reflecting that the uneven surface of the alloy in the welding area is less obvious. At the same time, because the ideal weld and the undercut defect will fill the weld part with welding, and the thickness will be higher than the thickness of the alloy material in other normal areas around, the overall area after welding will produce a certain regular texture distribution, thereby distinguishing the welding area from the normal area. There may also be a certain weld distribution inside the same welding area, so the texture distribution of the pixel points in the welding area can be analyzed and combined with the welding reflection regularity to obtain the weld edge membership of each welding area; if the weld edge membership is larger, it means that there are more welds distributed in the welding area, reflecting that the welding area is more likely to be the part of the alloy after welding.
[0059] Please refer to Figure 4 , which shows the schematic diagram of the ideal weld and the undercut defect, Figure 4 The ideal weld is the relatively smooth connection between the weld and other normal areas of the alloy plate under ideal conditions, and the area pointed to by the arrow of the undercut defect is the relatively uneven connection between the weld and other normal areas of the alloy plate when the undercut defect actually exists.
[0060] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the welding reflection regularity is: for any welding area, select a number of reflection pixels from the welding area according to the gray value; obtain the reflection distribution distance between each reflection pixel in the welding area and the center of gravity of the welding area; obtain the reflection distance variance between all reflection pixels in the welding area and the center of gravity of the welding area; obtain the welding reflection regularity of the welding area according to the reflection distribution distance and the reflection distance variance; the welding reflection regularity is negatively correlated with the reflection distance variance and positively correlated with the reflection distribution distance. The specific process is as follows:
[0061] Preset a gray value threshold , the gray value in the welding area is greater than The pixel point is recorded as the reflective pixel point; the Euclidean distance between each reflective pixel point in the welding area and the center of gravity of the welding area is recorded as the reflective distribution distance of each reflective pixel point; the variance of the reflective distribution distance of all reflective pixel points in the welding area is recorded as the reflective distance variance of the welding area. The acquisition of the Euclidean distance is a well-known technology and will not be described in detail in this embodiment. This example is described as an example, and this embodiment is not specifically limited. It may depend on the specific implementation situation.
[0062] Further, as an example, the welding reflection regularity of the welding area can be calculated by the following formula:
[0063]
[0064] In the formula, Indicates the regularity of welding reflection in the welding area; Indicates the number of all reflective pixels in the welding area; Indicates the welding area The reflection distribution distance of each reflective pixel; Indicates the variance of the reflection distance in the welding area; Represents the preset first denominator hyperparameter. In this embodiment, , used to prevent the denominator from being 0; represents the linear normalization function.
[0065] It should be noted that if the welding reflection regularity is greater, it means that the reflection distribution of light in the welding area is more regular and smoother, and the uneven surface of the alloy in the welding area is less obvious.
[0066] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the weld edge membership is: for any welding area, the welding texture continuity of the welding area is obtained according to the continuous gradient change of the pixel points in the welding area; the weld edge membership of the welding area is obtained according to the welding reflection regularity and the welding texture continuity of the welding area; the weld edge membership is negatively correlated with the welding reflection regularity and positively correlated with the welding texture continuity. The specific process is as follows:
[0067] 1. Obtain the degree of continuity of welding texture.
[0068] It should be noted that when the alloy plate is not welded, the cracks on its surface are usually continuously distributed in a certain direction to form a gap of a certain area; therefore, when welding the alloy plate, the original cracks need to be filled by welding. At the same time, because the thickness of the area after welding filling will be higher than the thickness of other normal areas around it, a continuous gradient change with more obvious texture changes can be formed. Therefore, the degree of continuity of the welding texture in the welding area can be obtained according to the continuous change of the gradient of the pixel points in the welding area; the greater the degree of continuity of the welding texture, the more likely it is that there will be continuous edge texture in the welding area, reflecting that the welding area contains more image information of the edge of the welding area.
[0069] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the degree of continuity of welding texture is: performing edge detection on the welding area to obtain a number of welding texture pixel points; analyzing the distance distribution between adjacent welding texture pixel points in the welding area to obtain the degree of regional texture dispersion of the welding area; obtaining the mean value of the gradient amplitude of all pixel points in the welding area; obtaining the degree of continuity of welding texture in the welding area according to the degree of regional texture dispersion and the mean value of gradient amplitude; the degree of continuity of welding texture is negatively correlated with the degree of regional texture dispersion and positively correlated with the mean value of gradient amplitude. The specific process is as follows:
[0070] The edge detection is performed on the welding area to obtain an edge detection image, and the pixel points with grayscale values not equal to 0 in the edge detection image are recorded as welding texture pixel points; the variance of the Euclidean distance between all different welding texture pixel points is used as the regional texture dispersion degree of the welding area; the mean of the gradient amplitudes of all pixels in the welding area is used as the mean of the gradient amplitudes of the welding area; the ratio of the mean of the gradient amplitude to the regional texture dispersion degree is used as the welding texture continuity degree of the welding area. The process of edge detection of the welding area is a well-known content of the Canny edge detection algorithm, and the acquisition of the gradient amplitude is a well-known content of the Sobel algorithm, which will not be repeated in this embodiment.
[0071] It should be noted that, if the welding texture is more continuous, it means that there is more likely to be continuous edge texture in the welding area, reflecting that the welding area contains more image information of the edge of the welding area.
[0072] 2. According to the welding reflection regularity and welding texture continuity of the welding area, the weld edge membership of the welding area is obtained.
[0073] The ratio of the welding texture continuity degree and the welding reflection regularity of the welding area is taken as the weld edge membership of the welding area.
[0074] It should be noted that if the weld edge membership is larger, it means that there are more welds distributed in the welding area, which reflects that the welding area is more likely to be the part where the alloy is welded.
[0075] Furthermore, the weld edge membership of each welding area is obtained.
[0076] So far, the weld edge membership of each welding area is obtained through the above method.
[0077] Step S003: Based on the welding reflection regularity, the grayscale difference between the edge of the welding area and the inside of the welding area is compared, and the distribution similarity between the texture edge direction and the reflection distribution direction in the welding area is analyzed to obtain the welding defect degree of each welding area.
[0078] It should be noted that after welding the crack area in the alloy plate, the welding area and the surrounding normal alloy plate surface have certain texture distribution changes due to the thickness difference. These texture distributions will affect the reflection of light, thereby affecting the grayscale distribution in the grayscale image, causing certain grayscale differences; and in the case of an ideal weld, due to the relatively smooth surface connection between the welding part and the surrounding normal area, the edge extension direction of these texture distributions is basically consistent with the direction distribution of the reflection distribution. On the contrary, in the case of a bite defect, the corresponding direction distribution is quite different; therefore, the grayscale difference between the edge of the welding area and the inside of the welding area can be compared based on the welding reflection regularity, and the distribution similarity between the texture edge direction and the reflection distribution direction in the welding area can be analyzed to obtain the degree of welding defects in each welding area; if the degree of welding defects is greater, it means that the concave-convex changes in the edge texture surface of the welding in the welding area are more obvious, reflecting the greater the possibility of welding defects in the welding area.
[0079] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the degree of welding defects is as follows: for any welding area, the grayscale distribution inside the welding area is adjusted based on the regularity of welding reflection, and the grayscale difference is compared with the edge of the welding area to obtain the edge reflection degree of the welding area; the difference between the texture edge direction and the reflection distribution direction in the welding area is compared to obtain the degree of similarity of the defective texture in the welding area; according to the edge reflection degree and the degree of similarity of the defective texture, the degree of welding defects in the welding area is obtained; the welding defect degree is negatively correlated with the edge reflection degree and positively correlated with the degree of similarity of the defective texture. The specific process is as follows:
[0080] 1. Get the edge reflection degree.
[0081] It should be noted that due to the obvious grayscale difference between the welding area and other normal areas, the boundary is mainly located at the edge of the welding area, so that the corresponding light reflection will also have a boundary at the edge; in the case of an ideal weld, the corresponding smoother connection part has a better reflection effect; and in the case of actual welding defects, the corresponding uneven connection part has a poor reflection effect; therefore, based on the welding reflection regularity, the internal grayscale distribution of the welding area is adjusted, and the grayscale difference is compared with the edge of the welding area to obtain the edge reflection degree of the welding area; if the edge reflection degree is smaller, it means that the surface change of the welding edge in the welding area is more obvious.
[0082] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the edge reflection degree is: weighting the grayscale values of the pixels inside the welding area according to the welding reflection regularity to obtain the weighted grayscale mean inside the area; obtaining the edge grayscale value of the pixels on the edge of the welding area; obtaining the edge reflection degree of the welding area according to the difference between the weighted grayscale mean inside the area and the edge grayscale value; the edge reflection degree is negatively correlated with the difference. The specific process is as follows:
[0083] Each pixel point on the edge of the welding area is recorded as a pixel point at the edge of the welding area; each pixel point in the welding area except the pixel point at the edge of the welding area is recorded as a pixel point inside the welding area. As an example, the edge reflection degree of the welding area can be calculated by the following formula:
[0084]
[0085] In the formula, Indicates the degree of edge reflection in the welding area; Represents the number of all weld area edge pixels of the weld area; Indicates the regularity of welding reflection in the welding area; Represents the mean gray value of all pixels inside the welding area; Indicates the welding area Gray value of the pixel point at the edge of the welding area; Represents the preset first denominator hyperparameter. In this embodiment, , used to prevent the denominator from being 0; Indicates taking the absolute value.
[0086] It should be noted that Used to describe the weighted grayscale mean inside the region; Used to describe edge grayscale values; Used to describe the difference between the two; if the edge reflection is smaller, it means that the surface change of the welding edge in the welding area is more obvious.
[0087] 2. Obtain the similarity of defect textures.
[0088] It should be noted that in the case of undercut defects, there is a relatively uneven connection between the weld and the surface of the welding area, and the more obvious undercut welding edge is mainly characterized by raised textures. These raised textures will also reflect the main illumination light to the industrial camera, so that the brighter reflective part is mainly distributed along the direction of the welding edge. In the case of an ideal weld, the brighter reflective part is mainly distributed in a scattered manner around. At the same time, because the welding area obtained by the superpixel algorithm contains areas with similar image content, the edge of the welding area is usually the edge of the actual welding part. In summary, the difference between the texture edge direction and the reflection distribution direction in the welding area can be compared to obtain the degree of similarity of the defective texture in the welding area. The greater the degree of similarity of the defective texture, the more obvious the welding edge in the welding area is, which reflects that the welding defect is more likely to exist in the welding area.
[0089] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the degree of similarity of defect textures is: obtaining the main extension line of the reflection of the welding area; obtaining the regional edge line of the welding area; according to the angle between the main extension line of the reflection and the regional edge line, obtaining the degree of similarity of the defect textures of the welding area; the angle is negatively correlated with the degree of similarity of the defect textures. The specific process is as follows:
[0090] The reflective pixel points in the welding area are subjected to straight line detection, and the obtained straight line is recorded as the main extension line of the reflective light; the welding area edge pixel points of the welding area are subjected to polygon fitting to obtain a fitted polygon, and each edge in the polygon is recorded as the area edge line. The process of performing straight line detection based on pixel points is a well-known content of the Hough line detection algorithm, and the process of performing polygon fitting based on pixel points is a well-known content of the polygon fitting algorithm, which will not be described in detail in this embodiment.
[0091] Furthermore, as an example, the similarity of the defect textures in the welding area can be calculated by the following formula:
[0092]
[0093] In the formula, Indicates the similarity of defect textures in the welding area; Represents the number of all area edge lines in the welding area; Indicates the welding area The acute angle formed by the edge line of each area and the main extension line of the reflection; represents an exponential function with a natural constant as the base, and the embodiment adopts Model to present inverse proportional relationship and normalization, As the input of the model, the implementer can choose the inverse proportional function and the normalization function according to the actual situation.
[0094] In particular, if the welding area If the angle formed by the edge line of each area and the main extension line of the reflection is only a right angle, the calculation shall be based on the right angle.
[0095] It should be noted that the greater the degree of similarity of the defect textures, the more obvious the welding edge in the welding area is, which reflects that the welding defects are more likely to exist in the welding area.
[0096] 3. The degree of welding defects in the welding area can be obtained based on the degree of edge reflection and the similarity of defect texture.
[0097] The ratio of the similarity of the defect texture in the welding area to the edge reflection degree is taken as the welding defect degree of the welding area.
[0098] It should be noted that the greater the degree of welding defects, the more obvious the changes in the concave-convex texture surface of the weld edge in the welding area, which reflects the greater possibility of welding defects in the welding area.
[0099] Furthermore, the degree of welding defects in each welding area is obtained.
[0100] So far, the welding defect degree of each welding area is obtained through the above method.
[0101] Step S004: combining the welding defect degree with the weld edge membership to obtain the weld defect degree of the alloy plate welding grayscale image; and performing quality inspection on the alloy plate welding grayscale image according to the weld defect degree.
[0102] It should be noted that the degree of welding defects represents the degree of welding defects that may exist in the welding area, and the weld edge membership represents the degree of welds that may exist in the welding area. The two can comprehensively represent the possibility of defects in the weld, that is, the possibility of undercut defects in the weld; therefore, the degree of welding defects is combined with the weld edge membership to obtain the degree of weld defects in the alloy plate welding grayscale map; the quality of the alloy plate welding grayscale map is inspected according to the degree of weld defects. The greater the degree of weld defects, the more likely it is that undercut defects will appear in the alloy plate welding grayscale map, reflecting that the alloy plate in the alloy plate welding grayscale map is more likely to have quality problems.
[0103] Preferably, in a specific implementation of an embodiment of the present invention, the method for obtaining the weld defect degree is: for any welding area, the normalized value of the product of the welding defect degree of the welding area and the weld edge membership is used as the local weld defect degree of the welding area; the average of the local weld defect degrees of all welding areas is used as the weld defect degree of the alloy plate welding grayscale image.
[0104] It should be noted that, if the degree of weld defects is greater, it means that undercut defects are more likely to appear in the alloy plate welding grayscale image, which reflects that the alloy plate in the alloy plate welding grayscale image is more likely to have quality problems.
[0105] It is particularly noted that this embodiment defaults to A linear normalization function is taken as an example for normalization processing, wherein the normalization processing may be determined according to specific implementation conditions.
[0106] Furthermore, a weld defect level threshold is preset. If the weld defect is greater than , the alloy plate welding diagram is recorded as an alloy plate welding diagram of unqualified quality; if the weld defect degree is less than or equal to , the alloy plate welding diagram is recorded as the alloy plate welding diagram of qualified quality. This example is described as an example, and this embodiment is not specifically limited. It may depend on the specific implementation situation.
[0107] At this point, this embodiment is completed.
[0108] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A quality inspection method for intelligent welding production of alloy plates, characterized in that: The method comprises the following steps: Acquire an alloy plate welding grayscale image of the alloy plate, wherein the alloy plate welding grayscale image includes a plurality of welding areas; By analyzing the regularity of concentrated distribution of reflections in the welding area, the welding reflection regularity of each welding area is obtained; the texture distribution of pixels in the welding area is analyzed and combined with the welding reflection regularity to obtain the weld edge membership of each welding area; wherein the welding reflection regularity is used to describe the regularity and smoothness of the reflection distribution of light in the welding area, and the weld edge membership is used to describe the distribution content of the weld edge; Based on the regularity of welding reflection, the grayscale difference between the edge of the welding area and the inside of the welding area is compared, and the distribution similarity between the texture edge direction and the reflection distribution direction in the welding area is analyzed to obtain the degree of welding defects in each welding area. The welding defect degree is combined with the weld edge membership to obtain the weld defect degree of the alloy plate welding grayscale image; the quality inspection of the alloy plate welding grayscale image is performed according to the weld defect degree; The method for obtaining the welding reflection regularity is: For any welding area, a number of reflective pixels are selected from the welding area according to the gray value; Obtain the reflection distribution distance between each reflection pixel point in the welding area and the center of gravity of the welding area; Obtain the variance of the reflection distance between all the reflection pixels in the welding area and the center of gravity of the welding area; According to the reflection distribution distance and the reflection distance variance, the welding reflection regularity of the welding area is obtained; the welding reflection regularity is negatively correlated with the reflection distance variance and positively correlated with the reflection distribution distance; The method for obtaining the weld edge membership is: For any welding area, the welding texture continuity of the welding area is obtained according to the continuous change of the gradient of the pixel points in the welding area; According to the welding reflection regularity and welding texture continuity of the welding area, the weld edge membership of the welding area is obtained; the weld edge membership is negatively correlated with the welding reflection regularity and positively correlated with the welding texture continuity; The method for obtaining the welding defect degree is: For any welding area, the grayscale distribution inside the welding area is adjusted based on the welding reflection regularity, and the grayscale difference is compared with the edge of the welding area to obtain the edge reflection degree of the welding area; Compare the similarity between the texture edge direction and the reflection distribution direction in the welding area to obtain the similarity of the defect texture in the welding area; The welding defect degree of the welding area is obtained according to the edge reflection degree and the degree of similarity of the defect texture; the welding defect degree is negatively correlated with the edge reflection degree and positively correlated with the degree of similarity of the defect texture; The method for obtaining the edge reflection degree is: The grayscale values of the pixels inside the welding area are weighted according to the regularity of welding reflection to obtain the weighted grayscale mean value inside the area; Get the edge gray value of the pixel point on the edge of the welding area; According to the difference between the weighted grayscale mean value inside the region and the edge grayscale value, the edge reflection degree of the welding area is obtained; the edge reflection degree is negatively correlated with the difference; The method for obtaining the similarity degree of the defect texture is as follows: Obtain the reflective main extension line of the welding area; Obtaining the regional edge line of the welding area; According to the angle between the main extension line of the reflection and the edge line of the area, the similarity of the defect textures in the welding area is obtained; the angle is negatively correlated with the similarity of the defect textures.
2. The quality inspection method for intelligent welding production of alloy plates according to claim 1 is characterized in that: After calculating the welding reflective regularity, it also includes: The welding reflection regularity of each welding area is normalized.
3. The quality inspection method for intelligent welding production of alloy plates according to claim 1 is characterized in that: The method for obtaining the degree of continuity of the welding texture is: Perform edge detection on the welding area to obtain a number of welding texture pixel points; analyze the distance distribution between adjacent welding texture pixel points in the welding area to obtain the regional texture dispersion degree of the welding area; Obtain the mean value of the gradient amplitude of all pixels in the welding area; The welding texture continuity of the welding area is obtained according to the regional texture dispersion degree and the gradient amplitude mean value; the welding texture continuity degree is negatively correlated with the regional texture dispersion degree and positively correlated with the gradient amplitude mean value.
4. The quality inspection method for intelligent welding production of alloy plates according to claim 1 is characterized in that: The method for obtaining the degree of weld defects is: For any welding area, the local weld defect degree of the welding area is obtained according to the welding defect degree of the welding area and the weld edge membership; The average value of the local weld defect levels of all welding areas is taken as the weld defect level of the alloy plate welding grayscale image.
5. The quality inspection method for intelligent welding production of alloy plates according to claim 4 is characterized in that: Before calculating the degree of weld defects, it also includes: The local weld defect degree of each welding area is normalized.
