Aerospace component pit defect on-line detection method based on multispectral machine vision

By using multispectral machine vision and neighborhood pixel analysis, the multispectral wavelength characteristics and neighborhood gradient characteristics of pit defects on aerospace components are obtained, solving the problem of pit defects being difficult to distinguish in existing technologies and achieving efficient online detection.

CN123135818APending Publication Date: 2026-11-20SUZHOU ERIC MECHANICS & ELECTRONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611499791.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-24
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing online detection methods for dent defects in aerospace components are difficult to effectively distinguish between dents and interfering defects such as oil stains and scratches, resulting in high false detection and false negative rates and an inability to reliably identify minute dent defects.

Method used

A multispectral machine vision-based approach is adopted to distinguish pits from surface interference defects by acquiring the multispectral wavelength features and neighborhood gradient features of pit defects, combined with multispectral visual analysis and neighborhood pixel analysis.

Benefits of technology

It effectively suppresses interference from defects such as oil stains and oxidation, reduces the rate of missed detections and false detections, and enables reliable online identification of shallow and tiny pits on aerospace components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123135818A_ABST
    Figure CN123135818A_ABST
Patent Text Reader

Abstract

The application discloses an online detection method for pit defects of an aviation component based on multispectral machine vision and relates to the technical field of defect detection, which comprises the following steps: analyzing pit defects and acquiring multispectral wavelength characteristics; acquiring corresponding neighborhood gradual change characteristics of the pit defects based on the multispectral machine vision; and performing online detection on the pit defects in the aviation component based on the multispectral wavelength characteristics and the neighborhood gradual change characteristics. The application is used to solve the problem that, in the prior art, there is a lack of a method for jointly identifying spectral characteristics and multi-channel radial profile smoothing characteristics in the detection of micro pit defects, which makes it difficult to distinguish pit defects from interference defects such as oil stains and scratches, and the false detection rate and the missed detection rate are relatively high, thereby resulting in the problem that the shallow micro pit on the surface of the aviation component cannot be reliably and online identified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of defect detection technology, specifically to an online detection method for pit defects in aerospace components based on multispectral machine vision. Background Technology

[0002] Aviation components are a collective term for precision parts and components that support aircraft. They are the core basic units that enable aircraft to achieve flight functions and ensure operational safety. They are widely used in military aircraft, civil passenger aircraft, and low-altitude economic aviation equipment. Online detection of pit defects in aviation components is a high-precision quality inspection technology that identifies and quantifies the defects of tiny pits on the surface of aviation components in real time on the production line or at the on-the-job maintenance site. It is a core link in the quality control and flight safety assurance of the entire aviation manufacturing process.

[0003] Existing methods for online detection of pit defects in aerospace components typically employ conventional two-dimensional visible light vision or three-dimensional point cloud detection. However, two-dimensional visible light methods are susceptible to interference from surface oil and oxidation color differences, making it difficult to distinguish between material variations and geometric pits. Three-dimensional point cloud detection is slow, resulting in low online detection efficiency. A few aerospace multispectral detection methods only target crack defects, and while they can detect some defects, they lack a method for joint identification based on spectral features and multi-channel radial profile smoothing features in the detection of micro-pit defects. This makes it difficult to distinguish pits from interfering defects such as oil and scratches, leading to high false detection and false negative rates. Consequently, shallow and micro-pits on the surface of aerospace components cannot be reliably identified online, as illustrated in patent publication number CN113624142A. The application discloses a method for detecting the unevenness of fasteners in aircraft assembly. This method analyzes point cloud data, extracts high and low points, and calculates the unevenness to detect defects related to unevenness in aircraft components. Other improvements to online detection methods for pit defects in aircraft components are usually based on image texture and grayscale recognition for defect detection. However, for the detection of small pit defects, there is still a lack of methods based on the joint recognition of spectral features and multi-channel radial profile smoothing features. This makes it difficult to distinguish pits from interfering defects such as oil stains and scratches, resulting in a high false detection rate and a high false negative rate. This leads to the problem that shallow and small pits on the surface of aircraft components cannot be reliably identified online. Therefore, it is necessary to improve the existing online detection methods for pit defects in aircraft components. Summary of the Invention

[0004] This invention aims to at least partially solve one of the technical problems in the prior art by proposing an online detection method for pit defects on aerospace components based on multispectral machine vision. This method addresses the lack of a method for joint identification based on spectral features and multi-channel radial profile smoothing features in the detection of small pit defects in the prior art. This results in pits being difficult to distinguish from interfering defects such as oil stains and scratches, leading to high false detection and false negative rates, and making it impossible to reliably identify shallow and small pits on the surface of aerospace components online.

[0005] To achieve the above objectives, this application provides an online detection method for pit defects in aerospace components based on multispectral machine vision, comprising the following steps: Multispectral machine vision is used to analyze the pit defects of aerospace components, and the multispectral wavelength features corresponding to the pit defects of aerospace components are obtained based on the analysis results. Multiple truncation defects in aerospace components are identified; based on multispectral machine vision, the neighborhood pixel analysis method is used to analyze the identified truncation defects, and the neighborhood gradient features corresponding to the truncation defects are obtained based on the analysis results. When performing online detection of defects in aerospace components based on multispectral machine vision, the online detection of pit defects in aerospace components is performed based on the multispectral wavelength features and neighborhood gradient features corresponding to the pit defects.

