An explosion-proof inspection unmanned aerial vehicle multi-modal image fusion method, device and medium

By acquiring multi-source environmental parameters and multimodal image data, calculating environmental degradation scores and image quality scores, and identifying dominant environmental parameters for compensation and enhancement, the instability problem of image fusion in UAV inspection is solved, improving the accuracy and reliability of images and supporting the automated application of UAVs.

CN122415358BActive Publication Date: 2026-11-24JIHUA LAB
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202610899282.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-06-22
Publication Date
2026-11-24
Estimated Expiration
2046-06-22

AI Technical Summary

Technical Problem

Existing drone inspection multimodal image fusion technology is unstable in complex industrial environments, with a high risk of missed detections and false alarms. It cannot perceive and model the external physical environment that causes image degradation in real time and quantitatively, making it impossible to judge the reliability of sensors and perform root cause compensation.

Method used

By acquiring multi-source environmental parameters and multimodal image data of the inspection environment, calculating environmental degradation scores and image quality scores, identifying dominant environmental parameters and calling corresponding preset image compensation algorithms for compensation and enhancement, recalculating fusion weights, and finally performing multimodal image fusion.

Benefits of technology

It enables real-time, quantitative perception and root cause compensation of image degradation in complex industrial environments, improving the accuracy and reliability of inspection images and providing technical support for the large-scale automated application of explosion-proof inspection drones.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122415358B_ABST
    Figure CN122415358B_ABST
Patent Text Reader

Abstract

This application relates to the field of image processing technology, specifically providing a method, device, and medium for multimodal image fusion of explosion-proof inspection drones. The method includes: S2, calculating the image degradation cost for each image modality based on environmental degradation score and image quality score; S3, analyzing whether the image degradation cost for each image modality is greater than a preset compensation trigger threshold. If so, proceed to step S4; otherwise, perform basic enhancement on the image data; S4, identifying the dominant environmental parameters causing environmental degradation and calling the corresponding preset image compensation algorithm to compensate and enhance the image data; S5, recalculating the image degradation cost and determining the fusion weight based on the image degradation cost; S6, fusing all enhanced images according to all fusion weights. This method can solve the problem of unstable performance and high risk of missed detection and false alarm in existing drone inspection multimodal image fusion technology in complex industrial environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, and more specifically, to a multimodal image fusion method, device and medium for explosion-proof inspection drones. Background Technology

[0002] In high-risk industrial sectors such as petrochemicals, oil refining, and natural gas processing, explosion-proof inspection drones have become an important inspection tool. These drones typically carry multiple sensors, including visible light cameras, thermal imaging cameras, and hyperspectral imagers, to comprehensively acquire target information from spatial, thermal radiation, and spectral dimensions. However, industrial environments are complex and harsh. The dense water vapor, process fumes, flammable, explosive, or toxic gases (such as hydrogen sulfide and sulfur dioxide), suspended catalyst dust, and the intense heat radiation continuously emitted from equipment surfaces generated during production together constitute a physical field that is extremely unfriendly to optical imaging. These factors severely degrade the output quality of different image sensors through various physical mechanisms (such as Mie scattering, selective gas absorption, thermal saturation, and glare), resulting in blurred visible light images with a sharp drop in contrast; distorted temperature readings in thermal imaging, or interference from non-target heat sources; and distorted spectral curves in hyperspectral data, obscuring the material's "fingerprint" characteristics.

[0003] Currently, research on multimodal image fusion technology for UAV inspection largely focuses on designing better feature extractors and fusion rules to improve the visual quality of fused images under ideal conditions or the performance of specific tasks. Mainstream methods typically use weighted averaging, pyramid decomposition, or multi-scale transformations based on pixel intensity, gradient, texture, or depth features. Some improvements introduce quality evaluation metrics such as image sharpness and information entropy, assigning different fusion weights to images of different sharpness. However, these methods share a common flaw: they all treat image degradation as a given and attempt to perform "post-hoc" repair or trade-offs at the image level. They lack the ability to perceive and model the "external physical environment that causes image degradation" in real time and quantitatively. Therefore, when environmental interference changes drastically, these methods cannot fundamentally determine "which sensor is more reliable in the current environment," nor can they provide root-cause compensation for "what specific environmental factors caused the degradation." This "blind fusion" or "shallow adaptive" strategy leads to unstable performance of existing UAV vision systems in real, complex industrial environments, with high risks of missed detections and false alarms, severely restricting their large-scale automated application.

[0004] There is currently no effective technical solution to the above problems. Summary of the Invention

[0005] The purpose of this application is to provide a method, device and medium for multimodal image fusion of explosion-proof inspection drones, which can solve the problem that the existing drone inspection multimodal image fusion technology is unstable in complex industrial environments, has a high risk of missed detection and false alarm, and seriously restricts its large-scale automated application.

[0006] In a first aspect, this application provides a multimodal image fusion method for explosion-proof inspection drones, which includes the following steps: S1. Acquire multi-source environmental parameters and multi-modal image data of the inspection environment; multi-source environmental parameters include various types of environmental parameters, and multi-modal image data includes image data of various image modalities; S2. For each image modality, calculate the environmental degradation score based on the multi-source environmental parameters, and calculate the image quality score based on the image data corresponding to the image modality. Then, calculate the image degradation cost based on the environmental degradation score and the image quality score. S3. For each image modality, analyze whether the image degradation cost is greater than the preset compensation trigger threshold. If yes, proceed to step S4. If no, perform basic enhancement on the image data corresponding to the image modality to obtain an enhanced image. S4. Identify the dominant environmental parameter that causes environmental degradation from the multi-source environmental parameters, and call the preset image compensation algorithm corresponding to the dominant environmental parameter to compensate and enhance the image data to obtain an enhanced image; S5. Recalculate the image degradation cost corresponding to each enhanced image, and determine the fusion weight corresponding to each enhanced image based on the recalculated image degradation cost; S6. Fuse all enhanced images according to all fusion weights to obtain the target inspection image.

[0007] Optionally, step S1 includes: S11. Acquire multi-source environmental parameters and multimodal image data of the inspection environment; S12. Perform timestamp alignment, spatial coarse registration, and lens distortion correction on the image data of each image modality in the multimodal image data.

[0008] Optionally, step S2 includes: S21. For each image modality, obtain the preset environmental parameter weight combination corresponding to the image modality, and then calculate the environmental degradation score based on the preset environmental parameter combination and multi-source environmental parameters; the preset environmental parameter weight combination includes the preset environmental weights corresponding to each type of environmental parameter in the multi-source environmental parameters; S22. For each image modality, obtain the standard deviation of background region pixels of the image data corresponding to that image modality, and calculate the contrast-to-noise ratio based on the background pixel standard deviation; S23. For each image mode, divide the image data corresponding to the image mode into multiple image blocks, and calculate the measurement error based on the maximum and minimum pixel values ​​of each image block. S24. For each image modality, obtain the actual image mean and actual image standard deviation of the image data corresponding to the image modality, and obtain the reference image mean and reference image standard deviation of the preset reference image corresponding to the image modality. Then, calculate the structural similarity index based on the actual image mean, actual image standard deviation, reference image mean, reference image standard deviation, and the covariance between the image data corresponding to the image modality and the preset reference image. S25. For each image modality, calculate the image quality score based on the contrast-to-noise ratio, measurement error, and structural similarity index corresponding to that image modality, and then calculate the image degradation cost based on the environmental degradation score and image quality score corresponding to that image modality.

[0009] Optionally, the formula for calculating the environmental degradation score is: ; Among them, EnvScore i w represents the environmental degradation score corresponding to the i-th image modality, N represents the number of environmental parameter types included in the multi-source environmental parameters, and w i,k e represents the preset environment weights corresponding to the environment parameters of the i-th image modality and the k-th type. k Represents the k-th type of environment parameter, e k,min e represents the minimum preset parameter value corresponding to the k-th type of environmental parameter. k,max This represents the maximum preset parameter value corresponding to the k-th type of environmental parameter; The formula for calculating the contrast-to-noise ratio is: ; Among them, CNR i μ represents the contrast-to-noise ratio corresponding to the i-th image modality. obj μ represents the mean value of the preset target pixels corresponding to the i-th image modality. bg σ represents the mean pixel value of the preset background region corresponding to the i-th image modality. bg This represents the standard deviation of background pixels in the image data corresponding to the i-th image modality; The formula for calculating measurement error is: ; Among them, EME i Let I represent the measurement error corresponding to the i-th image mode, m×n represent the total number of image patches, and I max (k,l) represents the maximum pixel value of the (k,l)th image block, I min(k,l) represents the minimum pixel value of the (k,l)th image block, and c represents the preset anti-overflow coefficient; The formula for calculating the structural similarity index is: ; Among them, SSIM refi μ represents the structural similarity index corresponding to the i-th image modality. Ii μ represents the actual image mean of the image data corresponding to the i-th image modality. Iref σ represents the mean value of the reference image corresponding to the preset reference image for the i-th image mode. Ii σ represents the actual image standard deviation of the image data corresponding to the i-th image modality. Iref σ represents the standard deviation of the reference image corresponding to the preset reference image for the i-th image mode. IiIref C1 represents the covariance between the image data corresponding to the i-th image mode and the preset reference image, C2 represents the first preset stability constant, and C2 represents the second preset stability constant. The formula for calculating image quality score is: ; Among them, QualScore i The image quality score corresponding to the i-th image modality is represented by α, β and γ, which represent the first preset normalized weight coefficient, the second preset normalized weight coefficient and the third preset normalized weight coefficient, respectively. The formula for calculating the cost of image degradation is: ; Among them, IDC i ω represents the image degradation cost corresponding to the i-th image modality, and ω represents the pre-defined environmental factor dominant weight coefficient.

