Gas leakage detection method, device, electronic equipment and storage medium
By using a heating device to provide a temperature background in gas leak detection, the problem of inaccurate detection by infrared imagers in low-temperature environments is solved, and the accuracy of gas leak detection is improved.
Patent Information
- Application Number
- CN202410733337.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-07
AI Technical Summary
Existing infrared imagers are not very accurate when detecting gas leaks. Especially in low-temperature environments, they cannot effectively detect thermal radiation, resulting in inaccurate detection results.
By arranging heating devices and infrared imagers on both sides of the pipeline to be detected, the target temperature of the heating device is determined based on the ambient temperature, and the heating device is controlled through temperature adjustment instructions to provide a suitable temperature background, so that the infrared imager can detect the temperature of the heating device. Thermal radiation reduces the temperature background complexity of infrared images, thereby improving the accuracy of gas leak detection.
The accuracy of gas leak detection is improved, especially in low temperature environments, gas leaks can be effectively detected, the background complexity of infrared images is reduced, and detection accuracy is enhanced.
Smart Images

Figure CN118329296B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of gas leakage monitoring, and in particular to a gas leakage detection method, device, electronic equipment and storage medium. Background Art
[0002] Currently, an infrared imager is used to photograph the location to be tested, and whether there is a gas leak at the location to be tested is determined based on the infrared image obtained by the photograph.
[0003] However, it has been found in practice that the infrared images taken by infrared imagers are not accurate in detecting gas leaks. Summary of the invention
[0004] The embodiments of the present application disclose a gas leakage detection method, device, electronic device and storage medium, so that the electronic device can detect gas leakage in a target pipeline area with high accuracy.
[0005] The present application embodiment discloses a gas leakage detection method, which is applied to an electronic device, wherein the electronic device includes a temperature sensor and an infrared imager, and the method includes:
[0006] Acquire the ambient temperature of the target pipeline area collected by the temperature sensor;
[0007] Determine the target temperature corresponding to the heating device according to the ambient temperature; the infrared imager and the heating device are respectively arranged on two opposite sides of the pipeline to be detected in the target pipeline area, and the target temperature is within the temperature measurement range of the infrared imager;
[0008] According to the target temperature, sending a first temperature adjustment instruction to the heating device, wherein the first temperature adjustment instruction is used to instruct the heating device to adjust the temperature to the target temperature;
[0009] Acquire an infrared image captured by the infrared imager, wherein the infrared image at least includes the pipeline to be inspected;
[0010] The gas leakage situation of the target pipeline area is determined according to the infrared image.
[0011] As an optional implementation manner, determining the target temperature corresponding to the heating device according to the ambient temperature includes:
[0012] If the ambient temperature is greater than a preset temperature threshold, a preset relationship curve corresponding to the ambient temperature is determined according to the ambient temperature, wherein the preset relationship curve is used to indicate a corresponding relationship between a temperature difference and a detection accuracy of a gas leakage situation at the ambient temperature, wherein the temperature difference is a difference between the ambient temperature and an experimental temperature of the heating device;
[0013] Determining a target temperature difference according to the target detection accuracy and the preset relationship curve;
[0014] The target temperature of the heating device is determined according to the target temperature difference and the ambient temperature.
[0015] As an optional implementation manner, determining the target temperature corresponding to the heating device according to the ambient temperature includes:
[0016] If the ambient temperature is less than or equal to a preset temperature threshold, the target temperature of the heating device is determined to be a preset temperature; and the preset temperature is greater than the preset temperature threshold.
[0017] As an optional implementation manner, determining the gas leakage situation of the target pipeline area according to the infrared image includes:
[0018] determining a contrast of the infrared image;
[0019] If the contrast of the infrared image falls within a preset contrast range, determining the gas leakage situation of the target pipeline area according to the infrared image;
[0020] The method further comprises:
[0021] If the contrast of the infrared image does not fall within the preset contrast range, a new target temperature is determined based on the current target temperature and the contrast of the infrared image, and a second temperature adjustment instruction is sent to the heating device based on the new target temperature. The second temperature adjustment instruction is used to instruct the heating device to adjust the temperature to the new target temperature.
[0022] As an optional implementation manner, determining a new target temperature according to the current target temperature and the contrast of the infrared image includes:
[0023] If the contrast of the infrared image is less than the minimum value of the preset contrast range, reducing the current target temperature to obtain a new target temperature;
[0024] If the contrast of the infrared image is greater than the maximum value of the preset contrast range, the current target temperature is increased to obtain a new target temperature.
[0025] As an optional implementation, the electronic device is communicatively connected to a voiceprint imager, and before acquiring the ambient temperature of the target pipeline area collected by the temperature sensor, the method further includes:
[0026] Receiving ambient audio of a first area collected by the voiceprint imager and sent by the voiceprint imager;
[0027] Extracting voiceprint features from the ambient audio, and determining whether there is a gas leak in the first area according to the voiceprint features;
[0028] If it is determined that there is a gas leak in the first area, a target pipeline area where there is a gas leak is determined from the first area according to the voiceprint feature.
[0029] As an optional implementation, the electronic device includes a posture sensor, the heating device includes a heating plate and a supporting device, and the method further includes:
[0030] Acquire a first posture of the infrared imager detected by the posture sensor;
[0031] determining a target orientation and a target height of the heating plate according to the first posture;
[0032] According to the target direction and the target height, a posture adjustment instruction is sent to the heating device, and the posture adjustment instruction is used to instruct the heating device to control the supporting device to drive the heating plate to move in the vertical direction and / or rotate in the horizontal direction, so that the heating plate moves to the target height and rotates to the target direction.
[0033] The present application embodiment discloses a gas leakage detection device, which is applied to an electronic device, wherein the electronic device includes a temperature sensor and an infrared imager, and the device includes:
[0034] A temperature acquisition module, used to acquire the ambient temperature of the target pipeline area collected by the temperature sensor;
[0035] A temperature determination module is used to determine a target temperature corresponding to the heating device according to the ambient temperature; the infrared imager and the heating device are respectively arranged on two opposite sides of the pipeline to be detected in the target pipeline area, and the target temperature belongs to the temperature measurement range of the infrared imager;
[0036] a sending module, configured to send a first temperature adjustment instruction to the heating device according to the target temperature, wherein the first temperature adjustment instruction is used to instruct the heating device to adjust the temperature to the target temperature;
[0037] An image acquisition module, used to acquire an infrared image captured by the infrared imager, wherein the infrared image at least includes the pipeline to be inspected;
[0038] The leakage determination module is used to determine the gas leakage situation in the target pipeline area according to the infrared image.
[0039] An embodiment of the present application discloses an electronic device, including a temperature sensor, an infrared imager, a memory and a processor, wherein the processor is connected to the temperature sensor and the infrared imager, and a computer program is stored in the memory. When the computer program is executed by the processor, the processor implements any one of the gas leakage detection methods disclosed in the embodiments of the present application.
[0040] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute any one of the gas leakage detection methods disclosed in the embodiments of the present application.
[0041] Compared with the related art, the embodiments of the present application have the following beneficial effects:
[0042] The embodiments of the present application provide a gas leakage detection method, device, electronic device and storage medium. The method is applied to an electronic device, the electronic device includes a temperature sensor and an infrared imager, the method includes obtaining an ambient temperature of a target pipeline area collected by the temperature sensor, determining a target temperature corresponding to a heating device according to the ambient temperature, sending a first temperature adjustment instruction to the heating device according to the target temperature to instruct the heating device to adjust the temperature to the target temperature, obtaining an infrared image collected by the infrared imager, the infrared image at least including the pipeline to be detected, and determining a gas leakage situation in the target pipeline area according to the infrared image. In an embodiment of the present application, the infrared imager and the heating device are respectively arranged on two sides of the pipeline to be tested in the target pipeline area. The ambient temperature is collected, and the target temperature of the heating device is determined according to the ambient temperature. The temperature of the heating device is controlled to be the target temperature to provide a suitable temperature background for the infrared imager. The target temperature belongs to the temperature measurement range of the infrared imager, so that the infrared imager can detect the thermal radiation emitted by the heating device, and avoid the phenomenon that the infrared imager cannot detect the thermal radiation due to the low ambient temperature of the pipeline to be tested, resulting in the inability to image. At the same time, by setting the heating device, the complexity of the temperature background of the infrared image collected by the infrared imager can be reduced, and the detection accuracy of the gas leakage in the target pipeline area based on the infrared image can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 It is a schematic diagram of an application scenario of a gas leakage detection method disclosed in an embodiment of the present application;
[0045] Figure 2 It is a flow chart of a gas leakage detection method disclosed in an embodiment of the present application;
[0046] Figure 3 is a schematic diagram of the relative positions of a heating plate and an infrared imager disclosed in an embodiment of the present application;
[0047] Figure 4 is an image schematic diagram of an infrared image disclosed in an embodiment of the present application;
[0048] Figure 5 It is a structural schematic diagram of a heating plate disclosed in an embodiment of the present application;
[0049] Figure 6 is an image schematic diagram of another infrared image disclosed in an embodiment of the present application;
[0050] Figure 7 is an image schematic diagram of an infrared image obtained by adjusting the focal length disclosed in an embodiment of the present application;
[0051] Figure 8 It is a flow chart of another gas leakage detection method disclosed in an embodiment of the present application;
[0052] Fig. 9 is a structural schematic diagram of a gas leakage detection device disclosed in an embodiment of the present application;
[0053] Fig.10 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0055] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0056] Oilfield refers to a specific area where crude oil is produced. Oilfields generally produce oilfield gas, which is generally transported to the destination through oil pipeline systems, such as liquefied petroleum gas storage and distribution stations. The oil pipeline system, that is, the pipeline system used to transport crude oil and crude oil products, is mainly composed of oil pipelines, oil stations and other auxiliary related equipment. It is one of the main equipment in the crude oil storage and transportation industry, and it is also the most important transportation equipment for crude oil and crude oil products. Compared with railway and road oil transportation, which are also land transportation methods, pipeline oil transportation has the characteristics of large transportation volume, good airtightness, low cost and high safety factor.
[0057] However, gas leakage in oil pipelines may cause environmental pollution and safety risks. At present, infrared imagers are generally used to collect data from oil pipeline systems to obtain infrared images, and then determine whether there is gas leakage in the oil pipeline based on the infrared images. However, it has been found in practice that the results of gas leakage detection based on infrared images taken by infrared imagers are not accurate.
[0058] The embodiments of the present application provide a gas leakage detection method, device, electronic device and storage medium, so that the electronic device can detect gas leakage in a target pipeline area with high accuracy.
[0059] Please refer to Figure 1 , which shows an application scenario diagram of the gas leakage detection method provided in an embodiment of the present application, such as Figure 1 As shown, the gas leakage detection system may include an oil pipeline 110, an electronic device 120 and a heating device 130. The electronic device 120 may include an infrared imager and a temperature sensor. The electronic device 120 may be carried by the detection personnel to the detection point, and the infrared imager may be used to collect an infrared image of the pipeline area corresponding to the detection point. The temperature sensor may be used to detect the temperature corresponding to the pipeline area, and the heating device 130 may be used to provide different temperatures. The detection point may refer to a position where the detection personnel can stand. Figure 1 As shown, when the infrared imager is used to collect an image of the oil pipeline 110, the heating device 130 and the infrared imager are respectively located on two opposite sides of the oil pipeline 110, that is, the heating device 130 serves as the background content of the infrared image to provide a suitable temperature background for the infrared imager. It is understandable that the electronic device 120 may also include a mobile device, and the infrared imager and the temperature sensor are mounted on the mobile device, so that the infrared imager and the temperature sensor can be moved to various detection points through the mobile device, and the detection personnel do not need to hold the electronic device 120 for detection.
[0060] Optionally, the heating device 130 may include a heating plate 131, which may include a shell and at least one heating element. The shell may be provided with a receiving groove to place the at least one heating element, and different currents are provided to the heating element so that the temperature of the heating element reaches the temperature corresponding to the current. The heating element may include but is not limited to heating wires, heating tubes, heating sheets, etc. Optionally, the heating plate may also include a heat spreader, which is arranged at the opening of the receiving groove. The heat spreader can be used to make the heat emitted by the heating sheet more uniform, and the temperature of the surface of the heat spreader is consistent to provide a single uniform temperature background for the infrared imager. It is understandable that when the image of the oil pipeline 110 is collected by the infrared imager, the heat spreader faces the infrared imager.
[0061] Optionally, please continue to refer to Figure 1 The heating device 130 may further include a power supply device 132, which may be electrically connected to the heating element. The power supply device 132 may provide different currents to the heating element so that the heating device 130 reaches the desired target temperature.
[0062] Optionally, the heating device 130 may further include a supporting device 133, which is used to drive the heating plate 131 to move in the vertical direction Z and rotate in the horizontal direction to adjust the position of the heating plate 131 in the vertical direction Z and the direction of the heating plate 131. The horizontal direction is perpendicular to the vertical direction Z. Since the oil pipeline is supported by the bracket, the position of the heating plate 131 in the vertical direction Z is adjusted by the supporting device 133, so that the heating device 130 can be photographed while the pipeline to be inspected in the oil pipeline is photographed by the infrared imager. By adjusting the direction of the heating plate 131 by the supporting device 133, the heating plate 131 can be directed toward the infrared imager, so that the pixel area of the heating device 130 in the infrared image is as large as possible, so that the background temperature of the infrared image is single, and the interference with the detection of gas leakage in the pipeline area corresponding to the pipeline to be inspected is reduced. Optionally, the supporting device 133 may include a telescopic mechanism and a transmission mechanism, which is arranged at one end of the telescopic mechanism and connects the heating plate 131 and the telescopic mechanism. The transmission mechanism is used to drive the heating plate 131 to rotate relative to the telescopic mechanism, and the telescopic mechanism is used to adjust the position of the heating plate 131 in the vertical direction.
[0063] Optionally, please continue to refer to Figure 1The gas leak detection system may also include a voiceprint imager 140. The working principle of the voiceprint imager 140 is based on the physical properties of sound waves, and uses a series of high-precision MEMS (Micro-Electro-Mechanical System) digital microphone arrays to capture sound waves. The microphone array includes multiple microphones, which are precisely arranged in the voiceprint imager 140 so as to be able to receive sound waves from different angles and positions. Optionally, the electronic device 120 can be connected to the voiceprint imager 140 in communication, so that the electronic device 120 can obtain the sound waves sent by the voiceprint imager 140 and collected by the voiceprint imager 140.
[0064] Please refer to Figure 2 , which shows a flow chart of a gas leakage detection method provided in an embodiment of the present application, and the gas leakage detection method can be applied to Figure 1 The electronic device 120 is shown. Figure 2 As shown, the gas leakage detection method may include steps 202 to 210 .
[0065] Step 202: Acquire the ambient temperature of the target pipeline area collected by the temperature sensor.
[0066] It should be noted that the target pipeline area may refer to an area where gas leakage needs to be determined, and the area includes the pipeline to be detected, that is, the pipeline that needs to be detected for gas leakage. When the target pipeline area is determined, the detection personnel may carry an electronic device and move it into the target pipeline area to collect the ambient temperature of the target pipeline area through the temperature sensor of the electronic device, or send the location information of the target pipeline area to the electronic device so that the electronic device controls the mobile device to move into the target pipeline area and collect the ambient temperature of the target pipeline area through the temperature sensor loaded on the mobile device.
[0067] In an optional embodiment, before obtaining the ambient temperature of the target pipeline area collected by the temperature sensor, the gas leakage detection method may include: the electronic device receives the ambient audio of the first area collected by the voiceprint imager and sent by the voiceprint imager, the electronic device extracts the voiceprint features in the ambient audio, and determines whether there is a gas leak in the first area according to the voiceprint features, if it is determined that there is a gas leak in the first area, then the target pipeline area where the gas leak exists is determined from the first area according to the voiceprint features. It should be noted that in this embodiment, the target pipeline area is the area where the gas leak is determined to exist, and the target pipeline area belongs to the first area. Since only the gas leak in the target pipeline area can be determined according to the voiceprint features, according to the infrared image collected by the infrared imager, a richer gas leakage situation of the target pipeline area can be obtained, such as the gas leakage concentration, and the leakage position on the pipeline to be detected. Optionally, the electronic device may pre-store a voiceprint library, and the voiceprint library may store at least one preset voiceprint feature, which is a voiceprint feature extracted from the audio corresponding to the oil pipeline with gas leakage. The electronic device may match the voiceprint feature corresponding to the ambient audio of the first area with the preset voiceprint feature in the voiceprint library. If the matching degree of the voiceprint feature corresponding to the ambient audio of the first area with any preset voiceprint feature in the voiceprint library is greater than or equal to the preset matching degree, it can be considered that there is a gas leak in the first area. Optionally, the voiceprint feature may include sound intensity, the voiceprint imager includes a microphone array, the ambient audio may include multiple ambient sub-audios respectively collected by multiple microphones in the microphone array, and the position and direction of the sound source may be determined according to the time difference of the multiple microphones receiving the sound and the sound intensity difference of the multiple ambient sub-audios. The field of view of the voiceprint imager is wider than that of the infrared imager. In this embodiment, the target pipeline area where the gas leak exists is first determined by the voiceprint imager, and then the infrared imager and the heating device are moved to the two sides of the pipeline to be detected in the target pipeline area to achieve accurate detection of the gas leakage in the target pipeline area, which can improve the detection efficiency of the gas leakage in the oil pipeline.
[0068] For example, the electronic device may use high-resolution beamforming technology to analyze the ambient audio. Beamforming technology allows the device to determine the source direction and position of the sound wave, thereby accurately locating the sound source in three-dimensional space.
[0069] Optionally, the voiceprint imager may store a voiceprint library, and the voiceprint imager may determine whether there is a gas leak in the first area based on the voiceprint features extracted from the ambient audio and the voiceprint features, and when the target pipeline area with gas leakage is determined from the first area based on the voiceprint features, the first position information of the target pipeline area is sent to the electronic device, and the electronic device receives the first position information and displays the first position information, so that the inspection personnel can move to the detection point corresponding to the target pipeline area according to the first position information, so as to realize the detection of the target pipeline area by using the infrared imager. In this embodiment, the target pipeline area with gas leakage is directly located by the voiceprint imager, and the first position information is sent to the electronic device, which can reduce the amount of calculation and storage of the electronic device.
[0070] Optionally, the electronic device may pre-store multiple preset voiceprint features, each preset voiceprint feature corresponding to a different gas leakage type. Exemplarily, the gas leakage type may include large hole leakage and small hole leakage, that is, the electronic device stores a first preset voiceprint feature corresponding to the large hole leakage and a second preset voiceprint feature corresponding to the small hole leakage. The electronic device may compare the voiceprint feature corresponding to the ambient audio of the first area with the multiple preset voiceprint features, and determine the target preset voiceprint feature that best matches the voiceprint feature corresponding to the ambient audio of the first area, so as to determine the gas leakage type in the target pipeline area, such as large hole leakage or small hole leakage. In this embodiment, the gas leakage type is determined by the voiceprint feature, and can be analyzed and compared with the gas leakage type determined based on the infrared image to obtain a more accurate gas leakage detection result.
[0071] It is understandable that the electronic device may also pre-set an inspection route, which may include multiple preset pipeline areas. The preset pipeline areas may be used as target pipeline areas in turn to accurately detect gas leakage in the multiple preset pipeline areas in turn.
[0072] Step 204, determining a target temperature corresponding to the heating device according to the ambient temperature.
[0073] The infrared imager and the heating device are respectively arranged on the two sides of the pipeline to be detected in the target pipeline area, that is, the pipeline to be detected is located between the infrared imager and the heating device, so that when the infrared imager collects data from the target pipeline area, the temperature of the heating device can be used as the background temperature. The target temperature belongs to the temperature measurement range of the infrared imager. The target temperature is related to the ambient temperature of the target pipeline area. When the temperature of the heating device reaches the target temperature, the infrared imager can collect the thermal radiation emitted by the heating device. When there is a gas leak in the pipeline to be detected, the leaked gas will absorb the thermal radiation, causing the temperature collected by the infrared imager to change. According to the temperature change, the gas leakage in the target pipeline area can be determined.
[0074] For example, after the leaked gas diffuses, it can be considered that the temperature of the diffused gas is consistent with the ambient temperature. When the temperature of the heating device reaches the target temperature, it can be considered that the temperature difference between the temperature of the heating device and the temperature of the gas is within a suitable range. It can be considered that the contrast of the infrared image collected by the infrared imager is within the preset contrast range, and the gas leakage situation determined based on the infrared image has high accuracy. It is understandable that when the contrast of the infrared image is too high, the infrared image is over-sharpened, and when the contrast of the infrared image is too small, the infrared image is blurred. In both cases, the leakage location cannot be accurately detected.
[0075] Optionally, the electronic device may preset a corresponding relationship between the ambient temperature and the temperature corresponding to the heating device. When the electronic device obtains the ambient temperature of the target pipeline area collected by the temperature sensor, it can query the target temperature through the collected ambient temperature.
[0076] Step 206: Send a first temperature adjustment instruction to the heating device according to the target temperature.
[0077] Among them, the first temperature adjustment instruction is used to instruct the heating device to adjust the temperature to the target temperature. Optionally, the electronic device establishes a Bluetooth connection with the heating device, and the electronic device can send the first temperature adjustment instruction to the heating device through the established Bluetooth connection channel. Optionally, the heating device may also include a power supply device, which is electrically connected to the heating element of the heating plate, and the power supply device can provide different currents for the heating element so that the heating device reaches the target temperature. The heating device may also include a temperature sensor. For the convenience of description, the temperature sensor included in the electronic device is referred to as the first temperature sensor below, and the temperature sensor included in the heating device is referred to as the second temperature sensor. The second temperature sensor is used to collect the temperature collected by the second temperature sensor of the heating device and adjust the output current of the power supply device until the temperature of the heating device reaches the target temperature, and maintain the output current of the power supply device unchanged. If the temperature collected by the second temperature sensor is less than the target temperature, the output current of the power supply device is controlled to increase so that the temperature of the heating device is close to the target temperature; if the temperature collected by the second temperature sensor is greater than the target temperature, the output current of the power supply device is controlled to decrease so that the temperature of the heating device is close to the target temperature. In this embodiment, a second temperature sensor is provided to collect the temperature of the heating device, thereby achieving closed-loop adjustment of the temperature of the heating device, effectively maintaining the temperature of the heating device at the target temperature, and providing a constant and appropriate background temperature for the infrared image.
[0078] Step 208: Acquire an infrared image captured by the infrared imager.
[0079] The infrared image at least includes the pipeline to be detected in the target pipeline area. It should be noted that the infrared imager is directed toward the pipeline to be detected, and the infrared image including the pipeline to be detected is collected and generated. Since the infrared imager and the heating device are respectively arranged on two opposite sides of the pipeline to be detected in the target pipeline area, the infrared image may also include the heating device, which provides a background with a temperature of the target temperature for the infrared image, so that the background temperature of the infrared image is relatively single, avoiding the temperature of the background object from interfering with the gas leakage situation, and improving the accuracy of detecting the gas leakage situation.
[0080] In an optional embodiment, the electronic device may include a posture sensor, which may be arranged on the infrared imager, and the posture sensor may be used to detect the posture of the infrared imager. The heating device may include a heating plate and a supporting device, and the gas leakage detection method may further include: obtaining a first posture of the infrared imager detected by the posture sensor, determining a target orientation and a target height of the heating plate according to the first posture, and sending a posture adjustment instruction to the heating device according to the target orientation and the target height. The posture adjustment instruction is used to instruct the heating device to control the supporting device to drive the heating plate to move in the vertical direction and / or rotate in the horizontal direction, so that the heating plate moves to the target height and rotates to the target orientation. It should be noted that, Figure 3 As shown, the infrared imager, the heating plate of the heating device and the pipeline to be detected should be placed in a straight line as much as possible to ensure that the heating plate provides an effective area of background temperature for the infrared imager. The first posture may include but is not limited to the inclination angle θ of the infrared imager and the second position information of the infrared imager. The electronic device can also obtain the third position information sent by the heating device, and determine the target orientation and target height of the heating plate according to the inclination angle θ of the infrared imager, the second position information of the infrared imager and the third position information. Exemplarily, the posture sensor may include a first positioning sensor and a gyroscope, and the heating device may include a second positioning sensor, the first positioning sensor is used to collect the second position information corresponding to the infrared imager, the gyroscope can be used to detect the inclination angle θ of the infrared imager, the second positioning sensor collects the third position information of the heating device, and the heating device obtains the third position information collected by the second positioning sensor and sends it to the electronic device. Optionally, the first positioning sensor and the second positioning sensor can be a GPS (Global Positioning System) positioning sensor, an RTK (Real-time kinematic) positioning sensor, etc. The RTK positioning sensor uses carrier phase differential GPS technology to achieve real-time positioning, and relies on the two measurement methods of differential correction and carrier phase ranging to enable the accuracy of dynamic positioning to reach the centimeter level.
[0081] Optionally, the electronic device may further include a display screen, which may be used to display the infrared image captured by the infrared imager. The inspector may determine whether the pixel area of the heating plate in the infrared image is greater than or equal to a preset area threshold. When the pixel area is greater than or equal to the preset area threshold, the inspector may trigger the electronic device to determine the gas leakage in the target pipeline area according to the infrared image. It should be noted that when the pixel area of the heating plate is greater than or equal to the preset area threshold, the influence of the cluttered background on the electronic device's detection of the gas leakage in the target pipeline area based on the infrared image may be reduced, thereby improving the detection accuracy of the gas leakage based on the infrared image. In this embodiment, when the electronic device obtains the infrared image captured by the infrared imager, it displays the infrared image through the display screen, so that the inspector can determine whether the infrared image meets the requirements. When the infrared image meets the requirements, the electronic device determines the gas leakage in the target pipeline area according to the infrared image, thereby further improving the detection accuracy of the gas leakage in the target pipeline area.
[0082] Optionally, before determining the gas leakage situation in the target pipeline area based on the infrared image, the gas leakage detection method may also include: the electronic device determines the pixel area of the heating plate in the infrared image, and if the pixel area is less than a preset area threshold, then according to the appearance ratio of the heating plate in the infrared image and the pixel area of the heating plate, the target focal length of the infrared imager and / or the adjustment information of the heating device are determined, the focal length of the infrared imager is adjusted to the target focal length, and / or the adjustment information is sent to the heating device. It should be noted that if the pixel area of the heating plate in the infrared image is less than the preset area threshold, it may be caused by the fact that the heating plate, the infrared imager, and the pipeline to be detected are not in a straight line, or it may be caused by the fact that the focal length of the infrared imager is too small. By determining the appearance ratio and pixel area of the heating plate, it can be determined what causes the smaller area, wherein the appearance ratio may refer to the ratio between the actual area of the actual partial area corresponding to the pixel area of the heating plate in the infrared image and the actual complete area of the heating plate. Exemplarily, Figure 4 The shaded portion is the pixel area 411 of the heating plate in the infrared image 410. Figure 5 The area surrounded by the dotted line is the actual partial area 501 of the heating plate 131 corresponding to the pixel area 411. The actual area of the actual partial area 501 of the heating plate 131 is A, and the actual complete area of the heating plate 131 is B. The appearance ratio is A / B. If the appearance ratio of the heating plate 131 is less than the preset ratio threshold, it is determined that the position of the heating plate 131 should be adjusted. Please continue to refer to Figure 4 , the position of the heating plate 131 is too low, and the heating plate 131 should be moved up in the vertical direction so that the pixel area of the heating plate 131 in the infrared image 410 is greater than or equal to the preset area threshold. Figure 6As shown in FIG. 4 , it shows that after the position of the heating plate 131 is adjusted, the infrared image 410 collected by the infrared imager has a pixel area 411 of the heating plate greater than or equal to a preset area threshold. If the appearance ratio of the heating plate 131 is greater than or equal to the preset ratio threshold, it is determined that the focal length of the infrared imager is too small, and the focal length of the infrared imager is adjusted according to the pixel area of the heating plate 131 in the infrared image 410, so that the pixel area of the heating plate 131 in the infrared image 410 is greater than or equal to the preset area threshold. Figure 7 As shown, the proportion of the heating plate 131 appearing in the infrared image 410 is greater than a preset proportion threshold. At this time, adjusting the position of the heating plate 131 cannot increase the pixel area of the heating plate 131 in the infrared image 410. By increasing the focal length of the infrared imager, the pixel area of the heating plate 131 in the infrared image 410 is increased.
[0083] Optionally, the electronic device may determine the first distance between the infrared imager and the heating device based on the second position information and the third position information, determine the target actual area corresponding to the pixel area of the heating device based on the first distance, the focal length of the infrared imager and the pixel area, and calculate the appearance ratio of the target actual area and the actual complete area of the heating device. It should be noted that the target actual area may refer to the actual area corresponding to the heating plate in the infrared image.
[0084] It is understandable that if the pixel area of the heating plate in the infrared image is greater than or equal to the preset area threshold, the electronic device determines the gas leakage situation in the target pipeline area based on the infrared image.
[0085] In this embodiment, when the electronic device obtains an infrared image captured by an infrared imager, it can first determine the pixel area of the heating device in the infrared image. If the pixel area is smaller than a preset area threshold, the position of the heating plate or the focal length of the infrared imager is adjusted to obtain an infrared image in which the pixel area of the heating device is larger than the preset area threshold, so as to improve the detection accuracy of gas leakage detection based on the infrared image.
[0086] Step 210: determine the gas leakage situation in the target pipeline area according to the infrared image.
[0087] It should be noted that the gas leakage situation may include one or more of whether there is a gas leakage phenomenon, the gas leakage location and the gas leakage concentration. Exemplarily, if the target pipeline area where the gas leakage exists is first determined based on the voiceprint imager, the gas leakage situation may include the gas leakage location and the gas leakage concentration. If the target pipeline area is a preset pipeline area in the inspection route, the gas leakage situation may include whether there is a gas leakage phenomenon, and if there is a gas leakage phenomenon, the gas leakage location and the gas leakage concentration are determined.
[0088] In an optional embodiment, the gas leakage situation may include the gas leakage position, and determining the gas leakage situation of the target pipeline area according to the infrared image may include: the electronic device obtains the second position information corresponding to the infrared imager collected by the first positioning sensor, and performs temperature detection on the infrared image to determine the maximum temperature point in the area corresponding to the heating device in the target pipeline area, and the electronic device determines the gas leakage position according to the second position information and the image position information of the maximum temperature point in the infrared image. Among them, the maximum temperature point may include a maximum temperature point and a minimum temperature point, and the maximum temperature point coincides with the position of the pipeline to be detected. It should be noted that the temperature of the gas transmitted by the oil pipeline may be higher than, lower than or equal to the ambient temperature. When the temperature of the gas transmitted by the oil pipeline is much higher than the ambient temperature, or even higher than the target temperature, the maximum temperature point of the pipeline to be detected in the infrared image can be considered as the gas leakage point. If the temperature of the gas is lower than or equal to the ambient temperature, since the gas will absorb the heat radiation of the heating device, and if there is a leakage point in the pipeline to be detected, the gas density at the leakage point is the largest, and the infrared image shows that the temperature at the gas leakage point of the pipeline to be detected is the lowest. It can be seen that when there is a gas leakage in the pipeline to be detected, there will be a maximum temperature value point or a minimum temperature value point in the pipeline to be detected, so that the gas leakage position of the pipeline to be detected can be determined. The electronic device can determine the gas leakage position of the pipeline to be detected in the target pipeline area based on the first position information and the image position information of the maximum temperature point in the infrared image.
[0089] Optionally, the gas leakage situation may also include gas leakage concentration. The electronic device may determine the temperature change amplitude of each sub-area in the target pipeline area through infrared images, and the gas leakage concentration of the target pipeline area may be determined by combining the gas diffusion model and the environmental parameters of the target pipeline area (such as ambient temperature).
[0090] Optionally, the electronic device can also perform image segmentation on the infrared image to obtain a first infrared image corresponding to the heating device in the infrared image, and determine the gas leakage situation in the target pipeline area based on the first infrared image. Since the first infrared image does not include other objects outside the heating device, the influence of the temperature of the other objects on the detection of gas leakage situation in the target pipeline area can be avoided, thereby further improving the detection accuracy of gas leakage situation in the target pipeline area.
[0091] In an embodiment of the present application, the infrared imager and the heating device are respectively arranged on two sides of the pipeline to be tested in the target pipeline area. The ambient temperature is collected, and the target temperature of the heating device is determined according to the ambient temperature. The temperature of the heating device is controlled to be the target temperature to provide a suitable temperature background for the infrared imager. The target temperature belongs to the temperature measurement range of the infrared imager, so that the infrared imager can detect the thermal radiation emitted by the heating device, and avoid the phenomenon that the infrared imager cannot detect the thermal radiation due to the low ambient temperature of the pipeline to be tested, resulting in the inability to image. At the same time, by setting the heating device, the complexity of the temperature background of the infrared image collected by the infrared imager can be reduced, and the detection accuracy of the gas leakage in the target pipeline area based on the infrared image can be improved.
[0092] Please refer to Figure 8 , which shows a flow chart of another gas leakage detection method provided in an embodiment of the present application. The gas leakage detection method can be applied to Figure 1 In the electronic device 120 shown. Figure 8 As shown, the gas leakage detection method may include steps 802 to 818 .
[0093] Step 802, obtaining the ambient temperature of the target pipeline area collected by the temperature sensor.
[0094] For the description of step 802, please refer to the description of step 202 in the above embodiment, which will not be repeated here.
[0095] Step 804, determine whether the ambient temperature is greater than a preset temperature threshold, if so, execute steps 806 to 810 and steps 814 to 818; if not, execute step 812 and steps 814 to 818.
[0096] It should be noted that in cold weather, such as weather with a temperature below -20°C, even if there is a gas leak in the oil pipeline system, the ambient temperature and the temperature of the leaked gas are too low and are not within the temperature measurement range of the infrared imager, resulting in the infrared imager failing to detect the thermal radiation emitted by the leaked gas, failing to generate an infrared image containing the leaked gas, and failing to detect the gas leak. The temperature measurement range of most medium-wave infrared imagers on the market does not include low temperatures, such as a temperature range below -20°C. Therefore, in a low-temperature environment, infrared images are generally collected by long-wave infrared imagers. However, the imaging resolution of infrared images collected by long-wave infrared imagers is small and cannot meet the requirements for accurately detecting gas leaks in the target pipeline. The imaging resolution of a medium-wave infrared imager is higher than that of a long-wave infrared imager. In this embodiment, a heating device is provided on the side of the pipeline to be detected away from the infrared imager. The heating device can provide a target temperature within the temperature measurement range of the infrared imager to meet the imaging requirements of the infrared imager, so that a medium-wave infrared imager can also be used to collect infrared images with higher resolution in cold weather, thereby improving the detection accuracy of gas leaks in cold weather.
[0097] Optionally, the gas leakage detection system includes equipment with a higher explosion-proof level, such as voiceprint imagers, infrared imagers, temperature sensors, etc. whose circuits are explosion-proof circuits. The operating voltage and operating power of the equipment are lower than the target threshold corresponding to the explosion-proof level, meeting the safety requirements of inspections.
[0098] It should be noted that even in non-cold weather, if the background of the infrared image is complex, the electronic device will have a large interference in detecting the gas leakage in the target pipeline area based on the infrared image. At the same time, if the temperature difference between other background objects and the leaking gas is large, the proportion of the pixel range corresponding to the leaking gas will be very small, resulting in the inability to accurately detect the gas leakage in the target pipeline area due to blurred boundaries, low contrast, etc. when using the image algorithm to detect the gas leakage. The infrared image generated by the infrared imager has a certain pixel value range, and different pixel values in the infrared image represent different temperatures. Exemplarily, the pixel value range of the infrared imager is f1 to f2, and the temperature range corresponding to the infrared image is w1 to w2. In the infrared image, the temperature difference between two adjacent pixel values can be expressed as d, where d=(w2-w1) / (f2-f1). It can be seen that by setting a heating device and controlling the temperature of the heating device to be a target temperature that matches the ambient temperature, the temperature difference between the two temperatures corresponding to the two adjacent pixel values can be made appropriate, so that the contrast of the infrared image is within a suitable preset contrast range to improve the detection accuracy of the gas leakage.
[0099] Optionally, the preset temperature threshold can be used to measure whether the ambient temperature is greater than the minimum value of the temperature measurement range of the infrared imager. That is, by comparing the ambient temperature and the preset temperature threshold, it can be determined whether the ambient temperature is within the temperature measurement range of the infrared imager, and then a suitable temperature determination strategy for the heating device is selected to capture the infrared image and ensure the accuracy of detecting gas leakage in the target pipeline area based on the infrared image.
[0100] Step 806: Determine a preset relationship curve corresponding to the ambient temperature according to the ambient temperature.
[0101] Step 808, determining the target temperature difference according to the target detection accuracy and the preset relationship curve.
[0102] Step 810, determining the target temperature of the heating device according to the target temperature difference and the ambient temperature.
[0103] Among them, the preset relationship curve corresponding to the ambient temperature can be used to indicate the corresponding relationship between the temperature difference and the detection accuracy of the gas leakage at the ambient temperature, and the temperature difference is the difference between the ambient temperature and the experimental temperature of the heating device. It should be noted that when the ambient temperature is greater than the preset temperature threshold, it can be considered that the ambient temperature is within the temperature measurement range of the infrared imager. In this case, the temperature of the heating device is adjusted so that the contrast of the image containing the leaked gas collected by the infrared imager is within the preset contrast range. The detection accuracy can be used to measure the gap between the gas leakage determined by the electronic device and the actual gas leakage. The higher the detection accuracy, the smaller the gap between the gas leakage determined by the electronic device and the actual gas leakage. The electronic device can pre-store multiple preset relationship curves, and the multiple preset relationship curves correspond to multiple experimental ambient temperatures one by one. The electronic device can query the experimental environment temperature consistent with the ambient temperature according to the ambient temperature collected by the temperature sensor of the electronic device, use the preset relationship curve corresponding to the experimental environment temperature as the preset relationship curve corresponding to the ambient temperature collected by the temperature sensor, and determine the target temperature difference corresponding to the target detection accuracy based on the required target detection accuracy and the preset relationship curve obtained by the query, and determine the target temperature of the heating device based on the target temperature difference and the ambient temperature. Under the ambient temperature, the temperature of the heating device is adjusted to the target temperature, so that the detection accuracy of the gas leakage in the target pipeline area determined based on the infrared image is the target detection accuracy, which ensures the detection accuracy of the gas leakage based on the infrared image. It can be understood that the target temperature difference is the temperature difference corresponding to the target detection accuracy in the preset relationship curve corresponding to the ambient temperature. The target detection accuracy can be pre-stored in the electronic device, and the detection personnel can also input it into the electronic device through an input device, such as a touch screen. Optionally, the target temperature difference range may include 3°C to 10°C. Optionally, the target temperature difference may be 3°C, 5°C and 10°C.
[0104] Exemplarily, the test personnel may adjust the experimental environment temperature of the laboratory to the first temperature, and control the temperature of the heating device to be the sum of the first temperature and the first temperature difference, release gas in front of the heating plate, collect the corresponding infrared image through the infrared imager, and detect and analyze the infrared image through the electronic device to determine the gas leakage situation. According to the gas leakage situation determined by the electronic device and the actual gas leakage situation, the detection accuracy corresponding to the first temperature and the first temperature difference is determined. Adjust the first temperature difference, repeat the above steps, and obtain the preset relationship curve corresponding to the first temperature. Adjust the experimental environment temperature, repeat the above steps, and obtain the preset relationship curve corresponding to another experimental environment temperature, thereby obtaining multiple preset relationship curves corresponding to multiple experimental environment temperatures one by one, and store the multiple preset relationship curves and the multiple experimental environment temperatures in the electronic device, so that the electronic device can query the preset relationship curve corresponding to the ambient temperature according to the ambient temperature collected by the first temperature sensor.
[0105] Exemplarily, determining the target temperature of the heating device according to the target temperature difference and the ambient temperature may include calculating the sum of the target temperature difference and the ambient temperature to obtain the target temperature of the heating device. The leaking gas absorbs the heat radiation of the heating device, so that the temperature corresponding to the area where the leaking gas is located is lower. Taking the sum of the target temperature difference and the ambient temperature as the target temperature, the contrast of the infrared image collected by the infrared imager can be within a preset contrast range, thereby ensuring the detection accuracy of the gas leakage in the target pipeline area based on the infrared image.
[0106] Step 812, determining that the target temperature of the heating device is a preset temperature.
[0107] Among them, the preset temperature is greater than the preset temperature threshold. It should be noted that when the ambient temperature is less than or equal to the preset temperature threshold, it can be considered that the ambient temperature is less than the minimum value of the temperature measurement range of the infrared imager, and the electronic device pre-stores a preset temperature greater than the preset temperature threshold, and the preset temperature is within the temperature measurement range of the infrared imager. Exemplarily, the preset temperature may be the sum of the minimum value of the measurement range of the infrared imager and the preset temperature difference. The preset temperature difference may be understood as the temperature difference between the temperature collected by the infrared imager and the temperature of the heating device after the leaked gas absorbs the thermal radiation of the heating device, so that after the leaked gas absorbs the thermal radiation, the infrared imager can still collect the required infrared image. Exemplarily, the preset temperature is the sum of the minimum value of the temperature measurement range of the infrared imager and 10°C.
[0108] Step 814: Send a first temperature adjustment instruction to the heating device according to the target temperature.
[0109] Step 816, acquiring the infrared image captured by the infrared imager.
[0110] Step 818, determining the gas leakage situation in the target pipeline area according to the infrared image.
[0111] For the description of steps 814 to 818 , please refer to steps 206 to 210 of the above embodiment, which will not be repeated here.
[0112] In an optional embodiment, determining the gas leakage in the target pipeline area according to the infrared image may include: the electronic device determines the contrast of the infrared image, and if the contrast of the infrared image belongs to a preset contrast range, determining the gas leakage in the target pipeline area according to the infrared image. Optionally, the gas leakage detection method may also include: if the contrast of the infrared image does not belong to the preset contrast range, determining a new target temperature according to the current target temperature and the contrast of the infrared image, and sending a second temperature adjustment instruction to the heating device according to the new target temperature, wherein the second temperature adjustment instruction is used to instruct the heating device to adjust the temperature to the new target temperature.
[0113] It should be noted that in this embodiment, the target pipeline area refers to an area where there is a gas leak, such as a target pipeline area where there is a gas leak determined by a voiceprint imager. If it is necessary to use an infrared image to detect the gas leak position and gas leak concentration, the contrast of the infrared image needs to be appropriate to obtain an accurate detection result. In this embodiment, the preset contrast range may refer to the contrast of the infrared image corresponding to the required detection accuracy, that is, when the preset contrast of the infrared image meets the preset contrast range, the detection accuracy does not meet the requirements and is not caused by the infrared image contrast being too low or too high. When it is determined that the contrast of the infrared image belongs to the preset contrast range, it can be considered that the infrared image can be used to determine the gas leakage situation in the target pipeline area for detection. When the electronic device determines that the contrast of the infrared image does not belong to the preset contrast range, it can determine a new target temperature according to the current target temperature and the contrast of the infrared image, and send a second temperature adjustment instruction to the heating device to instruct the heating device to adjust its temperature to the new target temperature. After the heating device adjusts its temperature to the new target temperature, the infrared imager re-collects the infrared image corresponding to the target pipeline area, and the contrast of the newly collected infrared image is closer to the preset contrast range, or even belongs to the preset contrast range. The electronic device analyzes the contrast of the infrared image newly collected by the infrared imager, and determines whether the contrast of the infrared image belongs to the preset contrast range. If so, the infrared image is used to analyze the gas leakage situation in the target pipeline area. If not, the new target temperature is determined according to the current target temperature and the contrast of the infrared image, and a second temperature adjustment instruction is sent to the heating device according to the new target temperature to adjust the temperature of the heating device until the contrast of the infrared image belongs to the preset contrast range. In this embodiment, by adjusting the temperature of the heating device, the contrast of the infrared image is adjusted to belong to the preset contrast range, which can fundamentally increase the detection accuracy based on infrared images compared to using image processing algorithms.
[0114] Optionally, determining a new target temperature according to the current target temperature and the contrast of the infrared image may include: if the contrast of the infrared image is less than the minimum value of the preset contrast range, reducing the current target temperature to obtain a new target temperature; if the contrast of the infrared image is greater than the maximum value of the preset contrast range, increasing the current target temperature to obtain a new target temperature. It should be noted that in this embodiment, the target temperature is the sum of the difference between the ambient temperature and the target temperature, the target temperature is greater than the ambient temperature, and the temperature of the gas transmitted by the oil pipeline may be consistent with the ambient temperature. When the contrast of the infrared image is less than the minimum value of the preset contrast range, it can be considered that the difference between the target temperature and the temperature of the leaked gas is too large, so the target temperature can be reduced to increase the temperature difference between two adjacent pixel values, thereby increasing the contrast of the infrared image. When the contrast of the infrared image is greater than the maximum value of the preset contrast range, it can be considered that the difference between the target temperature and the gas temperature is too small, so the target temperature can be increased to reduce the temperature difference between two adjacent pixel values, thereby reducing the contrast of the infrared image, so that the infrared imager can capture an infrared image with a contrast within the preset contrast range. In this embodiment, the electronic device determines the contrast of the infrared image, and detects the gas leakage of the target pipeline area according to the infrared image whose contrast meets the preset contrast range, and when the contrast of the infrared image does not meet the preset contrast range, determines the new target temperature according to the current target temperature and the contrast of the infrared image, controls the heating device to adjust the temperature to the new target temperature, and re-acquires the infrared image through the infrared imager until the infrared image whose contrast is within the preset contrast range is obtained. The electronic device determines the gas leakage of the target pipeline area with high accuracy based on the infrared image whose contrast is within the preset contrast range.
[0115] In this embodiment, the electronic device obtains the ambient temperature of the target pipeline area collected by the first temperature sensor, and determines the target temperature determination strategy to be selected according to the ambient temperature, so that when the ambient temperature is less than or equal to the preset temperature threshold, the infrared imager can also collect infrared images reflecting the leaked gas, and detect the gas leakage when the ambient temperature is less than or equal to the preset temperature threshold. At the same time, when the ambient temperature is greater than the preset temperature threshold, the detection accuracy of the electronic device for detecting the gas leakage based on the infrared imager is the target detection accuracy, which meets the detection accuracy requirements of the gas leakage.
[0116] Please refer to Fig. 9 , which shows a schematic diagram of the structure of a gas leakage detection device provided in an embodiment of the present application. The device can be applied to Figure 1 In the electronic device 120 shown, the electronic device 120 may include a temperature sensor and an infrared imager. Fig. 9As shown, the gas leakage detection device 900 may include a temperature acquisition module 910, a temperature determination module 920, a sending module 930, an image acquisition module 940 and a leakage determination module 950. The temperature acquisition module 910 is used to acquire the ambient temperature of the target pipeline area acquired by the temperature sensor. The temperature determination module 920 is used to determine the target temperature corresponding to the heating device according to the ambient temperature; the infrared imager and the heating device are respectively arranged on the two sides of the pipeline to be detected in the target pipeline area, and the target temperature belongs to the temperature measurement range of the infrared imager. The sending module 930 is used to send a first temperature adjustment instruction to the heating device according to the target temperature, and the first temperature adjustment instruction is used to instruct the heating device to adjust the temperature to the target temperature. The image acquisition module 940 is used to acquire an infrared image acquired by the infrared imager, and the infrared image at least includes the pipeline to be detected. The leakage determination module 950 is used to determine the gas leakage situation of the target pipeline area according to the infrared image.
[0117] In an optional embodiment, the temperature determination module 920 includes a curve determination unit, a difference determination unit, and a first temperature determination unit. The curve determination unit is used to determine a preset relationship curve corresponding to the ambient temperature according to the ambient temperature if the ambient temperature is greater than a preset temperature threshold. The preset relationship curve is used to indicate the corresponding relationship between the temperature difference and the detection accuracy of the gas leakage at the ambient temperature. The temperature difference is the difference between the ambient temperature and the experimental temperature of the heating device. The difference determination unit is used to determine the target temperature difference according to the target detection accuracy and the preset relationship curve. The first temperature determination unit is used to determine the target temperature of the heating device according to the target temperature difference and the ambient temperature.
[0118] In an optional embodiment, the temperature determination module 920 includes a second temperature determination unit. The second temperature determination unit is used to determine the target temperature of the heating device to be the preset temperature if the ambient temperature is less than or equal to the preset temperature threshold; the preset temperature is greater than the preset temperature threshold.
[0119] In an optional embodiment, the leakage determination module 950 includes a contrast determination unit and a leakage determination unit, and the gas leakage detection device 900 also includes a temperature adjustment module. The contrast determination unit is used to determine the contrast of the infrared image. The leakage determination unit is used to determine the gas leakage situation in the target pipeline area according to the infrared image if the contrast of the infrared image belongs to the preset contrast range. The temperature adjustment module is used to determine a new target temperature according to the current target temperature and the contrast of the infrared image if the contrast of the infrared image does not belong to the preset contrast range, and send a second temperature adjustment instruction to the heating device according to the new target temperature, and the second temperature adjustment instruction is used to instruct the heating device to adjust the temperature to the new target temperature.
[0120] In an optional embodiment, the temperature adjustment module is further configured to reduce the current target temperature to obtain a new target temperature if the contrast of the infrared image is less than a minimum value of a preset contrast range;
[0121] In an optional embodiment, the temperature adjustment module is further configured to increase the current target temperature to obtain a new target temperature if the contrast of the infrared image is greater than a maximum value of a preset contrast range.
[0122] In an optional embodiment, the gas leakage detection device 900 further includes an audio receiving module, a feature extraction module, and a region determination module. The audio receiving module is used to receive the ambient audio of the first region collected by the voiceprint imager and sent by the voiceprint imager before acquiring the ambient temperature of the target pipeline region collected by the temperature sensor. The feature extraction module is used to extract the voiceprint features in the ambient audio and determine whether there is a gas leak in the first region based on the voiceprint features. The region determination module is used to determine the target pipeline region with gas leakage from the first region based on the voiceprint features if it is determined that there is a gas leak in the first region.
[0123] In an optional embodiment, the heating device includes a heating plate and a supporting device, and the gas leakage detection device 900 also includes a posture acquisition module, a posture determination module, and an instruction sending module. The posture acquisition module is used to acquire a first posture of the infrared imager detected by the posture sensor. The posture determination module is used to determine the target orientation and target height of the heating plate according to the first posture. The instruction sending module is used to send a posture adjustment instruction to the heating device according to the target orientation and target height, and the posture adjustment instruction is used to instruct the heating device to control the supporting device to drive the heating plate to move in the vertical direction and / or rotate in the horizontal direction, so that the heating plate moves to the target height and rotates to the target orientation.
[0124] See also Fig.10 , Fig.10 Schematic diagram of the structure of an electronic device disclosed in the embodiment of the present application. Fig.10 As shown, the electronic device 120 may include:
[0125] Temperature sensor 1010, used to collect the ambient temperature of the target pipeline area;
[0126] Infrared imager 1020, used for collecting infrared images;
[0127] A memory 1030 storing executable program codes;
[0128] A processor 1040 is coupled to the memory 1030 ; the processor 1040 is also connected to the temperature sensor 1010 and the infrared imager 1020 .
[0129] The processor 1040 calls the executable program code stored in the memory 1030 to execute any one of the gas leakage detection methods disclosed in the embodiments of the present application.
[0130] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by the processor, the processor implements any one of the gas leakage detection methods disclosed in the embodiment of the present application.
[0131] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.
[0132] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0133] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0134] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0135] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, server or network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above-mentioned methods of various embodiments of the present application.
[0136] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0137] The above is a detailed introduction to a gas leakage detection method, device, electronic device and storage medium disclosed in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A gas leakage detection method, characterized in that: Applied to electronic equipment, the electronic equipment includes a temperature sensor and an infrared imager, and the method includes: Acquire the ambient temperature of the target pipeline area collected by the temperature sensor; Determine the target temperature corresponding to the heating device according to the ambient temperature; the infrared imager and the heating device are respectively arranged on two opposite sides of the pipeline to be detected in the target pipeline area, and the target temperature is within the temperature measurement range of the infrared imager; According to the target temperature, sending a first temperature adjustment instruction to the heating device, wherein the first temperature adjustment instruction is used to instruct the heating device to adjust the temperature to the target temperature; Acquire an infrared image captured by the infrared imager, wherein the infrared image at least includes the pipeline to be inspected; Determine the gas leakage situation of the target pipeline area according to the infrared image; The step of determining a target temperature corresponding to the heating device according to the ambient temperature includes: If the ambient temperature is greater than a preset temperature threshold, a preset relationship curve corresponding to the ambient temperature is determined according to the ambient temperature, wherein the preset relationship curve is used to indicate a corresponding relationship between a temperature difference and a detection accuracy of a gas leakage situation at the ambient temperature, wherein the temperature difference is a difference between the ambient temperature and an experimental temperature of the heating device; Determining a target temperature difference according to the target detection accuracy and the preset relationship curve; The target temperature of the heating device is determined according to the target temperature difference and the ambient temperature.
2. The method according to claim 1, characterized in that The step of determining the target temperature corresponding to the heating device according to the ambient temperature further includes: If the ambient temperature is less than or equal to a preset temperature threshold, the target temperature of the heating device is determined to be a preset temperature; and the preset temperature is greater than the preset temperature threshold.
3. The method according to claim 1, characterized in that The determining of the gas leakage situation of the target pipeline area according to the infrared image includes: determining a contrast of the infrared image; If the contrast of the infrared image falls within a preset contrast range, determining the gas leakage situation of the target pipeline area according to the infrared image; The method further comprises: If the contrast of the infrared image does not fall within the preset contrast range, a new target temperature is determined based on the current target temperature and the contrast of the infrared image, and a second temperature adjustment instruction is sent to the heating device based on the new target temperature. The second temperature adjustment instruction is used to instruct the heating device to adjust the temperature to the new target temperature.
4. The method according to claim 3, characterized in that The determining of a new target temperature according to the current target temperature and the contrast of the infrared image includes: If the contrast of the infrared image is less than the minimum value of the preset contrast range, reducing the current target temperature to obtain a new target temperature; If the contrast of the infrared image is greater than the maximum value of the preset contrast range, the current target temperature is increased to obtain a new target temperature.
5. The method according to any one of claims 1 to 4, characterized in that: The electronic device is in communication with the voiceprint imager, and before acquiring the ambient temperature of the target pipeline area collected by the temperature sensor, the method further includes: Receiving ambient audio of a first area collected by the voiceprint imager and sent by the voiceprint imager; Extracting voiceprint features from the ambient audio, and determining whether there is a gas leak in the first area according to the voiceprint features; If it is determined that there is a gas leak in the first area, a target pipeline area where there is a gas leak is determined from the first area according to the voiceprint feature.
6. The method according to any one of claims 1 to 4, characterized in that: The electronic device includes a posture sensor, the heating device includes a heating plate and a supporting device, and the method further includes: Acquire a first posture of the infrared imager detected by the posture sensor; determining a target orientation and a target height of the heating plate according to the first posture; According to the target direction and the target height, a posture adjustment instruction is sent to the heating device, and the posture adjustment instruction is used to instruct the heating device to control the supporting device to drive the heating plate to move in the vertical direction and / or rotate in the horizontal direction, so that the heating plate moves to the target height and rotates to the target direction.
7. A gas leakage detection device, characterized in that: Applied to electronic equipment, the electronic equipment includes a temperature sensor and an infrared imager, and the device includes: A temperature acquisition module, used to acquire the ambient temperature of the target pipeline area collected by the temperature sensor; A temperature determination module is used to determine a target temperature corresponding to the heating device according to the ambient temperature; the infrared imager and the heating device are respectively arranged on two opposite sides of the pipeline to be detected in the target pipeline area, and the target temperature belongs to the temperature measurement range of the infrared imager; a sending module, configured to send a first temperature adjustment instruction to the heating device according to the target temperature, wherein the first temperature adjustment instruction is used to instruct the heating device to adjust the temperature to the target temperature; An image acquisition module, used to acquire an infrared image captured by the infrared imager, wherein the infrared image at least includes the pipeline to be inspected; A leakage determination module, used to determine the gas leakage situation of the target pipeline area according to the infrared image; Wherein, the temperature determination module includes a curve determination unit, a difference determination unit and a first temperature determination unit; The curve determination unit is used to determine a preset relationship curve corresponding to the ambient temperature according to the ambient temperature if the ambient temperature is greater than a preset temperature threshold, wherein the preset relationship curve is used to indicate a corresponding relationship between a temperature difference and a detection accuracy of a gas leakage situation at the ambient temperature, and the temperature difference is a difference between the ambient temperature and an experimental temperature of the heating device; The difference determination unit is used to determine the target temperature difference according to the target detection accuracy and the preset relationship curve; The first temperature determination unit is used to determine the target temperature of the heating device according to the target temperature difference and the ambient temperature.
8. An electronic device, characterized in that: The method comprises a temperature sensor, an infrared imager, a memory and a processor, wherein the processor is connected to the temperature sensor and the infrared imager, and a computer program is stored in the memory. When the computer program is executed by the processor, the processor implements the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Positioning method and system of building inner air pipe leakage point
CN105675214A
SF6 gas leakage imaging detection method and detection device
CN110243542A
Wide-wavelength infrared imaging gas leakage detection system and method based on photo-thermal excitation
CN113390569A
SF6 gas leakage infrared imaging background intelligent temperature adjusting system based on fuzzy control
CN116483134A
Infrared detection system and method for heat leakage of complex metal surface
CN116718332A