[0006] Furthermore, based on multispectral machine vision, the pit defects of aerospace components are analyzed, and the multispectral wavelength features corresponding to the pit defects of aerospace components are obtained based on the analysis results, including: Defects existing on the surface of aerospace components, other than pit defects, are denoted as surface interference defects; all obtained surface interference defects are denoted as surface interference defect BG1 to surface interference defect BG. n ; Multispectral visual analysis was used to analyze pit defects and all surface interference defects. Based on the analysis results, the single-pixel fluctuation region corresponding to the pit defect and the single-pixel fluctuation region corresponding to each surface interference defect were obtained.

[0007] Furthermore, multispectral visual analysis methods include: For any one of the pit defects and all surface interference defects α: on the surface of the aerospace component, obtain k1 regions that have been identified as defects α, and denote them as multispectral analysis regions DF1 to DFk1 respectively; For any multispectral analysis area, take a picture of the multispectral analysis area using a regular camera, and record the resulting image as a regular grayscale image after grayscale processing; obtain the multispectral analysis area in the regular grayscale image, and record the pixels within the multispectral analysis area as defect analysis pixels.

[0008] Furthermore, multispectral visual analysis methods also include: For any defect analysis pixel, the position of the defect analysis pixel is marked on the surface of the aerospace component, and a multispectral camera is used to take pictures of the multispectral analysis area on the surface of the aerospace component to obtain the spectral curve of the defect analysis pixel. The spectral curve is placed in a Cartesian coordinate system with wavelength as the horizontal axis and spectral reflectance as the vertical axis. The spectral curves corresponding to all defect analysis pixels are obtained by using a multispectral camera, and the curve obtained by fitting all spectral curves is recorded as the single pixel region curve corresponding to the multispectral analysis region. Place the single-pixel region curves corresponding to all multispectral analysis regions in the same coordinate system, and label the rightmost point of all single-pixel region curves as X1; denote the region enclosed by X=0, X=X1 and all single-pixel region curves as the single-pixel fluctuation region of defect α.

[0009] Furthermore, the analysis of pit defects in aerospace components based on multispectral machine vision, and the acquisition of the corresponding multispectral wavelength features of the pit defects based on the analysis results, also includes: A Cartesian coordinate system with wavelength as the horizontal axis and spectral reflectance as the vertical axis is denoted as the spectral analysis coordinate system. Within the same spectral analysis coordinate system, the single-pixel fluctuation region corresponding to the pit defect and the single-pixel fluctuation region corresponding to each surface interference defect are placed simultaneously, and the single-pixel fluctuation region corresponding to the pit defect is denoted as the pit fluctuation region. For any surface interference defect: the region in the pit fluctuation region that does not overlap with the single-pixel fluctuation region of the surface interference defect is denoted as the spectral difference region corresponding to the pit defect and the surface interference defect; The spectral difference regions of all surface interference defects were obtained separately; The region in the pit fluctuation region that does not overlap with the single-pixel fluctuation regions of all surface interference defects is denoted as the pit feature region. The spectral difference regions corresponding to the pit feature region and all surface interference defects are denoted as the multispectral wavelength features corresponding to the pit defect.

[0010] Furthermore, the neighborhood pixel analysis method includes: Multiple regions identified as pit defects were obtained from the surface of the aerospace component and denoted as neighborhood analysis regions LF1 to LF2 respectively. k2 ; For any neighborhood analysis region: use a regular camera to take a picture of the neighborhood analysis region, process the resulting image into grayscale and record it as the neighborhood grayscale image, and obtain the position of the neighborhood analysis region in the neighborhood grayscale image; Obtain the minimum circumcircle of the neighborhood analysis region in the neighborhood grayscale image and denote it as the neighborhood analysis circle; denote the center of the neighborhood analysis circle as the neighborhood center; obtain r radii in the neighborhood analysis circle, and denote the line segments corresponding to the r radii as neighborhood analysis line segments LX1 to LX1 respectively. r .

[0011] Furthermore, the neighborhood pixel analysis method also includes: For any neighborhood analysis segment: the endpoint of the neighborhood analysis segment that coincides with the center of the neighborhood circle is recorded as the analysis start point, and the endpoint of the neighborhood analysis segment that is not recorded as the analysis start point is recorded as the analysis end point; In a neighborhood grayscale image, all pixels within the neighborhood analysis line segment from the analysis start point to the analysis end point are sequentially denoted as neighborhood analysis pixel LD1 to neighborhood analysis pixel LD2. h ; The single spectral channels that the multispectral camera can use are denoted as available single channels KD1 to available single channels KD. q For any available single channel, an image corresponding to the neighborhood analysis region under the available single channel is acquired based on a multispectral camera, and based on whiteboard calibration, the neighborhood analysis pixel LD1 to the neighborhood analysis pixel LD in the image are assigned. h The corresponding reflectivities are denoted as reflectivity FS1 to reflectivity FS, respectively. h .