[0010] Optionally, the multi-source environmental parameters include five types of environmental parameters: relative humidity, PM2.5 mass concentration, hydrogen sulfide gas volume concentration, ambient air temperature, and ambient light intensity.

[0011] Optionally, step S4 includes: S41. If the ambient relative humidity is greater than the preset relative humidity, then the ambient relative humidity is marked as the dominant environmental parameter causing environmental degradation. If the PM2.5 mass concentration is greater than the preset mass concentration, then the PM2.5 mass concentration is marked as the dominant environmental parameter causing environmental degradation. If the hydrogen sulfide gas volume concentration is greater than the preset volume concentration, then the hydrogen sulfide gas volume concentration is marked as the dominant environmental parameter causing environmental degradation. If the ambient air temperature is greater than the preset air temperature, then the ambient air temperature is marked as the dominant environmental parameter causing environmental degradation. If the ambient light intensity is greater than the preset light intensity, then the ambient light intensity is marked as the dominant environmental parameter causing environmental degradation. S42. If the dominant environmental parameters include relative humidity and PM2.5 concentration, then a preset penetration algorithm based on a multispectral physical scattering model is used to compensate and enhance image data whose image degradation cost exceeds a preset compensation trigger threshold, so as to obtain an enhanced image. S43. If the dominant environmental parameter includes ambient air temperature, then the image data whose image degradation cost is greater than the preset compensation trigger threshold is compensated and enhanced using a preset thermal image correction algorithm based on radiometric calibration and local adaptive nonlinear stretching to obtain an enhanced image. S44. If the dominant environmental parameters include the volume concentration of hydrogen sulfide gas, then the image data whose image degradation cost is greater than the preset compensation trigger threshold is compensated and enhanced using a preset hyperspectral data compensation algorithm based on prior absorption spectra, so as to obtain an enhanced image. S45. If the dominant environmental parameter includes ambient light intensity, then the image data whose image degradation cost is greater than the preset compensation trigger threshold is compensated and enhanced using a preset adaptive tone mapping algorithm or a preset backlight compensation algorithm to obtain an enhanced image.

[0012] Optionally, the multimodal image data includes image data from three image modalities: visible light image data, thermal radiation image data, and hyperspectral image data. The formula for calculating the fusion weight is as follows: ; Among them, W i Let λ represent the fusion weight corresponding to the i-th image modality, and let λ represent the preset weight adjustment factor. (IDC) i,enhanced The image degradation cost is represented by vis, where vis represents the image mode corresponding to the visible light image data, ir represents the image mode corresponding to the thermal radiation image data, and hyp represents the image mode corresponding to the hyperspectral image data. IDC j,enhanced This represents the image degradation cost corresponding to the enhanced image of the j-th image modality.

[0013] Optionally, step S6 includes: S61. For each image modality, Gaussian blur and downsampling are applied to the enhanced image corresponding to the image modality to obtain a Gaussian pyramid. Then, the image of each layer in the Gaussian pyramid is upsampled and subtracted from the image of the layer above it to obtain multiple Laplacian image layers and a low-frequency residual image. Multiple Laplacian image layers form a Laplacian pyramid. S62. Based on the fusion weights, fuse all Laplacian image layers corresponding to the same layer of the Laplacian pyramid to obtain multiple fused image layers. S63. All low-frequency residual images are fused according to the fusion weights to obtain a fused low-frequency residual image; all fused image layers and the fused low-frequency residual image constitute a fused Laplacian pyramid. S64. Perform an inverse transformation on the fused Laplacian pyramid to obtain the target inspection image.

[0014] Secondly, this application provides an electronic device including a processor and a memory, the memory storing computer-readable instructions that, when executed by the processor, perform the steps of the method provided in the first aspect above.

[0015] Thirdly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the method provided in the first aspect above.

[0016] As can be seen from the above, the multimodal image fusion method, device and medium for explosion-proof inspection drones provided in this application can perceive and model the external physical environment that causes image degradation in real time and quantitatively, thereby determining which sensor is more reliable in the current environment, and performing root cause compensation for degradation caused by specific environmental factors. This effectively solves the problems of unstable performance, missed detection and high risk of false alarms of existing drone vision systems in real complex industrial environments, significantly improves the accuracy and reliability of inspection, and provides solid technical support for the large-scale automated application of explosion-proof inspection drones. Attached Figure Description

[0017] Figure 1 A flowchart illustrating a multimodal image fusion method for an explosion-proof inspection drone provided in this application embodiment.

[0018] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0019] Reference numerals: 101, processor; 102, memory; 103, communication bus. Detailed Implementation

[0020] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0021] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0022] Firstly, such as Figure 1 As shown, this application provides a multimodal image fusion method for explosion-proof inspection drones, which includes the following steps: S1. Acquire multi-source environmental parameters and multi-modal image data of the inspection environment; multi-source environmental parameters include various types of environmental parameters, and multi-modal image data includes image data of various image modalities; S2. For each image modality, calculate the environmental degradation score based on the multi-source environmental parameters, and calculate the image quality score based on the image data corresponding to the image modality. Then, calculate the image degradation cost based on the environmental degradation score and the image quality score. S3. For each image modality, analyze whether the image degradation cost is greater than the preset compensation trigger threshold. If yes, proceed to step S4. If no, perform basic enhancement on the image data corresponding to the image modality to obtain an enhanced image. S4. Identify the dominant environmental parameter that causes environmental degradation from the multi-source environmental parameters, and call the preset image compensation algorithm corresponding to the dominant environmental parameter to compensate and enhance the image data to obtain an enhanced image; S5. Recalculate the image degradation cost corresponding to each enhanced image, and determine the fusion weight corresponding to each enhanced image based on the recalculated image degradation cost; S6. Fuse all enhanced images according to all fusion weights to obtain the target inspection image.

[0023] To facilitate understanding, some key terms in this embodiment are explained below. The multi-source environmental parameters in this embodiment refer to various types of environmental parameters acquired in the inspection environment, such as relative humidity, PM2.5 mass concentration, hydrogen sulfide gas volume concentration, ambient air temperature, and ambient light intensity. These parameters reflect the physical environmental conditions at the inspection site, providing a data basis for assessing the degree of image degradation and identifying its causes. The multimodal image data in this embodiment refers to image data of various image modalities acquired by sensors with different imaging principles, such as visible light image data, thermal radiation image data, and hyperspectral image data. Each modality of image data reflects information about the inspection target from different dimensions, but their sensitivity to environmental factors varies. The environmental degradation score in this embodiment is a score calculated based on the multi-source environmental parameters, used to quantify the potential impact of environmental factors on image quality. The higher the score, the greater the potential deterioration effect of the environment on image quality. The image quality score in this embodiment is a score calculated based on the image data itself, used to quantify the actual visual quality or information completeness of the image. The lower the score, the worse the actual image quality. The image degradation cost in this embodiment refers to a comprehensive index calculated by combining environmental degradation score and image quality score. It is used to comprehensively evaluate the degree of image degradation due to environmental influence and its own quality decline. The higher the cost, the more severe the image degradation. The preset compensation trigger threshold in this embodiment refers to a preset critical value used to determine whether the image degradation cost has reached the threshold for compensation enhancement processing. When the image degradation cost exceeds this threshold, the system will initiate a targeted compensation enhancement process. The dominant environmental parameter in this embodiment refers to the environmental factor identified as the most significant cause of current image degradation among multi-source environmental parameters. Identifying the dominant environmental parameter is key to achieving targeted compensation enhancement. The preset image compensation algorithm in this embodiment refers to an image processing algorithm pre-set and stored for a specific dominant environmental parameter. Each algorithm aims to effectively eliminate or mitigate image degradation caused by the corresponding dominant environmental parameter. The enhanced image in this embodiment refers to image data whose image quality has been improved after conventional basic enhancement (e.g., enhancing the image using existing adaptive histogram equalization algorithms) or compensation enhancement processing. In this embodiment, the fusion weight refers to the weight coefficient assigned to the enhanced images of different image modalities during the multimodal image fusion process. The larger the weight, the higher the contribution of that modal image to the final fusion result. The target inspection image in this embodiment refers to the final image obtained after multimodal image fusion processing. This image integrates the effective information from each modal image, possessing higher reliability and clarity, and is used for explosion-proof inspection tasks.

[0024] This application provides a multimodal image fusion method for explosion-proof inspection drones, which aims to solve the problem of multimodal image degradation in complex industrial environments and improve the reliability of inspection images.

[0025] First, this method acquires multi-source environmental parameters and multi-modal image data of the inspection environment. In practical applications, this can be achieved by equipping the explosion-proof inspection drone with various sensors. For example, high-precision digital temperature and humidity sensors, laser scattering particulate matter sensors, electrochemical gas sensors, and gas detection modules can be configured to acquire in real time various types of environmental parameters (multi-source environmental parameters) such as relative humidity, PM2.5 mass concentration, hydrogen sulfide gas volume concentration, ambient air temperature, and ambient light intensity. Simultaneously, the drone can be equipped with visible light cameras, thermal imaging cameras, and hyperspectral imagers to acquire image data of various image modalities, including visible light image data, thermal radiation image data, and hyperspectral image data (multi-modal image data).

[0026] Secondly, for each image modality, an environmental degradation score is calculated based on multi-source environmental parameters, and an image quality score is calculated based on the corresponding image data. Then, the image degradation cost is calculated based on both the environmental degradation score and the image quality score. For example, for the visible light image modality, an environmental degradation score can be calculated based on parameters such as the current environmental PM2.5 concentration and relative humidity, combined with a preset weighting. Simultaneously, an image quality score can be calculated by analyzing indicators such as contrast, sharpness, and structural similarity of the visible light image. Finally, these two scores are weighted and combined to obtain the image degradation cost of the visible light image. This comprehensive evaluation method can more fully reflect the actual degradation of the image, avoiding the limitations of single-dimensional evaluation.

