Aircraft skin ice and snow detection method, device and equipment and storage medium

By using image recognition-based methods to group and preprocess historical images, calculate light and shade and pattern data, and establish a sample database, the problem of low accuracy in ice and snow detection on aircraft skins is solved, the accuracy of ice and snow density detection is improved, and flight safety and safety are ensured. Snow removal efficiency.

CN118628822APending Publication Date: 2024-09-10CIVIL AVIATION UNIV OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410793962.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing aircraft skin ice and snow detection methods can only detect local fixed points on the aircraft skin surface, resulting in low ice and snow density detection accuracy, unable to accurately measure ice and snow density and affecting flight safety.

Method used

Using a method based on image recognition, the collected historical images are grouped according to different light intensities, the light and dark data and pattern data are calculated, and a sample database is established to determine the physical information of the ice and snow images to be detected, including density, porosity and thermal conductivity. .

Benefits of technology

It improves the accuracy of ice and snow density detection, helps airport dispatch more accurately predict the impact of ice and snow on aircraft takeoffs and landings, improves airport safety and operational efficiency, and optimizes the allocation of snow removal resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628822A
    Figure CN118628822A
Patent Text Reader

Abstract

The invention discloses an aircraft skin ice and snow detection method, device and equipment based on image recognition and a storage medium, and the method comprises the steps: carrying out the grouping of collected historical images according to different illumination intensities, and storing the collected historical images in each sample image group; each sample image group corresponds to ice and snow types with different illumination intensities; preprocessing each historical image to obtain a sample image, and calculating light and shade data and pattern data of the sample image; the light and shade data and the pattern data of each sample image group correspond to the physical information of each ice and snow type and are stored in a sample database; respectively calculating the difference degree between the light and shade data and the pattern data of the ice and snow image to be detected and the light and shade data and the pattern data of each sample image group; and determining the physical information of the ice and snow type of the sample image group with the minimum difference degree as the physical information of the ice and snow image to be detected, and obtaining the accurate ice and snow density, porosity and heat conductivity coefficient of the ice and snow image to be detected, thereby improving the safety and operation efficiency of the airport.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of civil aviation support technology, and in particular to an aircraft skin ice and snow detection method, device, equipment and storage medium based on image recognition. Background Art

[0002] During aircraft operation, especially when the aircraft takes off, lands or flies in the air under icy and snowy weather conditions, the accumulation of ice and snow on the skin will have a significant impact on its aerodynamic performance. Aircraft icing can cause wing stall, engine shutdown, airspeed indicator failure and other problems, which seriously threaten flight safety. Therefore, accurately measuring the density of ice and snow on the aircraft skin and designing a reasonable control plan are crucial to ensure flight safety. Among them, the density of ice and snow is not only related to the aerodynamic load borne by the aircraft skin, but also directly affects the effectiveness of de-icing and anti-icing measures. If the density of ice and snow is too large, it may increase the roughness of the aircraft skin surface, thereby affecting the lift and drag of the aircraft, and may even cause turbulence or stall during flight. In addition, the accumulation of ice and snow may also change the center of gravity of the aircraft and affect flight stability.

[0003] At present, the method for detecting ice and snow on aircraft skin is mainly to measure the mass, area and thickness by weighing method to calculate the volume, and obtain the ice density, which can also determine the type of ice accumulation.

[0004] The inventors have found through research that the aircraft skin ice and snow detection methods in the prior art still have at least the following defects:

[0005] Only local fixed-point detection can be performed on the aircraft skin surface, resulting in low accuracy in ice and snow density detection.

[0006] The information disclosed in this background technology section is only intended to enhance the understanding of the overall background of the invention and should not be regarded as an acknowledgment or any form of suggestion that the information constitutes the prior art already known to a person skilled in the art. Summary of the invention

[0007] The purpose of the present invention is to improve the accuracy of ice and snow density detection.

[0008] The present invention provides an aircraft skin ice and snow detection method based on image recognition, comprising the steps of:

[0009] S11, grouping the collected historical images according to different light intensities, and storing them in sample image groups; each sample image group corresponds to ice and snow types with different light intensities;

[0010] S12, pre-processing each of the historical images to obtain a sample image, and calculating the light and dark data and pattern data of the sample image; wherein,

[0011] The light and dark data include the average gray value, the gray value ratio of each area, the skewness value of the pixel number distribution and the kurtosis value of the pixel number distribution; the pattern data include the gray co-occurrence matrix in the horizontal and vertical directions;

[0012] S13, matching the illumination intensity, brightness data and pattern data of each sample image group with the physical information of each type of ice and snow, and storing them in a sample database; the physical information includes: density, porosity and thermal conductivity;

[0013] S14, respectively calculating the difference between the light and dark data and pattern data of the ice and snow image to be detected and the light and dark data and pattern data of each of the sample image groups; and determining the physical information of the ice and snow type of the sample image group with the smallest difference as the physical information of the ice and snow image to be detected.

[0014] Preferably, in the embodiment of the present invention, in step S12, the calculation of the pattern data comprises the steps of:

[0015] S211, normalizing the gray level co-occurrence matrix using the following formula:

[0016]

[0017] In the formula, p(g1,g2) is a pixel on the gray-level co-occurrence matrix, R is the total number of pixels in the gray-level co-occurrence matrix, N is the total length of the image (in pixels), and θ is the scanning angle when the gray-level co-occurrence matrix is ​​formed;

[0018] S212, according to the elements on the diagonal of the gray level co-occurrence matrix, respectively calculate the energy value, entropy value and inverse difference value of the gray level co-occurrence matrix; wherein,

[0019] The energy value of the gray level co-occurrence matrix is ​​calculated by the following formula:

[0020]

[0021] In the formula, ASM is the energy value of the gray-level co-occurrence matrix, i and j represent the horizontal and vertical coordinates of the pixel points of the gray-level co-occurrence matrix, and k is the length of the gray-level co-occurrence matrix;