[0012] Furthermore, the neighborhood pixel analysis method also includes: Establish a Cartesian coordinate system with a constant x-axis and reflectance units for the y-axis, denoted as the neighborhood analysis coordinate system; for any neighborhood analysis pixel LD g In the neighborhood analysis coordinate system, point (g, reflectivity FS) is... g ) is denoted as the neighborhood analysis point; obtain the neighborhood analysis points corresponding to all neighborhood analysis pixels, and denot the curve obtained by fitting all neighborhood analysis points as the neighborhood analysis curve, where g is a positive integer less than or equal to h and greater than 1; The number of neighborhood analysis points in the neighborhood analysis coordinate system that are not within the neighborhood analysis curve is denoted as j, and the value of j divided by h is denoted as the neighborhood offset ratio corresponding to the available single channel. Obtain the neighborhood offset ratio corresponding to all available single channels, and record the maximum value of all neighborhood offset ratios as the neighborhood offset feature of the neighborhood analysis line segment; The maximum value of the neighborhood offset feature of all neighborhood analysis line segments is recorded as the regional gradient feature corresponding to the neighborhood analysis region; the maximum value of the regional gradient feature corresponding to all neighborhood analysis regions is recorded as the neighborhood gradient feature corresponding to the pit defect.

[0013] Furthermore, obtaining the neighborhood gradient features corresponding to the pit defects based on the analysis results also includes: The neighborhood gradient features of all surface interference defects are obtained based on the neighborhood pixel analysis method, and the neighborhood gradient features corresponding to the pit defects are recorded as pit gradient features. Surface interference defects whose neighborhood gradient features are greater than the pit gradient features are denoted as conventional interference defects. Surface interference defects whose neighborhood gradient features are less than or equal to the pit gradient features are denoted as special analysis defects, and the spectral difference regions corresponding to pit defects and special analysis defects are denoted as special identification regions of special analysis defects. The region corresponding to the union of all special identification regions is recorded as the special determination region; All surface interference defects are marked as either general interference defects or special analysis defects, and the specific identification area for each special analysis defect is obtained.

[0014] Furthermore, when performing online detection of defects in aerospace components based on multispectral machine vision, the online detection of pit defects in aerospace components, based on the multispectral wavelength features and neighborhood gradient features corresponding to the pit defects, includes: When detecting defects in aerospace components online, when the defect identification region β is obtained, the analysis methods of multispectral visual analysis and neighborhood pixel analysis are used to obtain the single-pixel region curve and region gradient features corresponding to region β. When the regional gradient feature is less than or equal to the pit gradient feature, for any specific analysis defect, if the single pixel region curve overlaps with the specific identification region of the specific analysis defect, the specific analysis defect is recorded as a screenable defect; when all specific analysis defects are recorded as screenable defects, the defect in region β is recorded as a pit defect. When the gradient feature of a region is less than or equal to the gradient feature of a pit, and the curve of a single pixel region is only located in the pit feature region, the defect in region β is recorded as a pit defect. When the gradient feature of a region is less than or equal to the gradient feature of a pit, and the number of defects in the specific analysis is 0, the defects in region β are recorded as pit defects. When the gradient feature of a region is greater than that of a pit, the defect in region β is recorded as a defect to be identified other than a pit defect.

[0015] The beneficial effects of this invention are as follows: This application first analyzes the pit defects of aerospace components based on multispectral machine vision, and obtains the multispectral wavelength features corresponding to the pit defects of aerospace components based on the analysis results. The advantage of this is that by collecting the surface information of aerospace components through multispectral machine vision and extracting the multispectral wavelength features corresponding to the pits, it is possible to distinguish pits from other defects by relying on the difference in reflectivity of different bands, effectively suppressing the interference caused by defects such as oil stains and oxidation, reducing false detection of shallow and small pits, and providing a reliable spectral dimension basis for subsequent joint neighborhood feature determination of defects. This application also acquires multiple truncation defects already marked in aerospace components. Based on multispectral machine vision, it uses neighborhood pixel analysis to analyze the marked truncation defects and obtains the corresponding neighborhood gradient features based on the analysis results. Finally, when performing online detection of defects in aerospace components based on multispectral machine vision, the truncation defects in aerospace components are detected online based on the multispectral wavelength features and neighborhood gradient features corresponding to the truncation defects. The advantage of this is that by using neighborhood pixel analysis to extract the neighborhood gradient features of the truncations, and combining multispectral wavelength features and neighborhood gradient features for joint discrimination during online detection, it is possible to integrate spectral and radial profile smoothness characteristics, distinguish truncations from scratches and other interference, reduce missed detections and false detections, and achieve reliable online identification of shallow and small truncations in aerospace components. Attached Figure Description

[0016] Figure 1 This is a flowchart of the steps of the method of the present invention; Figure 2 This is a flowchart illustrating the multispectral visual analysis method of the present invention; Figure 3 This is a schematic diagram illustrating the acquisition of neighborhood analysis pixels according to the present invention. Detailed Implementation

[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0018] Example 1, please refer to Figure 1 As shown, this application provides an online detection method for pit defects in aerospace components based on multispectral machine vision, including the following steps: Step S1: Analyze the pit defects of the aerospace components based on multispectral machine vision, and obtain the multispectral wavelength features corresponding to the pit defects of the aerospace components based on the analysis results. Step S1 includes: Step S101, recording defects existing on the surface of the aerospace component, other than pit defects, as surface interference defects; and recording all obtained surface interference defects as surface interference defect BG1 to surface interference defect BG. n ; In the specific implementation process, surface interference defects other than pit defects can include defects such as oil stains, scratches and oxidation. The specific settings of surface interference defects can be made according to the defects existing on the surface of the actual aerospace component being analyzed. Step S102: Use multispectral visual analysis method to analyze the pit defects and all surface interference defects respectively, and obtain the single-pixel fluctuation area corresponding to the pit defects and the single-pixel fluctuation area corresponding to each surface interference defect based on the analysis results.

