A gas leakage monitoring method and system for smart pipe gallery

Through adaptive median filtering and saliency detection technology, the filtering strategy is dynamically adjusted according to the possibility and importance of noise in the gas pipeline infrared image, which solves the problem of median filtering on all pixels and achieves accurate detection of gas leaks. Detection and efficient denoising.

CN118570098BActive Publication Date: 2024-10-01XIAN KANGCHUANG ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411049088.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-10-01
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

The existing median filtering algorithm used for gas pipeline infrared image denoising will filter all pixels, resulting in incomplete noise removal or excessive smoothing, affecting the accuracy of gas leak detection.

Method used

The adaptive median filtering method is used to dynamically adjust the filtering strategy according to the noise possibility and importance of pixels, filter only the required pixels, and combine with saliency detection to improve detection accuracy.

Benefits of technology

Effectively remove salt and pepper noise, retain image details and edge information to the maximum extent, improve the accuracy and response speed of gas leak detection, save computing resources, and enhance the efficiency and reliability of the monitoring system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570098B_ABST
    Figure CN118570098B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image data processing technology, and in particular to a gas leak monitoring method and system for smart pipe corridors. The method comprises: performing multiple rounds of median filtering on the RGB image of the infrared image of the gas pipeline in the smart pipe corridor, performing significance detection on the filtered RGB image, determining whether the gas is leaking according to the significance value obtained by the detection, and completing the gas leak monitoring for the smart pipe corridor; in each round of median filtering, determining the necessity of filtering of the pixel point, and performing adaptive median filtering according to the necessity of filtering of the pixel point. The present invention optimizes the median filtering according to the necessity of filtering of each pixel point, performs adaptive median filtering on the infrared image, and combines the accurate evaluation of the noise possibility and the importance of the pixel point to achieve efficient denoising of the infrared image of the gas pipeline in the smart pipe corridor, and significantly improves the pertinence and efficiency of image processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image data processing technology, and in particular to a gas leakage monitoring method and system for a smart pipe gallery. Background Art

[0002] With the acceleration of urbanization, the construction and use of urban underground pipeline networks have continued to expand, including gas pipelines. Therefore, the monitoring and management of gas leaks has become an important issue in urban management. Gas leaks not only mean a waste of energy, but also pollute the surrounding environment, aggravate climate warming, and even more seriously, cause safety accidents. When collecting infrared images of gas pipelines, a kind of salt and pepper noise will be generated due to sensor failure, signal transmission errors, environmental interference and other factors. Salt and pepper noise will cause abnormal bright spots or dark spots in the local area of ​​the image, which will affect the subsequent accurate understanding of the temperature distribution in the image.

[0003] The patent application document with publication number CN117346079A discloses a gas leakage concentration monitoring and early warning method and system, the steps of which include: collecting infrared images, acoustic emission signals and wind speed and direction information of a specific space through sensors; determining the distribution position of the gas concentration sensor according to the layout optimization strategy of the gas concentration sensor, the layout optimization strategy includes a closed space layout optimization strategy and an open space layout optimization strategy; building a gas leakage detection network, detecting the input acoustic emission signal and infrared image through an acoustic emission signal processing unit and an infrared image processing unit to obtain a gas leakage area; turning on the gas concentration sensor in the gas leakage area to obtain the gas leakage concentration distribution; and outputting early warning information in combination with the gas leakage concentration distribution and the wind speed and direction information.

[0004] The existing algorithm for denoising infrared images of gas pipelines is the median filter algorithm, which has the advantages of being able to effectively retain edge information, being applicable to different scales, and being highly robust. However, when using the median filter to denoise infrared images of gas pipelines, all pixels in the image will be filtered and denoised. When the number of filtering times is too small, some noise pixels will not be completely filtered, which will also affect subsequent gas leak detection; when the number of filtering times is too large, the potential gas leak area in the image will be over-smoothed, resulting in inaccurate detection in subsequent detection. Summary of the invention