[0027] Next, for each image modality, the image degradation cost is analyzed to see if it exceeds a preset compensation trigger threshold. If the image degradation cost exceeds the preset compensation trigger threshold, subsequent compensation and enhancement steps are executed; if the image degradation cost does not exceed the preset compensation trigger threshold, basic enhancement is performed on the image data corresponding to that image modality to obtain an enhanced image. For example, if the image degradation cost of a certain image modality is low, it indicates that it is not significantly affected by the environment and its own quality is acceptable. In this case, only conventional image enhancement processing, such as brightness and contrast adjustment or simple noise reduction, can be performed to improve the visual effect, or the image data of that image modality can be used directly. This off-processing strategy can avoid unnecessary complex compensation for mildly degraded images and improve processing efficiency.

[0028] Then, when the image degradation cost exceeds a preset compensation trigger threshold, the dominant environmental parameters causing environmental degradation are identified from the multi-source environmental parameters. A preset image compensation algorithm corresponding to the dominant environmental parameter is then invoked to compensate and enhance the image data, resulting in an enhanced image. For example, if the relative humidity and PM2.5 concentration are both higher than their corresponding preset thresholds, they are identified as dominant environmental parameters, and a penetration algorithm based on a multispectral physical scattering model is invoked to compensate and enhance the image data. If the ambient air temperature is higher than its corresponding preset threshold, it is identified as a dominant environmental parameter, and a thermal image correction algorithm based on radiometric calibration and local adaptive nonlinear stretching is invoked to compensate and enhance the image data. If the hydrogen sulfide gas volume concentration is higher than its corresponding preset threshold, it is identified as a dominant environmental parameter, and a hyperspectral data compensation algorithm based on prior absorption spectra is invoked to compensate and enhance the image data. If the ambient light intensity is higher than its corresponding preset threshold (overexposure or backlighting), it is identified as a dominant environmental parameter, and an adaptive tone mapping algorithm or backlight compensation algorithm is invoked to compensate and enhance the image data. This targeted compensation strategy can fundamentally solve the image degradation problem caused by specific environmental factors, significantly improving image quality.

[0029] Subsequently, the image degradation cost for each enhanced image is recalculated, and the fusion weight for each enhanced image is determined based on the recalculated image degradation cost. After a slightly degraded image undergoes basic enhancement or a moderately to highly degraded image undergoes compensatory enhancement, the quality of all images is usually improved (i.e., the image quality score of the enhanced image differs from that of the original image data), thus requiring a reassessment of its degradation cost. Based on the new image degradation cost, each enhanced image is assigned a fusion weight; the lower the degradation cost of the enhanced image, the higher its fusion weight, indicating that the information it contributes during the fusion process is more reliable. It should be understood that the calculation method for the image degradation cost of the enhanced image is the same as that for the original image data.

[0030] Finally, all enhanced images are fused according to all fusion weights to obtain the target inspection image. The fusion process can employ multi-scale decomposition and weighted fusion methods. For example, each enhanced image is Gaussian blurred and downsampled to obtain a Gaussian pyramid, and then upsampled and subtracted to obtain a Laplacian pyramid. Next, all Laplacian image layers corresponding to the same layer of the Laplacian pyramid are fused according to the fusion weights, and all low-frequency residual images are also fused. Finally, an inverse transform is performed on the fused Laplacian pyramid to reconstruct the final target inspection image. This fusion method can effectively integrate the detailed and overview information of images from different modalities, generating high-quality inspection images.

[0031] The following example provides a more detailed explanation of the above technical solution: Suppose a drone is conducting an explosion-proof inspection in a petrochemical area. During the inspection, the drone enters an area filled with steam and accompanied by a hydrogen sulfide gas leak. At this time, the sensors on the drone will acquire multi-source environmental parameters and multi-modal image data in real time. Specifically, the miniature weather station and gas detection module will measure the relative humidity (e.g., 95%), PM2.5 mass concentration (e.g., 50 µg / m³), hydrogen sulfide gas volume concentration (e.g., 10 ppm), ambient air temperature (e.g., 40°C), and ambient light intensity (e.g., 500 lux). Simultaneously, a visible light camera, a thermal imaging camera, and a hyperspectral imager will acquire visible light image data, thermal radiation image data, and hyperspectral image data, respectively.

[0032] Next, the system will calculate the image degradation cost for each of the three image modes: visible light, thermal radiation, and hyperspectral. For visible light images, the environmental degradation score will be high due to high humidity and the presence of PM2.5; at the same time, the image itself may suffer from blurring and decreased contrast, resulting in a lower image quality score, ultimately leading to a high image degradation cost for visible light images. For thermal radiation images, although less affected by steam, they may be affected by ambient temperature and background heat sources, resulting in a moderate environmental degradation score and image quality score, and a correspondingly moderate image degradation cost. For hyperspectral images, the selective absorption of hydrogen sulfide gas, along with the presence of high humidity and PM2.5, will result in a high environmental degradation score and potentially a low image quality score, leading to a high image degradation cost for hyperspectral images.

[0033] Subsequently, the system analyzes whether the image degradation cost for each image modality exceeds a preset compensation trigger threshold. Assuming the degradation cost for visible light and hyperspectral images both exceed the threshold, while the degradation cost for thermal radiation images does not, the thermal radiation image will directly undergo adaptive histogram equalization to obtain an enhanced thermal radiation image. For visible light and hyperspectral images, the system will proceed to a compensation enhancement process. In this process, the system identifies the dominant environmental parameters causing degradation from multiple environmental sources. For visible light images, due to high relative humidity and PM2.5 concentration, these are identified as dominant environmental parameters. The system will then invoke a penetration algorithm based on a multispectral physical scattering model to compensate and enhance the visible light image data, effectively removing the effects of haze and water vapor to obtain an enhanced visible light image. For hyperspectral images, due to the high volume concentration of hydrogen sulfide gas, as well as the high relative humidity and PM2.5 mass concentration, these factors are identified as the dominant environmental parameters. The system will call the penetration algorithm based on the multispectral physical scattering model and the hyperspectral data compensation algorithm based on the prior absorption spectrum to compensate and enhance the hyperspectral image data, so as to eliminate the absorption interference of hydrogen sulfide gas on the spectral curve and obtain an enhanced hyperspectral image.

[0034] After all image modalities have undergone enhancement, the system recalculates the image degradation cost for each enhanced image. Due to targeted compensation enhancement, the degradation cost of enhanced visible light and hyperspectral images is significantly reduced, while the degradation cost of enhanced thermal radiation images may also be slightly improved. Based on these recalculated degradation costs, the system determines the fusion weight for each enhanced image. For example, enhanced thermal radiation images, due to their lower image degradation cost, receive a higher fusion weight; while the image degradation cost of compensated enhanced visible light and hyperspectral images is greater than that of enhanced thermal radiation images, therefore the fusion weight of enhanced images for these two image modalities is lower than that of enhanced thermal radiation images.

[0035] Finally, the system will fuse all enhanced images according to these fusion weights to obtain the target inspection image. The fusion process will utilize multi-scale decomposition and weighted fusion techniques to integrate the effective information from different modalities of the images. For example, through Laplacian pyramid decomposition, the image is decomposed into different frequency layers, and then weighted fusion is performed on each frequency layer according to the fusion weights. Finally, the final fused image is reconstructed by inverse transformation. This target inspection image will integrate the texture details of the visible light image (after compensation), the temperature distribution information of the thermal radiation image, and the material identification capability of the hyperspectral image (after compensation), thereby providing a clear, reliable, and information-rich inspection result to help operators accurately judge the equipment condition and potential hazards.

[0036] The aforementioned technical solution, by combining environmental perception and image quality assessment, achieves targeted degradation compensation and adaptive weighted fusion, fundamentally solving the blind fusion problem of existing fusion methods and improving the reliability of fused inspection images in complex environments. Traditional multimodal image fusion methods largely focus on designing better feature extractors and fusion rules to improve the visual quality of fused images under ideal conditions or the performance of specific tasks. However, these methods treat image degradation as a given and attempt to perform "post-hoc" repair or trade-offs at the image level, lacking the ability to perceive and model the "external physical environment that causes image degradation" in real time and quantitatively. Therefore, when environmental interference changes drastically, these methods cannot fundamentally determine "which sensor is more reliable in the current environment," nor can they provide root-cause compensation for "what specific environmental factors caused the degradation."

[0037] This application, by simultaneously acquiring multiple types of environmental parameters and multimodal image data in step S1, provides a complete data foundation for subsequent analysis of image degradation from the perspective of environmental root causes. This changes the existing approach of relying solely on the image itself to analyze degradation, achieving a combination of external environmental information and image information. In the example above, traditional methods may fail to recognize the severe impact of vapor and hydrogen sulfide gas on visible light and hyperspectral images, potentially assigning undue weight to these severely degraded images and contaminating the fusion result. This application, however, can perceive these environmental parameters in real time and incorporate them into the evaluation of image degradation costs.

[0038] In step S2, this application calculates an environmental degradation score for each image modality by combining multi-source environmental parameters, then calculates an image quality score based on the image data for that modality, and finally combines the two scores to obtain the image degradation cost. This approach simultaneously evaluates the degree of degradation from both environmental factors and actual image quality perspectives. It covers the potential impact of the external environment on imaging and reflects the actual degradation situation of the image, resulting in a more comprehensive and accurate degradation evaluation and avoiding biases caused by single-dimensional evaluation. In the example above, this comprehensive evaluation enables the system to accurately identify high degradation costs of visible light and hyperspectral images under specific environments, rather than solely based on the blurriness of the image itself.