[0019] For step S103, please refer to [link / reference]. Figure 2 As shown, the multispectral visual analysis method includes: Step S1031, for any one defect α among pit defects and all surface interference defects: on the surface of the aerospace component, obtain k1 regions that have been identified as defects α, and denote them as multispectral analysis regions DF1 to DF2 respectively. k1 ; In the data analysis of this embodiment, the value of k1 can be determined according to the actual analysis capability and the existing data. The purpose of obtaining k1 multispectral analysis regions is to obtain sufficient samples to obtain data that can accurately reflect the defect characteristics. In this embodiment, the value of k1 is set to 10. Step S1032: For any multispectral analysis area, take a picture of the multispectral analysis area using a regular camera, and record the obtained image as a regular grayscale image after grayscale processing; obtain the multispectral analysis area in the regular grayscale image, and record the pixels in the multispectral analysis area as defect analysis pixels.

[0020] The multispectral visual analysis method also includes: step S1033, for any defect analysis pixel, marking the position of the defect analysis pixel on the surface of the aerospace component, and using a multispectral camera to take pictures of the multispectral analysis area on the surface of the aerospace component to obtain the spectral curve of the defect analysis pixel, wherein the spectral curve is placed in a Cartesian coordinate system with wavelength as the horizontal axis and spectral reflectance as the vertical axis. In the data analysis of this embodiment, since the coordinate system of the spectral curve in this embodiment is a coordinate system with the vertical axis and the unit of spectral reflectance, after acquiring the spectral image, calibration calculation should be performed in conjunction with the surface white board to obtain the reflectance of each pixel in each spectral channel. In addition, since multispectral analysis is a discrete band, the spectral curve of the defect analysis pixel is a defect obtained by fitting discrete points, where each discrete point is the coordinate point corresponding to the reflectance of the pixel at each wavelength that the multispectral instrument can collect. Step S1034: Obtain the spectral curves corresponding to all defect analysis pixels based on the multispectral camera, and record the curve obtained by fitting all spectral curves as the single-pixel region curve corresponding to the multispectral analysis region. Step S1035: Place the single-pixel region curves corresponding to all multispectral analysis regions in the same coordinate system, and mark the rightmost point of all single-pixel region curves as X1; denote the region enclosed by X=0, X=X1 and all single-pixel region curves as the single-pixel fluctuation region of defect α. In the specific implementation process, by obtaining the single-pixel fluctuation area corresponding to the defect, the range of the spectral curves of all pixels in the area where the defect is located can be limited, so that the spectral curves corresponding to pit defects and other defects can be differentiated in subsequent analysis.

[0021] Step S1 further includes: Step S104, which denotes the Cartesian coordinate system with wavelength as the unit of the horizontal axis and spectral reflectance as the spectral analysis coordinate system. Step S105: In the same spectral analysis coordinate system, place the single-pixel fluctuation region corresponding to the pit defect and the single-pixel fluctuation region corresponding to each surface interference defect at the same time, and record the single-pixel fluctuation region corresponding to the pit defect as the pit fluctuation region. Step S106: For any surface interference defect: In the pit fluctuation region, the area that does not overlap with the single-pixel fluctuation region of the surface interference defect is recorded as the spectral difference region corresponding to the pit defect and the surface interference defect. Step S107: Obtain the spectral difference regions of all surface interference defects respectively; Step S108: The area in the pit fluctuation region that does not overlap with the single-pixel fluctuation regions of all surface interference defects is recorded as the pit feature region. In the specific implementation process, by acquiring the pit feature region, a specific region of the spectral curve corresponding to the pit defect can be obtained. That is, when the spectral curve corresponding to a pixel in a certain region is within the pit feature region, the pixel can be identified as a pixel within the pit defect range, so as to facilitate the identification of pit defects during actual inspection. In addition, by acquiring the spectral difference region corresponding to pit defects and surface interference defects, it can be ensured that in the process of further accurate identification of the region to be identified, if the defect to be identified simultaneously meets the characteristics corresponding to pit defects and surface interference defects, the spectral difference region can be used to more finely identify whether the defect to be identified belongs to pit defects, thereby improving the accuracy of identifying small pit defects. Step S109: The pit feature region and the spectral difference region corresponding to the pit defect and all surface interference defects are denoted as the multispectral wavelength feature corresponding to the pit defect.

[0022] Step S2: Obtain multiple tumbler defects that have been marked in the aerospace component; Based on multispectral machine vision, use the neighborhood pixel analysis method to analyze the marked tumbler defects, and obtain the neighborhood gradient features corresponding to the tumbler defects based on the analysis results. Step S201, the neighborhood pixel analysis method includes: Step S2011, obtaining multiple regions on the surface of the aerospace component that have been marked as pit defects, and respectively denoting them as neighborhood analysis regions LF1 to LF2. k2 ; In the specific implementation process, the value of k2 can be determined according to the number of regions that can be used for analysis and have been identified as pit defects in the actual analysis scenario. The larger the value of k2, the more beneficial it is to perform more accurate analysis of the features of the neighboring pixels corresponding to the pit defects in subsequent analysis. In the data analysis of this embodiment, the value of k2 is set to 20. Step S2012: For any neighborhood analysis region: use a regular camera to take a picture of the neighborhood analysis region, process the resulting image into grayscale and record it as a neighborhood grayscale image, and obtain the position of the neighborhood analysis region in the neighborhood grayscale image; Step S2013: Obtain the smallest circumcircle of the neighborhood analysis region in the neighborhood grayscale image and denote it as the neighborhood analysis circle; denote the center of the neighborhood analysis circle as the neighborhood center; obtain r radii in the neighborhood analysis circle, and denote the line segments corresponding to the r radii as neighborhood analysis line segments LX1 to LX1 respectively. r .