[0022] The entropy value of the gray level co-occurrence matrix is ​​calculated by the following formula:

[0023]

[0024] In the formula, ENT is the entropy value of the gray-level co-occurrence matrix, and P(i,j) represents a pixel in the gray-level co-occurrence matrix;

[0025] The inverse moment value of the gray level co-occurrence matrix is ​​calculated by the following formula:

[0026]

[0027] In the formula, IDM is the inverse moment value of the gray-level co-occurrence matrix, and P(i,j) represents a pixel point in the gray-level co-occurrence matrix;

[0028] S213, respectively counting the energy value, entropy value and inverse difference value of each gray-level co-occurrence matrix into the pattern data of the corresponding sample image group.

[0029] Preferably, in the embodiment of the present invention, in step S12, the generation of the light and dark data includes:

[0030] Calculate the average grayscale value of each sample image and the grayscale value ratio of each area;

[0031] The skewness value and the kurtosis value of the pixel quantity distribution of the sample image are calculated according to the average gray value and the gray value proportion of each area.

[0032] Preferably, in the embodiment of the present invention, in step S14, the step of calculating the difference between the light and dark data and the pattern data of the ice and snow image to be detected and the light and dark data and the pattern data of each of the sample image groups comprises the steps of:

[0033] S411: respectively calculating the MSE mean square error and SSIM structural similarity index of the light and dark data of the to-be-detected ice and snow image and the light and dark data of each of the sample image groups;

[0034] S412: Filtering out four groups of sample images whose light and dark data of the sample image group have the smallest difference with the light and dark data of the ice and snow image to be detected according to the MSE mean square error and the SSIM structural similarity index;

[0035] S413: respectively calculating the mean square error (MSE) and the structural similarity index (SSIM) of the pattern data of the four groups of sample images with the smallest difference between the pattern data of the ice and snow image to be detected and the light and dark data;

[0036] Preferably, in the embodiment of the present invention, the SSIM structural similarity index is calculated by the following formula:

[0037]

[0038] In the formula, x and y represent the values ​​of two arrays corresponding to the elements in the same position, and μ z is the average value of x, μ y is the mean value of y, is the variance of x, σ xy is the covariance of x and y, c1 and c2 are constants used to maintain stability.

[0039] Preferably, in an embodiment of the present invention, in step S12, preprocessing each of the historical images to obtain a sample image comprises the steps of:

[0040] S221, converting each of the historical images into a grayscale image, and dividing the grayscale image into a plurality of regions;

[0041] S222, calculating the kurtosis value of the number of pixel points in each region and the average kurtosis value of all regions; and calculating the difference between the kurtosis value of each region and the average kurtosis value, and selecting 12 regions with the smallest kurtosis difference ratio;

[0042] S223, calculating the grayscale value of each region and the grayscale average value of all regions, and calculating the difference between the grayscale value of each region and the grayscale average value, and selecting 12 regions with the smallest grayscale difference ratio;

[0043] S224. The area where both the 12 areas with the smallest kurtosis difference ratio and the 12 areas with the smallest grayscale difference ratio appear is taken as a sample image.

[0044] In another aspect of the present invention, there is also provided an aircraft skin ice and snow detection device based on image recognition, comprising:

[0045] A historical image processing unit, used to group the collected historical images according to different light intensities and store them into sample image groups; each sample image group corresponds to ice and snow types with different light intensities;

[0046] The sample image calculation unit is used to pre-process each of the historical images to obtain a sample image, and calculate the light and dark data and pattern data of the sample image; wherein,

[0047] The light and dark data include the average gray value, the gray value ratio of each area, the skewness value of the pixel number distribution and the kurtosis value of the pixel number distribution; the pattern data include the gray co-occurrence matrix in the horizontal and vertical directions;

[0048] A sample database construction unit, used to correspond the illumination intensity, brightness data and pattern data of each sample image group with the physical information of each type of ice and snow, and store them in the sample database; the physical information includes: density, porosity and thermal conductivity;

[0049] The unit for determining ice and snow to be detected is used to respectively calculate the difference between the light and dark data and pattern data of the ice and snow image to be detected and the light and dark data and pattern data of each of the sample image groups; and determine the physical information of the ice and snow type of the sample image group with the smallest difference as the physical information of the ice and snow image to be detected.

[0050] Preferably, in an embodiment of the present invention, the calculation of the pattern data comprises the steps of:

[0051] S211, normalizing the gray level co-occurrence matrix using the following formula:

[0052]

[0053] In the formula, p(g1,g2) is a pixel on the gray-level co-occurrence matrix, R is the total number of pixels in the gray-level co-occurrence matrix, N is the total length of the image (in pixels), and θ is the scanning angle when the gray-level co-occurrence matrix is ​​formed;

[0054] S212, according to the elements on the diagonal of the gray level co-occurrence matrix, respectively calculate the energy value, entropy value and inverse difference value of the gray level co-occurrence matrix; wherein,

[0055] The energy value of the gray level co-occurrence matrix is ​​calculated by the following formula:

[0056]

[0057] In the formula, ASM is the energy value of the gray-level co-occurrence matrix, i and j represent the horizontal and vertical coordinates of the pixel points of the gray-level co-occurrence matrix, and k is the length of the gray-level co-occurrence matrix;

[0058] The entropy value of the gray level co-occurrence matrix is ​​calculated by the following formula:

[0059]

[0060] In the formula, ENT is the entropy value of the gray-level co-occurrence matrix, and P(i,j) represents a pixel in the gray-level co-occurrence matrix;

[0061] The inverse moment value of the gray level co-occurrence matrix is ​​calculated by the following formula:

[0062]

[0063] In the formula, IDM is the inverse moment value of the gray-level co-occurrence matrix, and P(i,j) represents a pixel point in the gray-level co-occurrence matrix;