[0039] In steps S3 and S4, this application compares the image degradation cost with a preset compensation trigger threshold for each image modality and selects different enhancement processing paths based on the comparison results. For images whose degradation level does not reach the trigger threshold, basic enhancement is performed directly. This ensures overall processing efficiency, avoids unnecessary complex compensation operations on mildly degraded images, and meets the enhancement needs of mildly degraded images. For images whose degradation level exceeds the trigger threshold, the dominant environmental parameter causing degradation is identified from multi-source environmental parameters, and a preset image compensation algorithm corresponding to the dominant environmental parameter is called to perform compensation enhancement. This achieves customized compensation enhancement for the root environmental factors causing image degradation, solving the problem that general enhancement algorithms cannot adapt to the complex situation of multiple degradation factors coupled in industrial scenarios, and can eliminate the degrading effect of corresponding environmental factors on image quality from the root. In the above example, traditional methods may only apply general dehazing or denoising algorithms to all images, but cannot compensate for the specific absorption of hyperspectral data by hydrogen sulfide gas. This application, however, can identify hydrogen sulfide as the dominant environmental parameter and call a specialized hyperspectral data compensation algorithm, thereby fundamentally restoring the reliability of hyperspectral data.

[0040] In steps S5 and S6, after completing the enhancement processing of all images, this application recalculates the image degradation cost corresponding to each enhanced image. Then, based on the recalculated degradation cost, it determines the fusion weight corresponding to each enhanced image. Assigning fusion weights based on the actual degradation level after enhancement ensures that sensor images with lower degradation levels and higher reliability in the current environment receive higher fusion weights, avoiding contamination of the final fusion result by failed sensor images. All enhanced images are fused according to the determined fusion weights to obtain the target inspection image (equivalent to a fused image). The fusion weights obtained based on the actual degradation level can more reasonably integrate the effective information of different modal images, ultimately resulting in a clear and reliable target inspection image that meets the needs of industrial inspection tasks. In the above example, the degradation cost of the compensated and enhanced visible light and hyperspectral images is significantly reduced, thus obtaining more reasonable weights during fusion. This avoids the problem in traditional methods where the information is underestimated or contaminated by the poor quality of the original image. The final fused image will be clearer and more complete than images generated by traditional methods, significantly improving the accuracy and reliability of explosion-proof inspection.

[0041] In some preferred embodiments, step S1 includes: S11. Acquire multi-source environmental parameters and multimodal image data of the inspection environment; S12. Perform timestamp alignment, spatial coarse registration, and lens distortion correction on the image data of each image modality in the multimodal image data.

[0042] Step S12 involves performing timestamp alignment, coarse spatial registration, and lens distortion correction on the image data of each image modality in the multimodal image data. Timestamp alignment refers to synchronizing the image data acquired by different sensors in the time dimension to ensure that the image data of all modalities correspond to the scene at the same moment. This can be achieved through a hardware-level synchronization triggering mechanism, such as using the pulse-second signal (PPS) of GPS as a unified clock source to synchronously trigger all imaging sensors to acquire data; or through a software-level timestamp interpolation algorithm, that is, adjusting the image data to a unified time reference based on the asynchronous timestamps recorded by each sensor through linear or nonlinear interpolation methods. Coarse spatial registration refers to performing preliminary alignment of the image data acquired by different sensors in the spatial dimension, so that the position of the same physical target in the image roughly matches the position in different modal images. One way to achieve this is to use pre-calibrated sensor extrinsic parameters (such as relative position and attitude) and geometric transformations (such as rotation and translation) to project the different modal images onto the same coordinate system. Lens distortion correction refers to eliminating the influence of inherent optical distortion of camera lenses on the geometry of images, restoring the true shape of objects in the image. This is typically achieved by obtaining distortion parameters through camera calibration. For example, offline calibration can be performed using a calibration board such as a checkerboard to calculate the radial and tangential distortion coefficients of the camera. Then, after image acquisition, these coefficients are used to construct a distortion model, and the original image is inversely transformed to eliminate distortion. It should be understood that the timestamp alignment, spatial coarse registration, and lens distortion correction in this embodiment are all implemented using existing technologies.

[0043] This scheme performs a series of preprocessing operations immediately after acquiring the raw multimodal image data, thereby providing accurate input for subsequent image degradation evaluation, targeted compensation, and multimodal fusion, ensuring the accuracy and reliability of the final target inspection image output by the entire method. First, step S11 ensures that all necessary multi-source environmental parameters and multimodal image data are completely acquired, laying the data foundation for all subsequent analysis and processing. Based on this, step S12 systematically corrects the inherent acquisition bias of the multimodal image data. Specifically, timestamp alignment solves the problem of asynchronous imaging time from different sensors, ensuring consistency of all modal images in the time dimension, making subsequent analysis and image fusion of the environmental state at the same moment more accurate. The spatial coarse-matching criterion solves the spatial misalignment problem caused by differences in sensor installation positions and shooting angles. By initially aligning the pixel positions of the same actual target in different modal images, it avoids blurring or target misalignment that may occur during the fusion process. Lens distortion correction corrects the inherent optical distortion of the imaging lens itself, restoring the true geometric shape of objects in the image and eliminating interference caused by lens errors to subsequent image analysis and fusion. Through these preprocessing steps, the original multimodal image data is calibrated in terms of time, space, and geometry, which greatly improves the reliability and consistency of the data. This allows subsequent image degradation cost calculations, compensation enhancements, and final fusion operations based on this data to be built on a more accurate and reliable foundation, thereby effectively improving the quality and accuracy of the final target inspection image and solving the technical problem of unreliable fusion results caused by deviations in the original data.

[0044] In some preferred embodiments, step S2 includes: S21. For each image modality, obtain the preset environmental parameter weight combination corresponding to the image modality, and then calculate the environmental degradation score based on the preset environmental parameter combination and multi-source environmental parameters; the preset environmental parameter weight combination includes the preset environmental weights corresponding to each type of environmental parameter in the multi-source environmental parameters; S22. For each image modality, obtain the standard deviation of background region pixels of the image data corresponding to that image modality, and calculate the contrast-to-noise ratio based on the background pixel standard deviation; S23. For each image mode, divide the image data corresponding to the image mode into multiple image blocks, and calculate the measurement error based on the maximum and minimum pixel values ​​of each image block. S24. For each image modality, obtain the actual image mean and actual image standard deviation of the image data corresponding to the image modality, and obtain the reference image mean and reference image standard deviation of the preset reference image corresponding to the image modality. Then, calculate the structural similarity index based on the actual image mean, actual image standard deviation, reference image mean, reference image standard deviation, and the covariance between the image data corresponding to the image modality and the preset reference image. S25. For each image modality, calculate the image quality score based on the contrast-to-noise ratio, measurement error, and structural similarity index corresponding to that image modality, and then calculate the image degradation cost based on the environmental degradation score and image quality score corresponding to that image modality.

[0045] For each image modality, a pre-defined combination of environmental parameter weights is obtained. This combination aims to quantify the influence of different environmental parameters on a specific image modality. For example, visible light images are sensitive to relative humidity, PM2.5 concentration, and ambient light intensity, while thermal radiation images are sensitive to ambient air temperature. Therefore, the image modality corresponding to visible light images is assigned higher weights for relative humidity, PM2.5 concentration, and ambient light intensity, while the image modality corresponding to thermal radiation images is assigned a higher weight for ambient air temperature. These weights can be set based on expert experience, for example, by domain experts evaluating and assigning values ​​to the influence of different environmental factors under different imaging principles; or by learning through data-driven methods, such as using machine learning algorithms (existing technology, the working principle of which will not be discussed in detail here) to analyze a large amount of image data collected under different environmental conditions and their corresponding environmental parameters, thereby automatically optimizing the weights of each environmental parameter.

[0046] The standard deviation of background region pixels in image data is obtained, and the contrast-to-noise ratio is calculated accordingly. This aims to measure the distinguishability between the target and the background in an image. The standard deviation of background region pixels can reflect the noise level or texture complexity of the background region. The contrast-to-noise ratio can be calculated in various ways, for example, by dividing the difference between the mean pixel value of the target region and the mean pixel value of the background region by the standard deviation of the background region pixels.

[0047] Image data is divided into multiple image blocks, and the measurement error is calculated based on the maximum and minimum pixel values ​​of each block. This aims to assess the dynamic range and information loss in local image regions. Image blocks can be divided using a fixed-size grid, such as uniformly dividing the image into 8x8 or 16x16 sub-blocks. The calculation of measurement error typically involves the extreme differences in pixel values ​​within an image block; for example, the logarithm of the ratio of the maximum to the minimum pixel value within the block can be used to reflect local contrast or information content.

[0048] The method acquires the actual image mean and standard deviation, as well as the reference image mean and standard deviation of a preset reference image, and calculates the structural similarity index by combining their covariance. This aims to evaluate image quality from the perspective of structural information fidelity. The actual image mean and standard deviation reflect the brightness and contrast information of the current image, while the reference image is typically a non-degradable or high-quality image under ideal conditions. For example, using a drone under clear weather conditions with no visible environmental interference, a set of high-quality images can be acquired for a certain area, and this set of images can be used as a baseline reference map for that area and stored.