[0023] In the specific implementation process, the value of r can be determined according to the actual data analysis capability and the size of the neighborhood analysis circle. Since all pixels within the neighborhood analysis line segment need to be analyzed in the subsequent analysis process, if the actual data analysis capability is small or the neighborhood analysis circle is large, the value of r can be reduced to avoid excessive data calculation and affect the data analysis efficiency. In the data analysis of this embodiment, the value of r is set to 4. The neighborhood pixel analysis method also includes: step S2014, for any neighborhood analysis line segment: the endpoint in the neighborhood analysis line segment that coincides with the center of the neighborhood circle is recorded as the analysis start point, and the endpoint in the neighborhood analysis line segment that is not recorded as the analysis start point is recorded as the analysis end point; Step S2015: In the neighborhood grayscale image, all pixels within the neighborhood analysis line segment from the analysis start point to the analysis end point are sequentially recorded as neighborhood analysis pixel LD1 to neighborhood analysis pixel LD2. h ; In the data analysis of this embodiment, for example, during a single data analysis, the contour corresponding to a neighborhood analysis region is obtained as follows: Figure 3 The contour LF within PCT1 is shown in the figure, and the obtained neighborhood analysis circle is as follows. Figure 3 As shown in circle CR within PCT2, a neighborhood analysis line segment is obtained as follows: Figure 3 As shown in line segment LX within PCT3, through analysis, we can conclude that DD1 and DD2 in line segment LX can be recorded as the starting point and ending point of the analysis, respectively, and all pixels from DD1 to DD2 can be recorded as neighborhood analysis pixels. Step S2016: Record the single spectral channels that the multispectral camera can use as available single channels KD1 to available single channels KD. q For any available single channel, an image corresponding to the neighborhood analysis region under the available single channel is acquired based on a multispectral camera, and based on whiteboard calibration, the neighborhood analysis pixel LD1 to the neighborhood analysis pixel LD in the image are assigned. h The corresponding reflectivities are denoted as reflectivity FS1 to reflectivity FS, respectively. h .

[0024] The neighborhood pixel analysis method also includes: step S2017, establishing a Cartesian coordinate system with a constant horizontal axis and reflectance as the unit of the vertical axis, and denoting it as the neighborhood analysis coordinate system; for any neighborhood analysis pixel LD g In the neighborhood analysis coordinate system, point (g, reflectivity FS) is... g ) is denoted as the neighborhood analysis point; obtain the neighborhood analysis points corresponding to all neighborhood analysis pixels, and denot the curve obtained by fitting all neighborhood analysis points as the neighborhood analysis curve, where g is a positive integer less than or equal to h and greater than 1; Step S2018: The number of neighborhood analysis points in the neighborhood analysis coordinate system that are not within the neighborhood analysis curve is recorded as j, and the value of j divided by h is recorded as the neighborhood offset ratio corresponding to the available single channel. In practical implementation, because real pit defects are continuous and gently sloping depressions, characterized by a smooth, gradual change in brightness from the pit center to the edge in each band, the neighborhood analysis curve obtained from the above analysis is a smooth curve that can cover most neighborhood analysis points. Therefore, the neighborhood offset ratio should be relatively small. However, the pixel brightness of random noise points caused by defects such as stains and oxidation does not exhibit a uniform smooth change pattern across channels, resulting in the obtained neighborhood analysis curve failing to cover most neighborhood analysis points, leading to a larger neighborhood offset ratio. In summary, by obtaining the neighborhood offset ratio and further obtaining... By taking the neighborhood gradient features, we can obtain the neighborhood gradient features corresponding to the pit defect. These features are the smallest or even the smallest values ​​among all the neighborhood gradient features corresponding to all defects. Therefore, in subsequent actual analysis, if the neighborhood gradient feature corresponding to the area to be identified is smaller than the neighborhood gradient feature corresponding to the pit defect, the area to be identified can be tentatively identified as a pit defect. If, at this time, there are other defects whose neighborhood gradient features are smaller than the neighborhood gradient feature corresponding to the pit defect, i.e., the specific analysis defects in subsequent analysis, we can further accurately compare them through the subsequently obtained specific identification areas to determine whether the area to be identified is a pit defect. Step S2019: Obtain the neighborhood offset ratio corresponding to all available single channels, and record the maximum value of all neighborhood offset ratios as the neighborhood offset feature of the neighborhood analysis line segment; Step S20110: Record the maximum value of the neighborhood offset feature of all neighborhood analysis line segments as the regional gradient feature corresponding to the neighborhood analysis area; record the maximum value of the regional gradient feature corresponding to all neighborhood analysis areas as the neighborhood gradient feature corresponding to the pit defect.