[0064] S213, respectively counting the energy value, entropy value and inverse difference value of each gray-level co-occurrence matrix into the pattern data of the corresponding sample image group.

[0065] On the other hand, an aircraft skin ice and snow detection device based on image recognition is provided; the aircraft skin ice and snow detection device based on image recognition includes a computer program stored on a medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the methods described in the above aspects and achieves the same technical effects.

[0066] On the other hand, a storage medium is provided on which a computer program is stored. When the computer program is executed by a processor, each step of the method for detecting ice and snow on aircraft skin based on image recognition is implemented.

[0067] Compared with the prior art, the present invention has the following beneficial effects:

[0068] In the present invention, firstly, the collected historical images are grouped according to different light intensities and stored in each sample image group; wherein each sample image group corresponds to the type of ice and snow with different light intensities; then, each historical image is preprocessed to obtain a sample image, and the light and dark data and pattern data of the sample image are calculated; wherein the light and dark data include the average gray value, the gray value proportion of each area, the skewness value of the pixel number distribution and the kurtosis value of the pixel number distribution; the pattern data include the grayscale co-occurrence matrix in the horizontal and vertical directions; the light and dark data and pattern data of each sample image group are compared with the light and dark data of each ice and snow group, and the light and dark data and pattern data of each sample image group are compared with the light and dark data of each ice and snow group. The physical information of the type of ice and snow is matched and stored in the sample database; the physical information includes: density, porosity and thermal conductivity; the difference between the light and dark data and pattern data of the ice and snow image to be detected and the light and dark data and pattern data of each sample image group is calculated respectively; and the physical information of the ice and snow type of the sample image group with the smallest difference is determined as the physical information of the ice and snow image to be detected, so as to obtain the accurate ice and snow density, porosity and thermal conductivity of the ice and snow image to be detected, so as to help airport dispatchers more accurately predict the impact of ice and snow on aircraft takeoff and landing, thereby improving the safety and operation efficiency of the airport.

[0069] Furthermore, by accurately understanding the density, porosity and thermal conductivity of ice and snow, airport dispatchers can more accurately estimate the number of machines and working hours required for snow removal when arranging snow removal work, thereby optimizing resource allocation and improving snow removal efficiency.

[0070] In addition, identifying the type of ice and snow can also be used to assess the impact of ice and snow on infrastructure such as airport runways and aprons. By monitoring changes in ice and snow density, dispatchers can promptly detect and deal with potential safety hazards to ensure the normal operation of the airport.

[0071] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and implement it according to the contents of the specification, and to make the above and other purposes, technical features and advantages of the present invention easier to understand, one or more preferred embodiments are listed below and described in detail with the accompanying drawings as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the embodiments 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.

[0073] Figure 1 is a step diagram of the aircraft skin ice and snow detection method based on image recognition described in the present invention;

[0074] Figure 2 is a schematic diagram of the sample database structure in the present invention;

[0075] Figure 3 It is a schematic diagram of the structure of the light and dark data and the pattern data in the present invention;

[0076] Figure 4 is a schematic diagram of region selection of the sample image described in the present invention;

[0077] Figure 5 It is a schematic diagram of the information data extraction process of the ice and snow image to be measured in the present invention;

[0078] Figure 6 It is a flow chart of comparing the ice and snow image to be tested with the sample image of the sample database and outputting the result;

[0079] Figure 7 It is a structural schematic diagram of the aircraft skin ice and snow detection device based on image recognition in the present invention;

[0080] Figure 8 It is a structural schematic diagram of the aircraft skin ice and snow detection equipment based on image recognition described in the present invention. DETAILED DESCRIPTION

[0081] The specific implementation modes of the present invention are described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific implementation modes.

[0082] Unless explicitly stated otherwise, throughout the specification and claims, the term “comprise” or variations such as “include” or “comprising”, etc., will be understood to include the stated elements or components but not to exclude other elements or components.

[0083] In this document, the terms "first", "second", etc. are used to distinguish two different elements or parts, and are not used to limit a specific position or relative relationship. In other words, in some embodiments, the terms "first", "second", etc. can also be interchangeable.

[0084] Embodiment 1

[0085] In order to improve the accuracy of ice and snow density detection, Figure 1 As shown, in an embodiment of the present invention, a method for detecting ice and snow on aircraft skin based on image recognition is provided, comprising the steps of:

[0086] S11, grouping the collected historical images according to different light intensities, and storing them in sample image groups; each sample image group corresponds to ice and snow types with different light intensities;

[0087] The inventive ideas of the present invention include: there is a mixture of accumulated snow, dark ice and bright ice on the surface of the aircraft skin during rainy and snowy days in winter. The porosity and density of the snow on the aircraft surface will change accordingly when the mixing ratios of the three substances are different; at the same time, changes in the mixing ratio will cause changes in the reflectivity of ice and snow to light under the same light intensity, which is reflected in the image as differences in the brightness and porosity characteristics of the image. The existing aircraft skin ice and snow detection method can only perform local fixed-point detection on the aircraft skin surface, resulting in low accuracy in ice and snow density detection.

[0088] In order to solve the above problems, the present invention groups ice and snow images of different light intensities and different types, quantifies the brightness and porosity of historical images, obtains the characteristic values ​​of a certain type of ice and snow, and corresponds each characteristic value to the corresponding ice and snow density, porosity and thermal conductivity, and stores them together in the corresponding light intensity group to construct a sample database; for the ice and snow to be tested, by taking images, calculating the image characteristic values, and comparing them with the sample database, find out the type of ice and snow in the sample database that is closest to the characteristic value of the ice and snow to be tested under the same light intensity.