[0005] In order to solve the problem that when median filtering is used to denoise infrared images, all pixels are filtered and denoised, resulting in the inability to accurately detect infrared images in gas monitoring, the present invention provides a gas leakage monitoring method and system for a smart pipe gallery.

[0006] In a first aspect, the present invention provides a gas leakage monitoring method for a smart pipe gallery, which adopts the following technical solution:

[0007] A gas leakage monitoring method for smart pipe gallery, comprising: performing multiple rounds of median filtering on an RGB image of an infrared image of a gas pipeline in the smart pipe gallery, performing significance detection on the filtered RGB image, determining whether the gas is leaking according to the significance value obtained by the detection, and completing the gas leakage monitoring for the smart pipe gallery; in each round of median filtering, determining the necessity of filtering of pixel points, comprising: determining the noise possibility of each pixel point in the RGB image, the noise possibility is positively correlated with the absolute value of the difference between the pixel point and all the pixel points in its neighborhood in the R, G, and B channels respectively, and the difference between the pixel point and all the pixel points in the RGB image in the R The absolute value of the difference between the pixel values ​​in the G, G, and B channels is negatively correlated with the total number of pixels within the preset maximum color difference value; the importance of each pixel in the RGB image is determined, and the importance is positively correlated with the minimum distance from the pixel to the two edges of the RGB image in the horizontal and vertical directions, the information entropy value of the pixel values ​​in the R channel of all pixels in the neighborhood of the pixel, and the variance value of the noise possibility of all pixels in the neighborhood of the pixel; the necessity of filtering for each pixel in the RGB image is determined, and the necessity of filtering is negatively correlated with the noise possibility of the pixel and positively correlated with the importance of the pixel; adaptive median filtering is performed according to the necessity of filtering of the pixel.

[0008] Through adaptive median filtering, the filtering strategy is dynamically adjusted according to the noise possibility and importance of the pixel points, which can not only effectively remove salt and pepper noise, but also maximize the retention of details and edge information in the image, and avoid the loss of gas leakage area features caused by excessive smoothing; combined with multiple rounds of median filtering and significance detection technology, it can accurately judge the significance value in the infrared image, and intelligently identify the possibility of gas leakage according to the size of the significance value, thereby improving the accuracy and timeliness of leak detection; by calculating the necessity of filtering the pixel points, unnecessary multiple rounds of filtering for all pixels are avoided, saving computing resources, improving processing speed, and ensuring the fine processing of key areas, enhancing the efficiency and reliability of the overall monitoring system.

[0009] Furthermore, the RGB image is obtained by performing pseudo-color mapping on the thermal imaging image of the infrared image of the gas pipeline in the smart pipe gallery.

[0010] Furthermore, the saliency detection is a saliency detection CA algorithm.

[0011] Furthermore, the noise probability of each pixel in the RGB image satisfies the following relationship: ; In the formula, Indicates The noise probability of each pixel is Indicates The number of pixels in the neighborhood of a pixel, , , Indicates The pixel values ​​of each pixel in the R, G, and B channels are , , Indicates The pixel in the neighborhood The pixel values ​​of each pixel in the R, G, and B channels are Indicates The total number of pixels whose absolute value of the difference between the pixel values ​​of the pixels and all the pixels in the RGB image in the R, G, and B channels is within the preset maximum color difference value. represents the normalization function, Indicates absolute value.

[0012] By obtaining the noise possibility of each pixel point, combining the neighborhood pixel value difference and global pixel value similarity, and normalizing it, the noise pixels and normal pixels are effectively distinguished, thereby improving the accuracy of image denoising and the fidelity of image features, providing a clearer and more reliable image data foundation for subsequent gas leak detection.

[0013] Furthermore, the importance of each pixel in the RGB image satisfies the following relationship: ; In the formula, Indicates The importance of pixels Indicates The minimum distance from a pixel point to the two edges of the RGB image in the horizontal direction, Indicates The minimum distance from a pixel to the two edges of the RGB image in the vertical direction, represents the preset hyperparameters, Indicates The information entropy value of the pixel values ​​in the R channel of all pixels in the neighborhood of the pixel point is Indicates The variance of the noise probability of all pixels in the neighborhood of a pixel.

