Electro-optical in-situ nondestructive testing method and system for micron-level defects in metal components
Through the combination of alternating pulse current, infrared thermal imaging camera and depth camera, high-precision detection of micron-level defects in metal components is achieved, which solves the limitations of detection accuracy and efficiency in the existing technology and provides an efficient detection method suitable for industry. .
Patent Information
- Application Number
- CN202410303103.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-18
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-03-18
AI Technical Summary
Existing metal component defect detection technology has limitations in the detection accuracy and efficiency of sub-millimeter-sized defects. It is especially difficult to achieve precise positioning and three-dimensional reconstruction at the micron scale. Moreover, existing methods have high requirements on the tested materials and application scenarios. It is difficult to be widely used in industry.
Alternating pulse current is used for non-contact detection, combined with infrared thermal imaging cameras and depth cameras, and the relationship between heat input and physical properties is established. The neural network model is used for data processing to obtain the matching of temperature distribution images and three-dimensional point clouds to achieve Reconstruction of the three-dimensional shape and temperature distribution of micron-scale defects.
It achieves high-precision detection of micron-level defects in metal components, improves detection efficiency, avoids damage to the component shape and internal structure, is suitable for industrial applications, and provides a more reliable and efficient detection solution.
Smart Images

Figure CN118190945B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of metal nondestructive testing, and in particular to an electro-optical in-situ nondestructive testing method and system for micron-level defects of metal components. Background Art
[0002] High-end equipment such as aerospace is subjected to extremely harsh service conditions, which places extremely high demands on the quality and integrity of key metal components. In order to ensure the quality of metal components, non-destructive testing technology has become an indispensable part, which can effectively detect and evaluate possible defects such as cracks and pores in metal components, thereby ensuring the quality of components and the reliability of equipment.
[0003] At present, the main methods for defect detection of metal components include ultrasonic testing, fluorescent magnetic particle testing and X-ray testing. Ultrasonic testing includes phased array ultrasound and laser ultrasound, etc. However, these methods have certain limitations in the detection accuracy of sub-millimeter defects and the detection efficiency is relatively low. Fluorescent magnetic particle testing requires that the object to be tested is a ferromagnetic material and needs to be tested in a dark room with fluorescent light, which limits its scope of application. X-ray testing is subject to certain restrictions due to its high cost, strict requirements on the surface flatness of the parts to be tested, and the difficulty of large-scale application in industry.
[0004] Existing nondestructive testing technologies face challenges in balancing testing accuracy and efficiency, especially for micron-scale defects, where precise positioning and three-dimensional reconstruction are difficult to achieve. Therefore, it is urgent to develop an electro-optical in-situ nondestructive testing method for micron-scale defects in metal components, which can achieve high-precision detection of micron-scale defects in industrial applications, ensure component quality, and improve detection efficiency while maintaining detection accuracy. Such technology will provide more reliable and efficient defect detection solutions for industrial fields such as aerospace, automobiles, and ships. Summary of the invention
[0005] In view of this, the present invention proposes an electro-optical in-situ nondestructive detection method and system for micron-level defects, which can perform non-contact detection on the surface area of a metal component without damaging the shape and microstructure of the metal component.
[0006] The technical solution of the present invention is achieved in this way:
[0007] On the one hand, the present invention provides an electro-optical in-situ nondestructive detection method for micron-level defects of metal components, comprising the following steps:
[0008] S1: Without damaging the integrity and internal structure of the metal component under test, an alternating pulse current is applied to the metal component under test to heat it up, and the relationship between the heat input and the physical properties of the metal component under test is established;
[0009] S2: Use an infrared thermal imager to obtain a two-dimensional temperature matrix of the area to be tested on the surface of the metal component, obtain a temperature distribution image containing the temperature value of each pixel point, and obtain the defect feature contour of the area to be tested;
[0010] S3: Use a depth camera to obtain a depth image of the area to be tested of the metal component and convert it into a three-dimensional point cloud coordinate to determine the pixel distribution and the spatial position information of each point;
[0011] S4: Combine the defect feature contour, match the temperature distribution image of the infrared thermal imager with the feature points of the depth image acquired by the depth camera, and obtain the corresponding relationship between the temperature distribution and the three-dimensional point cloud;
[0012] S5: Post-process the data and perform point cloud matching. After point cloud matching, the temperature information of each point is extracted from the temperature distribution image and fused into the corresponding three-dimensional point cloud to obtain a three-dimensional point cloud with temperature and spatial position information, thereby reconstructing the three-dimensional shape, size and temperature distribution of the defect.
[0013] On the basis of the above technical solution, preferably, the step S1 of loading an alternating pulse current to the metal component to heat the metal component and establish a relationship between the heat input and the physical properties of the metal component is to make the output of the alternating pulse current at time t expressed as: Among them I 0 is the initial amplitude of the alternating pulse current, τ is the pulse width of the alternating pulse current, and f is the frequency of the alternating pulse current; then the relationship between the heat input and the physical properties of the measured metal component is established, which is to describe the heat conduction equation of the metal component as follows: Where ρ is the density of the metal component being measured, C p is the specific heat capacity of the metal component under test, k is the thermal conductivity of the metal component under test, T is the temperature, and Q is the heat source per unit volume generated by the alternating pulse current; a neural network model is used to learn the relationship between the heat input and the physical properties of the metal component under test. The neural network model uses the density ρ of the metal component under test, the specific heat capacity C of the metal component under test, and the heat capacity C of the metal component under test. p and the thermal conductivity k of the metal component being tested as the input variable X, and the heat input As the output of the neural network model, the number of hidden layers is set to n, and F is the mapping function of the neural network; the thermal input Expressed as where σ l is the activation function of the lth hidden layer, l = 1, 2, 3, ..., n; W l is the weight matrix of the lth hidden layer, b lis the bias vector of the lth hidden layer; the weight matrix and bias vector with the best output effect are screened through training to construct the relationship between the heat input and the physical properties of the measured metal component; the activation function σ l It is one of sigmoid or ReLU.
[0014] Preferably, residual connections and branch structures are further introduced into the hidden layer of the neural network model to enhance the neural network model's ability to model the nonlinear relationship between the physical properties of complex metal components and the heat input. Let the original hidden layer output be H l , after introducing the residual connection, the new hidden layer output is H l , then H′ l =H l +F(H l , W h ), where F is a nonlinear transformation function, W h is the weight matrix of the residual connection, and the branch structure outputs H″ l Indicated as H l =[H l , G(H l , U h )], where G is a nonlinear transformation function, U h is the weight matrix of the branch structure, and the nonlinear transformation functions F and G are convolution functions or activation functions.
[0015] Preferably, the "not damaging the integrity and internal structure of the metal component under test" in step S1 means that the duration of a single cycle of the pulse current loaded on the metal component under test does not exceed 1 millisecond, and the resulting temperature rise of the metal component under test does not exceed the phase change temperature of the metal component.
[0016] Preferably, the specific content of step S2 is to set an optical magnifying lens in front of the lens of the infrared thermal imager to enlarge the field of view of the area to be tested, so that the pixel resolution of the plane image of the area to be tested on the surface of the metal component reaches the micron level, and obtain the two-dimensional temperature matrix of the area to be tested of the metal component, so that each element in the two-dimensional temperature matrix corresponds one-to-one to each pixel point of the plane image of the area to be tested, thereby obtaining a temperature distribution image; and obtain the defect feature contour by using threshold segmentation and edge extraction algorithm on the temperature distribution image.
[0017] Preferably, the defect feature contour is obtained by using a threshold segmentation and edge extraction algorithm on the temperature distribution image, specifically including the following contents: 1) taking the connection between the electrode loaded with the alternating pulse current and the metal component as the center point, and constructing a plurality of concentric virtual spheres with the center point, and the radii of the plurality of virtual spheres increase successively;
[0018] 2) Let the relationship between the first temperature gradient from any point to the center point of the part where several virtual spheres are located inside the metal sample be: Where Q 0 Q is the heat generated by the unit volume heat source generated by the alternating pulse current in unit time t, 0 =Q / t; A represents the heat transfer area, which corresponds to the area of any pixel on the virtual sphere closest to the center point; is the temperature gradient; K is the thermal diffusion factor, α is the thermal diffusion coefficient, which is related to the material of the metal component; ρ is the density of the metal component being measured; C p is the specific heat capacity of the metal component being measured; x is the distance from the center point to the current virtual sphere; T 1 is the current temperature of any point on the virtual cylindrical surface; T 0 is the set temperature threshold; p is the scaling factor, n is the ratio of the radius of the current virtual sphere to the radius of the virtual sphere closest to the center point; A 0 is the area of any pixel on the virtual sphere closest to the center point projected on the current virtual sphere; respectively calculate and obtain the first temperature gradient corresponding to each pixel point in the area to be measured; and respectively set the first threshold and the second threshold based on the first temperature gradient;
[0019] 3) According to the temperature distribution diagram of the area to be tested, the second temperature gradient distribution corresponding to each pixel is obtained; if the second temperature gradient of the current pixel does not exceed the first threshold, it is considered that the current pixel is not a defective part; if the second temperature gradient of the current pixel is between the first threshold and the second threshold, it indicates that the current pixel is a weak boundary; if the second temperature gradient of the current pixel exceeds the second threshold, it indicates that the current pixel is a strong boundary or a pixel within a strong boundary;
[0020] 4) Smoothly connect the pixels at the intersection of the strong boundary and the non-defective part to form one or more strong boundary curves. If the endpoints of two adjacent strong boundary curves are not closed, then find the weak boundary at the endpoints of the two strong boundary curves. If the distance from the weak boundary to the endpoint of the strong boundary curve does not exceed the maximum number of pixels between the adjacent strong boundary curves, then construct an arc passing through the weak boundary, and the endpoint of the arc is closed and connected with the endpoints of the two strong boundary curves; if the distance from the weak boundary to the endpoint of the strong boundary curve exceeds the maximum number of pixels between the adjacent strong boundary curves, then discard the weak boundary, construct a circular arc between the endpoints of the two strong boundary curves, and the endpoint of the circular arc is closed and connected with the endpoints of the two strong boundary curves;
[0021] 5) Mark the pixels corresponding to the boundary contour of each closed area to obtain a temperature distribution image containing the defect feature contour.
[0022] Preferably, the specific content of step S4 is to first calibrate the infrared thermal imager and the depth camera to obtain the rotation matrix R and the translation vector T corresponding to the posture transformation relationship between the infrared thermal imager and the depth camera. 0 , transform the temperature distribution image and the three-dimensional point cloud coordinates into the same coordinate system for registration and alignment; let the spatial coordinates of a point P in the space in the depth camera be Pd, and the spatial coordinates of point P in the infrared thermal imager be Pr, through the rotation matrix R and the translation vector T 0 , the transformation relationship of point P in different camera space coordinate systems is Pd=RPr+T 0 .
[0023] Preferably, the specific content of step S5 is to remove the edge area noise and normalize the temperature matrix. Since the temperature at the defect location is higher, the image can be segmented by setting a suitable threshold to extract the outline of the defect, and then the size of the defect is obtained by combining the image depth information obtained by the depth camera to obtain the position distribution of the micron-level defect and reconstruct its size and shape; let any point (x i ,y i ) is T(x i ,y i ), the depth value of the corresponding point in the matching depth map is D(x i ,y i ), which can be converted into three-dimensional point cloud coordinates and expressed as P iD (x i ,y i , z i ), where z i =D(x i ,y i ), combined with the matching temperature value, the coordinates P of any point in the three-dimensional point cloud with temperature and spatial position information can be obtained iDT [x i ,y i , D(x i ,y i ), T(x i ,y i )], and reconstruct the three-dimensional shape, size and temperature distribution of the defect through visual point cloud.
[0024] On the other hand, the present invention also provides an electro-optical in-situ nondestructive detection system for micron-level defects of metal components, which is used to implement the above-mentioned electro-optical in-situ nondestructive detection method for micron-level defects of metal components. The electro-optical in-situ nondestructive detection system for micron-level defects of metal components comprises:
[0025] The metal component being tested;
[0026] Clamps, used to hold metal components;
[0027] An alternating pulse current generator, used for generating an alternating pulse current signal;
[0028] A pulse current electrode, disposed on the surface of the metal component to be measured and electrically connected to the pulse current generator, for introducing an alternating pulse current signal into the metal component to be measured;
[0029] Infrared thermal imager, which obtains the two-dimensional temperature matrix of the area to be tested on the surface of the metal component and obtains a temperature distribution image containing the temperature value of each pixel point;
[0030] Depth camera, used to obtain the depth image of the area to be tested of the metal component and convert it into three-dimensional point cloud coordinates to determine the pixel distribution and spatial position information of each point;
[0031] The workstation is connected to the infrared thermal imager and the depth camera signals to obtain the defect feature contour of the area to be tested according to the temperature distribution image; it is used to match the temperature distribution image of the infrared thermal imager with the feature points of the depth image obtained by the depth camera in combination with the defect feature contour to obtain the corresponding relationship between the temperature distribution and the three-dimensional point cloud; the temperature information of each point is extracted from the temperature distribution image and merged into the corresponding three-dimensional point cloud to obtain a three-dimensional point cloud with temperature and spatial position information, and reconstruct the three-dimensional shape, size and temperature distribution of the defect.
[0032] Preferably, it also includes an optical magnifying lens, which is fixedly arranged in front of the lens of the infrared thermal imager, and the optical axis of the optical magnifying lens is arranged to coincide with the optical axis of the infrared thermal imager.
[0033] The electro-optical in-situ nondestructive detection method and system for micron-level defects of metal components provided by the present invention have the following beneficial effects compared with the prior art:
[0034] (1) The present application proposes a nondestructive electro-optical nondestructive testing method, which does not require the metal component to undergo common processes such as magnetization and immersion. Instead, the metal component is subjected to limited heating by loading an alternating pulse current. The temperature rise caused by the heating does not exceed the phase transition temperature of the metal component, so the internal structure and integrity of the metal component being tested will not be damaged, thereby improving the detection efficiency of defective parts of the metal component;
[0035] (2) The use of a high-resolution infrared camera in conjunction with an optical magnifying lens enables the system to achieve a detection accuracy of micrometer size, thereby improving the detection accuracy. Furthermore, a high-resolution infrared thermal imager is combined with a depth camera, and the temperature matrix of the component under test is aligned with the three-dimensional point cloud through an algorithm, which can achieve accurate positioning of the defective part and three-dimensional reconstruction. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 It is a flowchart of the steps of the electro-optical in-situ nondestructive detection method and system for micron-level defects of metal components of the present invention;
[0038] Figure 2 This is a diagram of the experimental equipment of the electro-optical in-situ nondestructive detection method and system for micron-level defects in metal components of the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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 are within the scope of protection of the present invention.
[0040] like Figure 1 As shown, the present invention provides an electro-optical in-situ nondestructive detection method for micron-level defects of metal components, which specifically includes the following steps:
[0041] S1: Without damaging the integrity and internal structure of the metal component under test, an alternating pulse current is applied to the metal component under test to heat it up, and a relationship between the heat input and the physical properties of the metal component under test is established.
[0042] The alternating pulse current is applied to the metal component to heat it up, and the relationship between the heat input and the physical properties of the metal component is established, so that the output of the alternating pulse current at time t is expressed as: Among them I 0 is the initial amplitude of the alternating pulse current, τ is the pulse width of the alternating pulse current, and f is the frequency of the alternating pulse current; then the relationship between the heat input and the physical properties of the measured metal component is established, which is to describe the heat conduction equation of the metal component as follows: Where ρ is the density of the metal component being measured, C p is the specific heat capacity of the metal component under test, k is the thermal conductivity of the metal component under test, T is the temperature, and Q is the heat source per unit volume generated by the alternating pulse current. The present application applies an external thermal excitation to the metal component. If there are defects inside the metal component, the defects affect the heat conduction, thereby generating an abnormal temperature distribution on the surface of the metal component.
[0043] A neural network model is used to learn the relationship between the heat input and the physical properties of the metal component being measured. The neural network model uses the density ρ of the metal component being measured, the specific heat capacity C of the metal component being measured, and the heat capacity C of the metal component being measured. p and the thermal conductivity k of the metal component being tested as the input variable X, and the heat input As the output of the neural network model, the number of hidden layers is set to n, and F is the mapping function of the neural network; the thermal input Expressed as where σ l is the activation function of the lth hidden layer, l = 1, 2, 3, ..., n; W l is the weight matrix of the lth hidden layer, b l is the bias vector of the lth hidden layer; the weight matrix and bias vector with the best output effect are selected through training to build the relationship between the heat input and the physical properties of the measured metal component. l is one of sigmoid or ReLU. The training process of the neural network is to screen the optimal weight matrix and bias vector, so as to obtain the optimal weight matrix and bias vector according to the known parameters of the density ρ of the metal component under test and the specific heat capacity C of the metal component under test. p and the thermal conductivity k of the metal component being tested, and substituted into the neural network model to obtain the heat input The calculated input It is equivalent to the heat source Q per unit volume generated by the alternating pulse current.
[0044] As a preferred implementation, residual connections and branch structures are further introduced into the hidden layer of the neural network model to enhance the neural network model's ability to model the nonlinear relationship between the physical properties of complex metal components and the heat input. Let the original hidden layer output be H l , after introducing the residual connection, the new hidden layer output is H′ l , then H′ l =H l +F(H l , W h ), where F is a nonlinear transformation function, W h is the weight matrix of the residual connection, and the branch structure outputs H″ l Indicated as H″ l =[H′ l , G(H′ l , U h )], where G is a nonlinear transformation function, U his the weight matrix of the branch structure, and the nonlinear transformation functions F and G are convolution functions or activation functions. The introduction of residual connections and branch structures can solve the problems of gradient disappearance and network degradation. Due to the setting of residual connections, the original information is always retained during the training process, and new knowledge acquired in the network is also added.
[0045] At this time, the limitation of not damaging the integrity and internal structure of the metal component under test means that the duration of a single cycle of the pulse current applied to the metal component under test does not exceed 1 millisecond, and the temperature rise of the metal component under test does not exceed the phase transition temperature of the metal component. This operation is to prevent heat accumulation from damaging the internal structure of the metal component, introducing new defects or affecting the reliability of non-destructive testing.
[0046] S2: Use an infrared thermal imager to obtain a two-dimensional temperature matrix of the area to be tested on the surface of the metal component, obtain a temperature distribution image containing the temperature value of each pixel point, and obtain the defect feature contour of the area to be tested.
[0047] Specifically, an optical magnifying lens is set in front of the infrared thermal imager's lens to magnify the field of view of the area to be tested, so that the pixel resolution of the plane image of the area to be tested on the surface of the metal component reaches the micron level, and the two-dimensional temperature matrix of the area to be tested of the metal component is obtained, so that each element in the two-dimensional temperature matrix corresponds to each pixel point of the plane image of the area to be tested, thereby obtaining a temperature distribution image; the defect feature contour is obtained by applying threshold segmentation and edge extraction algorithms to the temperature distribution image. The infrared thermal imager can directly obtain the invisible infrared light emitted by the area to be tested of the metal component, and directly provide a numerical two-dimensional temperature matrix of the area to be tested according to the radiation intensity of the infrared light. The temperature values of the two-dimensional temperature matrix correspond to the pixels of the acquired plane infrared image, thereby obtaining a fine temperature distribution image.
[0048] Among them, the defect feature contour is obtained by using threshold segmentation and edge extraction algorithm on the temperature distribution image, which specifically includes the following contents:
[0049] 1) The connection between the electrode loaded with alternating pulse current and the metal component is taken as the center point, and several concentric virtual spheres are constructed with the center point, and the radius of the several virtual spheres increases successively. The several virtual spheres are nested and arranged adjacently in sequence. In the theoretical state, heat is transferred from the inside to the outside, and the direction of the temperature gradient decreases from the inside to the outside, and the direction of the temperature gradient points to the center point.
[0050] 2) Let the relationship between the first temperature gradient from any point to the center point of the part where several virtual spheres are located inside the metal sample be: Where Q 0 Q is the heat generated by the unit volume heat source generated by the alternating pulse current in unit time t, 0=Q / t; A represents the heat transfer area, which corresponds to the area of any pixel on the virtual sphere closest to the center point; is the temperature gradient; K is the thermal diffusion factor, α is the thermal diffusion coefficient, which is related to the material of the metal component; ρ is the density of the metal component being measured; C p is the specific heat capacity of the metal component being measured; x is the distance from the center point to the current virtual sphere; T 1 is the current temperature of any point on the virtual cylindrical surface; T 0 is the set temperature threshold; p is the scaling factor, n is the ratio of the radius of the current virtual sphere to the radius of the virtual sphere closest to the center point; A 0 It is the area of any pixel on the virtual sphere closest to the center point projected on the current virtual sphere; the first temperature gradient corresponding to each pixel point in the test area is calculated respectively; the first threshold and the second threshold are set respectively based on the first temperature gradient; the first temperature gradient is an ideal distribution under theoretical conditions, which only considers the process of heat gradually decaying inside the metal component according to the distance from the center point. The different virtual spheres where the test area is located can be divided according to the boundary position between the virtual sphere and the test area on the surface of the metal component to obtain the first temperature gradient corresponding to each pixel point in the test area. In one embodiment, the first threshold corresponding to each pixel point is set to [first temperature gradient × (1 + 5% ± 0.5%)], and the second threshold corresponding to each pixel point is [first temperature gradient × (1 + 10% ± 0.5%)].
[0051] 3) According to the temperature distribution diagram of the area to be measured, the second temperature gradient distribution corresponding to each pixel is obtained. Specifically, the difference between the temperature values of the current pixel and the adjacent pixel in the area to be measured is calculated to approximately obtain the second temperature gradient from the adjacent pixel to the current pixel, and the second temperature gradient is the measured value; if the second temperature gradient of the current pixel does not exceed the first threshold, it is considered that the current pixel is not a defective part; if the second temperature gradient of the current pixel is between the first threshold and the second threshold, it indicates that the current pixel is a weak boundary; if the second temperature gradient of the current pixel exceeds the second threshold, it indicates that the current pixel is a strong boundary or a pixel within a strong boundary. This step is a comparison process. According to the distance from the center point, the value of the second temperature gradient should fluctuate around the first temperature gradient. However, as the distance from the center point increases, the second temperature gradient has an increasing trend exceeding the first temperature gradient, indicating that the actual surface temperature distribution of the metal component is abnormal. It can be considered that there is a defect in the part where the temperature distribution is abnormal. The range of the defect needs to be further determined by finding the boundary.
[0052] 4) Smoothly connect the pixels at the intersection of the strong boundary and the non-defective part to form one or more strong boundary curves. If the endpoints of two adjacent strong boundary curves are not closed, then find the weak boundary at the endpoints of the two strong boundary curves. If the distance from the weak boundary to the endpoint of the strong boundary curve does not exceed the maximum number of pixels between adjacent strong boundary curves, then construct an arc passing through the weak boundary, and the endpoint of the arc is closed and connected with the endpoints of the two strong boundary curves; if the distance from the weak boundary to the endpoint of the strong boundary curve exceeds the maximum number of pixels between adjacent strong boundary curves, then discard the weak boundary, construct an arc between the endpoints of the two strong boundary curves, and the endpoint of the arc is closed and connected with the endpoints of the two strong boundary curves.
[0053] 5) Mark the pixels corresponding to the boundary contour of each closed area to obtain a temperature distribution image containing the defect feature contour. There may be more than one surface defect, so multiple closed images are required to limit the range of the defect feature contour.
[0054] S3: Use a depth camera to obtain a depth image of the area to be tested of the metal component and convert it into three-dimensional point cloud coordinates to determine the pixel distribution and spatial position information of each point.
[0055] The depth map is an image containing information about the objects in the scene, that is, the distance of the surface view point of the area to be measured of the metal component. Each pixel has a 3D coordinate, corresponding to a point cloud. In the depth map generated by the depth camera, the depth value of each pixel can be directly assigned to the Z coordinate. It is only necessary to know the FOV angle of the depth camera, and the other two axial coordinates of X and Y are easy to calculate. For example, the calculation of the three-dimensional point cloud coordinates can be realized by using the open source C++ source code based on KINCECT V2. I will not go into details here.
[0056] S4: Combined with the defect feature contour, the temperature distribution image of the infrared thermal imager is matched with the feature points of the depth image obtained by the depth camera to obtain the corresponding relationship between the temperature distribution and the three-dimensional point cloud.
[0057] Specifically, first calibrate the infrared thermal imager and the depth camera to obtain the rotation matrix R and translation vector T corresponding to the posture transformation relationship between the infrared thermal imager and the depth camera. 0 , transform the temperature distribution image and the three-dimensional point cloud coordinates into the same coordinate system for registration and alignment; let the spatial coordinates of a point P in the space in the depth camera be Pd, and the spatial coordinates of point P in the infrared thermal imager be Pr, through the rotation matrix R and the translation vector T 0 , the transformation relationship of point P in different camera space coordinate systems is Pd=RPr+T 0 The pose transformation relationship can transform and align the temperature distribution image and the three-dimensional point cloud coordinates in the same three-dimensional coordinate system.
[0058] S5: Post-process the data and perform point cloud matching. After point cloud matching, the temperature information of each point is extracted from the temperature distribution image and fused into the corresponding three-dimensional point cloud to obtain a three-dimensional point cloud with temperature and spatial position information, thereby reconstructing the three-dimensional shape, size and temperature distribution of the defect.
[0059] Specifically, the noise in the edge area is removed and the temperature matrix is normalized. Since the temperature at the defect location is higher, the image can be segmented by setting a suitable threshold to extract the outline of the defect. The size of the defect is obtained by combining the image depth information obtained by the depth camera, and the position distribution of micron-level defects is obtained and their size and shape are reconstructed. Let any point (x i ,y i ) is T(x i ,y i ), the depth value of the corresponding point in the matching depth map is D(x i ,y i ), which can be converted into three-dimensional point cloud coordinates and expressed as P iD (x i ,y i , z i ), where z i =D(x i ,y i ), combined with the matching temperature value, the coordinates P of any point in the three-dimensional point cloud with temperature and spatial position information can be obtained iDT [x i ,y i , D(x i ,y i ), T(x i ,y i )], and reconstruct the three-dimensional shape, size and temperature distribution of the defect through visual point cloud.
[0060] On the other hand, the present invention also provides an electro-optical in-situ nondestructive detection system for micron-level defects of metal components, which is used to implement the above-mentioned electro-optical in-situ nondestructive detection method for micron-level defects of metal components. The electro-optical in-situ nondestructive detection system for micron-level defects of metal components comprises:
[0061] The metal component 1 to be measured, namely Figure 2 The rectangular metal component in the
[0062] A clamp 4, used for clamping the metal component 1;
[0063] An alternating pulse current generator 2, used for generating an alternating pulse current signal;
[0064] A pulse current electrode 3, arranged on the surface of the metal component 1 to be measured and electrically connected to the pulse current generator 2, for introducing an alternating pulse current signal into the metal component 1 to be measured;
[0065] The infrared thermal imager 6 acquires a two-dimensional temperature matrix of the area to be tested on the surface of the metal component 1 to obtain a temperature distribution image including the temperature value of each pixel point;
[0066] The depth camera 7 is used to obtain the depth image of the area to be tested of the metal component 1 and convert it into three-dimensional point cloud coordinates to determine the pixel distribution and the spatial position information of each point;
[0067] Workstation 8 is connected to the infrared thermal imager and the depth camera signal, and obtains the defect feature contour of the area to be tested according to the temperature distribution image; is used to match the temperature distribution image of the infrared thermal imager with the feature points of the depth image obtained by the depth camera in combination with the defect feature contour, and obtain the corresponding relationship between the temperature distribution and the three-dimensional point cloud; extracts the temperature information of each point from the temperature distribution image and fuses it into the corresponding three-dimensional point cloud, obtains the three-dimensional point cloud with temperature and spatial position information, and reconstructs the three-dimensional shape, size and temperature distribution of the defect.
[0068] In order to improve the resolution and carefully observe the area to be tested of the metal component 1, an optical magnifying lens 5 is also configured. The optical magnifying lens 5 is fixed in front of the lens of the infrared thermal imager 6, and the optical axis of the optical magnifying lens 5 coincides with the optical axis of the infrared thermal imager 6.
[0069] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. Electro-optical in-situ nondestructive testing method for micron-level defects in metal components. It is characterized in that The steps include: S1: Without damaging the integrity and internal structure of the metal component under test, an alternating pulse current is applied to the metal component under test to heat it up, and the relationship between the heat input and the physical properties of the metal component under test is established; S2: Use an infrared thermal imager to obtain a two-dimensional temperature matrix of the area to be tested on the surface of the metal component, obtain a temperature distribution image containing the temperature value of each pixel point, and obtain the defect feature contour of the area to be tested; S3: Use a depth camera to obtain a depth image of the area to be tested of the metal component and convert it into a three-dimensional point cloud coordinate to determine the pixel distribution and the spatial position information of each point; S4: Combine the defect feature contour, match the temperature distribution image of the infrared thermal imager with the feature points of the depth image acquired by the depth camera, and obtain the corresponding relationship between the temperature distribution and the three-dimensional point cloud; S5: Post-processing and point cloud matching are performed on the data. After point cloud matching, the temperature information of each point is extracted from the temperature distribution image and fused into the corresponding three-dimensional point cloud to obtain a three-dimensional point cloud with temperature and spatial position information, thereby reconstructing the three-dimensional shape, size and temperature distribution of the defect; In step S1, the alternating pulse current is applied to the metal component to increase the temperature of the metal component, and the relationship between the heat input and the physical properties of the metal component is established, so that the output of the alternating pulse current at time t is expressed as: Among them I 0 is the initial amplitude of the alternating pulse current, τ is the pulse width of the alternating pulse current, and f is the frequency of the alternating pulse current; then the relationship between the heat input and the physical properties of the measured metal component is established, which is to describe the heat conduction equation of the metal component as follows: Where ρ is the density of the metal component being measured, C p is the specific heat capacity of the metal component under test, k is the thermal conductivity of the metal component under test, T is the temperature, and Q is the heat source per unit volume generated by the alternating pulse current; a neural network model is used to learn the relationship between the heat input and the physical properties of the metal component under test. The neural network model uses the density ρ of the metal component under test, the specific heat capacity C of the metal component under test, and the heat capacity C of the metal component under test. p and the thermal conductivity k of the metal component being tested as the input variable X, and the heat input As the output of the neural network model, the number of hidden layers is set to n, and F is the mapping function of the neural network; the thermal input Expressed as where σ l is the activation function of the lth hidden layer, l = 1, 2, 3, ..., n; W l is the weight matrix of the lth hidden layer, b l is the bias vector of the lth hidden layer; the weight matrix and bias vector with the best output effect are screened through training to construct the relationship between the heat input and the physical properties of the measured metal component; the activation function σ l It is one of sigmoid or ReLU; The "not damaging the integrity and internal structure of the metal component under test" in step S1 means that the duration of a single cycle of the pulse current applied to the metal component under test does not exceed 1 millisecond, and the temperature rise of the metal component under test does not exceed the phase transition temperature of the metal component; The specific content of step S2 is to set an optical magnifying lens in front of the lens of the infrared thermal imager to magnify the field of view of the area to be tested, so that the pixel resolution of the plane image of the area to be tested on the surface of the metal component reaches the micron level, obtain the two-dimensional temperature matrix of the area to be tested of the metal component, make each element in the two-dimensional temperature matrix correspond to each pixel point of the plane image of the area to be tested one by one, so as to obtain the temperature distribution image; and obtain the defect feature contour by using threshold segmentation and edge extraction algorithm on the temperature distribution image; The defect feature contour is obtained by using threshold segmentation and edge extraction algorithm on the temperature distribution image, specifically including the following contents: 1) taking the connection between the electrode loaded with alternating pulse current and the metal component as the center point, constructing a plurality of concentric virtual spheres with the center point, and the radii of the plurality of virtual spheres increase successively; 2) Let the relationship between the first temperature gradient from any point to the center point of the part where several virtual spheres are located inside the metal sample be: Where Q 0 Q is the heat generated by the unit volume heat source generated by the alternating pulse current in unit time t, 0 =Q / t; A represents the heat transfer area, which corresponds to the area of any pixel on the virtual sphere closest to the center point; is the temperature gradient; K is the thermal diffusion factor, α is the thermal diffusion coefficient, which is related to the material of the metal component; ρ is the density of the metal component being measured; C p is the specific heat capacity of the metal component being measured; x is the distance from the center point to the current virtual sphere; T l is the current temperature of any point on the virtual cylindrical surface; T 0 is the set temperature threshold; p is the scaling factor, n is the ratio of the radius of the current virtual sphere to the radius of the virtual sphere closest to the center point; A 0 is the area of any pixel on the virtual sphere closest to the center point projected on the current virtual sphere; respectively calculate and obtain the first temperature gradient corresponding to each pixel point in the area to be measured; and respectively set the first threshold and the second threshold based on the first temperature gradient; 3) According to the temperature distribution diagram of the area to be tested, the second temperature gradient distribution corresponding to each pixel is obtained; if the second temperature gradient of the current pixel does not exceed the first threshold, it is considered that the current pixel is not a defective part; if the second temperature gradient of the current pixel is between the first threshold and the second threshold, it indicates that the current pixel is a weak boundary; if the second temperature gradient of the current pixel exceeds the second threshold, it indicates that the current pixel is a strong boundary or a pixel within a strong boundary; 4) Smoothly connect the pixels at the intersection of the strong boundary and the non-defective part to form one or more strong boundary curves. If the endpoints of two adjacent strong boundary curves are not closed, then find the weak boundary at the endpoints of the two strong boundary curves. If the distance from the weak boundary to the endpoint of the strong boundary curve does not exceed the maximum number of pixels between the adjacent strong boundary curves, then construct an arc passing through the weak boundary, and the endpoint of the arc is closed and connected with the endpoints of the two strong boundary curves; if the distance from the weak boundary to the endpoint of the strong boundary curve exceeds the maximum number of pixels between the adjacent strong boundary curves, then discard the weak boundary, construct a circular arc between the endpoints of the two strong boundary curves, and the endpoint of the circular arc is closed and connected with the endpoints of the two strong boundary curves; 5) Mark the pixels corresponding to the boundary contour of each closed area to obtain a temperature distribution image containing the defect feature contour; The specific content of step S4 is to first calibrate the infrared thermal imager and the depth camera to obtain the rotation matrix R and translation vector T corresponding to the posture transformation relationship between the infrared thermal imager and the depth camera. 0 , transform the temperature distribution image and the three-dimensional point cloud coordinates into the same coordinate system for registration and alignment; Assume that the spatial coordinates of a point P in the depth camera are Pd, and the spatial coordinates of point P in the infrared thermal imager are Pr. By using the rotation matrix R and the translation vector T 0 , the transformation relationship of point P in different camera space coordinate systems is Pd=RPr+T 0 ; The specific content of step S5 is to remove the edge area noise and normalize the temperature matrix. Since the temperature at the defect location is higher, the image can be segmented by setting a suitable threshold to extract the outline of the defect. Then, the size of the defect is obtained by combining the image depth information obtained by the depth camera, and the position distribution of the micron-level defect is obtained and its size and shape are reconstructed; let any point (x i ,y i ) is T(x i ,y i ), the depth value of the corresponding point in the matching depth map is D(x i ,y i ), which can be converted into three-dimensional point cloud coordinates and expressed as P iD (x i ,y i , z i ), where z i =D(x i ,y i ), combined with the matching temperature value, the coordinates P of any point in the three-dimensional point cloud with temperature and spatial position information can be obtained iDT [x i ,y i , D(x i ,y i ), T(x i ,y i )], and reconstruct the three-dimensional shape, size and temperature distribution of the defect through visual point cloud.
2. According to the electro-optical in-situ nondestructive testing method for micron-level defects in metal components according to claim 1, It is characterized in that Residual connections and branch structures are further introduced into the hidden layer of the neural network model to enhance the neural network model's ability to model the nonlinear relationship between the physical properties of complex metal components and the heat input. Let the original hidden layer output be H l , after introducing the residual connection, the new hidden layer output is H l , then H′ l =H l +F(H l , W h ), where F is a nonlinear transformation function, W h is the weight matrix of the residual connection, and the branch structure outputs H″ l Indicated as H l =[H l , G(H l , U h )], where G is a nonlinear transformation function, U h is the weight matrix of the branch structure, and the nonlinear transformation functions F and G are convolution functions or activation functions.
3. A system for electro-optical in-situ nondestructive testing of micron-level defects in metal components, used to implement the electro-optical in-situ nondestructive testing method for micron-level defects in metal components as claimed in any one of claims 1 to 2, It is characterized in that The electro-optical in-situ nondestructive detection system for micron-level defects of metal components comprises: The metal component being tested; Clamps, used to hold metal components; An alternating pulse current generator, used for generating an alternating pulse current signal; A pulse current electrode, arranged on the surface of the metal component to be measured and electrically connected to the pulse current generator, for introducing an alternating pulse current signal into the metal component to be measured; Infrared thermal imager, which obtains the two-dimensional temperature matrix of the area to be tested on the surface of the metal component and obtains a temperature distribution image containing the temperature value of each pixel point; Depth camera, used to obtain the depth image of the area to be tested of the metal component and convert it into three-dimensional point cloud coordinates to determine the pixel distribution and spatial position information of each point; The workstation is connected to the infrared thermal imager and the depth camera signals to obtain the defect feature contour of the area to be tested according to the temperature distribution image; it is used to match the temperature distribution image of the infrared thermal imager with the feature points of the depth image obtained by the depth camera in combination with the defect feature contour to obtain the corresponding relationship between the temperature distribution and the three-dimensional point cloud; the temperature information of each point is extracted from the temperature distribution image and merged into the corresponding three-dimensional point cloud to obtain a three-dimensional point cloud with temperature and spatial position information, and reconstruct the three-dimensional shape, size and temperature distribution of the defect.
4. The electro-optical in-situ nondestructive testing system for micron-level defects of metal components according to claim 3, It is characterized in that It also includes an optical magnifying lens, which is fixedly arranged in front of the lens of the infrared thermal imager, and the optical axis of the optical magnifying lens is arranged to coincide with the optical axis of the infrared thermal imager.