[0089] In the embodiment of the present invention, historical images are grouped according to different light intensities, and each grouped sample image group corresponds to ice and snow types with different light intensities. Historical images can be obtained through experiments, such as obtaining ice and snow with a certain ice and snow mixing ratio in a laboratory, flattening the ice and snow, adjusting the surrounding environment brightness, simulating different daytime conditions and weather conditions, shooting images for different light conditions, and storing the captured images in different groups according to the different light intensities when shooting.

[0090] S12, preprocessing each of the historical images to obtain a sample image, and calculating the light and dark data and pattern data of the sample image; wherein the light and dark data includes an average gray value, a gray value ratio of each region, a pixel number distribution skewness value, and a pixel number distribution kurtosis value; the pattern data includes gray level co-occurrence matrices in both horizontal and vertical directions;

[0091] In the embodiment of the present invention, the characteristic values ​​of the light and dark data and the pattern data, such as Figure 3 As shown,

[0092] The calculation of the pattern data comprises the steps of:

[0093] S211, normalizing the gray level co-occurrence matrix using the following formula;

[0094]

[0095] In the formula, p(g1,g2) is a pixel on the gray-level co-occurrence matrix, R is the total number of pixels in the gray-level co-occurrence matrix, N is the total length of the image (in pixels), and θ is the scanning angle when the gray-level co-occurrence matrix is ​​formed;

[0096] S212, according to the elements on the diagonal of the gray level co-occurrence matrix, respectively calculate the energy value, entropy value and inverse difference value of the gray level co-occurrence matrix; wherein,

[0097] In the embodiment of the present invention, the energy value of the grayscale co-occurrence matrix is ​​a measure of the stability of the grayscale changes in the image texture, reflecting the uniformity of the image grayscale distribution and the texture coarseness; the entropy value of the grayscale co-occurrence matrix reflects the clutter of the image, and the larger the entropy value, the higher the clutter of the image; the inverse moment of the grayscale co-occurrence matrix, the larger the inverse moment, the lack of local changes in the image.

[0098] The energy value of the gray level co-occurrence matrix is ​​calculated by the following formula:

[0099]

[0100] In the formula, ASM is the energy value of the gray-level co-occurrence matrix, i and j represent the horizontal and vertical coordinates of the pixel points of the gray-level co-occurrence matrix respectively, and k is the length of the gray-level co-occurrence matrix. The length and width of the gray-level co-occurrence matrix are equal. In specific application scenarios, the value can be 0-256.

[0101] The entropy value of the gray level co-occurrence matrix is ​​calculated by the following formula:

[0102]

[0103] In the formula, ENT is the entropy value of the gray-level co-occurrence matrix, and P(i,j) represents a pixel in the gray-level co-occurrence matrix;

[0104] The inverse moment value of the gray level co-occurrence matrix is ​​calculated by the following formula:

[0105]

[0106] In the formula, IDM is the inverse moment value of the gray-level co-occurrence matrix, and P(i,j) represents a pixel point in the gray-level co-occurrence matrix.

[0107] In the embodiment of the present invention, Figure 4As shown, preprocessing each of the historical images to obtain a sample image includes the steps of:

[0108] S221, converting each of the historical images into a grayscale image, and dividing the grayscale image into a plurality of regions;

[0109] In an embodiment of the present invention, the captured RGB historical image is converted into a grayscale image, and the grayscale image is divided into multiple areas, such as 36 small areas. For the converted grayscale image, the distribution of pixel points in the grayscale levels of 0-256 is counted, and based on the statistics, the average grayscale value of the image and the proportion of the pixel points contained in each grayscale interval to the total number of pixel points are calculated; for example, the grayscale intervals can be divided into 0-51; 52-124; 124-180; 180-220; 220-256.

[0110] S222, calculating the kurtosis value of the number of pixel points in each region and the average kurtosis value of all regions; and calculating the difference between the kurtosis value of each region and the average kurtosis value, and selecting 12 regions with the smallest kurtosis difference ratio;

[0111] S223, calculating the grayscale value of each region and the grayscale average value of all regions, and calculating the difference between the grayscale value of each region and the grayscale average value, and selecting 12 regions with the smallest grayscale difference ratio;

[0112] S224. The area where both the 12 areas with the smallest kurtosis difference ratio and the 12 areas with the smallest grayscale difference ratio appear is taken as a sample image.

[0113] S213, respectively counting the energy value, entropy value and inverse moment value of each gray-level co-occurrence matrix into the pattern data of the corresponding sample image group.

[0114] In the embodiment of the present invention, the energy value, entropy value and inverse moment value of the gray level co-occurrence matrix scanned in the horizontal direction and the gray level co-occurrence matrix scanned in the vertical direction are respectively included in the pattern data groups corresponding to the light intensity and the type of ice and snow.

[0115] The generation of the light and dark data includes: calculating the average grayscale value of each sample image and the grayscale value ratio of each area; and calculating the skewness value and the kurtosis value of the pixel point quantity distribution of the sample image according to the average grayscale value and the grayscale value ratio of each area.

[0116] S13, matching the illumination intensity, brightness data and pattern data of each sample image group with the physical information of each type of ice and snow, and storing them in a sample database; the physical information includes: density, porosity and thermal conductivity;

[0117] In the embodiment of the present invention, the density, porosity and thermal conductivity of the current ice and snow type are measured by physical methods, and the illumination intensity, light and dark data and pattern data of each sample image group are matched with the physical information of each ice and snow type, and stored in the sample database. The data and ice and snow types are matched and stored in the sample database. In the process of constructing the sample database, it is necessary to repeat the above steps for all ice and snow types in the sample database to complete the construction of the database. The constructed sample database is as follows: Figure 3 shown.

[0118] S14, respectively calculating the difference between the light and dark data and pattern data of the ice and snow image to be detected and the light and dark data and pattern data of each of the sample image groups; and determining the physical information of the ice and snow type of the sample image group with the smallest difference as the physical information of the ice and snow image to be detected.