[0014] By quantifying the position of pixels, the complexity of color information in the neighborhood, and the stability of noise distribution, the importance of pixels is comprehensively evaluated, which enables intelligent distinction between key information and noise during image processing, effectively enhancing the protection of edges and feature areas, while reducing over-processing of non-critical areas, thereby significantly improving the pertinence and efficiency of image denoising and providing high-quality image data support for subsequent precise analysis.

[0015] Furthermore, the filtering necessity of each pixel in the RGB image satisfies the following relationship: ; In the formula, Indicates Necessity of filtering pixels, Indicates The importance of pixels Indicates The noise probability of each pixel is represents the natural exponential function.

[0016] By combining the importance of pixels and the possibility of noise, and using the natural exponential function to dynamically adjust the necessity of filtering, we ensure the protection of key features and effective suppression of noise in image processing, thereby improving the accuracy and efficiency of image denoising and providing clearer and more accurate image information for subsequent analysis tasks.

[0017] Furthermore, the adaptive median filtering is performed according to the size of the filtering necessity of the pixel points, including: in response to the filtering necessity of the pixel point being less than a preset filtering threshold, not performing the current round of filtering on the pixel point; in response to the filtering necessity of all pixels being less than a preset filtering threshold, not performing the next round of filtering on the RGB image.

[0018] By performing adaptive median filtering based on the necessity of filtering pixel points, this method can intelligently screen the pixels that really need to be processed, avoid excessive filtering of unnecessary areas, significantly reduce the waste of computing resources, and at the same time ensure the integrity of key image features and the accuracy of gas leak detection, thereby improving the efficiency and effectiveness of overall image processing.

[0019] In a second aspect, the present invention provides a gas leakage monitoring system for a smart pipe gallery, which adopts the following technical solution:

[0020] A gas leakage monitoring system for a smart pipe gallery comprises: a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the above-mentioned gas leakage monitoring method for a smart pipe gallery is implemented.

[0021] By adopting the above technical solution, the above-mentioned gas leakage monitoring method for smart pipe corridors is generated into a computer program and stored in a memory to be loaded and executed by a processor, so that a terminal device is made according to the memory and the processor for easy use.

[0022] The present invention has the following technical effects:

[0023] The present invention optimizes median filtering according to the filtering necessity of each pixel point, performs adaptive median filtering on the infrared image, and combines the accurate evaluation of noise possibility and pixel importance to achieve efficient denoising of infrared images of gas pipelines in smart pipe galleries, significantly improving the pertinence and efficiency of image processing; at the same time, by dynamically adjusting the filtering strategy, it not only effectively eliminates image noise, but also retains the key features of gas leakage to the greatest extent, thereby improving the accuracy and response speed of gas leak detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-restrictive manner, and the same or corresponding reference numerals represent the same or corresponding parts.

[0025] Figure 1 It is a flow chart of a gas leakage monitoring method for a smart pipe gallery according to an embodiment of the present invention.

[0026] Figure 2 It is a flowchart of each round of filtering process of median filtering in a gas leakage monitoring method for a smart pipe gallery according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0028] It should be understood that when the terms "first", "second", etc. are used in the claims, descriptions, and drawings of the present invention, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the description and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their collections.

[0029] The purpose of the present invention is to analyze the characteristics of each pixel in the R, G, and B channels of the image and the importance of each pixel so that the median filter can perform adaptive filtering on each pixel, thereby achieving more accurate denoising of the infrared thermal imaging image of the gas pipeline, so as to facilitate the subsequent detection of gas leaks more smoothly.

[0030] The embodiment of the present invention discloses a gas leakage monitoring method for a smart pipe gallery, referring to Figure 1 , comprising steps S1 to S4:

[0031] S1: Obtain the RGB image of the infrared image of the gas pipeline in the smart pipe gallery.

[0032] The RGB image is obtained by performing pseudo-color mapping on the thermal imaging image of the infrared image of the smart pipe gallery gas pipeline.

