Weld joint feature extraction method

The industrial CCD camera collects weld seam images and combines it with image processing technology to solve the problem of laser sensor recognition stability in complex weld seam environments, achieve accurate extraction and analysis of weld seam features, and improve the automated detection and quality of the welding process. control ability.

CN118657664APending Publication Date: 2024-09-17HUBEI HONGLU STEEL STRUCTURE +2
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411009570.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing laser sensor-based weld feature extraction methods suffer from poor recognition stability when the weld shape is complex or the surface quality of the welding material is poor, and the hardware cost and complexity are high, which limits the flexibility and application scope of the welding robot.

Method used

An industrial CCD camera is used for high-resolution image collection. Through image preprocessing, Canny edge detection, corrosion and expansion operations, quantification and feature selection, weld features are extracted to achieve accurate identification and analysis of welds.

Benefits of technology

It improves the accuracy and processing efficiency of weld feature extraction, reduces manual intervention, supports automated detection and quality control, adapts to the needs of complex weld features, and enhances the overall quality of the image and the accuracy of subsequent processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657664A
    Figure CN118657664A
Patent Text Reader

Abstract

The invention discloses a welding seam feature extraction method, and relates to the technical field of image processing, and the method comprises the following steps: employing an industrial CCD camera to collect a welding seam image; the collected welding seam image is transmitted to the image processing system, the welding seam image uploaded to the image processing system is subjected to image preprocessing, and the welding seam image is clearer through gray processing and image enhancement; edge detection, image segmentation, corrosion operation and expansion operation are carried out on the weld seam image, and a weld seam contour image is extracted; performing quantification, feature selection and dimension reduction on the weld contour image to obtain weld features; and finally, visual output is performed on welding seam characteristics, so that an operator can understand and analyze the welding seam characteristics conveniently. Therefore, through the image processing technology, the welding seam features are automatically recognized and extracted, manual intervention is reduced, high-precision feature extraction and analysis are conducted on the welding seam, and the efficiency and accuracy of welding seam image processing are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a welding seam feature extraction method, and in particular to the technical field of image processing. Background Art

[0002] Welding is a manufacturing process and technology that joins metals or other thermoplastic materials by heating, high temperature or high pressure. It is not only widely used in the fields of construction, automobile manufacturing, shipbuilding, energy and aerospace, but also plays a vital role in modern industrial production.

[0003] The weld is the connection formed during the welding process. Its quality and form are crucial to the strength and stability of the welded structure. The welding quality directly affects the quality of the weld. Factors such as the temperature, speed, and selection of welding materials during the welding process will affect the quality of the weld. Therefore, optimizing the welding process and improving the quality of the weld are the goals that modern industrial production continues to pursue.

[0004] At present, the weld feature extraction method based on laser sensors mainly uses computer vision algorithms to process and analyze weld images. Due to the advantages of laser sensors such as simple structure and non-contact, they are developing rapidly and have been widely used. Although laser sensors can provide rich image information, their extraction accuracy is affected by many factors, including sensor quality. In some cases, such as when the weld shape is complex or the surface quality of the welding material is poor, the recognition stability of the laser sensor may be affected. In addition, some types of laser sensors require additional hardware equipment, such as lasers, which increases the cost and complexity of the system. At the same time, the size and weight of the hardware may also impose certain restrictions on the flexibility and application scope of the welding robot.

[0005] Therefore, although the weld feature extraction method based on laser sensors has broad application prospects, the above shortcomings and challenges still need to be considered and solved in practical applications. Summary of the invention

[0006] The embodiment of the present application provides a method for extracting weld features through image processing technology, which solves the problem in the prior art that environmental factors at the welding site may interfere with the laser sensor, and achieves the ability to capture subtle features of the weld; accurate identification of the weld is achieved through high-resolution image acquisition and weld image analysis.

[0007] The present application provides a weld feature extraction method, comprising: Step 1, using an industrial CCD camera, aiming the CCD camera at the weld area to take pictures and obtain a weld image; Step 2, transmitting the weld image to the image processing system, performing image preprocessing on the weld image transmitted to the image processing system, and obtaining a clearer weld image through grayscale processing and image enhancement; Step 3, performing Canny edge detection, corrosion operation, expansion operation and image segmentation on the weld image to extract the weld contour image; Step 4, quantifying, feature selecting and reducing the dimension of the weld contour image obtained in step 3 to extract weld features; Step 5: Display the weld characteristics in the form of images or data reports to facilitate operators to understand and analyze; store the processing results in a database for subsequent tracking and analysis; One or more technical solutions provided in this application have at least the following technical effects or advantages: Through image processing technology, weld features can be automatically identified and extracted, reducing manual intervention and improving processing efficiency and accuracy. It helps to realize automated inspection and quality control on the production line and can perform high-precision measurement and analysis of welds. By adjusting algorithm parameters and image processing methods, it can flexibly respond to various complex weld feature extraction requirements.

