Small connecting pipe welding seam detection method and system based on full-focus imaging
Through the full focus imaging technology to determine the complexity of the nozzle weld and the combination of multiple detection technologies, it solves the problems of low efficiency and insufficient accuracy of traditional methods in the weld detection of the nozzle, and achieves efficient and accurate weld detection. .
Patent Information
- Application Number
- CN202410477469.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-19
- Publication Date
- 2024-09-06
AI Technical Summary
Traditional weld inspection methods have problems such as low detection efficiency, insufficient accuracy and high operating skill requirements in small pipe weld inspection. It is difficult to fully cover various types of defects, resulting in reduced detection efficiency and accuracy.
A small nozzle weld detection method based on full-focus imaging is adopted. By obtaining the full-focus image of the small nozzle, preprocessing, feature extraction and complexity determination, the weld defect types are divided, the influencing factors are evaluated, the index weight and threshold range are set, and the calculation is complex. Degree score, select appropriate detection technology for detection.
It improves detection efficiency, reduces unnecessary detection steps, ensures the accuracy of detection results, achieves comprehensive control of weld quality, reduces the possibility of missed detection and misdetection, and ensures the safety and safety of welds. reliability.
Smart Images

Figure CN118604133A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of weld detection, and in particular to a small pipe weld detection method and system based on full-focus imaging. Background Art
[0002] Traditional weld inspection methods mainly include visual inspection, X-ray inspection, ultrasonic inspection, etc. Although these methods can detect defects in welds to a certain extent, they often have problems such as low inspection efficiency, insufficient accuracy, and high requirements for operator skills. In particular, when inspecting complex structures such as small pipe welds, traditional methods are often unable to cope with the task. Full-focus imaging technology is a method of post-processing ultrasonic array data. The received ultrasonic signal is processed through a specific algorithm to obtain a full-focus image of the weld. This image has the advantages of high resolution, high contrast, and intuitive defect display, which can significantly improve the accuracy and efficiency of weld inspection.
[0003] In the inspection of small pipe welds, the method based on full focus imaging has unique advantages. Due to the influence of various factors in the welding process, these factors include but are not limited to welding materials, welding processes, welding equipment, operating techniques, environmental factors, etc., the difference in thermal expansion coefficients between different materials, the fluctuation of welding current, the instability of welding speed, the skill level of operators and changes in environmental conditions may all lead to different types of defects in welds, such as pores, slag inclusions, cracks, incomplete penetration, pits, etc. These defects vary in size, shape, location and quantity. The differences in these defects make the small pipes have a greater impact on the structural aspects. Weld defects that have different effects on the structural aspects of small pipes need to select weld inspection technology according to specific circumstances. A single inspection technology cannot fully cover all types of defects, which reduces the inspection efficiency and accuracy. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a small pipe weld detection method and system based on full-focus imaging, so as to first determine the complexity of the weld and then select the detection technology in a targeted manner, which can greatly improve the detection efficiency.
[0005] The present invention provides a small pipe weld detection method based on full-focus imaging, comprising:
[0006] Step S1, obtaining a fully focused image of the small tube to be detected;
[0007] Step S2, preprocessing the small tube full focus image;
[0008] Step S3, extracting features of the weld area in the preprocessed full-focus image of the small nozzle;
[0009] Step S4, determining the complexity of the weld area;
[0010] The specific steps include:
[0011] Step S41, classifying the weld defect types in the weld area into volume defects, linear defects and surface defects;
[0012] Step S42, obtaining the influencing factors of the weld defect type, arranging the influencing factors of each weld defect type from high to low according to the degree of influence on the weld structure, and extracting the top N influencing factors as evaluation indicators for evaluating the complexity of the weld defects in the weld defect type;
[0013] Step S43, setting an indicator weight and an indicator threshold range for each evaluation indicator in the weld defect type of each weld area according to the influence degree of the evaluation indicator on the performance of the welding structure;
[0014] Step S44, judging whether the specific value of the evaluation index in the weld defect type is within the index threshold range, and assigning an index evaluation value to each evaluation index according to the judgment result;
[0015] Step S45, performing weighted sum calculation according to the indicator weight and indicator evaluation value of each evaluation indicator to obtain the complexity score of the weld in each weld defect type;
[0016] Step S46, assigning a scoring threshold to the weld complexity in the weld defect type, and determining the weld complexity in the weld defect type according to the scoring threshold and the weld complexity score in the weld defect type;
[0017] Step S5, selecting different full-focus imaging technologies according to the different complexity of the welds to detect the welds of the small connecting pipes.
[0018] Furthermore, the evaluation indexes of the surface defects include: pit depth, pit shape, pit distribution density and pit position.
[0019] Furthermore, the evaluation indicators of the linear defects include: defect size, defect continuity, defect direction and defect position.
[0020] Furthermore, the volume defects include: pore distribution and pore shape.
[0021] Furthermore, the sum of the index weights of all the evaluation indicators in the linear defects is 0.7, the sum of the index weights of all the evaluation indicators in the surface defects is 0.2, and the sum of the index weights of all the evaluation indicators in the volume defects is 0.1.
[0022] Further, in step S44, it is determined whether the specific value of the evaluation indicator in the weld defect type of each small connecting pipe sample is within the indicator threshold range, and an indicator evaluation value is assigned to each evaluation indicator according to the judgment result, specifically including: when the specific value of the evaluation indicator in the weld defect type in the weld area is not within the indicator threshold range, the first evaluation value is assigned to the evaluation indicator in the weld defect type; when the specific value of the evaluation indicator in the weld defect type in the weld area is within the indicator threshold range, the second evaluation value is assigned to the evaluation indicator in the weld defect type.
[0023] Furthermore, the first evaluation value is 3, and the second evaluation value is 1.
[0024] Furthermore, the calculation formula for the complexity score of the weld in each weld defect type is:
[0025]
[0026] In the formula, Q i represents the complexity score of the weld in each weld defect type of the weld area, i represents the number of evaluation indicators in each weld defect type, n represents the maximum number of evaluation indicators in each weld defect type, ω i represents the weight of the i-th evaluation index in each weld defect type, P i Represents the evaluation value of the i-th evaluation index in each weld defect type.
[0027] The embodiments of the present invention have the following technical effects:
[0028] 1. The present invention classifies weld defect types, determines evaluation indicators according to influencing factors of weld defect types, determines indicator weights and evaluation values for each evaluation indicator, and finally calculates the complexity score of the weld according to the indicator weights and evaluation values to determine the complexity of the weld. The complexity of the weld is first determined, and then the detection technology is selected in a targeted manner to improve detection efficiency, reduce unnecessary detection steps, and ensure the accuracy of the detection results.
[0029] 2. The present invention assigns an indicator weight and an indicator evaluation value to each evaluation indicator in different weld defect types, especially the indicator weight of the evaluation indicator in the weld defect type that has a greater impact on the performance of the small nozzle structure is set to be larger. In order to make the complexity score of the current weld defect type clearly distinguishable from the complexity scores of other types, its evaluation value is set to be larger. According to the final complexity score, the current weld is divided into a high-complexity type, which facilitates the direct use of more advanced detection technology for detection, thereby improving detection efficiency.
[0030] 3. The present invention realizes comprehensive control of weld quality by determining the complexity of welds and combining multiple detection technologies, reduces the possibility of missed detection and false detection, and ensures the safety and reliability of welds. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 This is a flow chart of a small pipe weld detection method based on full focus imaging provided in Example 1 of the present invention;
[0033] Figure 2 It is a structural schematic diagram of a small pipe weld detection system based on full focus imaging provided in Example 2 of the present invention. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0035] Example 1
[0036] Figure 1 Flow chart of a small pipe weld detection method based on full focus imaging provided by Example 1 of the present invention. Figure 1 , specifically including:
[0037] Step S1, obtaining a fully focused image of the small tube to be detected;
[0038] First, it is necessary to select appropriate imaging equipment, such as a high-resolution camera, microscope or endoscope, to ensure that the subtle features of the small tube can be captured. The selection and adjustment of the light source is also key. It is necessary to ensure that the light source can provide uniform and sufficiently bright lighting to highlight the surface details of the small tube. Before imaging, the equipment is calibrated and calibrated to ensure the accuracy and consistency of the image. The small tube is placed in the field of view of the imaging device and fixed to prevent movement during the acquisition process. By adjusting the focus depth of the camera or the objective lens of the microscope, all parts of the small tube can be clearly displayed in the image. This process requires multiple attempts and adjustments to achieve the best focusing effect. After focusing is completed, the imaging device is started for image acquisition. Multiple images at different angles or depths need to be acquired to obtain comprehensive information about the small tube.
[0039] Step S2, preprocessing the small tube full focus image;
[0040] The preprocessing includes image denoising, contrast enhancement, image segmentation, and feature enhancement;
[0041] Image denoising helps highlight the details of the pipeline and reduces misjudgment caused by noise interference. The image denoising method of this embodiment includes Gaussian filtering and median filtering; contrast enhancement helps this embodiment better identify the edges and defects of the pipeline; image segmentation separates the pipeline from the background, facilitating subsequent feature extraction and measurement. This embodiment uses image segmentation technology including threshold-based segmentation, edge-based segmentation and region-based segmentation; feature enhancement includes edge enhancement and texture feature extraction to enhance or extract features in the image to improve the accuracy of subsequent analysis and recognition.
[0042] Step S3, extracting features of the weld area in the preprocessed full-focus image of the small nozzle;
[0043] First, we need to locate the weld area of the preprocessed image and use the Canny operator or Sobel operator to perform edge detection to determine the boundary of the weld area. After determining the boundary of the weld area, the weld features are extracted. The weld features include: geometric features, texture features, and grayscale features.
[0044] The geometric features include the length, width, weld position coordinates, shape, depth, perimeter, and area of the weld. The geometric features calculate the length, width, depth, perimeter, area, and weld position coordinates by calculating the number of pixels in the weld area, and obtain the shape information of the weld through the edge detection algorithm;
[0045] The texture features reflect the roughness and structure of the weld surface. The texture features include defect continuity, defect edge and direction, defect frequency component, defect surface roughness, and defect pit distribution. The defect surface roughness and defect pit distribution are obtained using grayscale co-occurrence matrix, the defect continuity, defect edge and direction are obtained using local binary pattern, and the defect frequency component is obtained using grayscale histogram and Fourier transform.
[0046] Step S4, determining the complexity of the weld area;
[0047] The specific steps include:
[0048] Step S41, classifying the weld defect types in the weld area into volume defects, linear defects and surface defects;
[0049] Volume defects, linear defects and surface defects are divided based on the location, shape, size of defects in the weld and the impact on the weld structure and performance; the volume defects are mainly located inside the weld and have three-dimensional characteristics. The volume defects are located in the three-dimensional space of the weld and occupy a certain volume. The volume defects mainly include pores, slag inclusions, unfused, and incomplete penetration. The volume defects affect the density and strength of the weld and reduce the load-bearing capacity and corrosion resistance of the weld; linear defects refer to defects that are linearly or approximately linearly distributed in the weld. Linear defects are mainly manifested as internal cracks, which occur inside the weld or welded joint due to residual stress during or after welding, uneven material properties, and welding. Local metal rupture caused by factors such as improper process seriously affects the integrity and continuity of the weld, causing the weld to break or fail when subjected to stress; surface defects refer to defects directly exposed on the weld surface. Surface defects mainly include pits, surface cracks, and arc scratches, which not only affect the appearance quality of the weld, but may also reduce the corrosion resistance and fatigue strength of the weld; cracks among surface defects mainly refer to cracks that appear on the weld surface. These cracks are caused by improper operation during welding, contamination of the material surface, too fast cooling after welding, or the material is under the influence of external forces or its own shortening, overheating and other factors, and the internal stress is too large or the toughness of the material cannot withstand external forces.
[0050] Among them, under the premise of judging the complexity of weld defects, this embodiment considers internal defects (linear defects, volume defects) and external defects (surface defects) at the same time, and more comprehensively evaluates the overall quality of the weld, which helps to discover various types of potential problems and ensure the integrity and safety of the weld; different types of defects have different effects on the performance and reliability of the weld. By distinguishing these defects, the problem can be located more accurately, providing a clear direction for subsequent repair and improvement work; by comprehensively considering various defect types and formulating more stringent and comprehensive quality control standards, it is helpful to improve the overall quality level of the weld and meet higher engineering and application requirements.
[0051] Step S42, obtaining the influencing factors of the weld defect type, arranging the influencing factors of each weld defect type from high to low according to the degree of influence on the weld structure, and extracting the top N influencing factors as evaluation indicators for evaluating the complexity of the weld defects in the weld defect type;
[0052] Since the types of weld defects are divided based on the position, shape, size of the defects in the weld and the impact on the weld structure and performance, surface defects have a certain impact on the weld structure and performance. The influencing factors of surface defects are arranged from high to low according to the degree of impact on the weld structure and performance: pit depth, pit shape, pit distribution density, pit position, surface crack length, surface crack width, arc wear; since the different pit sizes and positions reduce the bearing capacity of the weld, for this reason, this embodiment takes pits as the main influencing factors of surface defects, and therefore selects the first four influencing factors: pit depth, pit shape, pit distribution density, and pit position as evaluation indicators for evaluating the complexity of surface defects in the weld defect types. Defects with larger pit depths will reduce the effective bearing area of the weld and produce stress concentration at the bottom of the pit, increasing the risk of weld structure failure, especially when bearing In high-load welds, the present embodiment regards the pit depth as one of the evaluation indicators of surface defects; the pit shape has a significant impact on the structural performance, and the sharp and irregular pit shape leads to stress concentration, which further accelerates the expansion of surface cracks. Therefore, the present embodiment regards the pit shape as one of the evaluation indicators of surface defects; high-density pits will significantly reduce the overall strength and toughness of the weld, especially when the small pipe is used in applications that need to withstand pressure or liquid. When the pits are close to or overlap each other, the dense pits will further affect the dense performance of the weld. Therefore, the present embodiment regards the pit distribution density as one of the evaluation indicators of surface defects; the pit position refers to the part of the weld where the pit is located. When the pit is located at the stress-bearing part of the weld, the impact on the structural performance is more significant, and the stress level is relatively high. The presence of the pit will aggravate the stress concentration, thereby accelerating the fracture process. Therefore, the present embodiment regards the pit position as one of the evaluation indicators of surface defects;
[0053] The influencing factors of linear defects are arranged from high to low according to the degree of influence on the welding structure: defect size, defect continuity, defect direction, defect location, defect type, welding material properties, and welding environment; the first four influencing factors: defect size, defect continuity, defect direction, and defect location are selected as evaluation indicators for evaluating the complexity of linear defects in the weld area; the defect size includes the length and depth of the defect, which is the basic indicator for evaluating the severity of linear defects. The longer and deeper the defect, the greater the impact on the welding structure, and the more likely it is to cause a reduction in structural strength and sealing performance. For this reason, this embodiment uses the defect size as one of the evaluation indicators of linear defects. The defect continuity destroys the continuity and integrity of the weld, which is further related to the welding structure. Integrity, which makes the weld prone to fracture or failure when bearing loads. For this reason, this embodiment uses defect continuity as one of the evaluation indicators of linear defects; the defect direction also has a relatively large impact on structural evaluation. When the defect direction is opposite to the principal stress direction, the risk of structural failure is greater. For this reason, this embodiment uses defect direction as one of the evaluation indicators of linear defects; defects located at different positions have different effects on the overall performance of the welded structure. When defects appear in key load-bearing parts of the weld, such as the root of the joint or the stress concentration area, the impact on the structural strength and stability will be more significant. Defects at these positions are more likely to cause the structure to fracture or fail when subjected to external loads. For this reason, this embodiment uses the defect position as one of the evaluation indicators of linear defects;
[0054] The influencing factors of volume defects are arranged from high to low according to the degree of influence: pore distribution, pore shape, composition and properties of slag inclusions. The first two influencing factors: pore distribution and pore shape are selected as evaluation indicators for evaluating the complexity of volume defects in the weld area; pore distribution directly affects the mechanical properties and stability of the welded structure. When the pore distribution is dense, especially in the key load-bearing parts, they will weaken the effective cross-section of the weld and reduce the strength and toughness of the structure. At the same time, dense pore distribution may also cause stress concentration and increase the risk of damage to the structure when it is subjected to force. For this reason, this embodiment uses pore distribution as one of the evaluation indicators of volume defects; irregular pore shapes are more likely to form stress concentration points in the weld than regular pore shapes, increasing the risk of damage to the weld when it is subjected to force. For this reason, this embodiment uses pore shape as one of the evaluation indicators of linear defects;
[0055] Step S43, the evaluation index sets an index weight and an index threshold range for each evaluation index in the weld defect type of each weld area according to the influence degree of the welding structure;
[0056] Taking into account the application scenarios of the welds, the types of loads they bear, and the strength and toughness of the welding materials, this embodiment sets the threshold range of the pit depth at 0.5mm-2mm. The threshold range of the pit depth refers to the standard depth that can be detected by general weld detection technology. Generally speaking, the maximum depth of the weld pit is about 2mm. When the pit depth of the weld to be detected is less than 0.5mm, the detection difficulty will increase. This embodiment uses circle and square as the standard shapes of the pits and calculates the perimeter of the standard shapes. The proportional threshold is set according to the perimeter of the standard shape. This embodiment sets the proportional threshold to is set to 0-2.5. When the perimeter of the pit to be detected is greater than 2.5 times the perimeter of the standard shape, this embodiment defines the current pit shape as an irregular pit shape. The more irregular the shape, the greater the detection difficulty. Since the perimeter can reflect the boundary length and complexity, by comparing the perimeter of the pit shape with the perimeter of the standard shape, it is possible to determine whether the shape of the pit deviates from the regular shape. This embodiment divides the pit shape for subsequent determination of the complexity of the weld. In addition to considering the perimeter, the division of the pit shape can also consider parameters such as area and curvature change to obtain a more accurate Division results; The pit distribution density refers to the number of pits allowed to appear in a unit area. In this embodiment, the maximum number of pits allowed to appear in a unit area is used as the threshold of the pit distribution density. The threshold of the pit distribution density is 1-3. When the number of pits in a unit area exceeds 3, this embodiment defines it as a high-density distribution of pits. The more and denser the pits are, the more difficult it is to detect. The stress-bearing part is the most critical and most susceptible area to stress concentration in the weld structure. It bears the largest mechanical load. Any tiny defect may lead to uneven stress distribution, thereby accelerating the generation and Therefore, when the defects are located at these positions, their impact on structural integrity and safety will be significantly increased. For this reason, the stress-bearing position of the weld is used as the threshold point of the pit position in this embodiment. Due to the particularity of the stress-bearing position, the repair work increases the complexity and difficulty; since the stress condition of the small pipe weld is affected by multiple factors such as the connection form between the pipe and the main pipe, the pipe size, the wall thickness of the main pipe and the working load, generally speaking, the root of the weld, the junction of the weld and the base material, and the starting and ending points of the weld, the threshold point needs to be determined according to the specific structure of the pipe body;
[0057] In this embodiment, the threshold value of the linear defect size is set to 1mm×0.05mm-3mm×0.2mm. When the size of the defect to be detected is smaller than the threshold value, it is considered that the current defect size detection process is relatively complex and has certain difficulties, and the impact on the weld structure is small; the angle between the linear defect and the center of the weld is used as the threshold value of the defect direction and defect continuity, and the angle threshold is set to 30°-150°. When the angle between the linear defect and the center of the weld is less than 30° and / or the angle between the linear defect and the center of the weld is greater than 150°, it is considered that the detection technology is difficult to achieve the ideal detection position and angle, and the detection difficulty is relatively large; the defect position threshold of the linear defect in this embodiment is the same as the pit position threshold of the surface defect, and needs to be determined according to the specific structure of the pipe body;
[0058] In this embodiment, the average distance between pores is used as the threshold of pore distribution, and the threshold is set to 0-X. When the distance between pores in the area to be detected is not between 0-X, it is considered that the pore distribution in the current area is sparse, and it is difficult for general detection technology to detect the current defect, and the detection difficulty is large; due to operational errors, pores of standard shape (circular) may extend outward (long strips), and the angle between the direction of the pores extending outward and the detection direction is set as the threshold of the pore shape, and the threshold is set to 25°-180°. When the angle between the direction of the pores extending outward and the detection direction is less than 25°, it is difficult for general detection technology to cover the distribution of pores in a large range, increasing the detection difficulty;
[0059] The angle and size data set in the above thresholds are not unique and fixed. The specific threshold values need to be accurately obtained based on the actual application requirements and verification results.
[0060] It is worth noting that the influence of linear defects on welded structures is greater than that of surface defects and volume defects. First, linear defects usually extend continuously in the weld and may run through the entire weld or most areas. This continuity makes the linear defects form a relatively fragile area in the weld, and its strength and toughness are lower than those of the normal weld area. Surface defects mainly affect the appearance and pressure-bearing area of the weld. Although they may also cause stress concentration, their influence is usually limited to the local area where the defects are located. Volume defects, such as pores and slag inclusions, will reduce the effective cross-section of the weld and reduce its bearing capacity, but their distribution is usually more discrete and has relatively little impact on the overall structure.
[0061] Based on the above description, in this embodiment, the sum of the index weights of all evaluation indicators in the linear defects is 0.7, the sum of the index weights of all evaluation indicators in the surface defects is 0.2, and the sum of the index weights of all evaluation indicators in the volume defects is 0.1; specifically, the influencing factors of linear defects are arranged from high to low according to the degree of influence on the welding structure. For this reason, the weights of the evaluation indicators in the linear defects are set as follows: the weight of the defect size in the linear defect is assigned to 0.3, the weight of the defect continuity in the linear defect is assigned to 0.25, the weight of the defect direction in the linear defect is assigned to 0.1, and the weight of the defect position in the linear defect is assigned to 0.05; the weight of the surface defect is assigned to 0. The influencing factors are arranged from high to low according to the degree of influence on the welding structure. For this purpose, the weights of the evaluation indicators in the surface defects are set as follows: the weight of the pit depth in the surface defects is assigned to 0.1, the weight of the pit shape in the surface defects is assigned to 0.05, the weight of the pit distribution density in the surface defects is assigned to 0.04, and the weight of the defect position in the surface defects is assigned to 0.01; the influencing factors of volume defects are arranged from high to low according to the degree of influence on the welding structure. For this purpose, the weights of the evaluation indicators in the volume defects are set as follows: the weight of the pore distribution in the volume defects is assigned to 0.07, and the weight of the pore shape in the volume defects is assigned to 0.03.
[0062] Step S44, judging whether the specific value of the evaluation index in the weld defect type is within the index threshold range, and assigning an index evaluation value to each evaluation index according to the judgment result;
[0063] Specifically including: when the specific value of the evaluation index in the weld defect type in the weld area is not within the index threshold range, the first evaluation value is assigned to the evaluation index in the weld defect type according to the judgment result; when the specific value of the evaluation index in the weld defect type in the weld area is within the index threshold range, the second evaluation value is assigned to the evaluation index in the weld defect type; further, when the specific value of the pit depth in the surface defect is not within the range of 0.5mm-2mm, it is considered that the detection difficulty is large, and the first evaluation value is assigned to the pit depth in the surface defect; when the ratio between the perimeter of the pit shape in the surface defect and the perimeter of the standard pit shape is not within the ratio threshold of 0-2.5, it is considered that the detection difficulty is large, and the first evaluation value is assigned to the pit shape in the surface defect; when the pit distribution density per unit area in the surface defect is not within the threshold of the pit distribution density, it is considered that the detection difficulty is large, and the first evaluation value is assigned to the pit distribution density in the surface defect; when the pit position in the surface defect is not within the threshold point position On the basis of the above, it is considered that the detection is difficult, and the first evaluation value is assigned to the position of the pit in the surface defect; when the defect size in the linear defect is not in the range of 1mm×0.05mm-3mm×0.2mm, it is considered that the detection is difficult, and the first evaluation value is assigned to the defect size in the linear defect; according to the specific content of the pit position in the surface defect, when the defect position in the linear defect is not on the threshold point, it is considered that the detection is difficult, and the first evaluation value is assigned to the defect position in the linear defect; when the angle between the defect direction (extension direction) in the linear defect and the center point of the weld is not between 30°-150°, it is considered that the detection is difficult, and the first evaluation value is assigned to the defect direction and defect continuity in the linear defect; when the distance between pores in the volume defect is not in the range of 0-X, it is considered that the detection is difficult, and the first evaluation value is assigned to the pore distribution of the volume defect; when the angle between the outward extension direction of the pores in the volume defect and the detection direction is not in the range of 25°-180°, it is considered that the detection is difficult, and the first evaluation value is assigned to the pore shape of the volume defect.
[0064] In order to clearly distinguish the complexity of the defects, in this embodiment, the first evaluation value is set to 3 and the second evaluation value is set to 1.
[0065] Step S45, performing weighted sum calculation according to the indicator weight and indicator evaluation value of each evaluation indicator to obtain the complexity score of the weld in each weld defect type;
[0066] The calculation formula for the complexity score of the weld in each weld defect type is:
[0067]
[0068] In the formula, Q irepresents the complexity score of the weld in each weld defect type of the weld area, i represents the number of evaluation indicators in each weld defect type, n represents the maximum number of evaluation indicators in each weld defect type, ω i represents the weight of the i-th evaluation index in each weld defect type, P i Represents the evaluation value of the i-th evaluation index in each weld defect type.
[0069] Step S46, assigning a scoring threshold to the weld complexity in the weld defect type, and determining the weld complexity in the weld defect type according to the scoring threshold and the weld complexity score in the weld defect type;
[0070] In this embodiment, the complexity of the weld is divided into low complexity, medium complexity and high complexity; the scoring threshold of the low complexity of the weld is set to 0.1-1.0, the scoring threshold of the medium complexity of the weld is set to 1.1-2.0, and the scoring threshold of the high complexity of the weld is set to 2.1-3; when the complexity score of the weld in the current weld defect type is within any evaluation threshold of the low complexity of the weld, the medium complexity of the weld and the high complexity of the weld, the weld defect of the current weld defect type is determined to be the complexity level of the complexity score;
[0071] The scoring threshold in this embodiment is not set manually. Instead, an initial threshold is determined based on historical data of weld detection, and the threshold is continuously adjusted considering special circumstances of complex defects to obtain a final threshold for application in this embodiment.
[0072] Step S5, selecting different full-focus imaging technologies to detect the weld of the small pipe according to the different complexity of the weld;
[0073] According to welds of different complexity, this embodiment selects different full-focus imaging technologies for detection. Specifically, for weld defects of low complexity, since the defects are few and relatively simple, conventional full-focus imaging technology is selected for detection. Conventional technology can provide basic defect location and quantitative information to meet basic detection needs; for weld defects of medium complexity, the defects are relatively many or have a certain complexity, and full-focus technology based on phase coherent imaging (PCI) is selected. PCI technology suppresses structural noise by utilizing the phase coherence of array signals, improves the signal-to-noise ratio and imaging quality, and thus more accurately identifies and quantifies defects; for weld defects of high complexity, the defects are very complex and difficult to detect, and more advanced imaging technology is considered. Image recognition and processing technology based on deep learning or artificial intelligence can more accurately identify and quantify complex defects and improve detection accuracy and reliability.
[0074] This embodiment selects different detection technologies based on different defects, and makes special considerations on the selection of detection technologies. Specifically, considering the characteristics and complexity of different types of weld defects, targeted selection of detection technologies corresponding to the concept of reducing detection steps and improving detection efficiency is performed, thus avoiding unnecessary detection steps and fully considering the scope of application and limitations of the detection technology, thereby ensuring the accuracy of the detection results.
[0075] Example 2
[0076] Figure 2 Schematic diagram of the structure of a small pipe weld detection system based on full focus imaging provided by Example 2 of the present invention. Figure 2 This embodiment discloses a small pipe weld detection system based on full focus imaging, which is used to execute the small pipe weld detection method based on full focus imaging described in Example 1, and is characterized by comprising the following modules:
[0077] Small tube full focus image acquisition module: used to acquire the small tube full focus image to be detected;
[0078] Preprocessing module: connected to the small tube full focus image acquisition module, used for preprocessing the small tube full focus image;
[0079] Feature extraction module: connected to the preprocessing module, used for extracting features of the weld area in the preprocessed small nozzle full focus image;
[0080] Complexity determination module: connected with the feature extraction module, used to determine the complexity of the weld of the small nozzle sample;
[0081] Weld detection module: connected to the complexity determination module, used to select the full focus imaging technology to detect the weld of each small nozzle sample according to the complexity of the weld of the small nozzle sample.
[0082] Example 3
[0083] This embodiment discloses an electronic device, which includes one or more processors and a memory.
[0084] The processor may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0085] The memory may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor may run the program instructions to implement a small pipe weld detection method based on full-focus imaging and / or other desired functions of any embodiment of the present application described above. Various contents such as initial external parameters, thresholds, etc. may also be stored in the computer-readable storage medium.
[0086] In one example, the electronic device may further include: an input device and an output device, which are interconnected via a bus system and / or other forms of connection mechanisms (not shown). The input device may include, for example, a keyboard, a mouse, etc. The output device may output various information to the outside, including early warning information, braking force, etc. The output device may include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.
[0087] In addition, the electronic device may further include any other appropriate components according to specific application scenarios.
[0088] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of a small pipe weld detection method based on full-focus imaging provided in any embodiment of the present application.
[0089] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0090] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of a small pipe weld detection method based on full-focus imaging provided in any embodiment of the present application.
[0091] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0092] It should be noted that the terms used in the present invention are only for describing specific embodiments, rather than limiting the scope of the present application. As shown in the present specification, unless the context clearly indicates an exception, the words "one", "a", "a kind of" and / or "the" do not specifically refer to the singular, but may also include the plural. The terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method or device. In the absence of more restrictions, the elements defined by the sentence "include one..." do not exclude the presence of other identical elements in the process, method or device including the elements.
[0093] It should also be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", etc. should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention.
Claims
1. A small pipe weld detection method based on full focus imaging, characterized in that: include: Step S1, obtaining a fully focused image of the small tube to be detected; Step S2, preprocessing the small tube full focus image; Step S3, extracting features of the weld area in the preprocessed full-focus image of the small nozzle; Step S4, determining the complexity of the weld area; The specific steps include: Step S41, classifying the weld defect types in the weld area into volume defects, linear defects and surface defects; Step S42, obtaining the influencing factors of the weld defect type, arranging the influencing factors of each weld defect type from high to low according to the degree of influence on the weld structure, and extracting the top N influencing factors as evaluation indicators for evaluating the complexity of the weld defects in the weld defect type; Step S43, setting an indicator weight and an indicator threshold range for each evaluation indicator in the weld defect type of each weld area according to the influence degree of the evaluation indicator on the performance of the welding structure; Step S44, judging whether the specific value of the evaluation index in the weld defect type is within the index threshold range, and assigning an index evaluation value to each evaluation index according to the judgment result; Step S45, performing weighted sum calculation according to the indicator weight and indicator evaluation value of each evaluation indicator to obtain the complexity score of the weld in each weld defect type; Step S46, assigning a scoring threshold to the weld complexity in the weld defect type, and determining the weld complexity in the weld defect type according to the scoring threshold and the weld complexity score in the weld defect type; Step S5, selecting different full-focus imaging technologies according to the different complexity of the welds to detect the welds of the small connecting pipes.
2. According to claim 1, a small pipe weld detection method based on total focus imaging is characterized in that: The evaluation indexes of the surface defects include: pit depth, pit shape, pit distribution density and pit position.
3. The small pipe weld detection method based on total focusing imaging according to claim 1 is characterized in that: The evaluation indicators of the linear defects include: defect size, defect continuity, defect direction and defect position.
4. The small pipe weld detection method based on total focusing imaging according to claim 1 is characterized in that: The volume defects include: pore distribution and pore shape.
5. The small pipe weld detection method based on total focusing imaging according to claim 1 is characterized in that: The sum of the index weights of all evaluation indicators in the linear defects is 0.7, the sum of the index weights of all evaluation indicators in the surface defects is 0.2, and the sum of the index weights of all evaluation indicators in the volume defects is 0.
1.
6. The small pipe weld detection method based on total focusing imaging according to claim 1 is characterized in that: In step S44, it is determined whether the specific value of the evaluation indicator in the weld defect type is within the indicator threshold range, and an indicator evaluation value is assigned to each evaluation indicator according to the determination result, specifically including: when the specific value of the evaluation indicator in the weld defect type in the weld area is not within the indicator threshold range, a first evaluation value is assigned to the evaluation indicator in the weld defect type; when the specific value of the evaluation indicator in the weld defect type in the weld area is within the indicator threshold range, a second evaluation value is assigned to the evaluation indicator in the weld defect type.
7. The small pipe weld detection method based on total focus imaging according to claim 6 is characterized in that: The first evaluation value is 3, and the second evaluation value is 1.
8. The small pipe weld detection method based on total focusing imaging according to claim 1 is characterized in that: The calculation formula for the complexity score of the weld in each weld defect type is: In the formula, Q i represents the complexity score of the weld in each weld defect type of the weld area, i represents the number of evaluation indicators in each weld defect type, n represents the maximum number of evaluation indicators in each weld defect type, ω i represents the weight of the i-th evaluation index in each weld defect type, P i Represents the evaluation value of the i-th evaluation index in each weld defect type.
9. A small pipe weld detection system based on total focus imaging, used to execute a small pipe weld detection method based on total focus imaging according to any one of claims 1 to 8, characterized in that: Includes the following modules: Small tube full focus image acquisition module: used to acquire the small tube full focus image to be detected; Preprocessing module: connected to the small tube full focus image acquisition module, used for preprocessing the small tube full focus image; Feature extraction module: connected to the preprocessing module, used to extract features of the weld area in the preprocessed small nozzle full focus image; Complexity determination module: connected with the feature extraction module, used to determine the complexity of the weld area of the small nozzle sample; Weld detection module: connected to the complexity determination module, used to select the full focus imaging technology to detect the weld of each small nozzle sample according to the complexity of the weld of the small nozzle sample.
10. An electronic device, characterized in that: The electronic device comprises: Processor and memory; The processor is used to execute the steps of a small pipe weld detection method based on full-focus imaging as described in any one of claims 1 to 8 by calling the program or instructions stored in the memory.
Citation Information
Cited By
Automatic control method, system and equipment for framing machine and readable storage medium
CN119147546A
Sapphire slice quality evaluation method based on machine vision
CN119379687A
Ultrasonic detection method, system and equipment for pseudo defects of butt weld of steel plate and medium
CN119619298A