[0049] Finally, an image quality score is calculated based on the contrast-to-noise ratio, measurement error, and structural similarity index, and the image degradation cost is calculated in conjunction with the environmental degradation score. The image quality score can be calculated using a weighted average method, linearly combining the three indicators; alternatively, weights can be pre-set for the contrast-to-noise ratio, measurement error, and structural similarity index, and then a weighted summation method can be used to combine these three indicators.

[0050] This scheme refines the calculation process of image degradation cost into multiple interrelated steps, providing a comprehensive and quantitative evaluation from two dimensions: external environmental influence and internal image quality. First, by matching specific preset environmental parameter weight combinations to each image modality and combining multi-source environmental parameters to calculate the environmental degradation score, it accurately reflects the differentiated impact of different environmental factors on different image modalities, avoiding the evaluation bias caused by uniform weights in traditional methods. Second, by introducing three multi-dimensional image quality indicators—contrast-to-noise ratio, measurement error, and structural similarity index—it quantitatively evaluates the image's own quality from the perspectives of target distinguishability (contrast), local information loss (sharpness), and structural similarity. The contrast-to-noise ratio directly reflects the distinguishability between the target and the background in the image; measurement error captures the pixel information loss caused by degradation in local areas, supplementing the overall quality evaluation; and the structural similarity index accurately reflects the distortion of image structural information caused by degradation, ensuring the preservation of key structural information during the fusion process. Finally, the environmental degradation score and image quality score are weighted and combined to obtain a comprehensive image degradation cost, thus comprehensively and accurately reflecting the current actual degradation degree of the image modality. This multi-dimensional, hierarchical evaluation mechanism provides accurate and reliable quantitative basis for subsequent image enhancement, compensation trigger judgment, and fusion weight allocation, significantly improving the intelligence and adaptability of explosion-proof inspection drones in image processing in complex and harsh industrial environments.

[0051] In some preferred embodiments, the formula for calculating the environmental degradation score is as follows: ; Among them, EnvScorei w represents the environmental degradation score corresponding to the i-th image modality, N represents the number of environmental parameter types included in the multi-source environmental parameters, and w i,k This represents the preset environmental weights corresponding to the environmental parameters of the i-th image modality and the k-th type. (These weights are preferably obtained through prior experimental calibration. Specifically, in a controlled environment simulation chamber, a single environmental parameter (such as humidity) is changed, and the decrease in image quality indicators (such as sharpness) for each modality is observed. The greater the decrease, the greater the weight assigned.) (the larger), e k Represents the k-th type of environment parameter, e k,min e represents the minimum preset parameter value corresponding to the k-th type of environmental parameter. k,max This represents the maximum preset parameter value corresponding to the k-th type of environmental parameter; The formula for calculating the contrast-to-noise ratio is: ; Among them, CNR i μ represents the contrast-to-noise ratio corresponding to the i-th image modality. obj μ represents the mean value of the preset target pixels corresponding to the i-th image modality (for thermal imaging, it is the temperature value; for visible light, it is the gray value or the intensity of a certain color channel). bg Let σ represent the mean pixel value of the preset background region corresponding to the i-th image modality (for thermal imaging, it is the temperature value; for visible light, it is the grayscale value or the intensity of a certain color channel). bg This represents the standard deviation of background pixels in the image data corresponding to the i-th image modality; The formula for calculating measurement error is: ; Among them, EME i Let I represent the measurement error corresponding to the i-th image mode, m×n represent the total number of image patches, and I max (k,l) represents the maximum pixel value of the (k,l)th image block, I min (k,l) represents the minimum pixel value of the (k,l)th image block, and c represents the preset anti-overflow coefficient (preferably 1). The formula for calculating the structural similarity index is: ; Among them, SSIM refi μ represents the structural similarity index corresponding to the i-th image modality. Ii μ represents the actual image mean of the image data corresponding to the i-th image modality. Iref σ represents the mean value of the reference image corresponding to the preset reference image for the i-th image mode. Iiσ represents the actual image standard deviation of the image data corresponding to the i-th image modality. Iref σ represents the standard deviation of the reference image corresponding to the preset reference image for the i-th image mode. IiIref C1 represents the covariance between the image data corresponding to the i-th image mode and the preset reference image, C2 represents the first preset stability constant, and C2 represents the second preset stability constant. The formula for calculating image quality score is: ; Among them, QualScore i The image quality score corresponding to the i-th image modality is represented by α, β and γ, which represent the first preset normalized weight coefficient, the second preset normalized weight coefficient and the third preset normalized weight coefficient, respectively (α+β+γ=1). The formula for calculating the cost of image degradation is: ; Among them, IDC i ω represents the image degradation cost corresponding to the i-th image modality, and ω represents the preset environmental factor dominant weight coefficient (with a value range of [0.6, 0.8]).

[0052] In some preferred embodiments, the multi-source environmental parameters include five types of environmental parameters: relative humidity, PM2.5 mass concentration, hydrogen sulfide gas volume concentration, ambient air temperature, and ambient light intensity. Relative humidity refers to the ratio of water vapor content to saturated water vapor content in the air, and is an indicator of air humidity; it can be measured in real time using a high-precision digital temperature and humidity sensor. PM2.5 mass concentration refers to the mass of particulate matter with a diameter of 2.5 micrometers or less per unit volume of air; it is an important indicator of air pollution levels and can be detected in real time using a laser scattering particulate sensor. Hydrogen sulfide gas volume concentration refers to the percentage of hydrogen sulfide gas in the air by volume; it is an important indicator of toxic and harmful gas leaks and can be accurately detected using an electrochemical gas sensor. Ambient air temperature refers to the temperature of the surrounding air and is an important environmental factor affecting equipment operation and imaging quality; it can be measured in real time using a high-precision digital temperature and humidity sensor. Ambient light intensity refers to the luminous flux received per unit area, reflecting the brightness of the environment and directly affecting visible light imaging quality; it can be measured using a high-precision optical sensor.

[0053] In some preferred embodiments, step S4 includes: S41. If the ambient relative humidity is greater than the preset relative humidity, then the ambient relative humidity is marked as the dominant environmental parameter causing environmental degradation. If the PM2.5 mass concentration is greater than the preset mass concentration, then the PM2.5 mass concentration is marked as the dominant environmental parameter causing environmental degradation. If the hydrogen sulfide gas volume concentration is greater than the preset volume concentration, then the hydrogen sulfide gas volume concentration is marked as the dominant environmental parameter causing environmental degradation. If the ambient air temperature is greater than the preset air temperature, then the ambient air temperature is marked as the dominant environmental parameter causing environmental degradation. If the ambient light intensity is greater than the preset light intensity, then the ambient light intensity is marked as the dominant environmental parameter causing environmental degradation. S42. If the dominant environmental parameters include relative humidity and PM2.5 concentration, then a preset penetration algorithm based on a multispectral physical scattering model is used to compensate and enhance image data whose image degradation cost exceeds a preset compensation trigger threshold, so as to obtain an enhanced image. S43. If the dominant environmental parameter includes ambient air temperature, then the image data whose image degradation cost is greater than the preset compensation trigger threshold is compensated and enhanced using a preset thermal image correction algorithm based on radiometric calibration and local adaptive nonlinear stretching to obtain an enhanced image. S44. If the dominant environmental parameters include the volume concentration of hydrogen sulfide gas, then the image data whose image degradation cost is greater than the preset compensation trigger threshold is compensated and enhanced using a preset hyperspectral data compensation algorithm based on prior absorption spectra, so as to obtain an enhanced image. S45. If the dominant environmental parameter includes ambient light intensity, then the image data whose image degradation cost is greater than the preset compensation trigger threshold is compensated and enhanced using a preset adaptive tone mapping algorithm or a preset backlight compensation algorithm to obtain an enhanced image.

[0054] In step S41, by comparing the acquired multi-source environmental parameters (such as relative humidity, PM2.5 mass concentration, hydrogen sulfide gas volume concentration, ambient air temperature, and ambient light intensity) with their respective preset thresholds, one or more dominant environmental parameters currently causing image degradation can be accurately identified. For example, when the relative humidity exceeds a certain preset relative humidity threshold, it can be determined that humidity is one of the main causes of current image degradation. The purpose of this step is to achieve refined analysis of complex environmental factors, providing a basis for subsequent targeted compensation.

[0055] In steps S42 to S45, specific preset image compensation algorithms are invoked for different dominant environmental parameters or combinations thereof. For example, when relative humidity and PM2.5 concentration are identified as dominant environmental parameters (if other environmental parameters are less than or equal to the corresponding preset thresholds, the image degradation cost of visible light and hyperspectral images will be greater than the preset compensation trigger threshold, while the image degradation cost of thermal radiation images will be less than or equal to the preset compensation trigger threshold), it usually means that the image has been affected by scattering effects such as haze and water vapor. In this case, using a preset penetration algorithm (existing algorithm) based on a multispectral physical scattering model for compensation and enhancement can effectively remove scattering effects and improve image clarity and contrast. This algorithm simulates the propagation and scattering process of light in a medium to invert and obtain a clear image without haze or water vapor. That is, step S42 is equivalent to using a preset penetration algorithm based on a multispectral physical scattering model to compensate and enhance visible light and hyperspectral images.

[0056] When ambient air temperature is the dominant environmental parameter (if other environmental parameters are all less than or equal to the corresponding preset thresholds, the image degradation cost of the thermal radiation image alone will exceed the preset compensation trigger threshold), temperature changes in the thermal radiation image data will significantly affect the image's radiation characteristics and grayscale distribution. In this case, using a preset thermal image correction algorithm (an existing algorithm) based on radiometric calibration and local adaptive nonlinear stretching for compensation and enhancement can correct the radiometric distortion of the thermal radiation image and perform adaptive nonlinear stretching according to the characteristics of the local region, thereby improving the visual effect and information expression capability of the thermal image. That is, step S43 is equivalent to using a preset thermal image correction algorithm based on radiometric calibration and local adaptive nonlinear stretching to compensate and enhance the thermal radiation image.