[0008] By performing reasonable corrosion and expansion operations on weld images with broken edges and adjusting relevant parameters, the continuity of the weld can be improved, the overall quality of the image can be enhanced, the accuracy of subsequent processing can be improved, the image analysis work can be simplified, and automated detection and identification can be promoted, providing strong support for the accurate analysis and processing of weld images. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 A schematic diagram of a process for extracting weld features according to an embodiment of the present invention; Figure 2 The figure is a schematic diagram of a process of performing corrosion and expansion operations on a broken weld image according to an embodiment of the present invention. DETAILED DESCRIPTION

[0010] To facilitate the understanding of the present invention, the present application will be described more comprehensively below with reference to the relevant drawings; the drawings show preferred embodiments of the present invention, but the present invention can be implemented in many different forms and is not limited to the embodiments described herein; on the contrary, the purpose of providing these embodiments is to enable a more thorough and comprehensive understanding of the disclosed content of the present invention.

[0011] It should be noted that the terms “vertical”, “horizontal”, “up”, “down”, “left”, “right” and similar expressions used in this document are only for illustrative purposes and do not represent the only implementation method.

[0012] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which the present invention belongs; the terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention; the term "and / or" used herein includes any and all combinations of one or more related listed items.

[0013] In the welding site, the environmental factors on site may interfere with the effect of the laser sensor, affecting the accurate extraction of weld features. In order to solve this problem, the present invention provides a weld feature extraction method, which realizes accurate extraction of weld features through high-resolution image acquisition and image processing technology.

[0014] Embodiment 1: Figure 1 It is a flow chart of a weld feature extraction method according to an embodiment of the present invention.

[0015] like Figure 1 As shown, a weld feature extraction method comprises the following steps: Step 1: select an industrial CCD camera with a pixel of 8 million or more to take photos of the weld area to obtain a weld image; Step 2: The collected weld image is transmitted to the image processing system, and the weld image transmitted to the image processing system is preprocessed to obtain a clearer weld image through grayscale processing and image enhancement: Step 21, grayscale processing: Grayscale images have only one channel, which represents the brightness information of the image and removes the color information of the image; the conversion process performs weighted average on the values ​​of the three channels R, G, and B. The specific calculation formula is: grayscale value = 0.3R + 0.59G + 0.11B; the collected color image is converted into a grayscale image, which reduces the color information of the image, but the key structural information and defect features can be retained in the grayscale image, so the data processing amount can be reduced and the processing speed can be improved; Step 22, image enhancement: adjust the histogram distribution of the image, improve the contrast of the image, and make the boundary between the weld and the background clearer; stretch the contrast range of the image, enhance the high-frequency components in the image, that is, the edges and details, and make the image look clearer; use filtering technology to reduce the noise in the image, further smooth the image and reduce interference, which is conducive to subsequent edge detection and image segmentation; enhance the grayscale image, improve the contrast, clarity and signal-to-noise ratio of the image, highlight the key information in the weld image, make the weld image clearer, easier to observe and analyze, easier to detect and identify defects, and improve the accuracy and reliability of detection; Step 3: Perform edge detection and image segmentation on the weld image obtained in step 2, and extract the weld through Canny edge detection and image segmentation: Step 31, Canny edge detection: use a Gaussian filter to smooth the image to reduce the impact of noise on edge detection; calculate the gradient amplitude and direction of the image to determine the position and direction of the edge; in the gradient direction, compare the gradient amplitude of the current pixel with the gradient amplitude of its adjacent pixel. If the gradient amplitude of the current pixel is not the largest, set it to zero to eliminate the stray response caused by edge detection, set two thresholds, i.e., a high threshold and a low threshold, and divide the gradient amplitude according to the two thresholds to obtain strong edges and weak edges. Starting from the strong edge, track and connect the edge along the gradient direction. When encountering a weak edge, if it is connected to the strong edge, it is also regarded as a valid edge; by performing Canny edge detection on the weld image, the edge in the weld image can be accurately located, the interference of pseudo edges can be reduced, and the accuracy of detection can be improved; Step 32, image segmentation: using the Canny edge detection result, if the gray value difference of adjacent pixels is less than a predetermined threshold, they are regarded as similar pixels and merged, otherwise they are split, and finally different regions representing the weld and the background are formed; through image segmentation technology, different regions in the weld image can be effectively separated, and the segmented image is easier to analyze and process the weld region and extract the characteristics of the weld; Step 4, quantifying, feature selecting and dimension reducing the weld image obtained in step 3, includes the following steps: Step 41, quantization stage: after edge detection and segmentation, the edge of the weld has been clearly outlined. The total length of the weld contour line is calculated by traversing all the pixels on the contour line and accumulating the distance between them to obtain the length of the weld; the width of the weld is determined by calculating the distance between the edges measured perpendicular to the length direction of the weld; the area of ​​the weld is estimated by calculating the total number of pixels in the weld area; the complexity, roundness and rectangularity are extracted by performing ellipse fitting and rectangle fitting on the weld edge; the shape factor is obtained by calculating the complexity, roundness and rectangularity of the weld contour; the texture features of the weld are extracted by constructing a gray level co-occurrence matrix (GLCM) of the weld area: energy, entropy, contrast; the weld image is converted from the spatial domain to the frequency domain by Fourier transform, and the energy of different frequency components is calculated to obtain the energy distribution; the position of the energy peak in the frequency domain is found to determine the main frequency, that is, the frequency component with the largest energy; Step 42, feature selection and dimensionality reduction: Not all features extracted in the quantification stage are useful. Therefore, the importance of the weld features obtained after quantification is evaluated through statistical methods, machine learning algorithms or the knowledge of domain experts, and the importance of features is used to evaluate the contribution of features to classification or prediction tasks; through correlation analysis, the correlation between features is analyzed to avoid selecting highly correlated features; through linear discriminant analysis (LDA) and principal component analysis (PCA), the data is mapped from high-dimensional space to low-dimensional space; Step 5, result visualization and output: The weld features are displayed in the form of images or data reports to facilitate operator understanding and analysis; the processing results can be stored in a database for subsequent tracking and analysis.