[0025] Step S2 also includes: Step S202, obtaining the neighborhood gradient features of all surface interference defects based on the neighborhood pixel analysis method, and recording the neighborhood gradient features corresponding to the pit defects as pit gradient features. Step S202: Surface interference defects whose neighborhood gradient features are greater than the pit gradient features are recorded as conventional interference defects; In the data analysis of this embodiment, for example, if the value corresponding to the pit gradient feature is 6 in a data analysis, then among all the neighborhood gradient features corresponding to the defects, the defects with a neighborhood gradient feature value greater than 6 can be recorded as regular interference defects, and the defects with a neighborhood gradient feature value less than or equal to 6 can be recorded as special analysis defects. Step S203: Surface interference defects with neighborhood gradient features less than or equal to pit gradient features are recorded as special analysis defects, and the spectral difference regions corresponding to pit defects and special analysis defects are recorded as special identification regions of special analysis defects. Step S204: Record the region corresponding to the union of all special identification regions as the special determination region; Step S205: Mark all surface interference defects as regular interference defects or special analysis defects, and obtain the special identification area for each special analysis defect.

[0026] Step S3: When performing online detection of defects in aerospace components based on multispectral machine vision, the online detection of pit defects in aerospace components is performed based on the multispectral wavelength features and neighborhood gradient features corresponding to the pit defects. Step S3 includes: Step S301, when performing online detection of defects in aerospace components, when the defect identification region β is obtained, the analysis methods of multispectral analysis region and neighborhood pixel analysis region in multispectral analysis method and neighborhood analysis region respectively are used to obtain the single pixel region curve and region gradient features corresponding to region β. Step S302: When the regional gradient feature is less than or equal to the pit gradient feature, for any specific analysis defect, when the single pixel region curve overlaps with the specific identification region of the specific analysis defect, the specific analysis defect is recorded as a screenable defect; when all specific analysis defects are recorded as screenable defects, the defect in region β is recorded as a pit defect. In the specific implementation process, if the gradient feature of the region is less than or equal to the gradient feature of the pit, it indicates that region β may be a pit defect or a specific analysis defect. Therefore, it can be determined whether region β is a specific analysis defect by whether the curve of a single pixel region overlaps with the specific identification region of the specific analysis defect. If the curve of a single pixel region overlaps with the specific identification region of the specific analysis defect, it indicates that the change of pixels in region β does not conform to the spectral change law of pixels in the region corresponding to the specific analysis defect. Therefore, the specific analysis defect can be recorded as a screenable defect, meaning that the specific analysis defect can be screened out. When all specific analysis defects are recorded as screenable defects, it indicates that the defect corresponding to region β can only be a pit defect. Step S303: When the region gradient feature is less than or equal to the pit gradient feature, and the single pixel region curve is only in the pit feature region, the defect in region β is recorded as a pit defect. Step S304: When the regional gradient feature is less than or equal to the pit gradient feature and the number of defects in the special analysis is 0, the defects in region β are recorded as pit defects. In the specific implementation process, if the number of defects obtained through the above analysis is 0, then in this case, the defects whose regional gradient features are less than or equal to the pit gradient features can only be pit defects. Therefore, the defects in region β can be directly recorded as pit defects. Step S305: When the gradient feature of the region is greater than the gradient feature of the pit, the defect in region β is recorded as a defect to be identified other than the pit defect.

[0027] Example 2: This application also provides an electronic device, which may include: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus. The memory stores computer-readable instructions, and the processor can call the instructions in the memory. When the computer-readable instructions are executed by the processor, the steps of the online detection method for pit defects in aerospace components based on multispectral machine vision are performed to achieve the following functions: First, the pit defects in the aerospace components are analyzed based on multispectral machine vision, and the multispectral wavelength features corresponding to the pit defects in the aerospace components are obtained based on the analysis results; then, multiple tagged pit defects in the aerospace components are obtained; based on multispectral machine vision, the tagged pit defects are analyzed using the neighborhood pixel analysis method, and the neighborhood gradient features corresponding to the pit defects are obtained based on the analysis results; finally, when performing online detection of defects in the aerospace components based on multispectral machine vision, the pit defects in the aerospace components are detected online based on the multispectral wavelength features and neighborhood gradient features corresponding to the pit defects.

[0028] Furthermore, when the logical instructions in the aforementioned memory can be implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0029] Example 3: This application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by the computer, the computer can execute the online detection method for pit defects in aerospace components based on multispectral machine vision provided by the above methods. The method includes: firstly, analyzing the pit defects in the aerospace components based on multispectral machine vision, and obtaining the multispectral wavelength features corresponding to the pit defects in the aerospace components based on the analysis results; then, obtaining multiple tagged pit defects in the aerospace components; analyzing the tagged pit defects using a neighborhood pixel analysis method based on multispectral machine vision, and obtaining the neighborhood gradient features corresponding to the pit defects based on the analysis results; finally, when performing online detection of defects in the aerospace components based on multispectral machine vision, performing online detection of pit defects in the aerospace components based on the multispectral wavelength features and neighborhood gradient features corresponding to the pit defects.