[0057] When the volume concentration of hydrogen sulfide gas is the dominant environmental parameter (if other environmental parameters are all less than or equal to the corresponding preset thresholds, the image degradation cost of the hyperspectral image alone will exceed the preset compensation trigger threshold), the hyperspectral image data may be affected by specific gas absorption spectral lines. Using a preset hyperspectral data compensation algorithm based on prior absorption spectra (an existing algorithm), the absorption-affected bands in the hyperspectral image data can be accurately compensated according to the known absorption spectral characteristics of hydrogen sulfide, thereby eliminating the interference caused by gas absorption and restoring the true spectral information of the image. That is, step S44 is equivalent to using a preset hyperspectral data compensation algorithm based on prior absorption spectra to compensate and enhance the hyperspectral image.

[0058] When ambient light intensity is the dominant environmental parameter (if other environmental parameters are all less than or equal to the corresponding preset thresholds, the image degradation cost of the visible light image alone will exceed the preset compensation trigger threshold), the visible light image may face problems such as overexposure, underexposure, or backlighting. In this case, a preset adaptive tone mapping algorithm or a preset backlight compensation algorithm can be flexibly selected for compensation and enhancement. The preset adaptive tone mapping algorithm can adjust according to the overall brightness and local contrast of the image, ensuring good visual effects under different lighting conditions. The preset backlight compensation algorithm is specifically designed for backlight scenes, enhancing dark details and suppressing overexposure in bright areas, thus clearly presenting the details of the backlight image. Step S45 is equivalent to using the preset adaptive tone mapping algorithm or the preset backlight compensation algorithm to compensate and enhance the visible light image.

[0059] The solution in this application introduces threshold judgment for multi-source environmental parameters in step S41, achieving accurate identification of the dominant environmental parameters causing environmental degradation. This refined identification mechanism ensures that subsequent image compensation is no longer blind or generic, but can be targeted based on the specific cause of environmental degradation. For example, when relative humidity and PM2.5 concentration are identified as the dominant factors, the system can accurately determine that image degradation mainly stems from scattering effects, and thus invoke a preset penetration algorithm based on a multispectral physical scattering model specifically designed for scattering effects for compensation. This algorithm, by establishing a physical model, can more accurately invert the degradation process of the image in the scattering medium, thereby achieving more effective defogging or devastation effects.

[0060] Similarly, for different dominant environmental parameters such as ambient air temperature, hydrogen sulfide gas volume concentration, and ambient light intensity, this application applies preset thermal image correction algorithms, preset hyperspectral data compensation algorithms, and preset adaptive tone mapping algorithms or preset backlight compensation algorithms. These algorithms are all specialized algorithms designed for specific environmental degradation mechanisms. For example, the thermal image correction algorithm can effectively handle radiation distortion in thermal radiation images caused by temperature changes; the hyperspectral data compensation algorithm can accurately eliminate the influence of specific gas absorption on hyperspectral images; and the adaptive tone mapping or backlight compensation algorithm can effectively address image quality problems caused by changes in light intensity. Through this targeted approach, this solution ensures that the selected compensation algorithm is highly matched to the actual cause of image degradation, thereby maximizing the compensation effect and avoiding the problems of insufficient or over-compensation that may occur with general-purpose algorithms.

[0061] Through the above technical solution, this application can achieve more accurate and efficient compensation and enhancement of multimodal image data from explosion-proof inspection drones. Specifically, by thresholding multi-source environmental parameters, the dominant environmental parameters causing image degradation can be accurately identified, avoiding the inefficiency of indiscriminately processing all environmental factors. Furthermore, for different dominant environmental parameters, highly matched professional compensation algorithms are invoked, such as a preset penetration algorithm based on a multispectral physical scattering model, a preset thermal image correction algorithm based on radiometric calibration and local adaptive nonlinear stretching, a preset hyperspectral data compensation algorithm based on prior absorption spectra, and preset adaptive tone mapping algorithms or preset backlight compensation algorithms, ensuring the targeting and effectiveness of the compensation process. This refined compensation strategy significantly improves image clarity, contrast, color reproduction, and information integrity, effectively overcoming the negative impact of environmental factors on image quality, providing high-quality visual data for subsequent image analysis and decision-making, thereby improving the accuracy and reliability of inspections.

[0062] In some preferred embodiments, it is assumed that an explosion-proof inspection drone is conducting an inspection in a chemical plant area. During the inspection, the environmental sensors on the drone acquire multi-source environmental parameters in real time, including relative humidity, PM2.5 mass concentration, hydrogen sulfide gas volume concentration, ambient air temperature, and ambient light intensity. Simultaneously, a multimodal camera acquires visible light image data, thermal radiation image data, and hyperspectral image data. When the drone flies over an area with high humidity and slight smog, the system detects in step S41 that the relative humidity is greater than a preset relative humidity threshold and the PM2.5 mass concentration is greater than a preset mass concentration threshold. At this time, the system marks the relative humidity and PM2.5 mass concentration as the dominant environmental parameters causing image degradation. According to step S42, the system calls a preset penetration algorithm based on a multispectral physical scattering model to compensate and enhance the visible light and hyperspectral image data, effectively removing the scattering effects caused by smog and water vapor, making the outlines of distant equipment clearer. Subsequently, the drone enters a high-temperature equipment area, and the environmental sensors detect that the ambient air temperature is significantly higher than a preset air temperature threshold. At this time, the system marks the ambient air temperature as the dominant environmental parameter. According to step S43, the system invokes a preset thermal image correction algorithm based on radiometric calibration and local adaptive nonlinear stretching to compensate and enhance the thermal radiation image data. This algorithm can correct the radiation distortion of the thermal image caused by the high-temperature environment and optimize the local contrast, enabling the thermal anomalies of the equipment to be identified more accurately. If the drone passes through an area with a hydrogen sulfide gas leak during the inspection, and the environmental sensor detects that the hydrogen sulfide gas volume concentration is greater than a preset volume concentration threshold, the system marks the hydrogen sulfide gas volume concentration as the dominant environmental parameter. According to step S44, the system invokes a preset hyperspectral data compensation algorithm based on prior absorption spectra to compensate and enhance the hyperspectral image data. This algorithm can accurately eliminate the influence of hydrogen sulfide on specific bands of the hyperspectral image based on the absorption spectral characteristics of hydrogen sulfide, thereby restoring the true spectral information and helping to detect gas leaks more accurately. Finally, when the drone conducts inspections in the evening or early morning, when the ambient light intensity is low or there is backlighting, the system detects that the ambient light intensity is lower than a preset light intensity threshold or there is significant uneven lighting. At this point, the system marks the ambient light intensity as the dominant environmental parameter. According to step S45, the system will select either a preset adaptive tone mapping algorithm or a preset backlight compensation algorithm to compensate and enhance the visible light image data, depending on the specific situation. For example, in low-light environments, the adaptive tone mapping algorithm can improve the overall brightness of the image and enhance details; in backlight environments, the backlight compensation algorithm can effectively balance the bright and dark areas, allowing the details in the backlight areas to be clearly presented.

[0063] Through the aforementioned targeted compensation process, image data of different modalities can be effectively enhanced in various complex environments, providing high-quality input for subsequent image fusion and ultimately generating clear and accurate target inspection images.

[0064] In some preferred embodiments, the multimodal image data includes image data from three image modalities: visible light image data, thermal radiation image data, and hyperspectral image data. The formula for calculating the fusion weight is as follows: ; Among them, W i Let λ represent the fusion weight corresponding to the i-th image modality, and let λ represent the preset weight adjustment factor. (IDC) i,enhanced The image degradation cost is represented by vis, where vis represents the image mode corresponding to the visible light image data, ir represents the image mode corresponding to the thermal radiation image data, and hyp represents the image mode corresponding to the hyperspectral image data. IDC j,enhanced This represents the image degradation cost corresponding to the enhanced image of the j-th image modality.

[0065] In some preferred embodiments, step S6 includes: S61. For each image modality, Gaussian blur and downsampling are applied to the enhanced image corresponding to the image modality to obtain a Gaussian pyramid. Then, the image of each layer in the Gaussian pyramid is upsampled and subtracted from the image of the layer above it to obtain multiple Laplacian image layers and a low-frequency residual image. Multiple Laplacian image layers form a Laplacian pyramid. S62. Based on the fusion weights, fuse all Laplacian image layers corresponding to the same layer of the Laplacian pyramid to obtain multiple fused image layers. S63. All low-frequency residual images are fused according to the fusion weights to obtain a fused low-frequency residual image; all fused image layers and the fused low-frequency residual image constitute a fused Laplacian pyramid. S64. Perform an inverse transformation on the fused Laplacian pyramid to obtain the target inspection image.