[0016] Through the above steps, the characteristics of the weld can be effectively extracted, providing strong support for subsequent weld quality assessment, defect detection, etc.; at the same time, this method has good versatility and scalability, and can adapt to different types of weld images and processing requirements.

[0017] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages: Through image processing technology, weld features can be automatically identified and extracted, reducing manual intervention and improving processing efficiency and accuracy. It helps to realize automated inspection and quality control on the production line and can perform high-precision measurement and analysis of welds. By adjusting algorithm parameters and image processing methods, it can flexibly respond to various complex weld feature extraction requirements.

[0018] Embodiment 2: In embodiment 1, the Canny edge detection algorithm can accurately detect the real edge in the image and carefully locate the edge pixels. This is particularly important in weld image processing because accurate edge detection is the basis for subsequent weld image analysis and processing. However, it is ignored that sometimes the weld image after Canny edge detection will have broken edges, which will have a certain impact on the subsequent extraction of weld features.

[0019] Therefore, the embodiments of the present application are optimized based on the above embodiments.

[0020] In some embodiments, such as Figure 2 As shown, before step 32, corrosion and expansion treatment is required to connect the broken edges, specifically including: Step 311, corrosion operation: the corrosion operation can reduce the highlight area or expand the dark area in the image, which helps to eliminate the noise around the edge and small protrusions; the rectangular structure element is suitable for scenes that require straight line corrosion or small area noise removal, the circular structure element is suitable for scenes that require smooth image edges or fill small holes, and the cross structure element is suitable for reducing edges and small lines while maintaining most of the image details; the rectangular structure element is selected to corrode the image to remove burrs or small protrusions in the image; the circular structure element is selected to corrode the image, and by adjusting the radius size, the corrosion operation is more uniform and less damaging to the edge; the cross structure element is selected to corrode the image to remove small noise while retaining the main features of the weld; through the corrosion operation, closely connected welds are distinguished, the image of complex shape is simplified, the main structure is highlighted, and subsequent analysis and processing are convenient; Step 312, expansion operation: the expansion operation can expand the highlight area in the image. The purpose of this step is to fill the breaks between the edges of the weld and connect them. Similar to the corrosion operation, the structural elements used in the expansion operation are the same as those in the corrosion operation, but can also be adjusted as needed; through the expansion operation, small holes or breaks in the weld can be filled, or the weld parts that have been divided due to corrosion can be connected, thereby restoring the integrity of the weld; Step 313, parameter adjustment and optimization: according to the specific situation of the weld image, the parameters of corrosion and expansion need to be adjusted: the size and shape of the structural element and the number of iterations; by continuously trying and optimizing the parameter settings, the most suitable processing solution for the current weld image can be found; Step 314, result evaluation and post-processing: After the processing is completed, the results need to be evaluated to ensure that the broken edges have been effectively connected and the overall structure of the weld remains intact and clear; if necessary, some post-processing operations can be performed, such as further smoothing or refinement operations, to improve the image quality and highlight the characteristics of the weld.