[0033] Infrared images (infrared thermal imaging images) of gas pipelines in the smart pipe gallery are collected by infrared cameras. Before the collection, since gas leakage is more likely to occur at the connection parts of the pipelines in actual scenarios, the infrared camera should be placed at the connection parts of the gas pipelines during image collection, and should be aimed at the connection parts as much as possible.

[0034] It should be noted that the core of the present invention is to use the median filtering algorithm to denoise the salt and pepper noise in the infrared image of the gas pipeline in the smart pipe gallery. During the process, it will be judged whether each pixel in the image needs to be filtered, so as to adaptively optimize the median filtering, which is mainly based on the analysis of the characteristics of each pixel in the R, G, and B channels and the importance of each pixel in the image.

[0035] S2: Perform multiple rounds of median filtering on the RGB image.

[0036] In each round of median filtering, refer to Figure 2 , step S2 includes steps S21 to S24, which are specifically as follows:

[0037] S21: Determine the noise possibility of each pixel in the RGB image.

[0038] It should be noted that the distribution of salt and pepper noise in the image is sparse and special. It often appears in the form of a single pixel, and its characteristics in the R, G, and B channels are also very different from those of normal pixels. Therefore, the difference between the pixel values ​​of each pixel and all the pixels in its neighborhood in the R, G, and B channels is analyzed to obtain the noise possibility of each pixel.

[0039] The noise probability of each pixel in the RGB image satisfies the following relationship:

[0040] ;

[0041] In the formula, Indicates The noise probability of each pixel is Indicates The number of pixels in the neighborhood of a pixel, , , Indicates The pixel values ​​of each pixel in the R, G, and B channels are , , Indicates The pixel in the neighborhood The pixel values ​​of each pixel in the R, G, and B channels are Indicates The total number of pixel values ​​whose absolute value of the difference between the pixel values ​​of each pixel point and all pixels in the RGB image in the R, G, and B channels is within the preset maximum color difference value. represents the normalization function, Indicates absolute value.

[0042] Implementers can set the maximum color difference value according to actual implementation, for example, 10.

[0043] in, It represents the sum of the absolute values ​​of the differences between the xth pixel and all the pixels in its neighborhood in the R, G, and B channels. The larger the value, the better the xth pixel. The more special the R, G, and B values ​​of a pixel are in its neighborhood, the more noise pixels appear in the form of a single pixel. The greater the possibility that a pixel is a noise pixel; The smaller it is, the more The smaller the number of pixels with similar pixel values ​​in the three channels of R, G, and B, the smaller the number of pixels with similar pixel values ​​in the three channels of R, G, and B. The more sparse and specific a pixel is in the entire image, the greater the difference in pixel value between it and the pixels in the neighborhood in the three channels of R, G, and B, the greater the credibility will be, and the greater the possibility that it is noise.

[0044] S22: Determine the importance of each pixel in the RGB image.

[0045] It should be noted that the noise probability of each pixel has been obtained through the above steps, but since the noise probability of each pixel is only obtained by analyzing the characteristics of the pixel values ​​in the three channels of R, G, and B of each pixel, it cannot make the median filtering algorithm better fit the scene corresponding to the present invention, that is, only analyzing the noise probability of each pixel cannot solve the problem that the noise pixel is located in the sensitive part of the image. Since gas leaks are more likely to occur at the connection part of the pipeline in actual scenes, if the pixels at the connection part are over-smoothed, the detail information will be lost, making it difficult to accurately detect the gas leak in the future, so the position information and texture information of each pixel in the image should continue to be analyzed to obtain the importance of each pixel.

[0046] The importance of each pixel in the RGB image satisfies the following relationship:

[0047] ;

[0048] In the formula, Indicates The importance of pixels Indicates The minimum distance from a pixel point to the two edges of the RGB image in the horizontal direction, Indicates The minimum distance from a pixel to the two edges of the RGB image in the vertical direction, represents the preset hyperparameters, Indicates The information entropy value of the pixel values ​​in the R channel of all pixels in the neighborhood of the pixel point is Indicates The variance of the noise probability of all pixels in the neighborhood of a pixel.