[0066] Step S61 aims to perform multi-scale decomposition on the input enhanced image. Gaussian blur is an image smoothing technique that reduces image noise and details by convolving with a Gaussian function, making the image blurred. Downsampling reduces the image resolution by decreasing the number of pixels, typically by sampling at regular intervals, such as every other pixel, thus halving the image size. By repeating the Gaussian blur and downsampling operations, a series of images with gradually decreasing size and loss of detail can be generated, which together form a Gaussian pyramid. Each layer of the Gaussian pyramid represents the image at different resolutions; from the bottom layer (original resolution) to the top layer (lowest resolution), the image's detail information is gradually reduced, while the overall contour information is preserved. This process can be implemented by using the `GaussianBlur` function from the OpenCV library for Gaussian smoothing and combining it with the `pyrDown` function for downsampling. After generating the Gaussian pyramid, a Laplacian pyramid needs to be constructed to extract detailed information from the image. Upsampling is the inverse process of downsampling; it restores image resolution by increasing the number of pixels. Interpolation algorithms (such as bilinear interpolation and bicubic interpolation) are typically used to fill in the newly added pixels. The image of a certain layer of the Gaussian pyramid is upsampled to the same size as the layer above it (i.e., the higher-resolution image). Then, pixel-level subtraction is performed between the upsampled image and the previous layer. This subtraction result is the Laplacian image layer, which contains high-frequency detailed information such as edges and textures of the original image at that scale. The top layer of the Gaussian pyramid, since it no longer has a previous layer for subtraction, serves as a low-frequency residual image, representing the most general low-frequency information of the image, i.e., the overall contour and brightness information. This process can be implemented by using the `pyrUp` function in the OpenCV library for upsampling and then performing image subtraction. Through the above operations, for each image modality's enhanced image, a series of Laplacian image layers and a low-frequency residual image can be obtained. These Laplacian image layers are arranged sequentially from high resolution to low resolution according to the scale level they represent, collectively forming a Laplacian pyramid. The Laplacian pyramid is a multi-scale image representation method that decomposes an image into different frequency components, where each Laplacian image layer contains image detail information within a specific frequency range. This decomposition method separates the image's detailed information from its overall information, providing a foundation for subsequent refined fusion.

[0067] After obtaining the Laplacian pyramids for each image modality, these pyramids need to be fused. The fusion weights are calculated based on the image degradation cost, reflecting the reliability of different image modalities in the current environment. For each layer of the Laplacian pyramid, the Laplacian image layers corresponding to all image modalities at that layer are weighted and averaged according to their respective fusion weights. For example, if there are three modalities—visible light, thermal radiation, and hyperspectral—the Laplacian image layers of these three modalities at the same layer are multiplied by their respective fusion weights, and then the results are summed to obtain a fused image layer for that layer. This hierarchical weighted fusion method ensures that the detailed information carried by the more reliable image modalities occupies a larger proportion at different scales, thereby avoiding the contamination of fusion details by degraded modalities. This process can be implemented by using pixel-level weighted summation operations, for example, Where Wi represents the fusion weight corresponding to the i-th image modality. This represents the first fused image layer. This represents the first Laplacian image layer corresponding to the i-th image modality. Besides the Laplacian image layer, the low-frequency residual images of each image modality also need to be fused. The low-frequency residual image represents the overall contour and brightness information of the image. Similar to the fusion of the Laplacian image layer, the low-frequency residual images corresponding to all image modalities are weighted and averaged according to their respective fusion weights to obtain a fused low-frequency residual image. This fusion method ensures that the overall brightness and contour information of the fused image can also reflect the characteristics of the more reliable image modality in the current environment, avoiding the negative impact of the degraded modality on the overall visual effect. By fusing the various Laplacian image layers and the low-frequency residual images, a series of fused image layers and a fused low-frequency residual image are finally obtained. These fused image layers and the fused low-frequency residual image together constitute a complete fused Laplacian pyramid. This fused Laplacian pyramid contains multi-scale information from different modal images, after optimization and weighting, in which both detailed and overall information are reasonably preserved and integrated.

[0068] After constructing the fused Laplacian pyramid, it needs to be inversely transformed back to the original image space to obtain the final target inspection image. The inverse transformation process starts from the top layer of the fused Laplacian pyramid (i.e., the fused low-frequency residual image) and proceeds layer by layer upwards. Specifically, the image of the current layer is upsampled and then added to the fused image layer above, and this process is repeated until the original image size is restored. This inverse transformation process recombines all the fused multi-scale information, ultimately generating a target inspection image with both clear details and accurate overall information. This process can be implemented by starting with the fused low-frequency residual image and performing upsampling and addition operations layer by layer.

[0069] This solution effectively addresses the problems of traditional multimodal image fusion methods in complex industrial inspection scenarios. These methods often fail to distinguish between different scales of image information, easily lose edge and texture details, and cannot simultaneously maintain the overall image contour and local detail information. The traditional approach employs a Laplacian pyramid multi-scale decomposition and layered fusion strategy. First, for each image modality, a Gaussian pyramid is constructed using a series of Gaussian blur and downsampling operations on the enhanced image. Then, multiple Laplacian image layers and a low-frequency residual image are obtained through upsampling and subtraction operations, collectively forming the Laplacian pyramid. The Laplacian image layers specifically capture high-frequency details such as edges and textures at different scales, while the low-frequency residual image preserves the overall image contour and brightness information. This decomposition mechanism effectively separates the original image information into different scale and frequency components, laying the foundation for subsequent refined fusion and preventing interference between information of different scales during the fusion process. After completing the multi-scale decomposition, this method utilizes the fusion weights calculated in previous steps based on environmental degradation scores and image quality scores to perform layered fusion of the Laplacian pyramid. Specifically, for each layer of the Laplacian pyramid, all image modalities are weighted and averaged according to their respective fusion weights in the corresponding Laplacian image layer, resulting in multiple fused image layers. This weighted fusion strategy ensures that at each scale, the detailed information provided by image modalities assessed as having lower degradation and higher reliability in the current complex industrial environment can occupy a larger proportion. For example, in a steam-filled environment, the detailed information of visible light images may be severely degraded, while thermal radiation images may be relatively reliable. In this case, the fusion weight corresponding to thermal radiation images will be higher, and their detailed information will be more fully reflected in the fused image layers, thus effectively avoiding the contamination of the fusion results by degraded details of unreliable modalities. At the same time, low-frequency residual images representing the overall contour and brightness information of the image are also weighted and fused according to the fusion weights to obtain fused low-frequency residual images. This ensures that the overall visual effect and basic information of the fused image originate from a more reliable modality in the current environment, avoiding interference from degenerate information at the overall level. All fused image layers and the fused low-frequency residual image together form the fused Laplacian pyramid. Finally, the constructed fused Laplacian pyramid undergoes an inverse transformation. The inverse transformation process, through layer-by-layer upsampling and addition operations, recombines all the fused multi-scale information to ultimately generate a complete target inspection image. This target inspection image not only combines the advantages of different modal images but also significantly improves detail clarity and overall information integrity, better meeting the stringent requirements of high-quality fused images in complex industrial inspection scenarios.

[0070] Please refer to Figure 2 , Figure 2 This application provides a schematic diagram of the structure of an electronic device according to an embodiment of the present application. The electronic device includes a processor 101 and a memory 102. The processor 101 and the memory 102 are interconnected and communicate with each other via a communication bus 103 and / or other forms of connection mechanisms (not shown). The memory 102 stores computer-readable instructions executable by the processor 101. When the electronic device is running, the processor 101 executes these computer-readable instructions to perform the method in any optional implementation of the above embodiments, thereby achieving the following functions: Step S1: Acquire multi-source environmental parameters and multi-modal image data of the inspection environment; the multi-source environmental parameters include various types of environmental parameters, and the multi-modal image data includes image data of various image modalities; Step S2: For each image modality, calculate an environmental degradation score based on the multi-source environmental parameters, and... Calculate the image quality score based on the image data corresponding to the image modality, and then calculate the image degradation cost based on the environmental degradation score and the image quality score; Step S3: For each image modality, analyze whether the image degradation cost is greater than the preset compensation trigger threshold. If yes, proceed to step S4; otherwise, perform basic enhancement on the image data corresponding to the image modality to obtain an enhanced image; Step S4: Identify the dominant environmental parameter causing environmental degradation from the multi-source environmental parameters, and call the preset image compensation algorithm corresponding to the dominant environmental parameter to compensate and enhance the image data to obtain an enhanced image; Step S5: Recalculate the image degradation cost corresponding to each enhanced image, and determine the fusion weight corresponding to each enhanced image based on the recalculated image degradation cost; Step S6: Fuse all enhanced images according to all fusion weights to obtain the target inspection image.

[0071] This application embodiment also provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it executes the method in any optional implementation of the above embodiments to achieve the following functions: Step S1: Acquire multi-source environmental parameters and multi-modal image data of the inspection environment; the multi-source environmental parameters include various types of environmental parameters, and the multi-modal image data includes image data of various image modalities; Step S2: For each image modality, calculate an environmental degradation score based on the multi-source environmental parameters, and calculate an image quality score based on the image data corresponding to that image modality, and then calculate an image degradation cost based on the environmental degradation score and the image quality score; Step S3: For each For each image modality, analyze whether the image degradation cost exceeds a preset compensation trigger threshold. If so, proceed to step S4; otherwise, perform basic enhancement on the image data corresponding to that image modality to obtain an enhanced image. Step S4: Identify the dominant environmental parameter causing environmental degradation from the multi-source environmental parameters, and call the preset image compensation algorithm corresponding to the dominant environmental parameter to compensate and enhance the image data to obtain an enhanced image. Step S5: Recalculate the image degradation cost corresponding to each enhanced image, and determine the fusion weight corresponding to each enhanced image based on the recalculated image degradation cost. Step S6: Fuse all enhanced images according to all fusion weights to obtain the target inspection image. The computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0072] As can be seen from the above, the multimodal image fusion method, device and medium for explosion-proof inspection drones provided in this application can perceive and model the external physical environment that causes image degradation in real time and quantitatively, thereby determining which sensor is more reliable in the current environment, and performing root cause compensation for degradation caused by specific environmental factors. This effectively solves the problems of unstable performance, missed detection and high risk of false alarms of existing drone vision systems in real complex industrial environments, significantly improves the accuracy and reliability of inspection, and provides solid technical support for the large-scale automated application of explosion-proof inspection drones.

