CN115018827B - Automatic detection method for quality of building material weld joint - Google Patents
Automatic detection method for quality of building material weld joint Download PDFInfo
- Publication number
- CN115018827B CN115018827B CN202210923913.5A CN202210923913A CN115018827B CN 115018827 B CN115018827 B CN 115018827B CN 202210923913 A CN202210923913 A CN 202210923913A CN 115018827 B CN115018827 B CN 115018827B
- Authority
- CN
- China
- Prior art keywords
- defect
- undercut
- row
- undercut defect
- degree
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/8851—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/26—Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
- G06V10/267—Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/8851—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
- G01N2021/8887—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges based on image processing techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20084—Artificial neural networks [ANN]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Abstract
The invention relates to the technical field of image data processing, in particular to an automatic detection method for building material weld joint quality. Converting a welding line image on the surface of a building material into an HSV image and determining a welding line area, fitting the average value of V channel values on each row of the welding line area to obtain a standard smooth curve, and determining the defect degree of the welding line area according to the deviation of each V channel value on each row of the welding line area and the standard smooth curve; calculating the variance of V channel values on each line in a welding line and base material connecting area to determine whether the line is an undercut defect line, determining the defect degree of the undercut defect line according to the undercut defect depth, length and kurtosis, determining the weight of the defect degree of the undercut defect line according to the undercut size of the undercut defect line to obtain the undercut defect degree of the area, and completing welding line quality detection according to the obtained defect degrees of the two areas. The method has the advantages that the judgment threshold is set in a self-adaptive mode, the detection is comprehensive, a large amount of training data or point cloud data does not need to be acquired, and the efficient and accurate detection of the quality of the building material welding seam is realized.
Description
Technical Field
The invention relates to the technical field of image data processing, in particular to an automatic detection method for building material weld joint quality.
Background
In recent years, with the continuous acceleration of the industrialization process of China, the market competition is increasingly fierce, and the upgrading of the processing and manufacturing technology of the product becomes an important means for improving the product competitiveness of each enterprise. Welding is used as a mature material forming process, is widely applied in the building manufacturing industry, and the number of products produced by adopting welding as a building material connecting means every year is huge. Detecting the quality of a welded seam after welding is an essential link in welding production, and the quality of the welded seam not only influences the service performance and service life of a welded product, but also influences personal safety and property safety.
The most common welding quality detection methods in the prior art comprise methods such as high-precision eddy current and ultrasonic flaw detection, which can well judge whether a welding seam has defects such as bubbles, but have complex implementation process, cannot quantitatively acquire information such as width and area of the welding defect, and has high detection cost; however, in the existing means for detecting the weld defects by using the image processing method, if the means for detecting the weld defects by using the neural network is used, the problem that the required training sample is large and the processing speed is slow exists, and if the means for judging the weld defects by using three-dimensional point cloud data of the weld obtained by three-dimensional scanning is used, the problem that the value is single and the applicable scene is narrow exists when the judgment threshold value used for judging by using the point cloud data obtained in real time, so that the weld quality detection effect is poor.
In conclusion, the existing weld joint quality detection method has the problems of low detection efficiency and poor detection effect.
Disclosure of Invention
The invention provides an automatic detection method for the quality of a building material weld joint, which is used for solving the problems of low efficiency and inaccuracy of the detection of the quality of the building material weld joint in the prior art, and adopts the following technical scheme:
the invention relates to an automatic detection method for the weld quality of building materials, which comprises the following steps:
acquiring a building material surface weld image, converting the building material surface weld image into an HSV (hue, saturation and value) image and then determining a weld area;
taking the minimum external rectangle of the welding seam region as a first rectangle, taking the longitudinal direction of the first rectangle as the welding seam trend, determining the mean value of the V channel values of the pixel points on each row in the first rectangle, then fitting the mean value of the V channel values of the pixel points on each row in the first rectangle to obtain a standard smooth curve of the welding seam region in the transverse direction, calculating the deviation degree of the V channel values of the pixel points on each row in the first rectangle and the standard smooth curve, and summing the deviation degrees of the V channel values of the pixel points on all rows and the standard smooth curve to obtain the defect degree of the welding seam region;
respectively extending the first rectangle leftwards and rightwards in the transverse direction by a set distance to obtain a second rectangle, taking the area between the left edge of the first rectangle and the left edge of the second rectangle as a left extending area, taking the area between the right edge of the first rectangle and the right edge of the second rectangle as a right extending area, calculating the variance of the V channel values of the pixel points on each line in the left extending area and the variance of the V channel values of the pixel points on each line in the right extending area, and if the variances are larger than a variance threshold value, taking the corresponding line as a undercut defect line;
respectively counting the longitudinal length value of the undercut defect line when the undercut defect line continuously appears once in the left extending area and the right extending area, calculating the ratio of the longitudinal length value of the undercut defect line when the undercut defect line continuously appears once to the longitudinal total length of the second rectangle, taking the ratio as the defect weight of each undercut defect line continuously appearing this time, and repeating the acquiring process of the defect weight of the undercut defect line, thereby obtaining the defect weight of all undercut defect lines;
determining the undercut defect depth of the undercut defect row according to the maximum value of the V channel value at each pixel point in the undercut defect row and the minimum value of the V channel value; taking the number of pixel points with V channel values smaller than an undercut defect threshold value in the undercut defect row as the undercut defect length of the undercut defect row; calculating the undercut defect kurtosis of the undercut defect row according to the undercut defect length of the undercut defect row and the V channel value of each pixel point in the undercut defect length;
calculating the defect degree of the undercut defect row according to the undercut defect depth, the undercut defect length and the undercut defect kurtosis of the undercut defect row, and calculating the undercut defect degree in the connecting area between the welding line and the base metal according to the defect degree and the defect weight of each undercut defect row;
and calculating the damage degree of the welding line according to the defect degree of the welding line area and the undercut defect degree in the connecting area between the welding line and the base metal, and judging the welding line quality according to the damage degree to finish the detection of the welding line quality of the building materials.
The invention has the beneficial effects that:
according to the automatic detection method for the welding quality of the building material, for a welding seam area, a standard smooth curve of the welding seam area in the transverse direction is obtained by fitting the mean value of the V channel value of each column of pixel points on the minimum circumscribed rectangle of the welding seam area, the standard smooth curve is a defect judgment threshold value which is obtained by self-adaption according to the condition of the overall V channel value of the welding seam area in a welding seam image on the surface of the building material, then the defect degree of the welding seam area is determined by calculating the sum of the deviation degree of each pixel point on each row of the minimum circumscribed rectangle of the welding seam area and the standard smooth curve, the defect judgment threshold value is self-adaptively set, the welding quality representation of the welding seam area is more comprehensive, and the more accurate evaluation of the welding quality of the welding seam area is realized; for a connecting area of a welding line and a base material, firstly calculating the variance of V channel values of pixel points on each row in the area, comparing with a variance threshold value to determine whether the corresponding row contains pixel points of undercut defects, taking the row containing the pixel points of the undercut defects as the undercut defect row, then performing defect weight assignment on each undercut defect row according to the proportion of the longitudinal length of each undercut defect in the connecting area of the welding line and the base material in the whole area, then accurately representing the undercut defect degree of the undercut defect row by calculating the undercut defect depth, the undercut defect length and the undercut defect kurtosis of the undercut defect row, and finally obtaining the undercut defect degree of the connecting area of the welding line and the base material. Finally, according to the defect degree of the obtained welding line area and the undercut defect degree of the connecting area of the welding line and the base metal, the invention can realize the rapid, efficient and accurate detection of the quality of the welding line of the building material.
Further, the undercut defect kurtosis of the undercut defect row is as follows:
wherein, the first and the second end of the pipe are connected with each other,the kurtosis of the undercut defect row of the z th undercut defect row in the extending areas at the left and right sides,is the V channel value of the D-th pixel point in the undercut defect length D of the z-th undercut defect row in the extension areas at the left and right sides,the average value of the V channels of all pixel points in the undercut defect length D of the z-th undercut defect row in the extension areas on the left side and the right side.
Further, the process of obtaining the defect degree of the weld joint region comprises:
calculating the defect degree of the k-th row on the first rectangle:
wherein, the first and the second end of the pipe are connected with each other,is the defect level of the k-th row on the first rectangle,is the V channel value of the j pixel point in the k line on the first rectangle,represents the ordinate value corresponding to the abscissa of the standard smooth curve being j,and withRespectively representing the abscissa minimum value and the abscissa maximum value of the first rectangle in a coordinate system;
then calculating the defect degree of the welding seam region:
wherein P is the defect degree of the welding seam area, and M is the longitudinal length of the first rectangle.
Further, the undercut defect depth of the undercut defect row is:
wherein the content of the first and second substances,the undercut defect depth of the z-th undercut defect row in the left and right side extension regions,the maximum V channel value in the z-th undercut defect line in the left and right extended regions,the minimum V channel value in the z-th undercut defect line in the left and right extended regions.
Further, the defect degree of the undercut defect row is as follows:
wherein the content of the first and second substances,the defect degree of the z-th undercut defect row in the left and right extended regions,the undercut defect depth of the z-th undercut defect row in the left and right side extension regions,the crest factor of the undercut defect of the z-th undercut defect row in the left and right extended regions.
Further, the undercut defect degree in the connecting region between the weld joint and the base material is as follows:
wherein the content of the first and second substances,as undercut defects in the region of the joint between the weld seam and the base materialTo the extent that,the defect degree of the z-th undercut defect row in the left and right extended regions,the defect weight of the z-th undercut defect row in the left and right extended regions.
Further, the damage degree of the welding seam is as follows:
wherein the content of the first and second substances,as the degree of damage to the weld,is a weighting of the degree of defects in the weld zone,is a weight of the degree of defects in the connecting region between the weld and the parent material.
Further, the obtaining process of the standard smooth curve is as follows:
calculating the average value of the V channel values of the pixel points on each row of the first rectangle from left to right in sequence to obtain a set of the average values of the V channels on each row of the first rectangleWhere N is the lateral length of the first rectangle, then setAnd performing Gaussian fitting to obtain a standard smooth curve of the welding seam area in the transverse direction.
Further, the process of determining the variance threshold is as follows:
determining a welding seam area in a welding seam image of the building material surface without undercut defects to obtain a minimum circumscribed rectangle of the welding seam area, then respectively extending the minimum circumscribed rectangle leftwards and rightwards in the transverse direction by the set distance, determining a leftwards extending area and a rightwards extending area in the extending process, calculating the variance of V channel values of all pixel points in the leftwards extending area and the rightwards extending area to serve as a standard variance, and taking the standard variance of a set multiple as the variance threshold.
Drawings
FIG. 1 is a flow chart of the automatic detection method for the weld quality of the building material according to the invention;
FIG. 2 is a schematic view of the normal weld shape of the present invention;
FIG. 3 is a schematic view of the weld shape when the weld region of the present invention is defective;
FIG. 4 is a schematic view of a minimum circumscribed rectangle corresponding to a weld region of the present invention;
FIG. 5 is a schematic diagram of a standard smooth curve of the weld zone in the transverse direction obtained by fitting the mean value of the V channels of each column of the minimum circumscribed rectangle corresponding to the weld zone;
FIG. 6 is a schematic view of an undercut defect of the present invention;
FIG. 7 is a schematic view showing the shape of a weld in the case where an undercut defect is present in the joint region between the weld and the base material according to the present invention.
Detailed Description
The main purposes of the invention are: and (3) by utilizing a computer vision technology, processing the collected building material surface weld image, calculating the defect degree of the weld and base metal connecting area according to the weld characteristics on the weld area and the characteristics of the weld and base metal connecting area, further obtaining the damage degree of the building material weld, determining the welding quality grade of the building material weld according to the damage degree grading basis of the building material weld, and completing the automatic detection of the building material weld quality.
The following describes a method for automatically detecting the weld quality of a building material in detail with reference to the accompanying drawings and embodiments.
The method comprises the following steps:
the embodiment of the automatic detection method for the quality of the welding line of the building material, disclosed by the invention, has the overall flow as shown in figure 1, and comprises the following specific processes:
the method comprises the steps of firstly, obtaining a building material surface weld image, converting the building material surface weld image into an HSV image, and then segmenting the converted building material surface weld image to determine a weld area.
In order to determine the welding quality of the welding seam on the surface of the building material by using the computer vision technology, it is necessary to first obtain an image of the welding seam on the surface of the building material.
Since the weld formed by welding the building material is required to be smooth and free from welding defects such as blowholes, inclusions of slag, burrs, and burnthrough, the weld is normally slightly higher than the surface of the base material, and when the building material is viewed in plan, the weld takes the shape of an arc as shown in fig. 2. However, when the weld has the above-mentioned weld defects such as blowholes, slag inclusions, flash, and burnthrough, the weld deforms from a circular arc shape in plan view to a shape having a central recess as shown in fig. 3.
The change of the shape of the welding seam caused by the welding defect is corresponding to the change of the image characteristics on the acquired welding seam image, and in the embodiment, the acquired welding seam image on the surface of the building material is preferably denoised and then is converted into an HSV (hue, saturation and value) image by an RBG (radial basis function) image to determine the image characteristics of the welding seam image on the surface of the building material, so that whether the welding defect is generated in the welding seam area and the area between the welding seam and the base metal is determined. Of course, in other embodiments, other forms of transformation may be performed on the acquired building material surface weld image to determine image characteristics, such as grayscale transformation, etc. The denoising method, which is the preferred median filtering in this embodiment, may also be implemented by other feasible methods in the prior art in other embodiments.
After the welding seam image on the building material surface is converted into the HSV image, the DNN semantic segmentation method is adopted to identify the welding seam area in the image, and the related content of the used DNN network is as follows:
a. the used training data set is a building material surface welding seam image data set collected in an overlook mode;
b. the pixels to be segmented are divided into 2 types, namely the labeling process of the corresponding labels of the training data set is as follows: in the semantic label of the single channel, the pixel of the corresponding position belongs to the background class, namely the label of the non-welding seam is 0, and the label of the pixel belonging to the welding seam is 1;
c. the task of the network is classification, so the loss function used is a cross entropy loss function.
Therefore, the weld joint area can be successfully divided and determined from the weld joint image on the surface of the building material by a DNN semantic division method.
And step two, determining the defect degree in the welding seam area and the defect degree in the welding seam and base metal connecting area according to the brightness change characteristics, thereby determining the damage degree of the welding seam.
The welding quality of the building material is mainly determined by the defect degree of the welding seam and whether the connecting area between the welding seam and the base metal is smooth, natural and free of defects, so that the welding damage degree in the two areas is determined by analyzing the image characteristics in the two areas, and the quality of the welding seam of the building material is further calculated.
1. And determining the defect degree in the welding seam area according to the brightness change characteristics.
In the embodiment, the acquired welding seam image on the surface of the building material is converted into the HSV image from the RGB image, so that the welding seam region obtained by semantic segmentation in the welding seam image on the surface of the building material is also the HSV image.
And (3) taking a brightness channel image of the welding seam region, namely a V-channel image, and combining the shape characteristics of the welding seam to know that the V-channel value of a pixel point from the edges of two sides of the welding seam to the central line of the welding seam is gradually increased in the welding seam region without welding defects.
And respectively taking the initial and final positions of the rows and the initial and final positions of the columns of the welding seam region to obtain the minimum circumscribed rectangle of the welding seam region, wherein the longitudinal direction of the minimum circumscribed rectangle is the trend of the welding seam as shown in fig. 4. Establishing a plane coordinate system by taking the lower left corner of the minimum circumscribed rectangle as an origin, and determining the minimum circumscribed rectangleLocated in the first quadrant. Sequentially calculating the average value of the V channel values of the pixel points on each row of the minimum external rectangle from left to right to obtain the set of the average values of the V channels on each row of the minimum external rectangleAnd N is the transverse length of the minimum circumscribed rectangle corresponding to the welding seam area.
Then pair the setsGaussian fitting was performed to obtain a standard smooth curve of the weld region in the transverse direction as shown in FIG. 5Wherein i is the horizontal axis, and wherein i is the horizontal axis,the unit is a single pixel point,and the vertical axis represents the mean value of the V channels of each row of pixel points in the fitted welding seam area.
Determining the abscissa minimum value of the minimum circumscribed rectangle corresponding to the welding seam region in the coordinate systemAnd maximum value of abscissaAnd then calculating the defect degree of the k line on the minimum circumscribed rectangle corresponding to the welding seam region:
wherein the content of the first and second substances,is a weld zoneThe minimum defect level of the k-th row on the bounding rectangle should be,is the V channel value of the jth pixel point in the kth line on the minimum external rectangle corresponding to the welding seam area,represents the vertical coordinate value corresponding to the horizontal coordinate j of the standard smooth curve, and the value range of j is,。
Then calculating the defect degree of the welding seam region:
wherein, P is the defect degree of the welding seam area, and M is the longitudinal length of the minimum circumscribed rectangle corresponding to the welding seam area.
The defect degree P is obtained by comparing the V channel value of each pixel point on the welding line region with the average value of the V channels of the columns of the pixel points, so that the defects of air holes, slag inclusion, welding beading and the like in the welding region can be clearly represented, the smoothness degree of the whole welding line can be represented, and the smoothness degree of the welding line also influences the quality of the welding line, so that the representation of the welding line quality is more comprehensive in the embodiment, the average value of the V channels of each column is used as a comparison threshold value of the V channel value of each pixel point on the column, the self-adaptive setting of the threshold value is realized, and finally, the defect degree P is obtained by the embodiment, and the welding quality evaluation can be more accurately completed.
2. And determining the defect degree of the connecting area between the welding seam and the base material according to the brightness change characteristics.
In the quality inspection of the appearance of the welding seam, the connecting area between the welding seam and the base material is smooth, natural and free from depression, namely, the base material cannot be excessively damaged in the welding process. Therefore, it is necessary to analyze the undercut defect, which is a kind of groove-like defect formed by burning through of the welding arc at the edge where the welding seam base material contacts the welding seam, as shown in fig. 6. When the building material is viewed in plan with undercut defects, the weld takes the form of a depression outside the arc as shown in fig. 7.
In order to analyze the joint area between the welding seam and the parent metal, the minimum circumscribed rectangle corresponding to the welding seam area is selected to extend leftwards and rightwards in the transverse directionAnd obtaining a new rectangular area with the longitudinal length of M and the transverse length of 2N for each pixel point, taking the minimum external rectangle corresponding to the original welding area as a first rectangle, and taking the new rectangular area obtained by transversely extending and expanding the first rectangle as a second rectangle. The present embodiment preferably extends leftwards and rightwards on the basis of the first rectangleIn other embodiments, the extension length may be set to other values, for example, the extension length is determined according to the welding power, the base material type, and the left and right extension lengths may be set to be the same or different.
The region from the left side boundary of the first rectangle to the left side boundary of the second rectangle is taken as a left extension region, and the region from the right side boundary of the first rectangle to the right side boundary of the second rectangle is taken as a right extension region. Since the undercut region is a pit and corresponds to a darker region on the V-channel image, the V-channel value of the region is small, and then, if an undercut defect is included in the left-side extended region or the right-side extended region, a row having a large variance of the V-channel value exists in the left-side or right-side extended region.
Statistics of the first of the left extension regionV channel values of all pixel points in the row and calculating the variance of all the V channel valuesSimilarly, the first of the right extension region is countedV channel values of all pixel points in the row and calculating the variance of all the V channel valuesTaking a building material surface weld image without undercut defect, determining a left extending area and a right extending area in the building material surface weld image without undercut defect according to the method, and calculating the variance of the V channel values of all pixel points in the left extending area and the right extending areaIf, ifIn the left extension regionThe line contains undercut defect pixel points, which are undercut defect lines, ifIn the right extension areaThe line contains undercut defect pixel points, which are undercut defect lines.
In this embodiment, after the left extending area and the right extending area are determined from the weld image on the building material surface without undercut defect, the variance of the V channel values of all the pixels in the left extending area and the right extending area is used as the uniform standard varianceIn other embodiments, the left side may also be computed separatelyAnd the variance of the V channel values of all the pixel points in the extension area and the variance of the V channel values of all the pixel points in the right extension area are respectively used as the standard variance on the left side and the standard variance on the right side. In this embodiment, a standard deviation of 1.1 times is preferably used as a determination threshold for determining whether each row contains undercut defective pixel points, and in other embodiments, standard deviations of other times may be set as determination thresholds for determining whether each row contains undercut defective pixel points, of course, according to specific requirements.
Counting the longitudinal length value of the undercut defect line when the u-th continuous occurrence in the left extension areaAnd the value of the longitudinal length of the line of undercut defects in the right extended area at the time of the v-th continuous occurrence. Longitudinal length valueAndin practice, the longitudinal length of the u-th undercut defect in the left extended region and the longitudinal length of the v-th undercut defect in the right extended region are shown respectively.
Calculating the longitudinal length value of the undercut defect line when the u-th continuous occurrence in the left extension areaRatio to the total longitudinal length M of the left-hand extensionThe ratio is the undercut defect weight of each undercut defect row continuously appearing at the u-th time in the left extension area, and the longitudinal length value of each undercut defect row continuously appearing at the v-th time in the right extension area is calculatedRatio to the total longitudinal length M of the right extensionThe ratio is the undercut defect weight of each undercut defect row continuously appearing at the v-th time in the right extended area. Thus, the undercut defect weight of each undercut defect row in the left and right extended regions can be obtained, and the undercut defect weight of the z-th undercut defect row in the left and right extended regions can be recorded as。
Then, in this embodiment, statistics is performed on all undercut defect rows in the left and right extended regions, and the undercut defect depth, the undercut defect length, and the undercut defect kurtosis of the z-th undercut defect row in the left and right extended regions are calculated.
The undercut defect depth of the z-th undercut defect row in the left and right side extension regions is:
wherein the content of the first and second substances,the undercut defect depth of the z-th undercut defect row in the left and right side extension regions,the maximum V channel value in the z-th undercut defect line in the left and right extended regions,the minimum V channel value in the z th undercut defect line in the left and right extended regions.
Regarding the undercut defect length of the z-th undercut defect row in the left and right extended regions, firstly, according to the OtsuThreshold method for determining undercut defect thresholdThen, judging that the V channel value is smaller than the undercut defect threshold value on the z th undercut defect lineAnd taking the number of the pixel points as the undercut defect length D of the z-th undercut defect row.
The crest factor of the undercut defect of the z-th undercut defect row in the left and right side extension areas is as follows:
wherein the content of the first and second substances,is the undercut defect kurtosis of the z-th undercut defect row in the left and right side extension regions,is the V channel value of the D-th pixel point in the undercut defect length D of the z-th undercut defect row in the extension areas at the left and right sides,is the V channel mean value of all pixel points in the undercut defect length D of the z-th undercut defect row in the extension areas at the left side and the right side,the fourth order central moment of the V channel values of all pixel points in the undercut defect length D of the z-th undercut defect row is represented,and the square of the second-order central moment of the V channel values of all pixel points in the undercut defect length D of the z-th undercut defect row is represented.
Left and right sides extension obtained by calculationUndercut defect depth for the z-th undercut defect row in a regionUndercut defect length D and undercut defect kurtosisAnd calculating the defect degree of the z-th undercut defect row as follows:
wherein, the first and the second end of the pipe are connected with each other,the defect degree of the z-th undercut defect row in the left and right extended regions.
Finally, the undercut defect level in the connection region between the weld and the parent metal can be calculated:
wherein the content of the first and second substances,the degree of undercut defect in the connecting region between the weld and the base material,the defect degree of the z-th undercut defect row in the left and right extended regions,the defect weight of the z-th undercut defect row in the left and right extended regions.
3. And determining the damage degree of the welding seam according to the defect degree in the welding seam area and the defect degree in the connecting area between the welding seam and the base metal.
The damage degree of the welding seam is as follows:
wherein, the first and the second end of the pipe are connected with each other,as the degree of damage to the weld,is a weight of the degree of defect in the weld area,is a weighting of the degree of defects in the connecting region between the weld and the parent material. This embodiment is preferredIn other embodiments, it can be set as requiredAndthe value of (a).
And step three, determining the quality grade of the welding line according to the damage degree of the welding line, and completing automatic detection of the quality of the welding line of the building material.
According to the second step, the damage degree F of the welding seam can be known, and the quality of the welding seam is classified into first-grade, second-grade and third-grade products and unqualified products from high to low according to the known existing welding seam quality detection standard. According to the specific quality requirement, the first-level welding quality parameters can be respectively and correspondingly setSecond grade welding quality parameterAnd three-stage welding quality parameters。
Therefore, the quality grade of the welding seam can be determined according to the damage degree F of the obtained welding seam and welding quality parameters at all levels, and the detection of the quality of the welding seam of the building materials is completed:
when the temperature is higher than the set temperatureJudging the quality of the welding seam of the building material to be in a second level;
when the temperature is higher than the set temperatureJudging the quality of the building material weld joint to be three-level;
when the temperature is higher than the set temperatureAnd judging that the quality of the building material welding line is unqualified.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; the modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present application, and are included in the protection scope of the present application.
Claims (8)
1. The automatic detection method for the quality of the welding line of the building material is characterized by comprising the following steps of:
acquiring a building material surface weld image, converting the building material surface weld image into an HSV (hue, saturation and value) image and then determining a weld area;
taking the minimum external rectangle of the welding seam region as a first rectangle, taking the longitudinal direction of the first rectangle as the welding seam trend, determining the mean value of the V channel values of the pixel points on each row in the first rectangle, then fitting the mean value of the V channel values of the pixel points on each row in the first rectangle to obtain a standard smooth curve of the welding seam region in the transverse direction, calculating the deviation degree of the V channel values of the pixel points on each row in the first rectangle and the standard smooth curve, and summing the deviation degrees of the V channel values of the pixel points on all rows and the standard smooth curve to obtain the defect degree of the welding seam region;
respectively extending the first rectangle leftwards and rightwards in the transverse direction by a set distance to obtain a second rectangle, taking the area between the left edge of the first rectangle and the left edge of the second rectangle as a left extending area, taking the area between the right edge of the first rectangle and the right edge of the second rectangle as a right extending area, calculating the variance of the V channel values of the pixel points on each line in the left extending area and the variance of the V channel values of the pixel points on each line in the right extending area, and if the variances are larger than a variance threshold value, taking the corresponding line as a undercut defect line;
respectively counting the longitudinal length value of the undercut defect line when the undercut defect line continuously appears once in the left extending area and the right extending area, calculating the ratio of the longitudinal length value of the undercut defect line when the undercut defect line continuously appears once to the longitudinal total length of the second rectangle, taking the ratio as the defect weight of each undercut defect line continuously appearing this time, and repeating the acquiring process of the defect weight of the undercut defect line, thereby obtaining the defect weight of all undercut defect lines;
determining the undercut defect depth of the undercut defect row according to the maximum value of the V channel value and the minimum value of the V channel value at each pixel point in the undercut defect row; taking the number of pixel points with V channel values smaller than the undercut defect threshold value in the undercut defect row as the undercut defect length of the undercut defect row; calculating the undercut defect kurtosis of the undercut defect row according to the undercut defect length of the undercut defect row and the V channel value of each pixel point in the undercut defect length;
calculating the defect degree of the undercut defect row according to the undercut defect depth, the undercut defect length and the undercut defect kurtosis of the undercut defect row, and calculating the undercut defect degree in the connecting area between the welding line and the base metal according to the defect degree and the defect weight of each undercut defect row;
calculating the damage degree of the welding line according to the defect degree of the welding line area and the undercut defect degree in the connecting area between the welding line and the base metal, and judging the welding line quality according to the damage degree to finish the detection of the welding line quality of the building material;
the undercut defect kurtosis of the undercut defect row is as follows:
wherein, the first and the second end of the pipe are connected with each other,the kurtosis of the undercut defect row of the z th undercut defect row in the extending areas at the left and right sides,is the V channel value of the D-th pixel point in the undercut defect length D of the z-th undercut defect row in the extension areas at the left and right sides,the average value of the V channels of all pixel points in the undercut defect length D of the z-th undercut defect row in the extension areas on the left side and the right side.
2. The automatic detection method for the weld quality of the building material according to claim 1, wherein the process of obtaining the defect degree of the weld area comprises the following steps:
calculating the defect degree of the k-th row on the first rectangle:
wherein, the first and the second end of the pipe are connected with each other,is the defect level of the k-th row on the first rectangle,is the V channel value of the j pixel point in the k line on the first rectangle,represents the ordinate value corresponding to the abscissa of the standard smooth curve being j,and withRespectively representing the abscissa minimum value and the abscissa maximum value of the first rectangle in a coordinate system;
then calculating the defect degree of the welding seam region:
wherein P is the defect degree of the welding seam area, and M is the longitudinal length of the first rectangle.
3. The automatic detection method for the quality of the welding seam of the building material according to claim 1, characterized in that the depth of the undercut defect row is as follows:
wherein the content of the first and second substances,the undercut defect depth of the z-th undercut defect row in the left and right side extension regions,the maximum V channel value in the z-th undercut defect line in the left and right extended regions,the minimum V channel value in the z-th undercut defect line in the left and right extended regions.
4. The automatic detection method for the weld quality of the building material according to claim 1, wherein the defect degrees of the undercut defect rows are as follows:
wherein the content of the first and second substances,the defect degree of the z-th undercut defect row in the left and right extended regions,the undercut defect depth of the z-th undercut defect row in the left and right side extension regions,is the undercut defect kurtosis of the z-th undercut defect row in the left and right side extension regions, and D is the undercut defect length of the z-th undercut defect row in the left and right side extension regions.
5. A building material weld quality automatic detection method according to claim 1, characterized in that the degree of undercut defects in the connection region between the weld and the base material is:
wherein the content of the first and second substances,the degree of undercut defect in the connecting region between the weld and the base material,the defect degree of the z-th undercut defect row in the left and right extended regions,the defect weight of the z-th undercut defect row in the left and right extended regions.
6. The automatic detection method for the weld quality of the building material according to claim 1, wherein the damage degree of the weld is as follows:
wherein the content of the first and second substances,in order to determine the degree of damage to the weld,is a weight of the degree of defect in the weld area,the weight of the defect degree in the connecting area between the welding seam and the base material, P the defect degree of the welding seam area, and E the undercut defect degree in the connecting area between the welding seam and the base material.
7. The automatic detection method for the weld quality of the building material according to claim 1, wherein the standard smooth curve is obtained by the following steps:
from left to rightCalculating the average value of the V channel values of the pixel points on each row of the first rectangle in sequence on the right side to obtain a set of the V channel average values of each row of the first rectangleWhere N is the lateral length of the first rectangle, then setAnd performing Gaussian fitting to obtain a standard smooth curve of the welding seam area in the transverse direction.
8. The building material weld quality automatic detection method according to claim 1, wherein the variance threshold is determined by the following steps:
determining a welding line region in a welding line image on the surface of the building material without undercut defects to obtain a minimum circumscribed rectangle of the welding line region, respectively extending the minimum circumscribed rectangle leftwards and rightwards in the transverse direction by the set distance, determining a leftwards extending region and a rightwards extending region in the extending process, calculating the variance of V channel values of all pixel points in the leftwards extending region and the rightwards extending region as a standard variance, and taking the standard variance of a set multiple as the variance threshold.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210923913.5A CN115018827B (en) | 2022-08-03 | 2022-08-03 | Automatic detection method for quality of building material weld joint |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210923913.5A CN115018827B (en) | 2022-08-03 | 2022-08-03 | Automatic detection method for quality of building material weld joint |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115018827A CN115018827A (en) | 2022-09-06 |
CN115018827B true CN115018827B (en) | 2022-11-04 |
Family
ID=83066052
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210923913.5A Active CN115018827B (en) | 2022-08-03 | 2022-08-03 | Automatic detection method for quality of building material weld joint |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115018827B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115213563B (en) * | 2022-09-20 | 2022-12-13 | 扬州耐施工程机械有限公司 | Laser intelligent welding method and system |
CN115330780B (en) * | 2022-10-13 | 2023-03-07 | 山东盛世恒机械制造有限公司 | Rapid detection method for slag inclusion defect of metal welding |
CN116342611B (en) * | 2023-05-31 | 2023-09-08 | 无锡日联科技股份有限公司 | Method and device for detecting bonding wires of micro semiconductor |
CN117708615A (en) * | 2024-02-04 | 2024-03-15 | 芯联集成电路制造股份有限公司 | Product detection method and processing equipment monitoring method |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008164482A (en) * | 2006-12-28 | 2008-07-17 | Daido Steel Co Ltd | Method for evaluating welding quality |
CN103134809B (en) * | 2013-03-14 | 2015-04-29 | 苏州华源包装股份有限公司 | Welded line defect detection method |
CN104865277B (en) * | 2015-05-11 | 2017-05-17 | 四川大学 | Method for automatically identifying pipe weld defect based on double-wall double-projection transillumination image |
CN111462110B (en) * | 2020-04-20 | 2021-04-13 | 广东利元亨智能装备股份有限公司 | Welding seam quality detection method, device and system and electronic equipment |
CN112862794A (en) * | 2021-02-20 | 2021-05-28 | 河北工业大学 | Fillet weld appearance detection method based on structured light |
CN112950633B (en) * | 2021-04-19 | 2023-06-23 | 上海电机学院 | Aluminum alloy weld joint surface defect detection method based on line structured light |
CN113409313B (en) * | 2021-08-18 | 2021-11-09 | 济宁联威车轮制造有限公司 | Wheel weld surface defect detection method based on computer vision |
CN113732558B (en) * | 2021-09-06 | 2022-11-11 | 中车工业研究院有限公司 | Online detection method and device for typical quality problems of robot welding |
CN113989280B (en) * | 2021-12-28 | 2022-03-22 | 武汉市鑫景诚路桥钢模有限公司 | Steel structure welding crack defect detection method based on image processing technology |
-
2022
- 2022-08-03 CN CN202210923913.5A patent/CN115018827B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN115018827A (en) | 2022-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115018827B (en) | Automatic detection method for quality of building material weld joint | |
CN111145175B (en) | SMT welding spot defect detection method based on iForest model verification | |
CN115239704B (en) | Accurate detection and repair method for wood surface defects | |
CN115272316B (en) | Intelligent detection method for welding quality of battery cover based on computer vision | |
CN109682839B (en) | Online detection method for surface defects of metal arc-shaped workpiece | |
CN109215009B (en) | Continuous casting billet surface image defect detection method based on deep convolution neural network | |
CN115082418B (en) | Precise identification method for automobile parts | |
CN107607554A (en) | A kind of Defect Detection and sorting technique of the zinc-plated stamping parts based on full convolutional neural networks | |
CN102175700B (en) | Method for detecting welding seam segmentation and defects of digital X-ray images | |
CN111103291A (en) | Image recognition and quality intelligent evaluation system based on product weld joint characteristics | |
CN111815555A (en) | Metal additive manufacturing image detection method and device combining anti-neural network with local binary | |
CN114219794B (en) | Method and system for evaluating surface quality of shaving board based on machine vision | |
CN109886960A (en) | The method of glass edge defects detection based on machine vision | |
CN115797354B (en) | Method for detecting appearance defects of laser welding seam | |
CN115330780B (en) | Rapid detection method for slag inclusion defect of metal welding | |
CN114372955A (en) | Casting defect X-ray diagram automatic identification method based on improved neural network | |
CN114219773B (en) | Pre-screening and calibrating method for bridge crack detection data set | |
CN114897908B (en) | Machine vision-based method and system for analyzing defects of selective laser powder spreading sintering surface | |
CN113822889A (en) | Method for detecting surface defects of hot-rolled steel plate | |
CN115719332A (en) | Welding quality detection method | |
CN115601355A (en) | Method and device for detecting and classifying product surface defects and storage medium | |
CN110781913A (en) | Zipper cloth belt defect detection method | |
CN113240623A (en) | Pavement disease detection method and device | |
CN105469384A (en) | Comprehensive evaluation methods of license plate image quality | |
Chen et al. | The machined surface defect detection of improved superpixel segmentation and two-level region aggregation based on machine vision |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A Method for Automatic Inspection of Weld Quality in Building Materials Effective date of registration: 20230626 Granted publication date: 20221104 Pledgee: China Postal Savings Bank Limited by Share Ltd. Wenshang County sub branch Pledgor: Shandong Yichang Prefabricated Building Technology Co.,Ltd. Registration number: Y2023980045342 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right |