[0049] The implementer can set the hyperparameter according to the actual implementation situation, for example, 0.01. The purpose of the hyperparameter is to prevent the pixel to be analyzed from being located at the upper left corner, upper right corner, lower left corner, and lower right corner of the RGB image. situation occurs.

[0050] in, Indicates The sum of the distances of a pixel from the nearest edge of the two edges of the RGB image in the horizontal and vertical directions, which represents the position information of the pixel. The smaller the value, the closer the pixel is. The greater the degree to which a pixel point is located at the edge of the image, the less likely it is to belong to the gas pipeline area in the image, and thus the lower its importance. In this case, more filtering can be performed on the pixel point, making its impact on subsequent gas leak monitoring smaller. Conversely, if the pixel point is more important, fewer filtering times are required, so that more original image information is retained for subsequent gas leak monitoring. The smaller it is, the less likely the pixel is to be located in a densely textured area, and the greater the credibility of its corresponding location at the edge of the image, which means that its importance is lower. Similarly, The smaller it is, the less likely the pixel is to be located in a densely textured area, and the greater the credibility of its corresponding location at the edge of the image, which means its importance is lower.

[0051] S23: Determine the necessity of filtering each pixel in the RGB image.

[0052] It should be noted that the necessity of filtering each pixel is obtained by combining the importance of each pixel with the possibility of noise. When analyzing the necessity of filtering each pixel, the closer the position of each pixel is to the central area of ​​the image, the greater the possibility that it belongs to the pipeline area pixel. For this pixel, fewer filtering times are required to retain more original image information, and the necessity of filtering for this pixel will be lower; the denser the texture in the area composed of each pixel and the pixels in its neighborhood, the greater the possibility that the pixel belongs to the pipeline connection area. This pixel also requires fewer filtering times to retain more original image information, and the necessity of filtering for this pixel will be lower.

[0053] ;

[0054] In the formula, Indicates Necessity of filtering pixels, Indicates The importance of pixels Indicates The noise probability of each pixel is represents the natural exponential function.

[0055] in, The larger the value is, the more important the pixel is, and the less necessary the filtering is. The larger it is, the more likely it is that the pixel is a noise data point, and the greater the necessity of filtering it will be.

[0056] S24: Performing adaptive median filtering according to the necessity of filtering of the pixel points.

[0057] It should be noted that adaptive median filtering is performed by judging the necessity of filtering for each pixel point and the size of the preset filtering threshold. If the necessity of filtering for the pixel point is not less than the preset filtering threshold, it can be said that filtering of the pixel point is required. The above threshold judgment operation is repeated for each pixel point until the necessity of filtering for all pixels is less than the preset filtering threshold, and no filtering is performed.

[0058] In response to the filtering necessity of the pixel point being less than a preset filtering threshold, not performing the current round of filtering on the pixel point;

[0059] In response to the filtering necessity of all pixels being less than a preset filtering threshold, the next round of filtering is not performed on the RGB image.

[0060] Implementers can filter the threshold according to actual implementation conditions, for example, 0.7.

[0061] S3: Perform saliency detection on the filtered RGB image to obtain the saliency value of each pixel.

[0062] The saliency detection is a saliency detection CA algorithm.

[0063] Since the gas will generate friction and compression during the transportation process, which will cause the energy to be converted into heat and increase the temperature of the gas, the gas in the gas pipeline is usually higher than the temperature of the pipeline itself. If there is a leak in the gas pipeline, the leaked gas area will show a completely different color state from the pipeline area in the infrared thermal imaging image. Therefore, the use of the saliency detection CA algorithm can more easily detect gas leaks.

[0064] S4: Determine whether there is a gas leak based on the significance value obtained from the detection, and complete the gas leak monitoring for the smart pipeline corridor.

[0065] By judging the significance value of each pixel point in the detected RGB image and the preset leakage threshold, in response to the significance value of each pixel point being greater than the preset leakage threshold, it is determined that there is a gas leak in the pipeline in the infrared image corresponding to the pixel point, and the gas leakage monitoring for the smart pipeline corridor is completed.

