Method and device for detecting leakage rate of environment-friendly gas of environment-friendly cabinet, and medium
Through infrared thermal imaging technology and image processing algorithms, gas leakage in environmental protection cabinets is monitored in real time, and the accuracy and efficiency of gas leakage detection in environmental protection cabinets is solved, and rapid and accurate judgment of leakage points and quantity is achieved, reducing environment and health harm.
Patent Information
- Application Number
- CN202411165063.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-12-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the field of environmental protection engineering technology, gas leakage may occur during use of environmental protection cabinets, resulting in environmental pollution and human health hazards. It is difficult for the existing technology to detect leakage quickly and accurately.
Infrared thermal imaging technology and image processing algorithms are used to determine infrared data before and after the leakage time node, image edge characteristics are extracted, gas motion regions are judged, diffusion rate is calculated, leakage points and leakage amount are determined, real-time monitoring and analysis are achieved.
It improves the accuracy and efficiency of detection, realizes real-time monitoring and continuous data acquisition, can quickly judge gas leakage, determine leakage points and quantities, and reduces environmental pollution and human health hazards.
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of environmental protection cabinet gas leakage detection, and in particular to an environmental protection cabinet environmental protection gas leakage detection method, device and medium. Background Art
[0002] In the fields of environmental protection engineering technology, gas detection technology and infrared spectrum analysis technology, environmental protection cabinet is an important equipment used to collect and treat harmful gases generated in industrial production processes. However, gas leakage may occur during the use of environmental protection cabinets, which will not only pollute the environment, but also harm human health. Therefore, how to quickly and accurately detect the leakage of environmental protection cabinets has become an important issue in the field of environmental protection engineering technology. Summary of the invention
[0003] The object of the present invention is to provide a method, device and medium for detecting leakage of environmental protection gas in an environmental protection cabinet to solve the above-mentioned problem.
[0004] To achieve the above object, the present invention provides the following technical solutions:
[0005] A method for detecting leakage of environmental protection gas in an environmental protection cabinet, characterized in that it comprises the following steps:
[0006] S100, determining infrared data of the leakage point before and after the leakage time node, recording the infrared data before the leakage time node as the first infrared data, and recording the infrared data after the leakage time node as the second infrared data, sorting by time according to the second infrared data, obtaining a single frame image at a certain time point, performing binarization processing on the single frame image and extracting edge features of each area in the image;
[0007] S200, preliminarily judging whether each area is a gas movement area based on the perimeter and area of the edge features extracted from the single-frame image; if it is preliminarily judged to be a gas movement area, traversing all images for the gas movement area and recording them as related frames, and determining whether it is a gas movement area based on the area change of the gas movement area; after determining the gas movement area, calculating the diffusion rate of the related frames of the gas movement area, and determining whether the gas movement area is a gas movement area generated by the same leak point based on the diffusion rate;
[0008] S300, determining the areas of different gas movement regions under the final frame and calculating the leakage amount.
[0009] The present invention is further configured that, when extracting edge features in step S100, the single frame image is compared with the background frame in the first infrared data to obtain the edge features, and the background frame selected is the background frame with the highest similarity to the single frame image.
[0010] The present invention is further arranged that in step S200, when preliminarily judging whether each area is a gas movement area, the total number of edge pixels C of each area is calculated, the total number of pixels S of each area is calculated, and the ratio Q=C / S is calculated. If the ratio Q is greater than the threshold irregularity M, the area is judged to be a non-gas movement area; the threshold M is set manually.
[0011] The present invention is further arranged that in step S200, after preliminarily judging the gas movement area, all frames related to the gas movement area are obtained in the second infrared data set and arranged in time, and the number of bright spot pixels in the frames related to the gas movement area is found, and the area of the gas movement area is determined by the number of bright spot pixels, and the gas movement area is determined according to the area growth of the gas movement area.
[0012] The present invention is further configured to determine the coordinates I1(x1,y1), I2(x2,y2), I3(x3,y3), I4(x4,y4)…IN(xn,yn) of the central pixel point of the gas movement area in each frame according to the relevant frames I1, I2, I3, I4…IN under the gas movement area, select adjacent frames and calculate the diffusion rates K1, K2, K3, K4…K(n-1) according to the central coordinates, wherein K(n-1)=|{yn-y(n-1) / xn-x(n-1)} / T|, and take the K1 value as the standard to observe the floating conditions of K2, K3, K4…K(n-1), if the floating range of K2, K3, K4…K(n-1) and K1 does not exceed 1%, then the gas movement area is identified as the gas movement area generated by the same leakage point.
[0013] The present invention further arranges that the related frames include an initial frame, an intermediate frame and a final frame, wherein the initial frame is an image of the beginning of leakage, the final frame is an image of the gas movement region no longer changing, and the intermediate frame is an image of the gas movement region changing.
[0014] The present invention is further configured to search for the number of bright spot pixels of the frames related to the gas motion region. When determining the area of the gas motion region by the number of bright spot pixels, the area of the single-frame image obtained in step S100 is used as a standard, A1 represents the number of bright spot pixels of the single-frame image, A0 represents the number of bright spot pixels of the initial frame image, and A2 represents the number of bright spot pixels of the final frame image. The area change rates V1 and V2 between the initial frame image, the final frame image and the single-frame image are calculated, wherein V1 = (A1-A0) / A0, V2 = (A2-A1) / A1; at the same time, arbitrarily select multiple frames between the single-frame image and the initial frame image and obtain their bright spot pixel numbers, and calculate the average change rate Q1 of adjacent frames in the multiple frames; arbitrarily select multiple frames between the single-frame image and the final frame image and obtain their bright spot pixel numbers, and calculate the average change rate Q2 of adjacent frames in the multiple frames. If Q1 is less than V1, and Q2 is less than V2, it is clear that it is a gas motion region.
[0015] The present invention also provides an electronic device, including a memory and a processor, characterized in that a computer program is stored in the memory, and the processor is configured to run the computer program to execute the environmental protection cabinet environmental protection gas leakage detection method.
[0016] The present invention also provides a storage medium, characterized in that a computer program is stored in the storage medium, wherein the computer program is configured to execute the environmental protection cabinet environmental protection gas leakage detection method when running.
[0017] The present invention includes at least one of the following beneficial effects:
[0018] 1. Improved accuracy and efficiency: The present invention adopts infrared thermal imaging technology and image processing algorithm to monitor the movement of leaked gas in the environmental protection cabinet in real time and quickly determine whether there is a gas leak. Compared with manual detection, it greatly improves accuracy and efficiency.
[0019] 2. Real-time and continuity: The detection method of the present invention can realize real-time monitoring, continuously obtain infrared data around the environmental protection cabinet, and perform real-time analysis and judgment. Compared with the existing chemical analysis method, it greatly shortens the detection time and meets the needs of rapid detection.
[0020] 3. Wide adaptability: The detection method of the present invention can be applied to environmental protection cabinets of various types and specifications, has wide adaptability, and can meet the needs of different working environments.
[0021] 4. The detection method of the present invention can not only determine whether there is a gas leak in the environmental protection cabinet, but also judge the location and leakage amount of the leakage point according to the area growth and diffusion rate of the gas movement area, providing more comprehensive data analysis results.
[0022] 5. Reduce environmental pollution and harm to human health: The detection method of the present invention can timely discover the leakage problem of the environmental protection cabinet, take corresponding measures to deal with it, and reduce environmental pollution and harm to human health. DETAILED DESCRIPTION
[0023] The following will explain the implementation methods of the present application in detail with reference to examples, so that the implementation process of how the present application uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.
[0024] Embodiment 1:
[0025] The present invention provides a method for detecting leakage of environmental protection gas in an environmental protection cabinet, which is characterized by comprising the following steps:
[0026] S100, determining infrared data of the leakage point before and after the leakage time node, recording the infrared data before the leakage time node as the first infrared data, and recording the infrared data after the leakage time node as the second infrared data, sorting by time according to the second infrared data, obtaining a single frame image at a certain time point, performing binarization processing on the single frame image and extracting edge features of each area in the image;
[0027] S200, preliminarily judging whether each area is a gas movement area based on the perimeter and area of the edge features extracted from the single-frame image; if it is preliminarily judged to be a gas movement area, traversing all images for the gas movement area and recording them as related frames, and determining whether it is a gas movement area based on the area change of the gas movement area; after determining the gas movement area, calculating the diffusion rate of the related frames of the gas movement area, and determining whether the gas movement area is a gas movement area generated by the same leak point based on the diffusion rate;
[0028] S300, determining the areas of different gas movement regions under the final frame and calculating the leakage amount.
[0029] Specifically, when extracting edge features in step S100, the single frame image is compared with the background frame in the first infrared data to obtain edge features, and the selected background frame is the background frame with the highest similarity to the single frame image.
[0030] In another aspect of the present invention, in step S200, when preliminarily judging whether each area is a gas movement area, the total number of edge pixels C of each area is calculated, the total number of pixels S of each area is calculated, and the ratio Q=C / S is calculated. If the ratio Q is greater than the threshold irregularity M, the area is judged to be a non-gas movement area; the threshold M is set manually.
[0031] In another aspect of the present invention, in step S200, after preliminarily judging the gas movement area, all frames related to the gas movement area are obtained in the second infrared data set and arranged in time, and the number of bright spot pixels in the frames related to the gas movement area is found, and the area of the gas movement area is determined by the number of bright spot pixels. According to the area growth of the gas movement area, the gas movement area is determined.
[0032] In another aspect of the present invention, according to the relevant frames I1, I2, I3, I4...IN under the gas movement area, the coordinates of the central pixel points of the gas movement area in each frame are determined I1(x1, y1), I2(x2, y2), I3(x3, y3), I4(x4, y4)...IN(xn, yn), adjacent frames are selected and the diffusion rates K1, K2, K3, K4...K(n-1) are calculated according to the central coordinates, wherein K(n-1) = |{yn-y(n-1) / xn-x(n-1)} / T|, and the K1 value is used as the standard to observe the floating conditions of K2, K3, K4...K(n-1). If the floating range of K2, K3, K4...K(n-1) and K1 does not exceed 1%, the gas movement area is deemed to be the gas movement area generated by the same leakage point.
[0033] In another aspect of the present invention, the related frames include an initial frame, an intermediate frame and a final frame, wherein the initial frame is an image of the beginning of leakage, the final frame is an image of the gas movement area no longer changing, and the intermediate frame is an image of the gas movement area changing.
[0034] In another aspect of the present invention, the number of bright spot pixels of the frame related to the gas motion region is found. When the area of the gas motion region is determined by the number of bright spot pixels, the area of the single-frame image obtained in step S100 is used as the standard, A1 represents the number of bright spot pixels of the single-frame image, A0 represents the number of bright spot pixels of the initial frame image, and A2 represents the number of bright spot pixels of the final frame image. The area change rates V1 and V2 between the initial frame image, the final frame image and the single-frame image are calculated, wherein V1 = (A1-A0) / A0, V2 = (A2-A1) / A1; at the same time, multiple frames between the single-frame image and the initial frame image are arbitrarily selected and the number of bright spot pixels thereof is obtained, and the average change rate Q1 of adjacent frames in the multiple frames is calculated; multiple frames between the single-frame image and the final frame image are arbitrarily selected and the number of bright spot pixels thereof is obtained, and the average change rate Q2 of adjacent frames in the multiple frames is calculated. If Q1 is less than V1, and Q2 is less than V2, it is clearly a gas motion region.
[0035] Embodiment 2:
[0036] The present invention also provides an electronic device, including a memory and a processor, characterized in that a computer program is stored in the memory, and the processor is configured to run the computer program to execute the environmental protection cabinet environmental protection gas leakage detection method.
[0037] Embodiment 3:
[0038] The present invention also provides a storage medium, characterized in that a computer program is stored in the storage medium, wherein the computer program is configured to execute the environmental protection cabinet environmental protection gas leakage detection method when running.
[0039] The present invention includes at least one of the following beneficial effects:
[0040] 1. Improved accuracy and efficiency: The present invention adopts infrared thermal imaging technology and image processing algorithm to monitor the movement of leaked gas in the environmental protection cabinet in real time and quickly determine whether there is a gas leak. Compared with manual detection, it greatly improves accuracy and efficiency.
[0041] 2. Real-time and continuity: The detection method of the present invention can realize real-time monitoring, continuously obtain infrared data around the environmental protection cabinet, and perform real-time analysis and judgment. Compared with the existing chemical analysis method, it greatly shortens the detection time and meets the needs of rapid detection.
[0042] 3. Wide adaptability: The detection method of the present invention can be applied to environmental protection cabinets of various types and specifications, has wide adaptability, and can meet the needs of different working environments.
[0043] 4. The detection method of the present invention can not only determine whether there is a gas leak in the environmental protection cabinet, but also judge the location and leakage amount of the leakage point according to the area growth and diffusion rate of the gas movement area, providing more comprehensive data analysis results.
[0044] 5. Reduce environmental pollution and harm to human health: The detection method of the present invention can timely discover the leakage problem of the environmental protection cabinet, take corresponding measures to deal with it, and reduce environmental pollution and harm to human health.
[0045] For example, certain words are used in the specification and claims to refer to specific components. Those skilled in the art should understand that hardware manufacturers may use different terms to refer to the same component. This specification and claims do not use differences in names as a way to distinguish components, but use differences in the functions of components as the criteria for distinction. For example, "including" mentioned throughout the specification and claims is an open term, so it should be interpreted as "including but not limited to". "Approximately" means that within an acceptable error range, those skilled in the art can solve the technical problem within a certain error range and basically achieve the technical effect.
[0046] The above description shows and describes several preferred embodiments of the present invention, but as mentioned above, it should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the invention described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not depart from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.
Claims
1. A method for detecting leakage of environmental protection gas in an environmental protection cabinet, characterized in that: The steps include: S100, determining infrared data of the leakage point before and after the leakage time node, recording the infrared data before the leakage time node as the first infrared data, and recording the infrared data after the leakage time node as the second infrared data, sorting by time according to the second infrared data, obtaining a single frame image at a certain time point, performing binarization processing on the single frame image and extracting edge features of each area in the image; S200. Preliminarily judge whether each area is a gas movement area based on the perimeter and area of the edge features extracted from the single-frame image. If it is preliminarily judged to be a gas movement area, traverse all images for the gas movement area and record them as related frames, and identify it as a gas movement area based on the area change of the gas movement area; after determining the gas movement area, calculate the diffusion rate of the related frames of the gas movement area, and determine whether the gas movement area is the gas movement area generated by the same leakage point based on the diffusion rate; S300. Determine the area of the final frame of different gas movement areas and calculate the leakage amount.
2. A method for detecting environmental protection gas leakage in an environmental protection cabinet as claimed in claim 1, characterized in that: When extracting edge features in step S100, the single frame image is compared with the background frame in the first infrared data to obtain edge features, and the background frame selected is the background frame with the highest similarity to the single frame image.
3. The method for detecting environmental gas leakage in an environmental cabinet according to claim 1, characterized in that: In step S200, when preliminarily judging whether each area is a gas movement area, the total number of edge pixels C of each area is calculated, the total number of pixels S of each area is calculated, and the ratio Q=C / S is calculated. If the ratio Q is greater than the threshold irregularity M, the area is judged to be a non-gas movement area; the threshold M is set manually.
4. The method for detecting environmental protection gas leakage in an environmental protection cabinet according to claim 1, characterized in that: In step S200, after preliminarily judging the gas movement area, all frames related to the gas movement area are obtained in the second infrared data set and arranged in time. The number of bright spot pixels in the frames related to the gas movement area is found, and the area of the gas movement area is determined by the number of bright spot pixels. The gas movement area is determined based on the area growth of the gas movement area.
5. A method for detecting environmental protection gas leakage in an environmental protection cabinet as claimed in claim 1 or 4, characterized in that: According to the relevant frames I1, I2, I3, I4…IN under the gas movement area, determine the coordinates of the central pixel point I1(x1,y1), I2(x2,y2), I3(x3,y3), I4(x4,y4)…IN(xn,yn) of the gas movement area in each frame, select adjacent frames and calculate the diffusion rates K1, K2, K3, K4…K(n-1) according to the central coordinates, where K(n-1) = |{yn-y(n-1) / xn-x(n-1)} / T|, and take the K1 value as the standard to observe the floating of K2, K3, K4…K(n-1). If the floating range of K2, K3, K4…K(n-1) and K1 does not exceed 1%, the gas movement area is deemed to be the gas movement area generated by the same leakage point.
6. A method for detecting environmental protection gas leakage in an environmental protection cabinet as claimed in claim 4, characterized in that: The relevant frames include an initial frame, an intermediate frame and a final frame. The initial frame is an image of the beginning of leakage, the final frame is an image of the gas movement region no longer changing, and the intermediate frame is an image of the gas movement region changing.
7. A method for detecting environmental protection gas leakage in an environmental protection cabinet as claimed in claim 4, characterized in that: Find the number of bright spot pixels of the frames related to the gas motion region. When determining the area of the gas motion region by the number of bright spot pixels, take the area of the single-frame image obtained in step S100 as the standard, use A1 to represent the number of bright spot pixels of the single-frame image, A0 to represent the number of bright spot pixels of the initial frame image, and A2 to represent the number of bright spot pixels of the final frame image. Calculate the area change rates V1 and V2 between the initial frame image, the final frame image and the single-frame image, where V1 = (A1-A0) / A0, V2 = (A2-A1) / A1; at the same time, arbitrarily select multiple frames between the single-frame image and the initial frame image and obtain their bright spot pixel numbers, and calculate the average change rate Q1 of adjacent frames in the multiple frames; arbitrarily select multiple frames between the single-frame image and the final frame image and obtain their bright spot pixel numbers, and calculate the average change rate Q2 of adjacent frames in the multiple frames. If Q1 is less than V1, and Q2 is less than V2, it is clear that it is a gas motion region.
8. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute the environmental protection cabinet environmental protection gas leakage detection method according to any one of claims 1 to 7.
9. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the environmental protection cabinet environmental protection gas leakage detection method according to any one of claims 1 to 7 when running.
Citation Information
Patent Citations
VOCs gas leakage detection method and system based on optical gas imaging
CN112781791A
VOCs gas leakage detection method and device and storage medium
CN117333776A
Method and device for predicting gas leakage rate of environment-friendly cabinet, and medium
CN118196129A
Cited By
Gas flow rate estimation method and device, program product and medium
CN121522194A