[0030] Example 4: This application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it performs the steps of the above-described online detection method for pit defects in aerospace components based on multispectral machine vision to achieve the following functions: First, it analyzes the pit defects in the aerospace components based on multispectral machine vision and obtains the multispectral wavelength features corresponding to the pit defects based on the analysis results; then, it obtains multiple tagged pit defects in the aerospace components; based on multispectral machine vision, it analyzes the tagged pit defects using a neighborhood pixel analysis method and obtains the neighborhood gradient features corresponding to the pit defects based on the analysis results; finally, when performing online detection of defects in the aerospace components based on multispectral machine vision, it performs online detection of pit defects in the aerospace components based on the multispectral wavelength features and neighborhood gradient features corresponding to the pit defects.

[0031] Based on the above description of the embodiments, the embodiments of the present invention can be provided as methods, systems, or computer program products. Based on this understanding, the above technical solutions, in essence or in terms of their contribution to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or certain parts of the embodiments.

[0032] In the embodiments provided in this application, it should be understood that the disclosed system or method can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules or units is only a logical functional division, and there may be other division methods in actual implementation. Furthermore, multiple modules or units may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces. The indirect coupling or communication connection between systems, modules, and units may be electrical, mechanical, or other forms.

[0033] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. An online detection method for pit defects in aerospace components based on multispectral machine vision, characterized in that, Includes the following steps: Multispectral machine vision is used to analyze the pit defects of aerospace components, and the multispectral wavelength features corresponding to the pit defects of aerospace components are obtained based on the analysis results. Multiple truncation defects in aerospace components are identified; based on multispectral machine vision, the neighborhood pixel analysis method is used to analyze the identified truncation defects, and the neighborhood gradient features corresponding to the truncation defects are obtained based on the analysis results. When performing online detection of defects in aerospace components based on multispectral machine vision, the online detection of pit defects in aerospace components is performed based on the multispectral wavelength features and neighborhood gradient features corresponding to the pit defects.

2. The online detection method for pit defects in aerospace components based on multispectral machine vision according to claim 1, characterized in that, This study analyzes dent defects in aerospace components using multispectral machine vision and obtains the corresponding multispectral wavelength features based on the analysis results, including: Defects existing on the surface of aerospace components, other than pit defects, are denoted as surface interference defects; all obtained surface interference defects are denoted as surface interference defect BG1 to surface interference defect BG. n ; Multispectral visual analysis was used to analyze pit defects and all surface interference defects. Based on the analysis results, the single-pixel fluctuation region corresponding to the pit defect and the single-pixel fluctuation region corresponding to each surface interference defect were obtained.

3. The online detection method for pit defects in aerospace components based on multispectral machine vision according to claim 2, characterized in that, Multispectral visual analysis methods include: For any one of the pit defects and all surface interference defects α: on the surface of the aerospace component, obtain k1 regions that have been identified as defects α, and denote them as multispectral analysis regions DF1 to DF1 respectively. k1 ; For any multispectral analysis area, take a picture of the multispectral analysis area using a regular camera, and record the resulting image as a regular grayscale image after grayscale processing; obtain the multispectral analysis area in the regular grayscale image, and record the pixels within the multispectral analysis area as defect analysis pixels.

4. The online detection method for pit defects in aerospace components based on multispectral machine vision according to claim 3, characterized in that, Multispectral visual analysis methods also include: For any defect analysis pixel, the position of the defect analysis pixel is marked on the surface of the aerospace component, and a multispectral camera is used to take pictures of the multispectral analysis area on the surface of the aerospace component to obtain the spectral curve of the defect analysis pixel. The spectral curve is placed in a Cartesian coordinate system with wavelength as the horizontal axis and spectral reflectance as the vertical axis. The spectral curves corresponding to all defect analysis pixels are obtained by using a multispectral camera, and the curve obtained by fitting all spectral curves is recorded as the single pixel region curve corresponding to the multispectral analysis region. Place the single-pixel region curves corresponding to all multispectral analysis regions in the same coordinate system, and label the rightmost point of all single-pixel region curves as X1; denote the region enclosed by X=0, X=X1 and all single-pixel region curves as the single-pixel fluctuation region of defect α.

5. The online detection method for pit defects in aerospace components based on multispectral machine vision according to claim 4, characterized in that, The analysis of pit defects in aerospace components based on multispectral machine vision, and the acquisition of the corresponding multispectral wavelength features based on the analysis results, also includes: A Cartesian coordinate system with wavelength as the horizontal axis and spectral reflectance as the vertical axis is denoted as the spectral analysis coordinate system. Within the same spectral analysis coordinate system, the single-pixel fluctuation region corresponding to the pit defect and the single-pixel fluctuation region corresponding to each surface interference defect are placed simultaneously, and the single-pixel fluctuation region corresponding to the pit defect is denoted as the pit fluctuation region. For any surface interference defect: the region in the pit fluctuation region that does not overlap with the single-pixel fluctuation region of the surface interference defect is denoted as the spectral difference region corresponding to the pit defect and the surface interference defect; The spectral difference regions of all surface interference defects were obtained separately; The region in the pit fluctuation region that does not overlap with the single-pixel fluctuation regions of all surface interference defects is denoted as the pit feature region. The spectral difference regions corresponding to the pit feature region and all surface interference defects are denoted as the multispectral wavelength features corresponding to the pit defect.