[0066] Implementers can set the leakage threshold according to actual implementation conditions, for example, 0.9.

[0067] An embodiment of the present invention also discloses a gas leakage monitoring system for a smart pipe gallery, including a processor and a memory, wherein the memory stores computer program instructions. When the computer program instructions are executed by the processor, a gas leakage monitoring method for a smart pipe gallery of the present invention is implemented.

[0068] The above system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, and their configuration and functions are known in the art, so they will not be described in detail here.

[0069] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, a computer-readable storage medium may be any suitable magnetic storage medium or magneto-optical storage medium, or any other medium that can be used to store the required information and can be accessed by an application, module, or both. Any such computer storage medium may be part of the device or accessible or connectable to the device.

[0070] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.

[0071] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A gas leakage monitoring method for a smart pipe gallery, characterized in that: include: Perform multiple rounds of median filtering on the RGB images of the infrared images of the gas pipelines in the smart pipe gallery, perform significance detection on the filtered RGB images, and determine whether the gas is leaking based on the significance value obtained by the detection, thus completing the gas leak monitoring for the smart pipe gallery; In each round of median filtering, the necessity of filtering the pixel points is determined, including: Determine the noise probability of each pixel in the RGB image. The noise probability is positively correlated with the absolute value of the difference between the pixel value of the pixel and all pixels in its neighborhood in the R, G, and B channels, and negatively correlated with the total number of pixels whose absolute value of the difference between the pixel value of the pixel and all pixels in the RGB image in the R, G, and B channels is within a preset maximum color difference value. The noise probability satisfies: , Indicates The noise probability of each pixel is Indicates The number of pixels in the neighborhood of a pixel, , , Indicates The pixel values ​​of each pixel in the R, G, and B channels are , , Indicates The pixel in the neighborhood The pixel values ​​of each pixel in the R, G, and B channels are Indicates The total number of pixels whose absolute value of the difference between the pixel values ​​of the pixels and all the pixels in the RGB image in the R, G, and B channels is within the preset maximum color difference value. represents the normalization function, Represents an absolute value; determines the importance of each pixel in the RGB image, and the importance is positively correlated with the minimum distance of the pixel to the two edges of the RGB image in the horizontal and vertical directions, the information entropy value of the pixel values ​​in the R channel of all pixels in the neighborhood of the pixel, and the variance value of the noise possibility of all pixels in the neighborhood of the pixel, and the importance satisfies: , Indicates The importance of pixels Indicates The minimum distance from a pixel point to the two edges of the RGB image in the horizontal direction, Indicates The minimum distance from a pixel to the two edges of the RGB image in the vertical direction, represents the preset hyperparameters, Indicates The information entropy value of the pixel values ​​in the R channel of all pixels in the neighborhood of the pixel point is Indicates The variance value of the noise possibility of all pixels in the neighborhood of a pixel point; determine the necessity of filtering for each pixel point in the RGB image, the necessity of filtering is negatively correlated with the noise possibility of the pixel point, and positively correlated with the importance of the pixel point, and the necessity of filtering satisfies: , Indicates Necessity of filtering pixels, represents the natural exponential function; According to the necessity of filtering of the pixel points, adaptive median filtering is performed, including: In response to the filtering necessity of a pixel being less than a preset filtering threshold, the pixel is not subjected to the current round of filtering; in response to the filtering necessity of all pixels being less than a preset filtering threshold, the RGB image is not subjected to the next round of filtering.

2. A gas leakage monitoring method for a smart pipe gallery according to claim 1, characterized in that: The RGB image is obtained by performing pseudo-color mapping on the thermal imaging image of the infrared image of the smart pipe gallery gas pipeline.

3. A gas leakage monitoring method for a smart pipe gallery according to claim 1, characterized in that: The saliency detection is a saliency detection CA algorithm.

4. A gas leak monitoring system for smart pipe gallery, characterized in that: include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a gas leakage monitoring method for a smart pipeline corridor according to any one of claims 1 to 3 is implemented.