[0119] Preferably, in the embodiment of the present invention, firstly, an image of ice and snow on the aircraft surface skin is photographed by a macro lens, and for the ice and snow image photographed on site, such as Figure 5 As shown, firstly, the format conversion is performed, and the converted ice and snow image is divided into 6*6 small areas. For each small area, data processing is performed separately, and the kurtosis value of the number distribution of each image pixel point is calculated; the kurtosis average value and the kurtosis value of each small area are calculated, and the difference between the kurtosis value of each small area and the average kurtosis value is calculated, and 12 small areas with relatively small kurtosis difference values ​​are found; the average gray value and the gray value of each small area are calculated, and the difference between the gray value of each small area and the average gray value is calculated, and 12 small areas with relatively small gray difference values ​​are found; among the 12 small areas with relatively small kurtosis difference values ​​and the 12 small areas with relatively small gray difference values, the small areas that appear in both groups of areas are selected as processing objects. After selecting the processing object, for each processing object, this step is repeated, and finally the light and dark data is recorded as the first data, and the pattern data is recorded as the second data.

[0120] Preferably, in the embodiment of the present invention, the difference between the light and dark data and the pattern data of the ice and snow image to be detected and the light and dark data and the pattern data of each sample image group is calculated, such as Figure 6 As shown, the steps include:

[0121] S411: respectively calculating the MSE mean square error and SSIM structural similarity index of the light and dark data of the to-be-detected ice and snow image and the light and dark data of each of the sample image groups;

[0122] In an embodiment of the present invention, according to the light intensity of shooting the ice and snow to be detected, the light and dark data of all types of ice and snow in the corresponding light interval in the sample database are called up, and the MSE mean square error is calculated between the light and dark data of each sample image and the first data of the ice and snow to be detected, that is, the square of the difference between the sample image data and the ice and snow image data to be detected is calculated, and the average value is calculated; at the same time, the SSIM similarity index of the 2*2 matrix composed of the two groups of data is calculated.

[0123] S412: Filtering out four groups of sample images whose light and dark data of the sample image group have the smallest difference with the light and dark data of the ice and snow image to be detected according to the MSE mean square error and the SSIM structural similarity index;

[0124] The SSIM similarity index is divided by the MSE mean square error, and the resulting value is named the difference. The four groups of sample images with the smallest difference between the sample data and the ice and snow image data to be detected are selected.

[0125] S413: respectively calculating the mean square error (MSE) and the structural similarity index (SSIM) of the pattern data of the four groups of sample images with the smallest difference between the pattern data of the ice and snow image to be detected and the light and dark data;

[0126] In an embodiment of the present invention, the pattern data corresponding to the four groups of sample images with the smallest difference from the ice and snow image data to be detected and the second data of the ice and snow to be detected are calculated for MSE and SSIM index, and the difference is further calculated to select one group of sample images with the smallest difference between the pattern data and the second data of the image to be detected among the four groups of sample images.

[0127] The SSIM structural similarity index is calculated by the following formula:

[0128]

[0129] In the formula, x and y represent the values ​​of two arrays corresponding to the pixels at the same position, μ z is the average value of x, μ y is the mean value of y, is the variance of x, σ xy is the covariance of x and y, c1 and c2 are constants used to maintain stability. In the embodiment of the present invention, c1=(k1L) 2 , c2=(k2L) 2 , L is the dynamic range of pixel values, k1 and k2 are constants, k1 can take the value of 0.01, and k2 can take the value of 0.03.

[0130] Finally, the density, porosity and thermal conductivity of the sample image group with the smallest difference are read as the physical information of the ice and snow image to be detected.

[0131] In summary, the embodiments of the present invention first group the collected historical images according to different light intensities and store them in sample image groups; wherein each sample image group corresponds to the type of ice and snow with different light intensities; then preprocess each historical image to obtain a sample image, and calculate the light and dark data and pattern data of the sample image; wherein the light and dark data include the average gray value, the proportion of gray values ​​in each area, the skewness value of the pixel number distribution, and the kurtosis value of the pixel number distribution; the pattern data include the grayscale co-occurrence matrix in the horizontal and vertical directions; the light and dark data and pattern data of each sample image group are compared with The physical information of each type of ice and snow is matched and stored in a sample database; the physical information includes: density, porosity and thermal conductivity; the difference between the light and dark data and pattern data of the ice and snow image to be detected and the light and dark data and pattern data of each sample image group is calculated respectively; and the physical information of the ice and snow type of the sample image group with the smallest difference is determined as the physical information of the ice and snow image to be detected, so as to obtain the accurate ice and snow density, porosity and thermal conductivity of the ice and snow image to be detected, so as to help airport dispatchers more accurately predict the impact of ice and snow on aircraft takeoff and landing, thereby improving the safety and operation efficiency of the airport.

[0132] Furthermore, by accurately understanding the density, porosity and thermal conductivity of ice and snow, airport dispatchers can more accurately estimate the number of machines and working hours required for snow removal when arranging snow removal work, thereby optimizing resource allocation and improving snow removal efficiency.

[0133] In addition, identifying the type of ice and snow can also be used to assess the impact of ice and snow on infrastructure such as airport runways and aprons. By monitoring changes in ice and snow density, dispatchers can promptly detect and deal with potential safety hazards to ensure the normal operation of the airport.

[0134] Embodiment 2

[0135] Corresponding to the method embodiment, in another aspect of the embodiment of the present invention, an aircraft skin ice and snow detection device based on image recognition is also provided. Figure 7 The schematic diagram of the structure of the aircraft skin ice and snow detection device based on image recognition provided by the embodiment of the present invention is shown. The aircraft skin ice and snow detection device based on image recognition is Figure 1 The device corresponding to the aircraft skin ice and snow detection method based on image recognition described in the corresponding embodiment, that is, implemented by means of a virtual device Figure 1 In the corresponding embodiment of the aircraft skin ice and snow detection method based on image recognition, each virtual module constituting the aircraft skin ice and snow detection device based on image recognition can be executed by an electronic device, such as a network device, a terminal device or a server. Specifically, the aircraft skin ice and snow detection device based on image recognition in the embodiment of the present invention includes:

[0136] The historical image processing unit 01 is used to group the collected historical images according to different light intensities and store them into sample image groups; each sample image group corresponds to the type of ice and snow with different light intensities;

[0137] In the embodiment of the present invention, the historical images are grouped according to different illumination intensities, and each of the grouped sample image groups corresponds to ice and snow types with different illumination intensities.

[0138] The sample image calculation unit 02 is used to pre-process each of the historical images to obtain a sample image, and calculate the light and dark data and pattern data of the sample image; wherein,

[0139] The light and dark data include the average gray value, the gray value ratio of each area, the skewness value of the pixel number distribution and the kurtosis value of the pixel number distribution; the pattern data include the gray co-occurrence matrix in the horizontal and vertical directions.

[0140] In the embodiment of the present invention, the calculation of the pattern data comprises the steps of:

[0141] S211, normalizing the gray level co-occurrence matrix using the following formula:

[0142]

[0143] In the formula, p(g1,g2) is a pixel on the gray-level co-occurrence matrix, R is the total number of pixels in the gray-level co-occurrence matrix, N is the total length of the image (in pixels), and θ is the scanning angle when the gray-level co-occurrence matrix is ​​formed;

[0144] S212, according to the elements on the diagonal of the gray level co-occurrence matrix, respectively calculate the energy value, entropy value and inverse difference value of the gray level co-occurrence matrix; wherein,

[0145] The energy value of the gray level co-occurrence matrix is ​​calculated by the following formula:

[0146]

[0147] In the formula, ASM is the energy value of the gray-level co-occurrence matrix, i and j represent the horizontal and vertical coordinates of the pixel points of the gray-level co-occurrence matrix respectively, and k is the length of the gray-level co-occurrence matrix. The length and width of the gray-level co-occurrence matrix are equal;

[0148] The entropy value of the gray level co-occurrence matrix is ​​calculated by the following formula:

[0149]

[0150] In the formula, ENT is the entropy value of the gray-level co-occurrence matrix, and P(i,j) represents a pixel in the gray-level co-occurrence matrix;

[0151] The inverse moment value of the gray level co-occurrence matrix is ​​calculated by the following formula:

[0152]

[0153] In the formula, IDM is the inverse moment value of the gray-level co-occurrence matrix, and P(i,j) represents a pixel point in the gray-level co-occurrence matrix;

[0154] S213, respectively counting the energy value, entropy value and inverse difference value of each gray-level co-occurrence matrix into the pattern data of the corresponding sample image group.

[0155] The sample database construction unit 03 is used to correspond the illumination intensity, brightness data and pattern data of each sample image group with the physical information of each type of ice and snow, and store them in the sample database; the physical information includes: density, porosity and thermal conductivity;

[0156] In the embodiment of the present invention, the density, porosity and thermal conductivity of the current ice and snow type are measured by physical methods, and the illumination intensity, light and dark data and pattern data of each sample image group are matched with the physical information of each ice and snow type, and stored in the sample database, and the data and ice and snow types are matched and stored in the sample database. In the process of constructing the sample database, it is necessary to repeat the above steps for all ice and snow types in the sample database to complete the construction of the database.

[0157] The ice and snow determination unit 04 to be detected is used to respectively calculate the difference between the light and dark data and pattern data of the ice and snow image to be detected and the light and dark data and pattern data of each of the sample image groups; and determine the physical information of the ice and snow type of the sample image group with the smallest difference as the physical information of the ice and snow image to be detected.

[0158] In the embodiment of the present invention, the difference between the light and dark data and the pattern data of the ice and snow image to be detected and the light and dark data and the pattern data of each sample image group is calculated, such as Figure 6 As shown, the steps include:

[0159] S411: respectively calculating the MSE mean square error and SSIM structural similarity index of the light and dark data of the to-be-detected ice and snow image and the light and dark data of each of the sample image groups;

[0160] In an embodiment of the present invention, according to the light intensity of shooting the ice and snow to be detected, the light and dark data of all types of ice and snow in the corresponding light interval in the sample database are called up, and the MSE mean square error is calculated between the light and dark data of each sample image and the first data of the ice and snow to be detected, that is, the square of the difference between the sample image data and the ice and snow image data to be detected is calculated, and the average value is calculated; at the same time, the SSIM similarity index of the 2*2 matrix composed of the two groups of data is calculated.

[0161] S412: Filtering out four groups of sample images whose light and dark data of the sample image group have the smallest difference with the light and dark data of the ice and snow image to be detected according to the MSE mean square error and the SSIM structural similarity index;

[0162] The SSIM similarity index is divided by the MSE mean square error, and the resulting value is named the difference. The four groups of sample images with the smallest difference between the sample data and the ice and snow image data to be detected are selected.

[0163] S413: respectively calculating the mean square error (MSE) and the structural similarity index (SSIM) of the pattern data of the four groups of sample images with the smallest difference between the pattern data of the ice and snow image to be detected and the light and dark data;

[0164] In an embodiment of the present invention, the pattern data corresponding to the four groups of sample images with the smallest difference from the ice and snow image data to be detected and the second data of the ice and snow to be detected are calculated for MSE and SSIM index, and the difference is further calculated to select one group of sample images with the smallest difference between the pattern data and the second data of the image to be detected among the four groups of sample images.

[0165] It should be noted that the specific implementation and technical effects of the aircraft skin ice and snow detection device based on image recognition in the embodiment of the present invention can be referred to Figure 1 The corresponding aircraft skin ice and snow detection method based on image recognition will not be described in detail here.

[0166] Embodiment 3

