Narrow gap welding groove edge visual sensing detection method and its application based on global pattern recognition
Through the narrow gap welding bevel edge visual sensing detection method with global pattern recognition, the problems of low precision of bevel edge position detection and insufficient adaptability of welding environment in the prior art are solved, and accurate detection under welding interference conditions are achieved and efficient welding process control.
Patent Information
- Application Number
- CN202210856059.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-07
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2042-07-07
AI Technical Summary
In the existing narrow gap welding technology, the detection accuracy of bevel edge position is not high, the welding environment is not adaptable, and the adaptability is insufficient.
Using the narrow gap welding bevel edge visual sensing detection method with global pattern recognition, the bevel edge image is intercepted through the position-adaptive bevel edge ROI window, local image processing is performed, the original position point of the bevel edge is extracted, and outsourcing is eliminated. Reconstruct the edge line of the bevel to achieve accurate detection under welding interference conditions.
It improves the accuracy of bevel edge detection, enhances the adaptability of the welding environment, reduces the impact of welding splash and arc stability on detection, and improves the effectiveness of ROI window positioning.
Smart Images

Figure CN115255565B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of welding, and in particular relates to a global pattern recognition narrow gap welding groove edge visual sensing detection method and application. Background Art
[0002] Narrow gap gas metal arc welding is an efficient, high-quality, low-cost welding method. In the narrow gap welding process, due to the influence of groove processing error, assembly error, welding deformation, groove form and other factors, the center of the welding torch deviates from the groove center, resulting in uneven penetration of the groove walls on both sides. Therefore, it is necessary to extract and detect the groove edge in real time, so as to realize the detection of groove width and groove center position and real-time tracking and control of the welding process.
[0003] In order to achieve accurate detection and real-time tracking and control of the welding process, sensing technology is the key. At present, visual sensing is widely used due to its advantages such as non-contact, high sensitivity, and strong anti-interference ability. Specifically, it can be divided into active visual sensing (requiring an external light source, such as a laser sensor) and passive visual sensing (using the arc or the molten pool itself as a light source). Among them, the passive visual sensing method can achieve synchronous sensing with the arc position, no need for an external light source, low cost, suitable for a variety of grooves, and a large amount of information, and is widely used. However, there are interferences such as welding spatter, arc light, and welding smoke in the welding process. How to accurately detect the edge position of the groove under interference conditions is the key to achieving accurate detection and real-time tracking and control of welding process parameters.
[0004] The invention patent with Chinese patent number ZL201610517913.X and the name of "Welding groove edge position visual sensing detection method" discloses a welding groove edge position visual sensing detection method. It uses a visual sensor to collect the global image of the welding area, intercepts the groove edge image on the opposite side of the arc through the ROI window, and extracts the groove edge line after image processing; on the extracted groove edge line, the straightest section of the groove edge line is detected through a local pattern recognition small window, and the position detection value of the groove edge on the straightest section is used as the detection value of the welding groove edge position. Its disadvantages are: 1) This method belongs to a local pattern recognition method and is easy to fall into local optimality. When the ROI window height of the groove edge is 100 pixels, a single welding spatter size of 1.4 mm can be removed. If the welding spatter size continues to increase, or when the welding spatter on the groove edge accounts for more than 60%, the groove edge detection accuracy is significantly reduced; when the ROI window height of the groove edge is reduced to 80 pixels, the welding spatter size removed by this method is about 0.8 mm, indicating that the algorithm accuracy is affected by the ROI window height of the groove edge; 2) This method binarizes the ROI window image of the groove edge through the overall threshold segmentation method. When there is uneven grayscale distribution of the image caused by arc light and smoke interference, it is difficult to accurately extract the groove edge contour line; 3) When the ROI window of the groove edge is adaptively positioned, the digital filtering algorithm that suppresses the fluctuation of the highest point of the arc is not used. The accuracy of the ROI window positioning of the groove edge is easily affected by welding spatter interference and arc stability.
[0005] The invention patent with Chinese patent number ZL201410741503.4 and the name of "Adaptive control method and device for narrow gap welding arc shaking" discloses an adaptive control method and device for narrow gap welding arc shaking. The method uses an infrared camera system to extract groove width information in real time, and realizes adaptive control of arc shaking angle according to the change of groove width; its disadvantages are: 1) the method does not use pattern recognition method, but obtains the left and right edge positions and groove width detection values of the groove by median or mean filtering method. When the proportion of welding spatter exceeds 50%, the groove width detection accuracy is easily affected by large welding spatter; 2) the method uses the overall threshold segmentation method to binarize the groove edge ROI window image. When there is uneven gray distribution of the image caused by arc light and smoke interference, it is difficult to accurately extract the groove edge contour line, which affects the detection accuracy of the groove width; 3) when the ROI window position is adaptively positioned, the influence of the background proportion in the groove edge ROI window image on the groove edge line extraction is not considered, thereby reducing the detection accuracy of the groove width.
[0006] The invention patent with Chinese patent number ZL201210325926.9 and the name of "Narrow gap welding monitoring and weld deviation detection method based on infrared visual sensing" discloses a narrow gap welding monitoring and weld deviation detection method based on infrared visual sensing. The method uses an infrared CMOS camera to obtain welding images, and obtains the weld deviation value by calculating the distance from the left (or right) edge of the molten pool away from the arc side to the left (or right) boundary of the left (or right) interception window. Its disadvantages are: 1) This method does not use an adaptive positioning method when setting the left and right groove edge position interception windows, and its adaptability is poor; 2) This method does not solve the influence of interference such as welding smoke and spatter on the detection accuracy of the groove edge position. Summary of the invention
[0007] The purpose of the present invention is to address the shortcomings of the prior art such as low detection accuracy of the edge position of narrow gap welding grooves, weak adaptability to welding environments, and insufficient self-adaptation, and to propose a global pattern recognition method and application of narrow gap welding groove edge visual sensing detection with high detection accuracy, strong anti-welding interference ability, and good practicality.
[0008] The method of the present invention uses a position-adaptive groove edge ROI window to intercept the groove edge ROI window image, extracts the original position point of the groove edge on the opposite side of the arc through local image processing, finds the groove edge position point located on the vertical line segment among the original position points of the groove edge, eliminates the outlier position points on the non-vertical line segment, reconstructs the groove edge for the retained real position points, and realizes accurate detection of the groove edge position under welding interference conditions.
[0009] In order to achieve the above object, the present invention adopts the following technical solution to achieve it.
[0010] A global pattern recognition narrow gap welding groove edge visual sensing detection method, based on the detection system mainly includes: an infrared camera 8, a filter system 7, a signal trigger 9, an image transmission data line 10 and a computer image processing system 11, wherein the signal trigger 9 is connected to the infrared camera 8, the filter system 7 is coaxially installed on the lens of the infrared camera 8, and the computer image processing system 11 is connected to the infrared camera 8 through the image transmission data line 10; the global image 13 of the narrow gap welding area is collected through the infrared camera 8, the filter system 7 and the signal trigger 9; the detection method specifically includes the following steps:
[0011] 1) Determine the initial horizontal position of the origin of the groove edge ROI window: The computer image processing system 11 extracts the position of the highest point 14 of the arc 2 from the global image 13 through global image processing, and determines the position of the SROI window 16 that can intercept the groove edge on the same side of the arc, or the position of the BROI window 17 that can simultaneously intercept the double edges of the groove; by performing preset window image processing on the image intercepted by the SROI window 16 to obtain the initial groove edge position on the same side of the arc, or by performing preset window image processing on the image intercepted by the BROI window 17 to obtain the initial groove edge positions on the same side and the opposite side of the arc, so as to adaptively determine the initial horizontal position of the origin 15 of the groove edge ROI window 12 on the opposite side of the arc;
[0012] 2) Obtain the set of original position points of the groove edge After adaptively determining the position of the groove edge ROI window 12 according to the position of the highest point of the arc and the initial horizontal position of the origin 15 of the groove edge ROI window 12, the groove edge ROI window 12 determined by this adaptive positioning method intercepts the ROI window image of the left groove edge 4 or the right groove edge 5 on the opposite side of the arc 2, and extracts the left groove edge 4 or the right groove edge 5 through local image processing to obtain a set of original position points of the groove edge composed of h data Among them, i represents the current operation, and h represents the height value of the ROI window 12;
[0013] 3) Perform primary data filtering on the obtained set of original position points of the groove edge For the position points in it: Along the height h direction of the groove edge ROI window 12, calculate the difference between the x coordinates of adjacent two position points in the set of original position points of the groove edge in turn, and divide the position points with a difference of zero into the same subset of position points; correspondingly, p (1≤p<h) subsets of position points are found, thus forming a set of preprocessed position points of the groove edge containing p subsets of position points Correspondingly, p vertical line segments are formed, and each vertical line segment has the same x coordinate value, that is, the abscissa value;
[0014] 4) Perform secondary data filtering on the set of preprocessed position points of the groove edge For the position points in it: Specifically, it includes the following steps:
[0015] ① Judge the dispersion degree of the data in the set of preprocessed position points of the groove edge For the set of preprocessed position points of the groove edge obtained in step 3) First, judge the dispersion degree of the position points in the set of preprocessed position points of the groove edge Specifically: Search the set of preprocessed position points of the groove edge The horizontal coordinate values of all the position points in The maximum value x k_max and the minimum value x k_min , calculate the range R k =x k_max -x k_min ; Judge the range R k and data dispersion threshold R t The size of the data dispersion threshold R t =INT(h×4%), if R k ≤R t , the groove edge preprocessing position point set As the final groove edge real position point set If R k >R t When the original position points of the groove edge are collected The horizontal coordinate value of h position points The median value And As the filter threshold variable M k , combined with the directional filter, after filtering out the outlier data, the set of reserved position points at the groove edge is obtained
[0016] ②Retain the position point set of the groove edge obtained in step ① Determine the dispersion of position points: retain the set of position points by calculating the groove edge The horizontal coordinate value of each position point in The range R k , if R is satisfied k ≤R t , the set of reserved position points on the groove edge As the actual position point set of the groove edge Otherwise, calculate the set of reserved position points at the groove edge The horizontal coordinate value of the middle point The median value And As the filter threshold variable M k . Through the direction filter, obtain the filtered groove edge retention position point set Repeat this process until The range R of the horizontal coordinate value of each position point k Satisfy R k ≤R t , forming a set of real position points on the groove edge
[0017] 5) Reconstruct the groove edge line: for the set of real position points of the groove edge obtained in step 4) Count the number of real position points N retaineds ; When N s When ≤INT(h×10%), the mean value calculation method is used to reconstruct the groove edge reconstruction position point set containing h groove edge position points Otherwise, the groove edge reconstruction position point set containing h groove edge position points is reconstructed by the least squares linear fitting method. Among them, the horizontal coordinate of the groove edge position point is
[0018] 6) Obtaining groove edge position detection value: for the groove edge reconstruction position point set containing h groove edge position points obtained in step 5), The groove edge position sampling value is obtained by calculating the mean value or fitting value of the horizontal coordinates of h groove edge position points; the groove edge position detection value is obtained by using a digital filtering method for the groove edge position sampling value;
[0019] 7) Repeat the above steps 2) to 6) until the welding process is completed.
[0020] Further preferably, in the step 1), the global image processing includes: firstly, applying median filtering to the global image 13 to perform image denoising; then, applying histogram analysis to calculate the frequency of pixels at different grayscale values in the global image 13, and then applying global thresholding to binarize the global image 13; finally, extracting the arc contour through morphological operations, and obtaining the coordinate value of the highest point of the arc through grayscale search. The preset window image processing includes applying median filtering to denoise the intercepted window image, contrast stretching to improve the image contrast, applying Otsu thresholding to the window image, and then removing isolated points through morphological operations, and then using the Canny edge operator to extract the groove edge line in the preset window image;
[0021] Further preferably, in the step 1), the longitudinal position of the SROI window 16 and the BROI window 17 is determined by the longitudinal coordinate value of the highest point 14 of the arc; the horizontal coordinate position of the SROI window 16 is obtained by the horizontal coordinate value of the highest point 14 of the arc and the set distance from the horizontal coordinate value of the highest point 14 of the arc to the edge of the groove.
[0022] Further preferably, in the step 2), the adaptive positioning method of the groove edge ROI window 12 includes:
[0023] ① Extract the ordinate values of N1 arc highest points 14 from the global image 13 of the most recent N1 consecutive frames, and then obtain the filtered value F1 of the N1 ordinate values through a digital filtering method, and use (F1-δ1) as the ordinate value of the origin 15 of the groove edge ROI window 12; wherein δ1 is a correction constant for the ordinate position value of the origin 15 of the groove edge ROI window 12, and its value range is [-h, h];
[0024] ② Extract the position values of N2 left edges 4 or right edges 5 of the groove from the most recent N2 consecutive previous frame groove edge ROI window 12 images on the same side as the groove edge to be detected, and then obtain the filtered value F2 of the N2 position values by a digital filtering method, and use (F2-δ2) as the horizontal coordinate value of the origin 15 of the groove edge ROI window 12; or for the current global image 13, extract the left edge 4 of the groove through the BROI window 17 that can simultaneously capture the double edges of the groove and the current position value of the right edge 5 of the groove, and then obtain the filtered value F3 of the position values of the groove edges on the opposite side of the arc through a digital filtering method, and use (F3-δ2) as the horizontal coordinate value of the origin 15 of the groove edge ROI window 12; wherein δ2 is the correction constant of the horizontal coordinate position value of the origin 15 of the groove edge ROI window 12, which is the half width of the groove edge ROI window 12, that is, δ2=w / 2, wherein w is the width of the groove edge ROI window 12.
[0025] Further preferably, in the step 2): the local image processing includes performing median filtering to denoise the groove edge ROI window image, then performing contrast stretching to improve the contrast of the groove edge ROI window image, and then performing partition thresholding to obtain a binary image, and after further denoising using morphological operations, extracting the edge line of the groove edge ROI window image.
[0026] The contrast stretching uses a piecewise linear variation function, the morphological operation uses a closing operation, the edge extraction uses a Canny operator, and the partition threshold is obtained by dividing the groove edge ROI window image into 4 equal parts and then applying the Otsu threshold to each partition image.
[0027] Further preferably, in the step 4), the directional filter is expressed as: when the groove edge position point is located on the left edge, the directional filter is a low-pass filter, expressed as x k ≤M k , that is, the horizontal coordinate value of the retained position point is less than or equal to the filtering threshold variable M k When the groove edge position point is located on the right edge, the directional filter is a high-pass filter, expressed as x k ≥M k, that is, the horizontal coordinate value of the retained position point is greater than or equal to the filtering threshold variable M k The position point; x k Represents a loop data variable, whose value is equal to the set of groove edge preprocessing position points Or the set of reserved position points of the groove edge The horizontal coordinate value of the position point in .
[0028] Further preferably, in step 6), the digital filtering method is amplitude limiting anti-pulse mean filtering, which specifically includes the following steps:
[0029] ① Determine the number of data N contained in the filter window f :The filter window contains the sampling value G of the groove edge position s Including, the most recent consecutive N f The sampling values of the groove edge position, the filtering window contains the number of data N f >2;
[0030] ② Calculate the sampling deviation η1: Calculate the N f The mean value E of the sampling values at the groove edge position s , and calculate the sampling value G of the groove edge position s With the mean E s The absolute value of the difference is taken as the sampling deviation η1;
[0031] ③Calculate the deviation d of this sampling e : Calculate the ratio of the current sampling deviation η1 to the previous sampling deviation η0, and use the ratio as the current sampling deviation d e ;
[0032] ④ Repair abnormal sampling value: When the sampling deviation d e Greater than the abnormal repair threshold d th When the previous groove edge position detection value is used as the current groove edge position sampling value G s , to repair the abnormal sampling value, the abnormal repair threshold d th =3~10;
[0033] ⑤Calculate the detection value G of the groove edge position d : In N f After removing the maximum and minimum values from the sampling values of the groove edge position, the remaining (N f -2) calculate the average of the groove edge position sampling values, and use this average as the groove edge position detection value G d .
[0034] A global pattern recognition narrow gap welding groove edge visual sensing detection method of the present invention is applied to the detection of welding groove width, groove center position and real-time tracking control of the welding process; the application method is, based on the detected welding groove left edge 4 and groove right edge 5, by calculating the mean of the corresponding positions of the two edges, the welding groove center position value is obtained; by calculating the difference between the corresponding positions of the two edges, the welding groove width value is obtained.
[0035] Compared with the prior art, the advantages and beneficial effects of the present invention are mainly:
[0036] 1) Through the global pattern recognition narrow gap welding groove edge visual sensing detection method, outlier data filtering is performed on the original position points of the groove edge, which can remove simulated welding spatter below about 2.4mm, thereby improving the groove edge detection accuracy and the adaptability of the proposed method to the welding environment;
[0037] 2) Through the adaptive positioning of the groove edge ROI window, the ordinate value and abscissa value of the origin position of the groove edge ROI window are adaptively obtained according to the digital filtering results of the ordinate value of the highest point of the arc and the groove edge position value of the previous frame on the same side, thereby reducing the influence of welding spatter interference and arc stability on the positioning accuracy of the groove edge ROI window; welding tests show that the maximum position difference of the highest point of the arc between two adjacent frames of welding images is stabilized from ~4mm before filtering to within 1mm; thus improving the effectiveness of ROI window positioning.
[0038] 3) Through the self-correction method of the groove edge image position, the background ratio in the groove edge ROI window image is kept at 50%, which improves the separability of the groove edge image and the extraction accuracy of the groove edge;
[0039] 4) Through the four-partition threshold method of the groove edge ROI window image, the discreteness of the groove edge position points was reduced under the influence of welding smoke and arc light, and the groove edge extraction accuracy was improved by ~68%. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 The block diagram of the passive visual sensing detection system for narrow gap groove edge;
[0041] Figure 2 To use Figure 1 The schematic diagram of the global image of the welding area collected by the detection system shown; Figure 2 (a) is a schematic diagram of the global image of the arc at the right edge of the groove; Figure 2 (b) is a schematic diagram of the global image of the arc located at the left edge of the groove.
[0042] Figure 3 Schematic diagram of SROI and BROI windows in the global image of the narrow gap welding area;
[0043] Figure 4 This is the image processing flow chart for narrow gap welding;
[0044] Figure 5 Schematic diagram of the global pattern recognition algorithm for groove edge detection using passive visual sensing for narrow gap welding; Figure 5 (a) is a data filtering. Figure 5 (b) is secondary data filtering;
[0045] Figure 6 This is an embodiment of narrow gap welding image processing during pulse welding. Figure 6 (a) and (b) are global images of the welding area. Figure 6 (c) and (d) are the extracted arc area images. Figure 6 (e) and (f) are the ROI windows of the right and left edges of the groove. Figure 6 (g) and (h) are the ROI window images of the right and left edges of the groove and the image processing results. Figure 6 (j) and (j) are the extracted right and left edges of the groove;
[0046] Figure 7 This is an embodiment of a global pattern recognition algorithm for the original data distribution of the right edge of the groove during pulse welding. 7(a) Original position point of the groove edge, 7(b) Searching for outlier position points in the original position points of the groove edge, 7(c) Preprocessed position points of the groove edge, 7(d) True position points of the groove edge, 7(e) Reconstructed groove edge line;
[0047] Figure 8 An embodiment of narrow gap welding image processing during DC welding; Figure 8 (a) and (b) are global images of the welding area. Figure 8 (c) and (d) are the extracted arc area images. Figure 8 (e) and (f) are the ROI windows of the right and left edges of the groove. Figure 8 (g) and (h) are the ROI window images of the right and left edges of the groove and the image processing results. Figure 8 (j) and (j) are the extracted right and left edges of the groove;
[0048] Fig. 9 An implementation example of a global pattern recognition algorithm for the original data distribution of the right edge of a groove during DC welding; 9(a) original position points of the groove edge, 9(b) searching for outlier position points in the original position points of the groove edge, 9(c) first reserved position points of the groove edge, 9(e) second reserved position points of the groove edge, 9(f) true position points of the groove edge, 9(f) reconstructed groove edge line;
[0049] Figure 1 , Figure 2 and Figure 3 Middle: 1a—left wall of welding groove; 1b—right wall of welding groove; 2—arc; 3a—wire feeder; 3b—arc motion driver; 3c—conductive rod mechanism; 3d—welding wire; 4—left edge of groove; 5—right edge of groove; 6—welding groove; 7—filter system; 8—infrared camera; 9—signal trigger; 10—image transmission data line; 11—computer image processing system; 12—groove edge ROI window; 13—global image of welding area; 14—highest point of arc; 15—origin of groove edge ROI window 12; 16—SROI window; 17—BROI window; V w — welding speed; θ—shooting angle of infrared camera 8; P arc —Shaking arc position signal; i b —base current signal; O i-1 —The origin of the global image of the welding area in the previous frame, which is also the rectangular coordinate system x i-1 -O i-1 -y i-1 Origin; O i —The origin of the global image of the welding area in the current frame, which is also the rectangular coordinate system x i -O i -y i The origin of is the origin of the groove edge ROI window 12; h is the height of the ROI window 12; and —The left and right edge position points of the slope.
[0050] Figure 2 In Figure 2 (a) corresponds to the previous (i-1th) sampling, showing the situation when the arc is located on the right side; Figure 2 (b) corresponds to this (i-th) sampling, showing the situation when the arc is on the left. In the figure, the black round-shaped closed solid line represents the welding image contour, including the left and right side walls of the groove and the front and rear edges of the molten pool. DETAILED DESCRIPTION
[0051] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods, but the protection scope of the present invention is not limited to the following embodiments, and all technical solutions obtained by equivalent replacement or equivalent transformation are within the protection scope of the present invention.
[0052] like Figure 1As shown, it is a block diagram of a passive visual sensing detection system for narrow gap groove edge used in the visual sensing detection method for narrow gap welding groove edge of global pattern recognition of the present invention, which mainly includes: a narrow gap shaking / rotating arc welding torch, a visual sensing system and a computer image processing system 11. Among them, the narrow gap shaking / rotating arc welding torch includes an arc motion driver 3b and a conductive rod mechanism 3c, wherein the arc motion driver 3b includes a driving mechanism and a welding torch controller, and the conductive rod mechanism 3c is a bent conductive rod mechanism composed of a bent conductive rod and a straight conductive nozzle connected thereto, or an eccentric conductive rod mechanism composed of a straight conductive rod and an eccentric conductive nozzle connected thereto; the welding wire 3d passes through the wire feeder 3a, passes through the arc motion driver 3b, and then extends obliquely from the conductive rod mechanism 3c, generates a welding arc 2 in the welding groove 6, and performs periodic arc-shaped shaking or unidirectional rotation around the center line of the welding torch. When the arc swings or rotates to the nearest position on the left or right wall of the groove, the torch controller sends an arc position signal P arc During pulse welding, when the arc swings to the nearest position of the left wall or the right wall of the groove and stays there, the torch controller detects the arc current in real time through the current sensor and generates an arc base current signal i b .
[0053] The visual sensing system includes a filter system 7 and an infrared camera 8, a signal trigger 9, and an image transmission data line 10. The filter system 7 includes a narrow-band filter with a central wavelength range of 800 to 1100 nm, a neutral density filter, and a UV filter; the infrared camera 8 is coaxially installed with the filter system 7, and is aimed at the welding pool from the front of the welding pool at a depression angle θ (20 to 60°), and is kept at a fixed distance from the welding torch, and is set at a welding speed V w Moving forward, the infrared camera 8 has a focal length range of 18 to 45 mm and an aperture range of f / 5.6 to 36; the signal trigger 9 receives the arc position signal P arc Or the arc base current signal i is also received at the same time b Afterwards, the infrared camera 8 is triggered by an external trigger to start collecting the global image 13 of the welding area, and is sent to the computer image processing system 11 through the image transmission data line 10 connected to the infrared camera 8 for subsequent detection of the left edge 4 and the right edge 5 of the welding groove.
[0054] The overall scheme of the global pattern recognition narrow gap welding groove edge visual sensing detection method of the present invention is: the computer image processing system 11 obtains the global image 13 of the welding area by external triggering, and obtains the position of the highest point 14 of the arc by global image processing, such as Figure 2As shown; through the groove edge ROI window 12 adapted to the arc position and the groove edge position, the groove edge ROI window image on the opposite side of the arc 2 is intercepted, and after the groove edge ROI window image is processed, the groove left edge or groove right edge line is extracted to form the groove edge original position point corresponding to the groove edge ROI window height; for the obtained groove edge original position point, based on the overall pattern recognition, an outlier data filtering algorithm is proposed, by calculating the difference of the horizontal coordinates of adjacent position points and the direction filter, the outlier position points affected by welding are eliminated, and the groove edge line is reconstructed by linear fitting or calculating the mean value of the retained real position points, so as to realize the accurate detection of the groove edge position under the condition of welding interference. The specific steps include:
[0055] Step 1): Determine the adaptive positioning of the groove edge ROI window, see Figure 2 , Figure 3 and Figure 4 , specifically including the following steps:
[0056] ① The computer image processing system 11 collects the global image 13, such as Figure 2 As shown; the global image 13 is processed by median filtering, histogram analysis, global threshold and morphological operation in sequence, as shown in FIG. Figure 4 As shown; extract the arc 2 area image from the global image 13, perform a grayscale search on the acquired arc 2 area image, and find out the horizontal and vertical coordinate values of the highest point 14 of the arc;
[0057] ② The position of the SROI window 16 that can capture the groove edge on the same side of the arc is determined in the global image 13 by the ordinate value of the highest point 14 of the arc and the distance from the abscissa value of the highest point 14 of the arc to the groove edge on the same side of the arc, or the position of the BROI window 17 that can capture both edges of the groove at the same time is determined according to the width of the global image 13, such as Figure 3 As shown;
[0058] ③ For the preset window images captured by the SROI window 16 and the BROI window 17, median filtering, contrast stretching, global thresholding, morphological operations and Canny edge extraction are performed on the window images in sequence, such as Figure 4 As shown, the initial groove edge position on the same side of the arc 2 is obtained, or the groove edge positions on the same side and the opposite side of the arc are obtained to adaptively determine the initial lateral position of the origin 15 of the ROI window 12 of the groove edge on the opposite side of the arc.
[0059] The specific method steps for adaptively determining the initial lateral position of the origin 15 of the ROI window 12 on the opposite side of the arc groove are:
[0060] ① Extracting the ordinate values of N1 highest points 14 of the arc from the global image 13 of the most recent N1 consecutive frames, and then obtaining the filtered value F1 of the N1 ordinate values through a digital filtering method, and using (F1-δ1) as the ordinate value of the origin 15 of the groove edge ROI window 12; wherein δ1 is a correction constant for the ordinate position value of the origin 15 of the groove edge ROI window 12, and preferably δ1 is half the height of the ROI window 12, that is, half the height of the groove edge ROI window 12, and at this time δ1=h / 2, where h is the height of the groove edge ROI window 12;
[0061] ② Extract the position values of N2 left edges 4 or right edges 5 of the groove from the most recent N2 consecutive previous frame groove edge ROI window 12 images on the same side as the groove edge to be detected, and then obtain the filtered value F2 of the N2 position values by a digital filtering method, and use (F2-δ2) as the horizontal coordinate value of the origin 15 of the groove edge ROI window 12; or for the current global image 13, extract the current position values of the left edge 4 and the right edge 5 of the groove through the BROI window 17 that can simultaneously intercept the double edges of the groove, and then obtain the most filtered value F2 by a digital filtering method. The filtered value F3 of the groove edge position value on the opposite side of nearly N3 arcs, and (F3-δ2) is used as the horizontal coordinate value of the origin 15 of the groove edge ROI window 12; wherein δ2 is a correction constant for the horizontal coordinate position value of the origin 15 of the groove edge ROI window 12, preferably half of the width of the groove edge ROI window 12, that is, the half width of the groove edge ROI window 12, at this time δ2=w / 2, w is the width of the groove edge ROI window 12; the height h=80 pixels and the width w=80 pixels of the groove edge ROI window 12.
[0062] Step 2): Get the original position point set of the groove edge. Figure 5 After the position of the groove edge ROI window 12 is adaptively determined according to the position of the highest point of the arc and the position of the groove edge on the same side, the groove edge ROI window image of the groove left edge 4 or the groove right edge 5 on the opposite side of the arc 2 is intercepted through the groove edge ROI window 12, and the groove edge ROI window image is subjected to local image processing, including median filtering, contrast stretching, equal partition threshold, morphological operation and edge extraction in sequence, such as Figure 4 As shown, in the height h direction of the groove edge ROI window 12, the groove left edge 4 or the groove right edge 5 is extracted to obtain a groove edge original position point set consisting of h data. Among them, the contrast stretching preferably adopts a piecewise linear variation function, the equal partition threshold preferably adopts the Otsu threshold algorithm of 4-equal partition, the morphological operation is preferably a closing operation, and the edge extraction preferably adopts the Canny operator.
[0063] Step 3): Primary data filtering, refer to Figure 5 ; In the height h direction of the groove edge ROI window 12, for the obtained set of original position points of the groove edge Perform a difference operation on the x coordinate values of two adjacent position points in sequence, and classify two or more adjacent position points with a difference of zero into the same vertically distributed subset, forming a set of preprocessed position points of the groove edge containing p (1 ≤ p < h) vertically distributed subsets And search for the groove edge position points with the same abscissa as in the p subsets from the set of original position points of the groove edge and retain them in place; Finally, filter out the remaining position points that do not belong to any subset. Among them, the subset and Any edge position point in is respectively represented as and δ, ξ, and ψ are the y-direction position serial numbers of the groove edge position points in the set of original position points of the groove edge .
[0064] Step 4): Secondary data filtering, refer to Figure 5 ; After k times of cyclic filtering, the obtained set of retained position points of the groove edge is indicating the number of remaining subsets after cyclic filtering. For the set of preprocessed position points of the groove edge obtained by the above primary data filtering Correspondingly, by finding the maximum value x or the minimum value x of the abscissa value x k in the set of preprocessed position points of the groove edge k_max and the minimum value x k_min , calculate the range R k =(x k_max -x k_min ). When R k ≤R t , it indicates that the dispersion degree of the position points in the set is small, then the set of preprocessed position points of the groove edge or the set of retained position points of the groove edge is directly used as the set of true position points of the groove edge Otherwise, through repeated iterative filtering processing on the set of preprocessed position points of the groove edge or the set of retained position points of the groove edge , until the condition R k ≤R t is satisfied, the set of retained position points of the groove edge is used as the set of true position points of the groove edge Finally, the actual position point set of the groove edge A method of linearly fitting or calculating the mean of the data in the form of a groove edge reconstruction position point set containing h fitting data or mean data. In the experiment, the data dispersion threshold R t The value is INT(h×4%).
[0065] Specifically, when the number of cyclic filtering times k = 1, the groove edge preprocessing position point set The horizontal coordinate of any point in As a data set X k Any loop data variable x in k , where v (1≤v≤h) represents the set of groove edge preprocessing position points The data in the original position point set of the groove edge Calculate the original position point set of the groove edge The median of the horizontal coordinates of the h points And As the filter threshold variable M k When k>1, the set of position points is retained at the edge of the groove The horizontal coordinate of any data As loop data variable x k , where ω(1≤ω≤h) represents the set of reserved position points on the groove edge The data in the original position point set of the groove edge Calculate the set of reserved position points at the edge of the groove The median of the horizontal coordinates of all the position points in the f subsets of And As the filter threshold variable M k .
[0066] Step 5) Reconstruct the groove edge line: for the actual position point set of the groove edge obtained in step 4) above Count the number of real position points N retained s ; When N s When ≤INT(h×10%), the mean value calculation method is used to reconstruct the groove edge reconstruction position point set containing h position points Otherwise, the h fitted points are used as the groove edge reconstruction point set by the least squares linear fitting method.
[0067] Step 6) Calculate the groove edge position detection value: obtain the groove edge position sampling value through the mean value or fitting value of the h position points after reconstruction; use the digital filtering method to obtain the groove edge position detection value.
[0068] Four specific embodiments of the global pattern recognition narrow gap welding groove edge visual sensing detection method of the present invention are provided below.
[0069] Example 1
[0070] Figure 6 The example of narrow gap welding image processing during pulse welding is shown in FIG. 1 . The test conditions include: a CMOS infrared camera is used as the infrared camera 8, and a signal trigger 9 receives an arc position signal P arc and arc base current signal i b After that, the infrared camera 8 is triggered by an external triggering method to start collecting the global image 13 of the welding area, and the image is sent to the computer image processing system 11 through the image transmission data line 10 connected to the infrared camera 8 for the subsequent detection of the groove width and the groove center. The shooting angle θ of the infrared camera 8 is 25°, the aperture is 16, and the exposure time is 0.3ms; the filter system 7 includes a UV mirror, a neutral dimming filter with a transmittance of 30%, and a narrow band filter with a central wavelength of 970nm and a bandwidth of 20nm. The base material of the welding specimen is Q370qE steel plate, and the gap of the welding groove 6 is 11.75mm; the average current of the pulse arc 2 is 322.5A, the average arc voltage is 29.3V, and the welding speed V w The arc oscillation frequency of arc 2 is 2.5 Hz, the oscillation angle is 64°, and the dwell time on both sides of the groove is 100 ms.
[0071] Figure 6 (a) and (b) are two adjacent frames of global images 13 of the welding area when the arc 2 swings to the left edge 4 and the right edge 5 of the groove and stops, respectively, and the image size is 544×544 pixels. Figure 6 (a) is a global image 13 of the welding area captured when the arc 2 stays at the left edge 4 of the groove. At this time, the arc radiation of the arc 2 to the left edge 4 of the groove is relatively serious, and a welding spatter can be observed on the right edge 5. Figure 6 (b) is a global image 13 of the welding area acquired when the arc 2 stays at the right edge 5 of the groove. After receiving the global image 13 of the welding area, the computer image processing system 11 analyzes the grayscale histogram of the global image 13 to establish the grayscale histogram of the global image 13 of the welding area, and selects a grayscale value of 250 as the global threshold to analyze the grayscale histogram of the global image 13 of the welding area ( Figure 6 (a) and 6(b)) are binarized, and the extracted arc 2 area images are as follows: Figure 6(c) and 6(d).
[0072] Through Figure 6 The grayscale search of the arc 2 region images in (c) and 6(d) is performed to calculate the highest point 14 of the arc 2 in the two adjacent frames of images in the rectangular coordinate system x i-1 -O i-1 -y i-1 and x i -O i -y i The horizontal and vertical coordinates in the ROI window 12 are (167, 390) and (371, 393) respectively. At this time, the vertical coordinate value of the origin 15 of the groove edge ROI window 12 is obtained by shifting the vertical coordinate value of arc 2 up by δ1 (δ1=h / 2), and the horizontal coordinate value is obtained by subtracting δ2 (δ2=w / 2) from the groove edge position of the previous frame on the same side; therefore, the coordinate values of the origin 15 of the ROI window 12 on the right and left edges of the groove on the opposite side of the arc are (385, 350) and (61, 353) respectively. The height h and width w of the ROI window are both 80 pixels, as shown in Figure 6 In fact, in the detection of continuous welding images, the origin coordinate value of the groove edge ROI window is determined by the filtering value of the ordinate of the highest point of the continuous N1 arc and the filtering value of the continuous N2 groove edge positions on the same side, which can reduce the influence of the sudden change of the groove edge ROI window position in two adjacent frames of images on the groove edge positioning and groove width detection accuracy.
[0073] Figure 6 (g) and 6(h) show the ROI window images of the right and left edges of the groove after median filtering, contrast stretching, and four-partition thresholding. The background in the above groove edge ROI window images accounts for about 50%. Figure 6 (i) and 6(j) show that the right edge 5 and the left edge 4 of the groove are extracted after morphological operation and Canny edge operator, as shown by the white lines in the figure. Figure 6 As can be seen in (i), there is welding spatter on the right edge 5 of the groove extracted from the ROI window image 12, so an effective method must be used in the subsequent groove edge detection to effectively avoid the influence of welding spatter on the groove width and groove center.
[0074] Example 2
[0075] Figure 7 This is an implementation example of a global pattern recognition algorithm for the raw data distribution of the right edge of the groove during pulse welding. Figure 6The right edge 5 of the groove extracted in (i) contains welding spatter, and the influence of welding spatter on the position of the groove edge needs to be eliminated through the proposed outlier data filtering algorithm based on global pattern recognition. like Figure 7 (a) shows. The x-coordinate value difference of two adjacent position points is calculated in sequence, and the position point corresponding to the zero difference value is retained to form the groove edge preprocessing position point set. Eliminate the set of position points whose difference is not zero The corresponding data in are as follows Figure 7 (b) is shown by the hollow circle and solid square. k The right edge direction filter formed, that is, x k ≥M k A high-pass filter is used to remove the set of points whose difference far from the median is not zero. Get the set of reserved position points of the groove edge like Figure 7 (c) The solid circle and hollow circle are shown; at this time, the set of points at which the groove edge is retained is determined Medium data range R k , the range value R k Satisfy the dispersion criterion R k ≤R t , so the groove edge retains the position point set As the actual position point set of the groove edge like Figure 7 (d) As shown in Figure 2, the actual position point set of the groove edge is The number of position points N in s It is greater than INT (h × 10%), so the linear fitting method is used to obtain the groove edge reconstruction position point set The groove edge can reflect the actual left groove edge shape, such as Figure 7 (e) as shown.
[0076] from Figure 7 It can be seen that the outlier data containing spatter in the figure are removed, and the retained real data can reasonably characterize the actual groove edge distribution; it shows that the narrow gap welding groove edge visual sensing detection method based on global pattern recognition has higher detection accuracy, better anti-interference ability and stronger adaptability to welding environment. The left edge 4 of the groove is reconstructed by the same method as the right edge 5 of the groove, and the position points of the reconstructed right edge 5 of the groove and the reconstructed left edge 4 of the groove are fitted to the same welding area, and the corresponding positions are calculated. The sampling values of the groove width and the groove center position are 11.71mm and 9.39mm respectively, and the detection accuracy is higher than the sampling value when the right edge 5 of the groove is not reconstructed.
[0077] Example 3
[0078] Figure 8 The example of narrow gap welding image processing during DC welding is shown in FIG. 1 . The test conditions include: the signal trigger 9 receives the shaking arc position signal P during the dwell period of the arc 2 on the groove side wall; arc After (this time does not involve the base current signal i b ), the shaking arc position signal P arc The infrared camera 8 starts to collect the global image 13 of the welding area. The shooting angle θ of the infrared camera 8 is 20°, the aperture is 16, and the exposure time is 3.5ms. The filter system 7 includes a UV filter, a neutral density filter with a transmittance of 10%, and a narrow band filter with a central wavelength of 970nm and a bandwidth of 20nm. The base material of the welding specimen is Q370qE steel plate, and the gap of the welding groove 6 is 13.8mm; the current of the arc 2 is 295A, the arc voltage is 27.6V, and the welding speed V w It is 204mm / min, the dry extension length of the welding wire is 20mm, the diameter of the welding wire 3d is 1.2mm, and the flow rate of the welding shielding gas Ar-20% CO2 is 25L / min; the arc-shaped shaking frequency of arc 2 is 2.5Hz, the shaking angle is 72°, and the residence time on both sides of the groove wall is 100ms.
[0079] Based on the above test system and conditions, the global images 13 of the DC welding area where the arc 2 is located at the left edge 4 and the right edge 5 of the groove are collected respectively, and the image size is 544×544 pixels, as shown in FIG. Figure 8 (a) and 8(b). Among them, Figure 8 In (a), the arc 2 radiates more seriously to the left edge 4 of the groove, and a welding spatter can be observed on the right edge 5 of the groove. The images of the arc 2 region are extracted by the same image processing method as the pulse welding image above. Figure 8 (c) and 8(d). The ROI window at the edge of the groove is adaptively positioned, as shown in Figure 8 As shown in the white boxes in (e) and 8(f); the captured groove edge ROI window image, after the groove edge local image processing, the obtained groove edge image and groove edge line are as shown in Figure 8 As shown in (g) to 8(j).
[0080] from Figure 8 As can be seen in (i), there is welding spatter on the right edge 5 of the groove extracted from the groove edge ROI window image. Therefore, an effective method must be used in the subsequent groove edge detection to avoid the influence of welding spatter on the groove edge position value, thereby improving the detection accuracy of the groove width and groove center.
[0081] Example 4
[0082] Fig. 9 The figure shows an implementation example of a global pattern recognition algorithm for the raw data distribution of the right edge of the groove during DC welding. Figure 8 (i) The right edge of the groove extracted from 5 is a set of original position points of the groove edge consisting of h data. like Fig. 9 By calculating the numerical difference between two adjacent position points in sequence and retaining the position point corresponding to the zero difference value, a set of position points for groove edge preprocessing is formed. Eliminate the set of position points whose difference is not zero The position points in are Fig. 9 (b) is shown by the hollow circle and solid square. Because the groove edge pretreatment position point set The position points in do not satisfy the dispersion criterion R k ≤R t , so it is necessary to pre-process the position point set of the groove edge The position points in the filter are filtered by the threshold variable M k The right edge direction filter formed, that is, x k ≥M k The high-pass filter first removes the filter far from the filter threshold variable M k Data collection Get a collection of reserved location points like Fig. 9 (c) The solid circle and hollow circle are shown; the set of position points is retained by calculating once The range R of the retained position points in k After that, the position point range R k Does not meet R k ≤R t Therefore, a high-pass filter is needed to remove the data set far from the median for the second time. Get the secondary reserved location point set like Fig. 9 (d) The solid circle and hollow circle are shown; then the set of position points is retained by calculating the second The range R of the retained position points in k , and get R at this time k <R t , then the secondary reserved position point set As the actual position point set of the groove edge like Fig. 9 As shown in (e). By counting the actual position points of the groove edge The number of position points N in s , because it satisfies Ns ≥INT(h×10%), so the linear fitting method is used to obtain the reconstructed groove edge position point set The groove edge can reflect the actual right groove edge shape, such as Figure 7 As shown in (f), the mean values are calculated by the corresponding positions of the reconstructed right and left edges of the groove, and the sampling values of the groove width and the groove center position are obtained as 13.78 mm and 12.03 mm, respectively. The detection accuracy is significantly higher than the sampling value when the right edge 5 of the groove is not reconstructed.
[0083] from Fig. 9 It can be seen that the outlier data containing spatter on the right groove edge 5 is eliminated, and the retained real position point data can reasonably characterize the actual groove edge distribution; this shows that the outlier data filtering algorithm of global pattern recognition has higher detection accuracy, better anti-interference ability and stronger adaptability to welding environment.
[0084] The above description is only a part of the specific implementation of the present invention. Of course, the present invention may also have other various embodiments. Without departing from the spirit and essence of the present invention, any technician familiar with the technical field can make various corresponding equivalent changes and deformations according to the present invention, which should all fall within the protection scope of the claims attached to the present invention.
Claims
1. A global pattern recognition narrow gap welding groove edge visual sensing detection method, based on the detection system comprising: An infrared camera (8), a filter system (7), a signal trigger (9), an image transmission data line (10) and a computer image processing system (11), wherein the signal trigger (9) is connected to the infrared camera (8), the filter system (7) is coaxially mounted on the lens of the infrared camera (8), and the computer image processing system (11) is connected to the infrared camera (8) via the image transmission data line (10); a global image (13) of a narrow gap welding area is collected via the infrared camera (8), the filter system (7) and the signal trigger (9); the detection method specifically comprises the following steps: 1) Determining the initial transverse position of the origin of the groove edge ROI window: the computer image processing system (11) extracts the position of the highest point (14) of the arc (2) from the global image (13) through global image processing, and determines the position of the SROI window (16) that can intercept the groove edge on the same side of the arc (2), or the position of the BROI window (17) that can simultaneously intercept the groove double edges; by performing preset window image processing on the image intercepted by the SROI window (16) to obtain the initial groove edge position on the same side of the arc (2), or by performing preset window image processing on the image intercepted by the BROI window (17) to obtain the initial groove edge positions on the same side and opposite side of the arc (2), so as to adaptively determine the initial transverse position of the origin (15) of the groove edge ROI window (12) on the opposite side of the arc (2); 2) Get the original position point set of the groove edge After the position of the groove edge ROI window (12) is adaptively determined according to the position of the highest point of the arc and the initial lateral position of the origin (15) of the groove edge ROI window (12), the ROI window image of the groove left edge (4) or the groove right edge (5) on the opposite side of the arc (2) is intercepted by the groove edge ROI window (12) determined by the adaptive positioning method, and the groove left edge (4) or the groove right edge (5) is extracted by local image processing to obtain a groove edge original position point set consisting of h data Wherein, i represents the current operation, and h represents the height value of the ROI window (12); 3) Filter the position points in the obtained set of original position points of the groove edge once: Along the height h direction of the ROI window (12) of the groove edge, calculate the difference in the x coordinates of adjacent two position points in the set of original position points of the groove edge in turn, and divide the position points with a difference of zero into the same subset of position points; correspondingly, p (1 ≤ p < h) subsets of position points are found, thereby forming a set of preprocessed position points of the groove edge containing p subsets of position points Correspondingly, p vertical line segments are formed, and each vertical line segment has the same x coordinate value, that is, the abscissa value; 4) Pre-processing position point set for groove edge Secondary data filtering is performed at the position points in: specifically including the following steps: ① Determine the set of pre-processing position points of the groove edge Dispersion of data in: For the set of pre-processed position points of the groove edge obtained in step 3) First, determine the set of pre-processing position points on the groove edge The dispersion of the position points in the middle; specifically: Search for the set of pre-processing position points at the edge of the groove The horizontal coordinate values of all the position points in The maximum value x k_max and the minimum value x k_min , calculate the range R k =x k_max -x k_min ; Judge the range R k and data dispersion threshold R t The size of the data dispersion threshold R t =INT(h×4%), when R k ≤R t , then the groove edge preprocessing position point set As the final groove edge real position point set When R k >R t When , the original position point set of the groove edge The horizontal coordinate value of h position points The median value And As the filter threshold variable M k , combined with the directional filter, after filtering out the outlier data, the set of reserved position points at the groove edge is obtained ②Retain the position point set of the groove edge obtained in step ① Determine the dispersion of position points: retain the set of position points by calculating the groove edge The horizontal coordinate value of each position point The range R k , when R is satisfied k ≤R t , then the set of position points retained at the edge of the groove As the actual position point set G of the groove edge i (s) ; Otherwise, calculate the set of reserved position points on the groove edge The horizontal coordinate value of the middle point The median value And As the filter threshold variable M k ; Obtain the filtered groove edge retention position point set through the direction filter Repeat this process until The range of the horizontal coordinate value of each position point is R k Satisfy R k ≤R t , forming the actual position point set G of the groove edge i (s) ; 5) Reconstruct the groove edge line: for the groove edge real position point set G obtained in step 4) i (s) , count the number of real position points N retained s ; When N s ≤INT(h×10%), the mean value calculation method is used to reconstruct the groove edge reconstruction position point set G containing h groove edge position points. i (r) Otherwise, the groove edge reconstruction position point set G containing h groove edge position points is reconstructed by the least squares linear fitting method. i (r) ; Among them, the horizontal coordinate of the groove edge position point is 6) Obtaining groove edge position detection value: For the groove edge reconstruction position point set G containing h groove edge position points obtained in step 5), i (r) , by calculating the mean or fitting value of the horizontal coordinates of h groove edge position points, the groove edge position sampling value is obtained; the groove edge position detection value is obtained by using a digital filtering method for the groove edge position sampling value; 7) Repeat the above steps 2) to 6) until the welding process is completed.
2. The method for detecting narrow gap welding groove edge by visual sensing based on global pattern recognition according to claim 1 is characterized in that: In step 1), the specific content and method steps of the global image processing are: first, the global image (13) is subjected to median filtering to perform image denoising; then, the frequency of pixels at different grayscale values in the global image (13) is calculated by histogram analysis, and then the global image (13) is binarized by using a global threshold; finally, the contour of the arc (2) is extracted by morphological operation, and then the coordinate value of the highest point (14) of the arc is obtained by grayscale search.
3. The method for detecting narrow gap welding groove edge by visual sensing based on global pattern recognition according to claim 1 is characterized in that: In step 1), the specific content and method steps of the preset window image processing are: median filtering and denoising the intercepted window image, contrast stretching to improve the image contrast, Otsu threshold processing on the window image, and then eliminating isolated points through morphological operations, and then using the Canny edge operator to extract the groove edge line in the preset window image.
4. The method for detecting narrow gap welding groove edge by visual sensing based on global pattern recognition according to claim 1 is characterized in that: In step 1), the longitudinal positions of the SROI window (16) and the BROI window (17) are determined by the longitudinal coordinate value of the highest point (14) of the arc; and the horizontal coordinate position of the SROI window (16) is obtained by the horizontal coordinate value of the highest point (14) of the arc and the set distance from the horizontal coordinate value of the highest point (14) of the arc to the edge of the groove.
5. The method for detecting narrow gap welding groove edge by visual sensing based on global pattern recognition according to claim 1, characterized in that: In step 2), the specific steps of the adaptive positioning method of the groove edge ROI window (12) are: ① Extracting the ordinate values of N1 highest points (14) of the arc from the global image (13) of the most recent N1 consecutive frames, and then obtaining the filtered value F1 of the N1 ordinate values by a digital filtering method, and using (F1-δ1) as the ordinate value of the origin (15) of the groove edge ROI window (12); wherein δ1 is a correction constant for the ordinate position value of the origin (15) of the groove edge ROI window (12), and its value range is [-h, h]; ② extracting the position values of N2 left edges (4) or right edges (5) of the groove from the most recent N2 consecutive images of the previous frame groove edge ROI window (12) on the same side as the groove edge to be detected, and then obtaining the filtered value F2 of the N2 position values by a digital filtering method, and using (F2-δ2) as the horizontal coordinate value of the origin (15) of the groove edge ROI window (12); or extracting the left edge (4) of the groove through the BROI window (17) that can simultaneously capture the double edges of the groove for the current global image (13). ) and the current position value of the right edge of the groove (5), and then obtain the filtered value F3 of the position values of the groove edge on the opposite side of the arc by a digital filtering method, and use (F3-δ2) as the horizontal coordinate value of the origin (15) of the groove edge ROI window (12); wherein δ2 is a correction constant for the horizontal coordinate position value of the origin (15) of the groove edge ROI window (12), which is the half width of the groove edge ROI window (12), that is, δ2=w / 2, wherein w is the width of the groove edge ROI window (12).
6. The method for detecting narrow gap welding groove edge by visual sensing based on global pattern recognition according to claim 1, characterized in that: In step 2), the local image processing includes performing median filtering to remove noise from the groove edge ROI window (12) image, performing contrast stretching to improve the contrast of the groove edge ROI window (12) image, performing partition thresholding to obtain a binary image, performing morphological operations to further remove noise, and extracting edge lines of the groove edge ROI window (12) image.
7. The method for detecting narrow gap welding groove edge by visual sensing based on global pattern recognition according to claim 6, characterized in that: The contrast stretching uses a piecewise linear variation function, the morphological operation uses a closing operation, the edge extraction uses a Canny operator, and the partition threshold is obtained by dividing the groove edge ROI window (12) image into 4 equal parts and then applying the Otsu threshold to each partition image.
8. The method for detecting narrow gap welding groove edge by visual sensing based on global pattern recognition according to claim 1, characterized in that: In step 4), the directional filter is expressed as: when the groove edge position point is located on the left edge, the directional filter is a low-pass filter, expressed as x k ≤M k , that is, the horizontal coordinate value of the retained position point is less than or equal to the filtering threshold variable M k When the groove edge position point is located on the right edge, the directional filter is a high-pass filter, expressed as x k ≥M k , that is, the horizontal coordinate value of the retained position point is greater than or equal to the filtering threshold variable M k The position point; x k Represents a loop data variable, whose value is equal to the set of groove edge preprocessing position points Or groove edge retention position point set The horizontal coordinate value of the position point in .
9. The method for detecting narrow gap welding groove edge by visual sensing based on global pattern recognition according to claim 1, characterized in that: In step 6), the digital filtering method is amplitude limiting anti-pulse mean filtering, which specifically includes the following steps: ① Determine the number of data N contained in the filter window f :The filter window contains the sampling value G of the groove edge position s Including, the most recent continuous N f The sampling values of the groove edge position, the filtering window contains the number of data N f >2; ② Calculate the sampling deviation η1: Calculate the N f The mean value E of the sampling values at the groove edge position s , and calculate the sampling value G of the groove edge position s With the mean E s The absolute value of the difference is taken as the sampling deviation η1; ③Calculate the deviation d of this sampling e : Calculate the ratio of the current sampling deviation η1 to the previous sampling deviation η0, and use the ratio as the current sampling deviation d e ; ④ Repair abnormal sampling value: When the sampling deviation d e Greater than the abnormal repair threshold d th When the previous groove edge position detection value is used as the current groove edge position sampling value G s , to repair the abnormal sampling value, the abnormal repair threshold d th =3~10; ⑤Calculate the detection value G of the groove edge position d : In N f After removing the maximum and minimum values from the sampling values of the groove edge position, the remaining (N f -2) calculate the average of the groove edge position sampling values, and use this average as the groove edge position detection value G d .
10. An application of the global pattern recognition narrow gap welding groove edge visual sensing detection method according to claim 1, characterized in that: The invention is used for detecting the width and center position of the welding groove and real-time tracking and controlling the welding process; the application method is to obtain the welding groove center by calculating the average of the corresponding positions of the two edges based on the detected left edge (4) and right edge (5) of the welding groove; and to obtain the welding groove width value by calculating the difference of the corresponding positions of the two edges.
Citation Information
Patent Citations
Narrow gap welding monitoring and welding line deviation detecting method based on infrared vision sensing
CN102814574B
Adaptive control method and device for narrow gap welding arc rocking
CN104439620A
Visual Sensing Detection Method for Welding Groove Edge Position
CN106141382B
Infrared vision sensing detection method and device for narrow-gap weld seam deviation
CN104551347A
Vision sensing detection method for welding groove edge position
CN106141382A
Cited By
V-shaped groove weld deviation detection method based on YOLO model and groove reconstruction
CN122115405A