6. The online detection method for pit defects in aerospace components based on multispectral machine vision according to claim 5, characterized in that, Neighborhood pixel analysis methods include: Multiple regions identified as pit defects were obtained from the surface of the aerospace component and denoted as neighborhood analysis regions LF1 to LF2 respectively. k2 ; For any neighborhood analysis region: use a regular camera to take a picture of the neighborhood analysis region, process the resulting image into grayscale and record it as the neighborhood grayscale image, and obtain the position of the neighborhood analysis region in the neighborhood grayscale image; Obtain the smallest circumcircle of the neighborhood analysis region in the neighborhood grayscale image and denote it as the neighborhood analysis circle; denote the center of the neighborhood analysis circle as the neighborhood center; obtain r radii in the neighborhood analysis circle, and denote the line segments corresponding to the r radii as neighborhood analysis line segments LX1 to LX1 respectively. r .

7. The online detection method for pit defects in aerospace components based on multispectral machine vision according to claim 6, characterized in that, Neighborhood pixel analysis also includes: For any neighborhood analysis segment: the endpoint of the neighborhood analysis segment that coincides with the center of the neighborhood circle is recorded as the analysis start point, and the endpoint of the neighborhood analysis segment that is not recorded as the analysis start point is recorded as the analysis end point; In a neighborhood grayscale image, all pixels within the neighborhood analysis line segment from the analysis start point to the analysis end point are sequentially denoted as neighborhood analysis pixel LD1 to neighborhood analysis pixel LD2. h ; The single spectral channels that the multispectral camera can use are denoted as available single channels KD1 to available single channels KD. q For any available single channel, an image corresponding to the neighborhood analysis region under the available single channel is acquired based on a multispectral camera, and based on whiteboard calibration, the neighborhood analysis pixel LD1 to the neighborhood analysis pixel LD in the image are assigned. h The corresponding reflectivities are denoted as reflectivity FS1 to reflectivity FS, respectively. h .

8. The online detection method for pit defects in aerospace components based on multispectral machine vision according to claim 7, characterized in that, Neighborhood pixel analysis also includes: Establish a Cartesian coordinate system with a constant x-axis and reflectance units for the y-axis, denoted as the neighborhood analysis coordinate system; for any neighborhood analysis pixel LD g In the neighborhood analysis coordinate system, point (g, reflectivity FS) is... g ) is denoted as the neighborhood analysis point; obtain the neighborhood analysis points corresponding to all neighborhood analysis pixels, and denot the curve obtained by fitting all neighborhood analysis points as the neighborhood analysis curve, where g is a positive integer less than or equal to h and greater than 1; The number of neighborhood analysis points in the neighborhood analysis coordinate system that are not within the neighborhood analysis curve is denoted as j, and the value of j divided by h is denoted as the neighborhood offset ratio corresponding to the available single channel. Obtain the neighborhood offset ratio corresponding to all available single channels, and record the maximum value of all neighborhood offset ratios as the neighborhood offset feature of the neighborhood analysis line segment; The maximum value of the neighborhood offset feature of all neighborhood analysis line segments is recorded as the regional gradient feature corresponding to the neighborhood analysis region; the maximum value of the regional gradient feature corresponding to all neighborhood analysis regions is recorded as the neighborhood gradient feature corresponding to the pit defect.

9. The online detection method for pit defects in aerospace components based on multispectral machine vision according to claim 8, characterized in that, Based on the analysis results, the neighborhood gradient features corresponding to the pit defects also include: The neighborhood gradient features of all surface interference defects are obtained based on the neighborhood pixel analysis method, and the neighborhood gradient features corresponding to the pit defects are recorded as pit gradient features. Surface interference defects whose neighborhood gradient features are greater than the pit gradient features are denoted as conventional interference defects. Surface interference defects whose neighborhood gradient features are less than or equal to the pit gradient features are denoted as special analysis defects, and the spectral difference regions corresponding to pit defects and special analysis defects are denoted as special identification regions of special analysis defects. The region corresponding to the union of all special identification regions is recorded as the special determination region; All surface interference defects are marked as either general interference defects or special analysis defects, and the specific identification area for each special analysis defect is obtained.

10. The online detection method for pit defects in aerospace components based on multispectral machine vision according to claim 9, characterized in that, When performing online detection of defects in aerospace components based on multispectral machine vision, the online detection of pit defects in aerospace components, based on the multispectral wavelength features and neighborhood gradient features corresponding to the pit defects, includes: When detecting defects in aerospace components online, when the defect identification region β is obtained, the analysis methods of multispectral visual analysis and neighborhood pixel analysis are used to obtain the single-pixel region curve and region gradient features corresponding to region β. When the regional gradient feature is less than or equal to the pit gradient feature, for any specific analysis defect, if the single pixel region curve overlaps with the specific identification region of the specific analysis defect, the specific analysis defect is recorded as a screenable defect; when all specific analysis defects are recorded as screenable defects, the defect in region β is recorded as a pit defect. When the gradient feature of a region is less than or equal to the gradient feature of a pit, and the curve of a single pixel region is only located in the pit feature region, the defect in region β is recorded as a pit defect. When the gradient feature of a region is less than or equal to the gradient feature of a pit, and the number of defects in the specific analysis is 0, the defects in region β are recorded as pit defects. When the gradient feature of a region is greater than that of a pit, the defect in region β is recorded as a defect to be identified other than a pit defect.

Citation Information

Patent Citations

  • Method for detecting concave-convex amount of aircraft assembly fastener

    CN113624142A