[0167] Corresponding to the method embodiment, in the embodiment of the present invention, there is also provided an aircraft skin ice and snow detection device based on image recognition, such as a terminal, a server, etc. Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto.

[0168] An example of a hardware structure block diagram of an aircraft skin ice and snow detection device based on image recognition provided by an embodiment of the present invention is shown in FIG. Figure 8 As shown, it may include:

[0169] Processor 1, communication interface 2, memory 3 and communication bus 4;

[0170] The processor 1, the communication interface 2, and the memory 3 communicate with each other via the communication bus 4;

[0171] Optionally, the communication interface 2 may be an interface of a communication module, such as an interface of a GSM module;

[0172] The processor 1 may be a central processing unit CPU, or an application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.

[0173] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0174] The processor 1 is specifically used to execute the computer program stored in the memory 3 to perform the following steps:

[0175] S11, grouping the collected historical images according to different light intensities, and storing them in sample image groups; each sample image group corresponds to ice and snow types with different light intensities;

[0176] S12, pre-processing each of the historical images to obtain a sample image, and calculating the light and dark data and pattern data of the sample image; wherein,

[0177] The light and dark data include the average gray value, the gray value ratio of each area, the skewness value of the pixel number distribution and the kurtosis value of the pixel number distribution; the pattern data include the gray co-occurrence matrix in the horizontal and vertical directions;

[0178] S13, matching the illumination intensity, brightness data and pattern data of each sample image group with the physical information of each type of ice and snow, and storing them in a sample database; the physical information includes: density, porosity and thermal conductivity;

[0179] S14, respectively calculating the difference between the light and dark data and pattern data of the ice and snow image to be detected and the light and dark data and pattern data of each of the sample image groups; and determining the physical information of the ice and snow type of the sample image group with the smallest difference as the physical information of the ice and snow image to be detected.

[0180] The above product can execute the method provided in the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in this embodiment, please refer to the aircraft skin ice and snow detection method based on image recognition provided in the embodiment of the present invention.

[0181] Embodiment 4

[0182] In an embodiment of the present invention, a storage medium is further provided, which may store a program suitable for execution by a processor, wherein the program is used to:

[0183] S11, grouping the collected historical images according to different light intensities, and storing them in sample image groups; each sample image group corresponds to ice and snow types with different light intensities;

[0184] S12, pre-processing each of the historical images to obtain a sample image, and calculating the light and dark data and pattern data of the sample image; wherein,

[0185] The light and dark data include the average gray value, the gray value ratio of each area, the skewness value of the pixel number distribution and the kurtosis value of the pixel number distribution; the pattern data include the gray co-occurrence matrix in the horizontal and vertical directions;

[0186] S13, matching the illumination intensity, brightness data and pattern data of each sample image group with the physical information of each type of ice and snow, and storing them in a sample database; the physical information includes: density, porosity and thermal conductivity;

[0187] S14, respectively calculating the difference between the light and dark data and pattern data of the ice and snow image to be detected and the light and dark data and pattern data of each of the sample image groups; and determining the physical information of the ice and snow type of the sample image group with the smallest difference as the physical information of the ice and snow image to be detected.

[0188] Optionally, the detailed functions and extended functions of the program may refer to the above description.

[0189] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the methods provided by other embodiments of the present invention.

[0190] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0191] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0192] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0193] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0194] It should be understood that in the embodiments of the present application, the various embodiments and features can be combined with each other to solve the aforementioned technical problems.

[0195] If the functions are implemented in the form of 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 the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0196] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for detecting ice and snow on aircraft skin based on image recognition. It is characterized in that Includes steps: S11, grouping the collected historical images according to different light intensities, and storing them in sample image groups; each sample image group corresponds to ice and snow types with different light intensities; S12, pre-processing each of the historical images to obtain a sample image, and calculating the light and dark data and pattern data of the sample image; wherein, The light and dark data include the average gray value, the gray value ratio of each area, the skewness value of the pixel number distribution and the kurtosis value of the pixel number distribution; the pattern data include the gray co-occurrence matrix in the horizontal and vertical directions; S13, matching the illumination intensity, brightness data and pattern data of each sample image group with the physical information of each type of ice and snow, and storing them in a sample database; the physical information includes: density, porosity and thermal conductivity; S14, respectively calculating the difference between the light and dark data and pattern data of the ice and snow image to be detected and the light and dark data and pattern data of each of the sample image groups; and determining the physical information of the ice and snow type of the sample image group with the smallest difference as the physical information of the ice and snow image to be detected.

2. The method for detecting ice and snow on aircraft skin based on image recognition according to claim 1, It is characterized in that In step S12, the calculation of the pattern data includes the steps of: S211, normalizing the gray level co-occurrence matrix using the following formula: In the formula, p(g 1 ,g 2 ) is a pixel on the gray-level co-occurrence matrix, R is the total number of pixels in the gray-level co-occurrence matrix, N is the total length of the historical image (in pixels), and θ is the scanning angle when the gray-level co-occurrence matrix is ​​formed; S212, according to the elements on the diagonal of the gray level co-occurrence matrix, respectively calculate the energy value, entropy value and inverse difference value of the gray level co-occurrence matrix; wherein, The energy value of the gray level co-occurrence matrix is ​​calculated by the following formula: In the formula, ASM is the energy value of the gray-level co-occurrence matrix, i and j represent the horizontal and vertical coordinates of the pixel points of the gray-level co-occurrence matrix, and k is the length of the gray-level co-occurrence matrix; The entropy value of the gray level co-occurrence matrix is ​​calculated by the following formula: In the formula, ENT is the entropy value of the gray-level co-occurrence matrix, and P(i,j) represents a pixel in the gray-level co-occurrence matrix; The inverse moment value of the gray level co-occurrence matrix is ​​calculated by the following formula: In the formula, IDM is the inverse moment value of the gray-level co-occurrence matrix, and P(i,j) represents a pixel point in the gray-level co-occurrence matrix; S213, respectively counting the energy value, entropy value and inverse difference value of each gray-level co-occurrence matrix into the pattern data of the corresponding sample image group.