[0021] If one corrosion and expansion operation is not sufficient to connect the broken edges, steps 411 to 413 are performed multiple times; however, it is also necessary to control the degree of corrosion and expansion to avoid distortion of the weld structure caused by excessive processing.

[0022] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages: In summary, for weld images with broken edges, by rationally applying corrosion and expansion operations and adjusting relevant parameters, the continuity of the weld can be improved, the overall quality of the image can be enhanced, the accuracy of subsequent processing can be improved, and the image analysis operation can be simplified, providing strong support for the accurate analysis and processing of weld images.

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

Claims

1. A weld feature extraction method, characterized in that: include: Step 1: select an industrial CCD camera with a pixel of 8 million or more to take photos of the weld area to obtain a weld image; Step 2, transmitting the collected weld image to an image processing system, performing grayscale processing and image enhancement on the weld image transmitted to the image processing system to obtain a clear weld image; Step 3, performing Canny edge detection, corrosion operation, expansion operation and image segmentation on the weld image obtained in step 2 to extract the weld contour image; Step 4, quantifying, feature selecting and reducing the dimension of the weld contour image obtained in step 3 to obtain weld features; Step 5: Output the weld features in the form of an image or a data matrix, and store the processing results in a database.

2. The weld feature extraction method according to claim 1, characterized in that: The grayscale processing converts a color image into a grayscale image, and the grayscale image represents the brightness information of the image with the color information removed.

3. The weld feature extraction method according to claim 1, characterized in that: The image enhancement described adjusts the histogram distribution of the image to improve the contrast of the image; stretches the contrast range of the image to enhance the high-frequency components in the image; and uses filtering technology to reduce noise in the image.

4. The weld feature extraction method according to claim 1, characterized in that: The Canny edge detection uses a Gaussian filter to smooth the image to reduce the influence of noise on edge detection; calculates the gradient amplitude and direction of the image to determine the position and direction of the edge; in the gradient direction, compares the gradient amplitude of the current pixel with the gradient amplitude of its adjacent pixel, sets two thresholds, divides the gradient amplitude according to the two thresholds, obtains strong edges and weak edges, and starts from the strong edge and tracks and connects the edge along the gradient direction.

5. The weld feature extraction method according to claim 1, characterized in that: The corrosion operation corrodes the weld image by selecting rectangular, circular, or cross-shaped structural elements, thereby reducing the highlight area or expanding the dark area in the image and eliminating noise and small protrusions around the edge.

6. The weld feature extraction method according to claim 1, characterized in that: The expansion operation fills small holes or breaks in the weld, or connects weld parts that have been separated due to corrosion, thereby restoring the integrity of the weld.

7. The weld feature extraction method according to claim 1, characterized in that: The image segmentation uses the Canny edge detection result and the image segmentation technology to segment the weld and the background.

8. The weld feature extraction method according to claim 1, characterized in that: In the quantization stage, after edge detection and image segmentation, the edge of the weld is clearly outlined, and the length of the weld is obtained by calculating the total length of the edge contour line; the width of the weld is determined by calculating the distance between the edges measured perpendicular to the length direction of the weld; the area of ​​the weld is estimated by calculating the total number of pixels in the weld area; the complexity, roundness and rectangularity are extracted by performing ellipse fitting and rectangle fitting on the weld edge; the shape factor is obtained by calculating the complexity, roundness and rectangularity of the weld contour; the texture features of the weld are extracted by constructing a grayscale co-occurrence matrix of the weld area; the weld image is converted from the spatial domain to the frequency domain by Fourier transform, and the energy distribution is obtained by calculating the energy of different frequency components; Find the location of the energy peak in the frequency domain to determine the dominant frequency, that is, the frequency component with the highest energy.

9. The weld feature extraction method according to claim 1, characterized in that: The feature selection and dimensionality reduction described above evaluate the importance of the weld features obtained after quantification through statistical methods, machine learning algorithms or the knowledge of domain experts, and use the importance of the features to evaluate the contribution of the features to the classification or prediction tasks; Analyze the correlation between features through correlation analysis to avoid selecting highly correlated features; Through linear discriminant analysis and principal component analysis, the data is mapped from high-dimensional space to low-dimensional space.

Citation Information

Cited By

  • Weld joint corrosion feature extraction method and system based on deep learning and SfM

    CN121616929A

  • A weld seam rust feature extraction method and system based on deep learning and SfM

    CN121616929B