[0073] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of the above units is merely a logical functional division. In practice, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0074] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A multimodal image fusion method for explosion-proof inspection drones, characterized in that, The multimodal image fusion method for the explosion-proof inspection drone includes the following steps: S1. Acquire multi-source environmental parameters and multi-modal image data of the inspection environment; the multi-source environmental parameters include various types of environmental parameters, and the multi-modal image data includes image data of various image modalities; S2. For each of the image modalities, calculate the environmental degradation score based on the multi-source environmental parameters, calculate the image quality score based on the image data corresponding to the image modality, and then calculate the image degradation cost based on the environmental degradation score and the image quality score. S3. For each of the image modalities, analyze whether the image degradation cost is greater than the preset compensation trigger threshold. If yes, proceed to step S4. If no, perform basic enhancement on the image data corresponding to the image modality to obtain an enhanced image. S4. Identify the dominant environmental parameter that causes environmental degradation from the multi-source environmental parameters, and call the preset image compensation algorithm corresponding to the dominant environmental parameter to compensate and enhance the image data to obtain an enhanced image; S5. Recalculate the image degradation cost corresponding to each of the enhanced images, and determine the fusion weight corresponding to each of the enhanced images based on the recalculated image degradation cost; S6. Fuse all the enhanced images according to all the fusion weights to obtain the target inspection image; Step S2 includes: S21. For each of the image modalities, obtain the preset environmental parameter weight combination corresponding to the image modal, and then calculate the environmental degradation score based on the preset environmental parameter combination and the multi-source environmental parameters; the preset environmental parameter weight combination includes the preset environmental weights corresponding to each type of environmental parameter in the multi-source environmental parameters. S22. For each of the image modalities, obtain the standard deviation of background region pixels of the image data corresponding to the image modality, and calculate the contrast-to-noise ratio based on the standard deviation of background pixels; S23. For each of the image modalities, the image data corresponding to the image modal is divided into multiple image blocks, and the measurement error is calculated based on the maximum and minimum pixel values ​​of each image block. S24. For each of the image modalities, obtain the actual image mean and actual image standard deviation of the image data corresponding to the image modal, and obtain the reference image mean and reference image standard deviation of the preset reference image corresponding to the image modal. Then, calculate the structural similarity index based on the actual image mean, the actual image standard deviation, the reference image mean, the reference image standard deviation, and the covariance between the image data corresponding to the image modal and the preset reference image. S25. For each of the image modalities, calculate the image quality score based on the contrast-to-noise ratio, measurement error, and structural similarity index corresponding to the image modality, and then calculate the image degradation cost based on the environmental degradation score corresponding to the image modality and the image quality score.

2. The multimodal image fusion method for explosion-proof inspection drones according to claim 1, characterized in that, Step S1 includes: S11. Acquire multi-source environmental parameters and multimodal image data of the inspection environment; S12. Perform timestamp alignment, spatial coarse registration, and lens distortion correction on the image data of each image modality in the multimodal image data.

3. The multimodal image fusion method for explosion-proof inspection drones according to claim 1, characterized in that, The formula for calculating the environmental degradation score is as follows: ; Among them, EnvScore i w represents the environmental degradation score corresponding to the i-th image modality, N represents the number of environmental parameter types included in the multi-source environmental parameters, and w i,k e represents the preset environment weights corresponding to the environment parameters of the i-th image modality and the k-th type. k Represents the k-th type of environment parameter, e k,min e represents the minimum preset parameter value corresponding to the k-th type of environmental parameter. k,max This represents the maximum preset parameter value corresponding to the k-th type of environmental parameter; The formula for calculating the contrast-to-noise ratio is: ; Among them, CNR i μ represents the contrast-to-noise ratio corresponding to the i-th image modality. obj μ represents the mean value of the preset target pixels corresponding to the i-th image modality. bg σ represents the mean pixel value of the preset background region corresponding to the i-th image modality. bg This represents the standard deviation of background pixels in the image data corresponding to the i-th image modality; The formula for calculating the measurement error is: ; Among them, EME i Let I represent the measurement error corresponding to the i-th image mode, m×n represent the total number of image patches, and I max (k,l) represents the maximum pixel value of the (k,l)th image block, I min (k,l) represents the minimum pixel value of the (k,l)th image block, and c represents the preset anti-overflow coefficient; The formula for calculating the structural similarity index is: ; Among them, SSIM refi μ represents the structural similarity index corresponding to the i-th image modality. Ii μ represents the actual image mean of the image data corresponding to the i-th image modality. Iref σ represents the mean value of the reference image corresponding to the preset reference image for the i-th image mode. Ii σ represents the actual image standard deviation of the image data corresponding to the i-th image modality. Iref σ represents the standard deviation of the reference image corresponding to the preset reference image for the i-th image mode. IiIref C1 represents the covariance between the image data corresponding to the i-th image mode and the preset reference image, C2 represents the first preset stability constant, and C2 represents the second preset stability constant. The formula for calculating the image quality score is as follows: ; Among them, QualScore i The image quality score corresponding to the i-th image modality is represented by α, β and γ, which represent the first preset normalized weight coefficient, the second preset normalized weight coefficient and the third preset normalized weight coefficient, respectively. The formula for calculating the image degradation cost is as follows: ; Among them, IDC i ω represents the image degradation cost corresponding to the i-th image modality, and ω represents the pre-defined environmental factor dominant weight coefficient.

4. The multimodal image fusion method for explosion-proof inspection drones according to claim 1, characterized in that, Multi-source environmental parameters include five types of environmental parameters: relative humidity, PM2.5 mass concentration, hydrogen sulfide gas volume concentration, ambient air temperature, and ambient light intensity.

5. The multimodal image fusion method for explosion-proof inspection drones according to claim 4, characterized in that, Step S4 includes: S41. If the relative humidity of the environment is greater than the preset relative humidity, then the relative humidity of the environment is marked as the dominant environmental parameter leading to environmental degradation. If the PM2.5 mass concentration is greater than the preset mass concentration, then the PM2.5 mass concentration is marked as the dominant environmental parameter leading to environmental degradation. If the hydrogen sulfide gas volume concentration is greater than the preset volume concentration, then the hydrogen sulfide gas volume concentration is marked as the dominant environmental parameter leading to environmental degradation. If the ambient air temperature is greater than the preset air temperature, then the ambient air temperature is marked as the dominant environmental parameter leading to environmental degradation. If the ambient light intensity is greater than the preset light intensity, then the ambient light intensity is marked as the dominant environmental parameter leading to environmental degradation. S42. If the dominant environmental parameters include relative humidity and PM2.5 mass concentration, then a preset penetration algorithm based on a multispectral physical scattering model is used to compensate and enhance image data whose image degradation cost is greater than a preset compensation trigger threshold, so as to obtain an enhanced image. S43. If the dominant environmental parameter includes ambient air temperature, then a preset thermal image correction algorithm based on radiometric calibration and local adaptive nonlinear stretching is used to compensate and enhance image data whose image degradation cost is greater than a preset compensation trigger threshold, so as to obtain an enhanced image. S44. If the dominant environmental parameter includes the volume concentration of hydrogen sulfide gas, then the image data with an image degradation cost greater than the preset compensation trigger threshold is compensated and enhanced using a preset hyperspectral data compensation algorithm based on prior absorption spectrum, so as to obtain an enhanced image. S45. If the dominant environmental parameter includes ambient light intensity, then a preset adaptive tone mapping algorithm or a preset backlight compensation algorithm is used to compensate and enhance image data whose image degradation cost is greater than a preset compensation trigger threshold, so as to obtain an enhanced image.

6. The multimodal image fusion method for explosion-proof inspection drones according to claim 1, characterized in that, The multimodal image data includes image data from three image modalities: visible light image data, thermal radiation image data, and hyperspectral image data. The formula for calculating the fusion weight is as follows: ; Among them, W i Let λ represent the fusion weight corresponding to the i-th image modality, and let λ represent the preset weight adjustment factor. (IDC) i,enhanced The image degradation cost is represented by vis, where vis represents the image mode corresponding to the visible light image data, ir represents the image mode corresponding to the thermal radiation image data, and hyp represents the image mode corresponding to the hyperspectral image data. IDC j,enhanced This represents the image degradation cost corresponding to the enhanced image of the j-th image modality.

7. The multimodal image fusion method for explosion-proof inspection drones according to claim 1, characterized in that, Step S6 includes: S61. For each of the image modalities, Gaussian blur and downsampling are performed on the enhanced image corresponding to the image modal to obtain a Gaussian pyramid. Then, the image of each layer in the Gaussian pyramid is upsampled and subtracted from the image of the layer above it to obtain multiple Laplacian image layers and a low-frequency residual image; the multiple Laplacian image layers constitute a Laplacian pyramid. S62. All Laplacian image layers corresponding to the same layer of the Laplacian pyramid are fused according to the fusion weight to obtain multiple fused image layers. S63. All the low-frequency residual images are fused according to the fusion weights to obtain a fused low-frequency residual image; all the fused image layers and the fused low-frequency residual image constitute a fused Laplacian pyramid; S64. Perform an inverse transformation on the fused Laplacian pyramid to obtain the target inspection image.

8. An electronic device, characterized in that, It includes a processor and a memory, the memory storing computer-readable instructions that, when executed by the processor, perform the steps of the method as described in any one of claims 1-7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it performs the steps of the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Video image sharpness processing method in fog and haze day and device thereof

    CN104217404A

  • Multi-source battlefield image rapid mosaic fusion algorithm under unmanned aerial vehicle swarm cooperative reconnaissance

    CN112907493A