3. The method for detecting ice and snow on aircraft skin based on image recognition according to claim 1, It is characterized in that In step S12, the generation of the light and dark data includes: Calculate the average grayscale value of each sample image and the grayscale value ratio of each area; The skewness value and the kurtosis value of the pixel quantity distribution of the sample image are calculated according to the average gray value and the gray value proportion of each area.

4. The method for detecting ice and snow on aircraft skin based on image recognition according to claim 1, It is characterized in that In step S14, the calculation of the difference between the light and dark data and the pattern data of the to-be-detected ice and snow image and the light and dark data and the pattern data of each of the sample image groups comprises the steps of: S411: respectively calculating the MSE mean square error and SSIM structural similarity index of the light and dark data of the to-be-detected ice and snow image and the light and dark data of each of the sample image groups; S412: Filtering out four groups of sample images whose light and dark data of the sample image group have the smallest difference with the light and dark data of the ice and snow image to be detected according to the MSE mean square error and the SSIM structural similarity index; S413: Calculate the mean square error (MSE) and the structural similarity index (SSIM) of the pattern data of the four groups of sample images with the smallest difference between the pattern data of the ice and snow image to be detected and the light and dark data respectively.

5. The method for detecting ice and snow on aircraft skin based on image recognition according to claim 4, It is characterized in that The SSIM structural similarity index is calculated by the following formula: In the formula, x and y represent the values ​​of two arrays corresponding to the pixels at the same position, μ z is the average value of x, μ y is the mean value of y, is the variance of x, σ xy is the covariance of x and y, c 1 , c 2 It is a constant used to maintain stability.

6. The method for detecting ice and snow on aircraft skin based on image recognition according to claim 1, It is characterized in that In step S12, each of the historical images is preprocessed to obtain a sample image, including the steps of: S221, converting each of the historical images into a grayscale image, and dividing the grayscale image into a plurality of regions; S222, calculating the kurtosis value of the number of pixel points in each region and the average kurtosis value of all regions; and calculating the difference between the kurtosis value of each region and the average kurtosis value, and selecting 12 regions with the smallest kurtosis difference ratio; S223, calculating the grayscale value of each region and the grayscale average value of all regions, and calculating the difference between the grayscale value of each region and the grayscale average value, and selecting 12 regions with the smallest grayscale difference ratio; S224. The area where both the 12 areas with the smallest kurtosis difference ratio and the 12 areas with the smallest grayscale difference ratio appear is taken as a sample image.

7. An aircraft skin ice and snow detection device based on image recognition, It is characterized in that include: A historical image processing unit, used to group the collected historical images according to different illumination intensities and store them in each sample image group; Each sample image group corresponds to ice and snow types with different illumination intensities; The sample image calculation unit is used to pre-process each of the historical images to obtain a sample image, and calculate the light and dark data and pattern data of the sample image; wherein, The light and dark data include the average gray value, the gray value ratio of each area, the skewness value of the pixel number distribution and the kurtosis value of the pixel number distribution; the pattern data include the gray co-occurrence matrix in the horizontal and vertical directions; A sample database construction unit, used to correspond the illumination intensity, brightness data and pattern data of each sample image group with the physical information of each type of ice and snow, and store them in the sample database; the physical information includes: density, porosity and thermal conductivity; The unit for determining ice and snow to be detected is used to respectively calculate the difference between the light and dark data and pattern data of the ice and snow image to be detected and the light and dark data and pattern data of each of the sample image groups; and determine the physical information of the ice and snow type of the sample image group with the smallest difference as the physical information of the ice and snow image to be detected.

8. The aircraft skin ice and snow detection device based on image recognition according to claim 7, It is characterized in that The calculation of the pattern data comprises the steps of: S211, normalizing the gray level co-occurrence matrix using the following formula; In the formula, p(g 1 ,g 2 ) is a pixel on the gray-level co-occurrence matrix, R is the total number of pixels in the gray-level co-occurrence matrix, N is the total length of the historical image (in pixels), and θ is the scanning angle when the gray-level co-occurrence matrix is ​​formed; S212, according to the elements on the diagonal of the gray level co-occurrence matrix, respectively calculate the energy value, entropy value and inverse difference value of the gray level co-occurrence matrix; wherein, The energy value of the gray level co-occurrence matrix is ​​calculated by the following formula: In the formula, ASM is the energy value of the gray-level co-occurrence matrix, i and j represent the horizontal and vertical coordinates of the pixel points of the gray-level co-occurrence matrix, and k is the length of the gray-level co-occurrence matrix; The entropy value of the gray level co-occurrence matrix is ​​calculated by the following formula: In the formula, ENT is the entropy value of the gray-level co-occurrence matrix, and P(i,j) represents a pixel in the gray-level co-occurrence matrix; The inverse moment value of the gray level co-occurrence matrix is ​​calculated by the following formula: In the formula, IDM is the inverse moment value of the gray-level co-occurrence matrix, and P(i,j) represents a pixel point in the gray-level co-occurrence matrix; S213, respectively counting the energy value, entropy value and inverse difference value of each gray-level co-occurrence matrix into the pattern data of the corresponding sample image group.

9. An aircraft skin ice and snow detection device based on image recognition, It is characterized in that include: Memory for storing computer programs; A processor is used to call and execute the computer program to implement the steps of the aircraft skin ice and snow detection method based on image recognition as described in any one of claims 1-6.

10. A storage medium, It is characterized in that The method comprises a software program, wherein the software program is suitable for a processor to execute the steps of the aircraft skin ice and snow detection method based on image recognition as claimed in any one of claims 1 to 6.