Visual inspection system and method for welding seam of steel structure
The edge detection algorithm and rectangular coordinate system are used to calculate the weld parameters and directly detect the uniformity and deviation of the steel structure weld, which solves the problem of incomplete detection in the existing technology and improves the efficiency and accuracy of weld detection.
Patent Information
- Application Number
- CN202410820843.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-25
AI Technical Summary
The existing technology fails to comprehensively detect the uniformity of steel structure welds and the deviation of the weld trajectory from the center line of the base material gap, and the weld image cutting takes a long time, resulting in low detection efficiency.
The data processing module and the weld detection module are used to preprocess the weld image through the edge detection algorithm, establish a rectangular coordinate system, calculate the weld toe distance, the standard deviation of the weld toe distance and the standard deviation of the weld deviation, and directly detect the weld without the need for Segment images to improve detection efficiency.
It achieves a more comprehensive inspection of steel structure welds, improves inspection efficiency, accurately reflects the uniformity of weld width and weld trajectory deviation, and improves the accuracy and efficiency of inspection.
Smart Images

Figure CN118840320A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of weld defect detection, and in particular relates to a steel structure weld visual detection system and method. Background Art
[0002] With the increasing application of steel structures in buildings, bridges, pressure vessels and other fields, the quality inspection of steel structure welds has become more and more prominent. The quality of welds directly affects the safety and stability of steel structures. Therefore, it is particularly important to inspect steel structure welds.
[0003] The prior art (invention patent with publication number CN115839956B) discloses a product qualification detection method, device, system and readable storage medium, by identifying the edge line of each weld in the weld image; performing image segmentation on the weld image based on all edge lines to determine multiple weld areas; determining the weld spacing between two welds at the boundary of the weld area according to each weld area; obtaining the spacing variance of the weld of the current product according to the weld spacing corresponding to each of the multiple weld areas; judging whether the weld meets the qualification standard according to the spacing variance. However, the prior art only performs uniformity detection on the spacing of the weld along the welding direction, does not perform uniformity detection on the weld width perpendicular to the welding direction, and does not detect the degree of deviation between the actual weld trajectory and the center line of the base material gap of the steel structure, thus resulting in insufficient comprehensive detection of the weld of the steel structure; in addition, the prior art needs to cut the weld image into several weld areas, and the image cutting is time-consuming, resulting in low efficiency of visual inspection of the weld of the steel structure.
[0004] The present invention provides a steel structure weld visual inspection system and method to solve the above technical problems. Summary of the invention
[0005] The present invention aims to solve at least one of the technical problems existing in the prior art; to this end, the present invention proposes a steel structure weld visual inspection system and method, which are used to solve the problems that the prior art does not perform uniformity detection on the weld width perpendicular to the welding direction, and does not detect the degree of deviation between the actual weld trajectory and the center line of the base material gap of the steel structure, thereby resulting in incomplete detection of the steel structure weld; in addition, the prior art needs to cut the weld image into several weld pattern areas, and since image cutting is time-consuming, the technical problem of low efficiency in visual inspection of steel structure welds.
[0006] To achieve the above-mentioned object, the first aspect of the present invention provides a steel structure weld visual inspection system, comprising: a data processing module, and a data acquisition module and a weld inspection module connected thereto;
[0007] The data acquisition module is used to acquire the original image of the steel structure weld according to the image acquisition device;
[0008] The data processing module is used to perform image preprocessing on the original image to obtain a preprocessed image; perform edge detection on the weld toe in the preprocessed image based on an edge detection algorithm to obtain an image to be detected; wherein a weld toe edge curve is marked on the image to be detected, and the weld toe edge curve includes a first weld toe edge curve and a second weld toe edge curve; and,
[0009] A rectangular coordinate system is established on the image to be inspected and the weld toe distance, weld toe distance standard deviation and weld deviation standard deviation of the weld are calculated;
[0010] The weld detection module is used to detect the weld based on the extreme value of the weld toe distance, the standard deviation of the weld toe distance and the standard deviation of the weld deviation to obtain a detection result; wherein the extreme value of the weld toe distance includes the maximum value and the minimum value of the weld toe distance, and the detection result includes detection result one, detection result two and detection result three.
[0011] Preferably, the image preprocessing of the original image includes:
[0012] Extract the original image; use the average value of the three channel values of R, G, and B of the original image as the gray value through the average value method to obtain a gray image; use a Gaussian filter to smooth the gray image to obtain a preprocessed image.
[0013] Preferably, the edge detection of the weld toe in the preprocessed image based on the edge detection algorithm comprises:
[0014] Z1: Extract preprocessed image and use Canny edge detection algorithm;
[0015] Z2: Calculate the gradient strength and direction of each pixel in the preprocessed image by applying the Sobel operator;
[0016] Z3: remove non-edge pixels in the pre-processed image through non-maximum suppression to obtain processed image 1;
[0017] Z4: Set a high threshold and a low threshold; compare the pixel gradient intensity of the pixel in the processed image 1 with the high threshold and the low threshold respectively;
[0018] If the pixel gradient intensity is greater than the high threshold, the corresponding pixel is marked as a strong edge point;
[0019] If the pixel gradient intensity is less than the low threshold, the corresponding pixel is marked as a non-edge point;
[0020] Otherwise, determine whether the corresponding pixel is connected to the strong edge point. If yes, mark the corresponding pixel as a weak edge point; if no, mark the corresponding pixel as a non-edge point.
[0021] Z5: remove pixels corresponding to non-edge points in processed image 1 to obtain processed image 2;
[0022] Z6: Determine whether the weak edge point in the processed image 2 is connected to the strong edge point; if yes, retain the pixel corresponding to the weak edge point; if no, remove the pixel corresponding to the weak edge point; mark the image after removing the pixel corresponding to the weak edge point in the processed image 2 as processed image 3;
[0023] Z7: Connect all the strong edge points in processed image three and mark them as the weld toe edge curve in the preprocessed image.
[0024] The present invention performs edge detection on the weld toe in the preprocessed image through an edge detection algorithm to obtain the weld toe edge curve in the preprocessed image, without dividing the preprocessed image into several weld line areas, which is beneficial to improving the efficiency of visual inspection of steel structure welds.
[0025] Preferably, the step of establishing a rectangular coordinate system on the image to be detected and calculating the weld toe distance, weld toe distance standard deviation and weld deviation standard deviation of the weld includes:
[0026] The endpoints of the weld on the steel structure and the center line of the gap of the base material on the steel structure are obtained from the image to be monitored; a rectangular coordinate system is established by taking any endpoint of the weld on the steel structure as the origin, taking the center line of the gap of the base material on the steel structure as the vertical axis, and taking the straight line perpendicular to the vertical axis and passing through the origin as the horizontal axis;
[0027] Obtain the coordinates of several pixel points on the first weld toe edge curve, mark the pixel point as Ai, and mark the coordinates of the pixel point Ai as (x Ai ,y Ai ); obtain a number of pixel points corresponding to the same position on the second weld toe edge curve, mark the corresponding pixel point as Bi, and mark the coordinate of the pixel point Bi as (x Bi ,y Bi ); Calculate the weld toe distance between Ai and Bi based on the coordinates of the pixel point Ai and the coordinates of the pixel point Bi, and mark the weld toe distance as JLi; Calculate the standard deviation of the weld toe distance JLi according to the formula to obtain the standard deviation of the weld toe distance; Calculate the coordinates (x Ci ,y Ci ); based on the coordinates of the center point Ci, calculate the deviation distance between Ci and the center line of the substrate gap, and mark the deviation distance as PLi; calculate the standard deviation of the deviation distance PLi according to the formula to obtain the standard deviation of the weld deviation; where i = 1, 2, ..., n, n is a positive integer.
[0028] The present invention uses the center line of the substrate gap on the steel structure as the longitudinal axis, which reduces the amount of calculation for subsequent calculation of the weld toe distance between Ai and Bi and the deviation distance between Ci and the longitudinal axis, thereby improving the efficiency of visual inspection of steel structure welds.
[0029] Preferably, the calculation of the weld toe distance between Ai and Bi based on the coordinates of the pixel point Ai and the coordinates of the pixel point Bi includes:
[0030] By formula Calculate the weld toe distance JLi between Ai and Bi; where a is a proportional coefficient greater than 0.
[0031] Preferably, the standard deviation of the weld toe distance JLi is calculated according to a formula, comprising:
[0032] By formula Calculate the average value JL of n weld toe distances JLi 平 ; Through the formula Calculate the standard deviation σ1 of the weld toe distance JLi and mark the standard deviation σ1 as the weld toe distance standard deviation.
[0033] The present invention calculates the standard deviation of the weld toe distance JLi, and the standard deviation of the weld toe distance JLi can represent the difference between the weld toe distance JLi and the average weld toe distance JL. 平 The degree of discreteness between them is conducive to accurately reflecting the uniformity of the weld width, thus facilitating a more comprehensive inspection of the weld.
[0034] Preferably, the coordinates (x Ci ,y Ci ),include:
[0035] By formula Calculate the horizontal coordinate value x of the center point Ci ci ; Through the formula Calculate the ordinate value y of the center point Ci ci ; Set the horizontal coordinate value x ci and the ordinate value y ci The coordinates of the center point Ci (x Ci ,y Ci ).
[0036] Preferably, the calculation of the deviation distance between the center point Ci and the center line of the substrate gap based on the coordinates of the center point Ci includes:
[0037] Since the center line of the substrate gap coincides with the vertical axis in the rectangular coordinate system, it is equivalent to calculating the deviation distance between Ci and the vertical axis, using the formula PLi = b×|x ci|Calculate the deviation distance PLi; where b is a proportional coefficient greater than 0. Since the center line of the substrate gap coincides with the vertical axis in the rectangular coordinate system, it is equivalent to calculating the deviation distance between Ci and the vertical axis. The formula PLi = b × |x ci |The deviation distance PLi is calculated; where b is a proportional coefficient greater than 0, and || is the absolute value sign.
[0038] Preferably, the step of calculating the standard deviation of the deviation distance PLi according to a formula includes:
[0039] By formula Calculate the average value PL of n deviation distances PLi 平 ; Through the formula The standard deviation σ2 of the deviation distance PLi is calculated and the standard deviation σ2 is marked as the deviation distance standard deviation.
[0040] The present invention calculates the standard deviation of the deviation distance PLi, and the standard deviation of the deviation distance PLi can represent the deviation distance PLi and the deviation distance PL 平 The degree of discreteness between them is conducive to accurately reflecting the degree of deviation between the actual trajectory of the weld and the center line of the base material gap in the steel structure, thereby facilitating a more comprehensive detection of the weld.
[0041] Preferably, the detecting of the weld based on the extreme value of the weld toe distance, the standard deviation of the weld toe distance and the standard deviation of the weld deviation comprises:
[0042] T1: Extract the extreme value of weld toe distance, standard deviation of weld toe distance and standard deviation of weld deviation;
[0043] T2: Set the weld toe distance range threshold [JY1, JY2]; where 0 <JY1<JY2;
[0044] T3: Determine whether the extreme value of the weld toe distance is within the weld toe distance range threshold [JY1, JY2]; if yes, mark the test result 1 as qualified; if no, mark the test result 1 as unqualified;
[0045] T4: Determine whether the standard deviation of the weld toe distance is less than the standard deviation threshold of the weld toe distance; if yes, mark the second test result as qualified; if no, mark the second test result as unqualified;
[0046] T5: Determine whether the weld deviation standard deviation is less than the weld deviation standard deviation threshold; if yes, mark the test result three as qualified; if no, mark the test result three as unqualified.
[0047] A second aspect of the present invention provides a steel structure weld visual inspection method, comprising:
[0048] S1: Collecting the original image of the steel structure weld according to the image acquisition device;
[0049] S2: performing image preprocessing on the original image to obtain a preprocessed image;
[0050] S3: performing edge detection on the weld toe in the preprocessed image based on an edge detection algorithm to obtain an image to be detected;
[0051] S4: establishing a rectangular coordinate system on the image to be detected and calculating the weld toe distance, weld toe distance standard deviation and weld deviation standard deviation of the weld;
[0052] S5: Obtain the coordinates of several pixel points on the first weld toe edge curve, mark the pixel point as Ai, and mark the coordinates of the pixel point Ai as (x Ai ,y Ai );
[0053] S6: Obtain a number of pixel points corresponding to the same position on the second weld toe edge curve, mark the corresponding pixel point as Bi, and mark the coordinate of the pixel point Bi as (x Bi ,y Bi );
[0054] S7: Calculate the weld toe distance between Ai and Bi based on the coordinates of the pixel point Ai and the coordinates of the pixel point Bi, and mark the weld toe distance as JLi;
[0055] S8: Calculate the standard deviation of the weld toe distance JLi according to the formula to obtain the standard deviation of the weld toe distance;
[0056] S9: Calculate the coordinates of the center point Ci of the line connecting Ai and Bi based on the coordinates of the pixel point Ai and the coordinates of the pixel point Bi (x Ci ,y Ci );
[0057] S10: Calculate the deviation distance between Ci and the center line of the substrate gap based on the coordinates of the center point Ci, and mark the deviation distance as PLi;
[0058] S11: Calculate the standard deviation of the deviation distance PLi according to the formula to obtain the standard deviation of the weld deviation;
[0059] S12: Detect the weld based on the extreme value of the weld toe distance, the standard deviation of the weld toe distance and the standard deviation of the weld deviation to obtain the detection result.
[0060] Compared with the prior art, the present invention has the following beneficial effects:
[0061] 1. The present invention performs edge detection on the weld toe in the preprocessed image through an edge detection algorithm to obtain the weld toe edge curve in the preprocessed image. There is no need to divide the preprocessed image into a plurality of weld pattern areas, which is beneficial to improving the efficiency of visual inspection of steel structure welds. By taking the center line of the substrate gap on the steel structure as the longitudinal axis, the amount of calculation is reduced for the subsequent calculation of the weld toe distance between Ai and Bi and the calculation of the deviation distance between Ci and the longitudinal axis, which is beneficial to improving the efficiency of visual inspection of steel structure welds.
[0062] 2. The present invention calculates the standard deviation of the weld toe distance JLi, and the standard deviation of the weld toe distance JLi can represent the difference between the weld toe distance JLi and the average weld toe distance JL. 平 The degree of discreteness between them is conducive to accurately reflecting the uniformity of the weld width, thereby facilitating a more comprehensive detection of the weld; by calculating the standard deviation of the deviation distance PLi, the standard deviation of the deviation distance PLi can represent the difference between the deviation distance PLi and the deviation distance PL 平 The degree of discreteness between them is conducive to accurately reflecting the degree of deviation between the actual trajectory of the weld and the center line of the base material gap in the steel structure, thereby facilitating a more comprehensive detection of the weld. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] 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.
[0064] Figure 1 It is a schematic diagram of the principle of the steel structure weld visual inspection system of the present invention;
[0065] Figure 2 This is a flow chart for detecting a weld in the present invention;
[0066] Figure 3 The figure is a flow chart of the steel structure weld visual inspection method of the present invention. DETAILED DESCRIPTION
[0067] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0068] See also Figure 1-Figure 3, a first aspect of the present invention provides a steel structure weld visual inspection system, comprising: a data processing module, and a data acquisition module and a weld inspection module connected thereto;
[0069] A data acquisition module, used for acquiring original images of steel structure welds according to an image acquisition device;
[0070] A data processing module is used to perform image preprocessing on the original image to obtain a preprocessed image; perform edge detection on the weld toe in the preprocessed image based on an edge detection algorithm to obtain an image to be detected; wherein the image to be detected is marked with a weld toe edge curve, and the weld toe edge curve includes a first weld toe edge curve and a second weld toe edge curve; and,
[0071] A rectangular coordinate system is established on the image to be inspected and the weld toe distance, weld toe distance standard deviation and weld deviation standard deviation of the weld are calculated;
[0072] The weld detection module is used to detect the weld based on the extreme value of the weld toe distance, the standard deviation of the weld toe distance and the standard deviation of the weld deviation to obtain the detection result; wherein the extreme value of the weld toe distance includes the maximum value and the minimum value of the weld toe distance, and the detection result includes detection result one, detection result two and detection result three.
[0073] In this embodiment, the original image is preprocessed, including:
[0074] Extract the original image; use the average value of the three channel values of R, G, and B of the original image as the gray value through the average value method to obtain a gray image; use a Gaussian filter to smooth the gray image to obtain a preprocessed image.
[0075] In this embodiment, edge detection is performed on the weld toe in the preprocessed image based on an edge detection algorithm, including:
[0076] Z1: Extract preprocessed image and use Canny edge detection algorithm;
[0077] Z2: Calculate the gradient strength and direction of each pixel in the preprocessed image by applying the Sobel operator;
[0078] Z3: remove non-edge pixels in the pre-processed image through non-maximum suppression to obtain processed image 1;
[0079] Z4: Set a high threshold and a low threshold; compare the pixel gradient intensity of the pixel in the processed image 1 with the high threshold and the low threshold respectively;
[0080] If the pixel gradient intensity is greater than the high threshold, the corresponding pixel is marked as a strong edge point;
[0081] If the pixel gradient intensity is less than the low threshold, the corresponding pixel is marked as a non-edge point;
[0082] Otherwise, determine whether the corresponding pixel is connected to the strong edge point. If yes, mark the corresponding pixel as a weak edge point; if no, mark the corresponding pixel as a non-edge point.
[0083] Z5: remove pixels corresponding to non-edge points in processed image 1 to obtain processed image 2;
[0084] Z6: Determine whether the weak edge point in the processed image 2 is connected to the strong edge point; if yes, retain the pixel corresponding to the weak edge point; if no, remove the pixel corresponding to the weak edge point; mark the image after removing the pixel corresponding to the weak edge point in the processed image 2 as processed image 3;
[0085] Z7: Connect all the strong edge points in processed image three and mark them as the weld toe edge curve in the preprocessed image.
[0086] The present invention performs edge detection on the weld toe in the preprocessed image through an edge detection algorithm to obtain the weld toe edge curve in the preprocessed image, without dividing the preprocessed image into several weld line areas, which is beneficial to improving the efficiency of visual inspection of steel structure welds.
[0087] In this embodiment, a rectangular coordinate system is established on the image to be detected and the weld toe distance, weld toe distance standard deviation and weld deviation standard deviation of the weld are calculated, including:
[0088] The endpoints of the weld on the steel structure and the center line of the gap of the base material on the steel structure are obtained from the image to be monitored; a rectangular coordinate system is established by taking any endpoint of the weld on the steel structure as the origin, taking the center line of the gap of the base material on the steel structure as the vertical axis, and taking the straight line perpendicular to the vertical axis and passing through the origin as the horizontal axis;
[0089] Obtain the coordinates of several pixel points on the first weld toe edge curve, mark the pixel point as Ai, and mark the coordinates of the pixel point Ai as (x Ai ,y Ai ); obtain a number of pixel points corresponding to the same position on the second weld toe edge curve, mark the corresponding pixel point as Bi, and mark the coordinate of the pixel point Bi as (x Bi ,y Bi ); Calculate the weld toe distance between Ai and Bi based on the coordinates of the pixel point Ai and the coordinates of the pixel point Bi, and mark the weld toe distance as JLi; Calculate the standard deviation of the weld toe distance JLi according to the formula to obtain the standard deviation of the weld toe distance; Calculate the coordinates (x Ci ,y Ci); based on the coordinates of the center point Ci, calculate the deviation distance between Ci and the center line of the substrate gap, and mark the deviation distance as PLi; calculate the standard deviation of the deviation distance PLi according to the formula to obtain the standard deviation of the weld deviation; where i = 1, 2, ..., n, n is a positive integer.
[0090] The present invention uses the center line of the substrate gap on the steel structure as the longitudinal axis, which reduces the amount of calculation for subsequent calculation of the weld toe distance between Ai and Bi and the deviation distance between Ci and the longitudinal axis, thereby improving the efficiency of visual inspection of steel structure welds.
[0091] In this embodiment, the weld toe distance between Ai and Bi is calculated based on the coordinates of the pixel point Ai and the coordinates of the pixel point Bi, including:
[0092] By formula Calculate the weld toe distance JLi between Ai and Bi; where a is a proportional coefficient greater than 0.
[0093] For example, n=4, a=0.1, and the coordinates of A1 (x A1 ,y A1 )=(30,200), the coordinates of B1 (x B1 ,y B1 )=(-10,200), the coordinates of A2 (x A2 ,y A2 )=(25,220), the coordinates of B2 (x B2 ,y B2 )=(-11,220), the coordinates of A3 (x A3 ,y A3 )=(16,240), the coordinates of B3 (x B3 ,y B3 )=(-26,240), the coordinates of A4 (x A4 ,y A4 )=(18,260), the coordinates of B4 (x B4 ,y B4 )=(-20, 260); calculated by the formula, we get JL1=4.0, JL2=3.6, JL3=4.2, JL4=3.8.
[0094] In this embodiment, the standard deviation of the weld toe distance JLi is calculated according to the formula, including:
[0095] By formula Calculate the average value JL of n weld toe distances JLi 平 =3.85; by formula The standard deviation σ1≈0.22 of the weld toe distance JLi is calculated and the standard deviation σ1 is marked as the weld toe distance standard deviation.
[0096] The present invention calculates the standard deviation of the weld toe distance JLi, and the standard deviation of the weld toe distance JLi can represent the difference between the weld toe distance JLi and the average weld toe distance JL. 平 The degree of discreteness between them is conducive to accurately reflecting the uniformity of the weld width.
[0097] In this embodiment, the coordinates (x ) of the center point Ci of the line connecting Ai and Bi are calculated based on the coordinates of the pixel point Ai and the coordinates of the pixel point Bi. Ci ,y Ci ),include:
[0098] By formula Calculate the horizontal coordinate value x of the center point Ci ci ; Through the formula Calculate the ordinate value y of the center point Ci ci ; Set the horizontal coordinate value x ci and the ordinate value y ci The coordinates of the center point Ci (x Ci ,y Ci ).
[0099] For example, according to the coordinates of A1, A2, A3, A4, B1, B2, B3, B4, the coordinates of the corresponding center points C1, C2, C3, C4 are obtained as (x C1 ,y C1 )=(10,200)、(x C2 ,y C2 )=(7,220)、(x C3 ,y C3 )=(-5,240)、(x C4 ,y C4 )=(-1,260).
[0100] In this embodiment, the deviation distance between the center point Ci and the center line of the substrate gap is calculated based on the coordinates of the center point Ci, including:
[0101] Since the center line of the substrate gap coincides with the vertical axis in the rectangular coordinate system, it is equivalent to calculating the deviation distance between Ci and the vertical axis, using the formula PLi = b×|x ci |The deviation distance PLi is calculated; where b is a proportional coefficient greater than 0, and || is the absolute value sign.
[0102] For example, b=0.1 is set, and PLi=b×|x ci |The calculated deviation distances are PL1=1, PL2=0.7, PL3=0.5, PL4=0.1.
[0103] In this embodiment, the standard deviation of the deviation distance PLi is calculated according to the formula, including:
[0104] By formula Calculate the average value PL of n deviation distances PLi 平 =0.575; by formula The standard deviation σ2≈0.33 of the deviation distance PLi is calculated, and the standard deviation σ2 is marked as the deviation distance standard deviation.
[0105] The present invention calculates the standard deviation of the deviation distance PLi, and the standard deviation of the deviation distance PLi can represent the deviation distance PLi and the deviation distance PL 平 The degree of discreteness between them is conducive to accurately reflecting the degree of deviation between the actual weld trajectory and the center line of the base material gap in the steel structure.
[0106] Exemplarily, the weld is inspected based on the extreme value of the weld toe distance, the standard deviation of the weld toe distance and the standard deviation of the weld deviation, including:
[0107] T1: Extract the extreme value of weld toe distance, the standard deviation of weld toe distance σ1≈0.22 and the standard deviation of weld deviation σ2≈0.33;
[0108] T2: Set the weld toe distance range threshold [JY1, JY2] = [3.5, 4.5]; where 0 <JY1<JY2;
[0109] T3: Since the maximum value of the weld toe distance is 4.2 and the minimum value is 3.6, both of which are within the weld toe distance range threshold [3.5, 4.5], the test result 1 is marked as qualified;
[0110] T4: Set the weld toe distance standard deviation threshold to 0.25. Since the weld toe distance standard deviation σ1≈0.22 is less than the weld toe distance standard deviation threshold, the second test result is marked as qualified.
[0111] T5: Set the weld deviation standard deviation threshold to 0.30. Since the weld deviation standard deviation σ2≈0.33 is greater than the weld deviation standard deviation threshold, the test result three is marked as unqualified.
[0112] A second aspect of the present invention provides a steel structure weld visual inspection method, comprising:
[0113] S1: Collecting the original image of the steel structure weld according to the image acquisition device;
[0114] S2: performing image preprocessing on the original image to obtain a preprocessed image;
[0115] S3: performing edge detection on the weld toe in the preprocessed image based on an edge detection algorithm to obtain an image to be detected;
[0116] S4: establishing a rectangular coordinate system on the image to be detected and calculating the weld toe distance, weld toe distance standard deviation and weld deviation standard deviation of the weld;
[0117] S5: Obtain the coordinates of several pixel points on the first weld toe edge curve, mark the pixel point as Ai, and mark the coordinates of the pixel point Ai as (x Ai ,y Ai );
[0118] S6: Obtain a number of pixel points corresponding to the same position on the second weld toe edge curve, mark the corresponding pixel point as Bi, and mark the coordinate of the pixel point Bi as (x Bi ,y Bi );
[0119] S7: Calculate the weld toe distance between Ai and Bi based on the coordinates of the pixel point Ai and the coordinates of the pixel point Bi, and mark the weld toe distance as JLi;
[0120] S8: Calculate the standard deviation of the weld toe distance JLi according to the formula to obtain the standard deviation of the weld toe distance;
[0121] S9: Calculate the coordinates of the center point Ci of the line connecting Ai and Bi based on the coordinates of the pixel point Ai and the coordinates of the pixel point Bi (x Ci ,y Ci );
[0122] S10: Calculate the deviation distance between Ci and the center line of the substrate gap based on the coordinates of the center point Ci, and mark the deviation distance as PLi;
[0123] S11: Calculate the standard deviation of the deviation distance PLi according to the formula to obtain the standard deviation of the weld deviation;
[0124] S12: Detect the weld based on the extreme value of the weld toe distance, the standard deviation of the weld toe distance and the standard deviation of the weld deviation to obtain the detection result.
[0125] Part of the data in the above formula is calculated by removing the dimension and taking its numerical value. The formula is a formula closest to the actual situation obtained by software simulation of a large amount of collected data; the preset parameters and preset thresholds in the formula are set by technical personnel in this field according to actual conditions or obtained through simulation of a large amount of data.
[0126] Working principle of the present invention:
[0127] The present invention collects the original image of the weld of the steel structure according to the image acquisition device; performs image preprocessing on the original image to obtain the preprocessed image; performs edge detection on the weld toe in the preprocessed image based on the edge detection algorithm to obtain the image to be detected; establishes a rectangular coordinate system on the image to be detected and calculates the weld toe distance, the weld toe distance standard deviation and the weld deviation standard deviation; obtains the coordinates of several pixel points on the first weld toe edge curve, marks the pixel point as Ai, and marks the coordinates of the pixel point Ai as (x Ai ,y Ai ); obtain a number of pixel points corresponding to the same position on the second weld toe edge curve, mark the corresponding pixel point as Bi, and mark the coordinate of the pixel point Bi as (x Bi ,y Bi ); Calculate the weld toe distance between Ai and Bi based on the coordinates of the pixel point Ai and the coordinates of the pixel point Bi, and mark the weld toe distance as JLi; Calculate the standard deviation of the weld toe distance JLi according to the formula to obtain the standard deviation of the weld toe distance; Calculate the coordinates (x Ci ,y Ci ); based on the coordinates of the center point Ci, calculate the deviation distance between Ci and the center line of the base material gap, and mark the deviation distance as PLi; calculate the standard deviation of the deviation distance PLi according to the formula to obtain the standard deviation of the weld deviation; based on the extreme value of the weld toe distance, the standard deviation of the weld toe distance and the standard deviation of the weld deviation, detect the weld and obtain the detection result.
[0128] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.
Claims
1. A steel structure weld visual inspection system, comprising: A data processing module, and a data acquisition module and a weld detection module connected thereto; characterized in that the data acquisition module is used to acquire the original image of the weld of the steel structure according to the image acquisition device; The data processing module is used to perform image preprocessing on the original image to obtain a preprocessed image; perform edge detection on the weld toe in the preprocessed image based on an edge detection algorithm to obtain an image to be detected; wherein a weld toe edge curve is marked on the image to be detected, and the weld toe edge curve includes a first weld toe edge curve and a second weld toe edge curve; and, A rectangular coordinate system is established on the image to be inspected and the weld toe distance, weld toe distance standard deviation and weld deviation standard deviation of the weld are calculated; The weld detection module is used to detect the weld based on the extreme value of the weld toe distance, the standard deviation of the weld toe distance and the standard deviation of the weld deviation to obtain a detection result; wherein the extreme value of the weld toe distance includes the maximum value and the minimum value of the weld toe distance, and the detection result includes detection result one, detection result two and detection result three.
2. A steel structure weld visual inspection system according to claim 1, characterized in that: The edge detection of the weld toe in the preprocessed image based on the edge detection algorithm includes: Z1: Extract preprocessed image and use Canny edge detection algorithm; Z2: Calculate the gradient strength and direction of each pixel in the preprocessed image by applying the Sobel operator; Z3: remove non-edge pixels in the pre-processed image through non-maximum suppression to obtain processed image 1; Z4: Set a high threshold and a low threshold; compare the pixel gradient intensity of the pixel in the processed image 1 with the high threshold and the low threshold respectively; If the pixel gradient intensity is greater than the high threshold, the corresponding pixel is marked as a strong edge point; If the pixel gradient intensity is less than the low threshold, the corresponding pixel is marked as a non-edge point; Otherwise, determine whether the corresponding pixel is connected to the strong edge point. If yes, mark the corresponding pixel as a weak edge point; if no, mark the corresponding pixel as a non-edge point. Z5: remove pixels corresponding to non-edge points in processed image 1 to obtain processed image 2; Z6: Determine whether the weak edge point in the processed image 2 is connected to the strong edge point; if yes, retain the pixel corresponding to the weak edge point; if no, remove the pixel corresponding to the weak edge point; mark the image after removing the pixel corresponding to the weak edge point in the processed image 2 as processed image 3; Z7: Connect all the strong edge points in processed image three and mark them as the weld toe edge curve in the preprocessed image.
3. A steel structure weld visual inspection system according to claim 1, characterized in that: The step of establishing a rectangular coordinate system on the image to be detected and calculating the weld toe distance, the weld toe distance standard deviation and the weld deviation standard deviation of the weld includes: The endpoints of the weld on the steel structure and the center line of the gap of the base material on the steel structure are obtained from the image to be monitored; a rectangular coordinate system is established by taking any endpoint of the weld on the steel structure as the origin, taking the center line of the gap of the base material on the steel structure as the vertical axis, and taking the straight line perpendicular to the vertical axis and passing through the origin as the horizontal axis; Obtain the coordinates of several pixel points on the first weld toe edge curve, mark the pixel point as Ai, and mark the coordinates of the pixel point Ai as (x Ai ,y Ai ); obtain a number of pixel points corresponding to the same position on the second weld toe edge curve, mark the corresponding pixel point as Bi, and mark the coordinate of the pixel point Bi as (x Bi ,y Bi ); Calculate the weld toe distance between Ai and Bi based on the coordinates of the pixel point Ai and the coordinates of the pixel point Bi, and mark the weld toe distance as JLi; Calculate the standard deviation of the weld toe distance JLi according to the formula to obtain the standard deviation of the weld toe distance; Calculate the coordinates (x Ci ,y Ci ); based on the coordinates of the center point Ci, calculate the deviation distance between Ci and the center line of the substrate gap, and mark the deviation distance as PLi; calculate the standard deviation of the deviation distance PLi according to the formula to obtain the standard deviation of the weld deviation; where i = 1, 2, ..., n, n is a positive integer.
4. A steel structure weld visual inspection system according to claim 3, characterized in that: The calculating the weld toe distance between Ai and Bi based on the coordinates of the pixel point Ai and the coordinates of the pixel point Bi includes: By formula Calculate the weld toe distance JLi between Ai and Bi; where a is a proportional coefficient greater than 0.
5. A steel structure weld visual inspection system according to claim 4, characterized in that: The standard deviation of the weld toe distance JLi is calculated according to the formula, including: By formula Calculate the average value JL of n weld toe distances JLi 平 ; Through the formula Calculate the standard deviation σ1 of the weld toe distance JLi and mark the standard deviation σ1 as the weld toe distance standard deviation.
6. A steel structure weld visual inspection system according to claim 3, characterized in that: The coordinates of the center point Ci of the line connecting Ai and Bi are calculated based on the coordinates of the pixel point Ai and the coordinates of the pixel point Bi. Ci ,y Ci ),include: By formula Calculate the horizontal coordinate value x of the center point Ci ci ; Through the formula Calculate the ordinate value y of the center point Ci ci ; Set the horizontal coordinate value x ci and the ordinate value y ci The coordinates of the center point Ci (x Ci ,y Ci ).
7. A steel structure weld visual inspection system according to claim 6, characterized in that: The step of calculating the deviation distance between the center point Ci and the center line of the substrate gap based on the coordinates of the center point Ci includes: Through the formula PLi = b × | x ci |The deviation distance PLi is calculated; where b is a proportional coefficient greater than 0, and || is the absolute value sign.
8. A steel structure weld visual inspection system according to claim 7, characterized in that: The standard deviation of the deviation distance PLi is calculated according to the formula, including: By formula Calculate the average value PL of n deviation distances PLi 平 ; Through the formula The standard deviation σ2 of the deviation distance PLi is calculated and the standard deviation σ2 is marked as the deviation distance standard deviation.
9. A steel structure weld visual inspection system according to claim 1, characterized in that: The detecting of the weld based on the extreme value of the weld toe distance, the standard deviation of the weld toe distance and the standard deviation of the weld deviation comprises: T1: Extract the extreme value of weld toe distance, standard deviation of weld toe distance and standard deviation of weld deviation; T2: Set the weld toe distance range threshold [JY1, JY2]; where 0 <JY1<JY2; T3: Determine whether the extreme value of the weld toe distance is within the weld toe distance range threshold [JY1, JY2]; if yes, mark the test result 1 as qualified; if no, mark the test result 1 as unqualified; T4: Determine whether the standard deviation of the weld toe distance is less than the standard deviation threshold of the weld toe distance; if yes, mark the second test result as qualified; if no, mark the second test result as unqualified; T5: Determine whether the weld deviation standard deviation is less than the weld deviation standard deviation threshold; if yes, mark the test result three as qualified; if no, mark the test result three as unqualified.
10. A steel structure weld visual inspection method, based on a steel structure weld visual inspection system according to any one of claims 1 to 9, characterized in that: include: S1: Collecting the original image of the steel structure weld according to the image acquisition device; S2: performing image preprocessing on the original image to obtain a preprocessed image; S3: performing edge detection on the weld toe in the preprocessed image based on an edge detection algorithm to obtain an image to be detected; S4: establishing a rectangular coordinate system on the image to be detected and calculating the weld toe distance, weld toe distance standard deviation and weld deviation standard deviation of the weld; S5: Obtain the coordinates of several pixel points on the first weld toe edge curve, mark the pixel point as Ai, and mark the coordinates of the pixel point Ai as (x Ai ,y Ai ); S6: Obtain a number of pixel points corresponding to the same position on the second weld toe edge curve, mark the corresponding pixel point as Bi, and mark the coordinate of the pixel point Bi as (x Bi ,y Bi ); S7: Calculate the weld toe distance between Ai and Bi based on the coordinates of the pixel point Ai and the coordinates of the pixel point Bi, and mark the weld toe distance as JLi; S8: Calculate the standard deviation of the weld toe distance JLi according to the formula to obtain the standard deviation of the weld toe distance; S9: Calculate the coordinates of the center point Ci of the line connecting Ai and Bi based on the coordinates of the pixel point Ai and the coordinates of the pixel point Bi (x Ci ,y Ci ); S10: Calculate the deviation distance between Ci and the center line of the substrate gap based on the coordinates of the center point Ci, and mark the deviation distance as PLi; S11: Calculate the standard deviation of the deviation distance PLi according to the formula to obtain the standard deviation of the weld deviation; S12: Detect the weld based on the extreme value of the weld toe distance, the standard deviation of the weld toe distance and the standard deviation of the weld deviation to obtain the detection result.
Citation Information
Cited By
Global digital quality monitoring and management system, method and medium
CN119356271A
High-precision positioning control and quality detection method for lifting, hovering and assembling large complex pipe truss structure
CN121115700A
A method for large complex pipe truss structure lifting hovering scattered assembly high-precision positioning control and quality detection
CN121115700B
