Pipeline detection method and device, electronic equipment and storage medium
By combining infrared imaging and voiceprint detection technology, and fusing infrared images and acoustic wave features, the accurate identification of pipeline leakage points is achieved, solving the problem of large detection errors in the existing technology, improving the detection accuracy of leakage locations, and reducing Resource waste and environmental pollution.
Patent Information
- Application Number
- CN202410670686.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-10-15
AI Technical Summary
It is difficult to accurately detect the location of pipeline leaks with existing technology, leading to delays in leak repair, waste of resources and environmental pollution.
A method combining an infrared imaging device and a voiceprint detection device is used to identify pipeline leakage points and improve detection accuracy through the fusion of infrared images and acoustic wave features.
It reduces the error of a single detection device, improves the detection accuracy of pipeline leakage locations, ensures timely repair, and reduces resource losses and environmental pollution.
Smart Images

Figure CN118775779A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of infrared imaging technology, and in particular to a pipeline detection method, device, electronic equipment and storage medium. Background Art
[0002] At present, pipeline transportation is considered to be the safest and most economical method of transporting resources. However, as the pipeline ages over time, or is corroded by various media and other destructive factors, it may cause leakage in the pipeline, causing the gas or liquid transported in the pipeline to seep out through the leakage point. Pipeline leakage not only leads to the loss of transportation resources, but also causes environmental pollution and affects the service life of the pipeline. Therefore, accurately detecting the leakage location of the pipeline can help maintenance personnel to repair the leaking pipeline in a timely manner, thereby reducing the resource loss caused by pipeline leakage. Summary of the invention
[0003] The embodiments of the present application disclose a pipeline detection method, device, electronic device and storage medium, which can improve the accuracy of detecting pipeline leakage locations.
[0004] The present application embodiment discloses a pipeline detection method, which is applied to an electronic device, wherein the electronic device includes an infrared imaging device and a voiceprint detection device, and the method includes:
[0005] Acquire an infrared image of the pipeline collected by the infrared imaging device;
[0006] Perform pipeline leakage identification on the infrared image to obtain first leakage point information corresponding to the pipeline;
[0007] Acquiring a detection sound wave for the pipeline collected by the voiceprint detection device;
[0008] Determining second leakage point information corresponding to the pipeline according to the sound wave characteristics corresponding to the detection sound wave;
[0009] The first leakage point information and the second leakage point information are merged to obtain target leakage point information.
[0010] As an optional implementation manner, the performing pipeline leakage identification on the infrared image to obtain first leakage point information corresponding to the pipeline includes:
[0011] Extracting features from the infrared image to obtain gas morphology features and gas motion features corresponding to the infrared image;
[0012] Through the pipeline recognition model, pipeline leakage recognition is performed according to the gas morphology characteristics and gas movement characteristics corresponding to the infrared image, and the first leakage point information corresponding to the infrared image is determined.
[0013] As an optional implementation manner, the first leakage point information includes first leakage position information corresponding to a leakage point where gas leakage exists in the pipeline in the infrared image; the determining the first leakage point information corresponding to the infrared image according to the gas morphological characteristics and gas movement characteristics corresponding to the infrared image by the pipeline recognition model includes:
[0014] The gas morphological characteristics and gas motion characteristics are integrated through a pipeline recognition model to obtain gas infrared characteristics;
[0015] Calculating the similarity between the infrared characteristics of the gas and the preset leakage gas characteristics through the pipeline identification model;
[0016] If the similarity is greater than a preset similarity threshold, it is determined that there is a leakage point in the pipeline, and the first leakage position information corresponding to the leakage point in the infrared image is determined by the pipeline recognition model according to the gas infrared characteristics.
[0017] As an optional implementation manner, determining the first leakage position information corresponding to the leakage point in the infrared image according to the infrared characteristics of the gas through the pipeline recognition model includes:
[0018] Selecting feature data greater than a first feature threshold in the infrared features of the gas as target feature data through the pipeline recognition model;
[0019] According to the first image position corresponding to the target feature data in the infrared image, first leakage position information corresponding to the leakage point in the infrared image is determined.
[0020] As an optional implementation, the sound wave feature includes the sound wave frequency of the detection sound wave, and the soundprint detection device further includes an optical module; before determining the second leakage point information corresponding to the pipeline according to the sound wave feature corresponding to the detection sound wave, the method further includes:
[0021] Acquiring an initial pipeline image captured by the optical module;
[0022] The determining, according to the sound wave feature corresponding to the detected sound wave, the second leakage point information corresponding to the pipeline comprises:
[0023] A target sound wave frequency greater than a preset frequency threshold in the detection sound wave is determined, and a second image position of a leakage point corresponding to the initial pipeline image is determined according to the target sound wave frequency, and the second image position is used as second leakage point information.
[0024] As an optional implementation, the voiceprint detection device further includes an optical module; the first leakage point information includes first leakage position information corresponding to the leakage point where gas leakage exists in the pipeline in the infrared image, and the second leakage point information includes second leakage position information corresponding to the leakage point where gas leakage exists in the pipeline in the initial pipeline image; after determining the second leakage point information corresponding to the pipeline according to the sound wave characteristics corresponding to the detected sound wave, the method further includes:
[0025] Performing image registration on the infrared image and the initial pipeline image synchronously collected by the infrared imaging device and the optical module to determine spatial transformation information;
[0026] According to the first leakage position information corresponding to the infrared image, marking the leakage point where the gas leakage occurs on the infrared image to obtain a marked infrared image;
[0027] According to the second leakage position information corresponding to the initial pipeline image, marking the leakage point where the gas leakage occurs on the initial pipeline image to obtain a marked initial pipeline image;
[0028] The annotated infrared image and the annotated initial pipeline image are fused according to the spatial transformation information to obtain a target pipeline image.
[0029] As an optional implementation manner, after fusing the first leakage point information and the second leakage point information to obtain the target leakage point information, the method further includes:
[0030] If the first leakage point information indicates that there is a gas leakage in the pipeline, and the second leakage point information indicates that there is no gas leakage in the pipeline, a prompt message is output; the prompt message is used to prompt the user that there is a deviation in the target leakage point information.
[0031] The present application embodiment discloses a pipeline detection device, the device comprising:
[0032] A first acquisition module, used to acquire an infrared image of the pipeline collected by the infrared imaging device;
[0033] An identification module, used for performing image recognition on the infrared image to obtain first leakage point information;
[0034] A second acquisition module, used to acquire the detection sound wave for the pipeline collected by the voiceprint detection device;
[0035] A determination module, used to determine the second leakage point information corresponding to the pipeline according to the sound wave characteristics corresponding to the detection sound wave;
[0036] A fusion module is used to fuse the first leakage point information and the second leakage point information to obtain target leakage point information.
[0037] An embodiment of the present application discloses an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements any one of the pipeline detection methods disclosed in the embodiment of the present application.
[0038] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, any pipeline detection method disclosed in the embodiment of the present application is implemented.
[0039] Compared with the related art, the embodiments of the present application have the following beneficial effects:
[0040] The embodiment of the present application provides a pipeline detection method, device, electronic device and storage medium, which obtains an infrared image of a pipeline acquired by an infrared imaging device; performs pipeline leakage identification on the infrared image to obtain first leakage point information corresponding to the pipeline; obtains detection sound waves for the pipeline acquired by a voiceprint detection device; determines second leakage point information corresponding to the pipeline according to the sound wave characteristics corresponding to the detection sound waves; and fuses the first leakage point information and the second leakage point information to obtain target leakage point information. By implementing the embodiment of the present application, pipeline leakage detection is performed on the infrared image of the pipeline acquired by the infrared imaging device to obtain first leakage point information corresponding to the pipeline, and second leakage point information corresponding to the pipeline is determined according to the sound wave characteristics corresponding to the detection sound waves. The pipeline can be leaked by using the information collected by the infrared imaging device and the sound wave imaging device respectively, and the leakage point information detected by the two can be fused to obtain target leakage point information, thereby reducing the error of leak detection of the pipeline by a single detection device and improving the accuracy of detecting the leakage position of the pipeline. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] 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.
[0042] Figure 1 This is an application scenario diagram of a pipeline detection method disclosed in an embodiment of the present application;
[0043] Figure 2 It is a flow chart of a pipeline detection method disclosed in an embodiment of the present application;
[0044] Figure 3 It is a schematic diagram of a process of identifying pipeline leakage using infrared images and obtaining first leakage point information corresponding to the pipeline disclosed in an embodiment of the present application;
[0045] Figure 4 It is a flow chart of another pipeline detection method disclosed in an embodiment of the present application;
[0046] Figure 5 It is a structural schematic diagram of a pipeline detection device disclosed in an embodiment of the present application;
[0047] Figure 6 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0048] 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.
[0049] 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.
[0050] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, the first leakage point information may be referred to as the second leakage point information, and similarly, the second leakage point information may be referred to as the first leakage point information. Both the first leakage point information and the second leakage point information are leakage point information, but they are not the same leakage point information.
[0051] The embodiments of the present application disclose a pipeline detection method, device, electronic device and storage medium, which can improve the accuracy of detecting the location of pipeline leakage. Detailed descriptions are given below.
[0052] See also Figure 1 , Figure 1: is an application scenario diagram of a pipeline detection method disclosed in an embodiment of the present application. The pipeline detection method is applicable to an electronic device 101, and the electronic device 101 may include but is not limited to a mobile phone, a tablet computer, a wearable device, a laptop computer, a PC (Personal Computer), etc. Further, the electronic device 101 may include an infrared imaging device and a voiceprint detection device. The infrared imaging device can be used to collect infrared images of the pipeline 102. The infrared imaging device generates an infrared image of the pipeline by detecting the infrared radiation value of the pipeline; the voiceprint detection device can be used to collect detection sound waves for the pipeline 102. The voiceprint detection device can include multiple sound wave collection units. Through each sound wave collection unit, it is possible to collect sound waves for the pipeline conveying gas in various directions, thereby collecting detection sound waves for the pipeline.
[0053] The electronic device 101 obtains an infrared image of the pipeline 102 collected by the infrared imaging device; performs pipeline leakage identification on the infrared image to obtain the first leakage point information corresponding to the pipeline 102; obtains the detection sound wave for the pipeline 102 collected by the voiceprint detection device; determines the second leakage point information corresponding to the pipeline 102 according to the sound wave characteristics corresponding to the detection sound wave; fuses the first leakage point information and the second leakage point information to obtain the target leakage point information. Furthermore, the electronic device can be used in the scene of oil field inspection. The user can use the electronic device to inspect the pipeline leakage in the oil field, thereby detecting the leakage of the pipeline in the oil field.
[0054] Figure 2 : is a flow chart of a pipeline detection method disclosed in an embodiment of the present application. Figure 2 The pipeline detection method described is applicable to the above-mentioned electronic equipment. Figure 2 As shown, the pipeline detection method may include the following steps:
[0055] S202: Acquire an infrared image of the pipeline collected by an infrared imaging device.
[0056] The infrared imaging device can generate an infrared image of the pipeline by detecting the infrared radiation value of the pipeline, and the distribution of the infrared radiation value of the pipeline can be observed through the infrared image. Furthermore, the electronic device can use different colors to mark the image areas corresponding to different infrared radiation ranges in the infrared image according to the distribution of the infrared radiation value in the infrared image. The user can determine the distribution of the infrared radiation value of the pipeline through various colors in the infrared image. For example, the infrared radiation value of the pipeline in the red part of the infrared image is higher than that of the pipeline in the blue part.
[0057] The movement characteristics of the gas in the pipeline under normal working conditions are roughly unchanged. For example, the speed of gas transport or the movement trajectory of the gas in the pipeline under normal working conditions is roughly unchanged. Assuming that a leak occurs somewhere in the pipeline, the movement characteristics of the gas at the leaking point of the pipeline may change, and it will also cause the infrared radiation value of the gas in the pipeline to change. Therefore, the electronic device can collect infrared images of the pipeline through an infrared imaging device to detect the movement characteristics of the gas in the pipeline, and thus determine whether the pipeline is leaking based on the movement characteristics of the gas.
[0058] In some embodiments, before the electronic device acquires the infrared image captured by the infrared imaging device, a start signal may be acquired, and the infrared imaging device may be controlled to start acquiring infrared images of the pipeline according to the start signal, wherein the start signal may be a signal for starting the electronic device to detect leaks on the pipeline, and the start signal may be input into the electronic device by the user, or may be a signal sent to the electronic device by other devices. After the electronic device receives the start signal, the electronic device may control the infrared imaging device to acquire infrared images of the pipeline at a preset speed, for example, the infrared imaging device may acquire infrared images at a speed of 30 frames per second. At the same time, the electronic device may acquire the infrared images of the pipeline captured by the infrared imaging device in real time, thereby implementing pipeline leak identification on the acquired infrared images.
[0059] S204, performing pipeline leakage identification on the infrared image to obtain first leakage point information corresponding to the pipeline.
[0060] In some embodiments, the first leakage point information may include the first leakage position information corresponding to the leakage point where there is gas leakage in the pipeline in the infrared image, wherein the first leakage position information may be the image position of the leakage point of the pipeline in the infrared image. Further, the image position of the infrared image may be the region identifier corresponding to each image region after the infrared image is divided into a plurality of image regions, and therefore, the image position corresponding to each image region may be used to uniquely identify the corresponding image region, and if it is identified that there is a gas transmission leakage in the pipeline recorded in a certain image region of the infrared image, the region identifier corresponding to the image region may be used as the first leakage position information. For example, assuming that there is a gas transmission leakage in the image region of the third row and fourth column, the region identifier (3,4) corresponding to the image region may be used to indicate the image position of the image region located in the third row and fourth column of the infrared image, and the region identifier (3,4) may be used as the first leakage position information.
[0061] The first leakage point information may also include the leakage degree corresponding to each first leakage position information, and the leakage degree corresponding to each first leakage position information may be used to indicate the gas leakage amount of the pipeline contained in the first leakage position information. The leakage degree corresponding to the first leakage position information may also be obtained by performing pipeline leakage identification on the infrared image.
[0062] In other embodiments, the electronic device may preprocess the infrared image to obtain a preprocessed infrared image, and perform leakage identification on the preprocessed infrared image through the trained pipeline identification model, thereby obtaining the first leakage point information corresponding to the pipeline. Preprocessing the infrared image may include one or more of denoising and contrast enhancement processing on the infrared image. Noise reduction processing may be filtering the infrared image to reduce noise or image details in the infrared image; contrast enhancement processing may be equalizing the infrared image to increase the contrast of the infrared image.
[0063] As an implementation method, the electronic device can perform feature extraction on the infrared image to obtain a two-dimensional infrared feature corresponding to the infrared image, wherein the two-dimensional infrared feature can be a two-dimensional array for describing gas movement. If one of the feature data contained in the two-dimensional infrared feature corresponding to the infrared image is greater than a preset feature threshold, it is determined that there is a gas leak in the pipeline recorded by the current infrared image, and the image area corresponding to the feature data greater than the preset feature threshold is used as the first leakage location information. Among them, the two-dimensional infrared feature can include a variety of feature data, such as gas movement speed, gas form, etc., wherein the gas movement speed can be the transportation speed, and the gas form can be the form of gas transportation in the pipeline. The electronic device extracts the features of the infrared image to obtain the two-dimensional infrared feature of the infrared image, which is convenient for subsequent feature recognition based on the two-dimensional infrared feature, and provides a technical basis for improving the accuracy of detecting pipeline leakage locations.
[0064] Furthermore, the electronic device collects infrared radiation values for the pipeline through an infrared imager to form an infrared image, and by extracting features from the infrared image, a two-dimensional infrared feature for describing gas movement can be obtained, thereby performing feature recognition on the two-dimensional infrared feature to obtain first leakage point information corresponding to the pipeline. For example, when a pipeline leaks, the infrared radiation value collected for the pipeline is different from the infrared radiation value of a pipeline without leakage, so feature extraction can be performed on the infrared image to identify an image area similar to the two-dimensional infrared feature of the pipeline with leakage, thereby obtaining the first leakage point information corresponding to the pipeline.
[0065] S206, obtaining detection sound waves for the pipeline collected by the voiceprint detection device.
[0066] The voiceprint detection device can collect detection sound waves for the pipeline through the voiceprint module, wherein the voiceprint module can be composed of a plurality of microphone group arrays. The detection sound wave may refer to the sound wave emitted by the pipeline when conveying gas. Since the sound waves corresponding to leakage and no leakage of the pipeline when conveying gas are different, the detection sound wave for the pipeline when conveying gas can be collected by the voiceprint detector to determine whether the pipeline leaks according to the detection sound wave. In some embodiments, after receiving the start signal, the electronic device can control the voiceprint detection device to start collecting detection sound waves for the pipeline, the voiceprint detection device can continuously collect detection sound waves for the pipeline, and the electronic device can obtain the detection sound waves collected in the current preset time period at intervals of a preset time period. For example, the electronic device can obtain the detection sound waves of the pipeline collected by the voiceprint detection device according to the time period of seconds. In the time period 15:00:05-15:00:06, the electronic device obtains detection sound wave A, and in the time period 15:00:06-15:00:07, the electronic device obtains detection sound wave B.
[0067] In some embodiments, the voiceprint detection device may include an explosion-proof module, which can be used to prevent the voiceprint detection device from overheating and exploding during the process of leak detection on the pipeline. Furthermore, the explosion-proof module may include an explosion-proof circuit, which controls the voltages of multiple components included in the explosion-proof circuit to be less than a preset voltage threshold, or controls the total power in the explosion-proof circuit to be less than a preset power threshold, so that the voiceprint detection device will not overheat during the process of leak detection on the pipeline, and the working time of the voiceprint detection device can be extended to protect the voiceprint detection device.
[0068] As an implementation mode, after obtaining the detection sound wave collected by the voiceprint detection device, the electronic device may pre-process the detection sound wave to obtain the pre-processed detection sound wave, and then determine the second leakage point information corresponding to the pipeline according to the sound wave characteristics corresponding to the pre-processed detection sound wave. Pre-processing the detection sound wave may be delay processing or noise removal processing of the detection sound wave to obtain a detection sound wave with more accurate sound source positioning. Since the voiceprint detection device may include multiple sound wave collection units, the sound wave collection units may be used to collect sound waves. Since the positions of each sound wave collection unit in the voiceprint detection device may be different, there may be a time difference when the detection sound wave reaches each sound wave collection unit, thereby affecting the judgment of the distance, orientation and other parameters of the sound source of the detection sound wave. Therefore, delay processing of the detection sound wave is to estimate the time difference of the detection sound waves collected by multiple sound wave collection units in the voiceprint detection device at the same time, which can reduce the error of the collected detection sound wave. The noise removal processing for the detection sound waves may be to remove the detection sound waves whose sound wave frequencies are higher than a preset sound wave frequency threshold, or to remove the detection sound waves whose sound wave wavelengths are greater than a preset sound wave wavelength threshold, so as to avoid the influence of invalid detection sound waves on pipeline leakage detection.
[0069] S208, determining the second leakage point information corresponding to the pipeline according to the sound wave characteristics corresponding to the detected sound wave.
[0070] In some embodiments, the detection sound wave may be a sound wave collected by the voiceprint detection device during the detection process, and the sound wave feature may include a detection sound image generated according to the detection sound wave, wherein the detection sound image may display the distribution of the detection sound wave in space, and the parameters describing the distribution of the detection sound wave in space may include one or more of the sound wave amplitude, the sound wave period, the sound wave frequency, and the sound wave wavelength, etc. Among them, the sound wave amplitude may be used to describe the change from the peak to the trough of the detection sound wave; the sound wave period may be used to describe the repetition of the peak or trough of the detection sound wave; the sound wave frequency may be used to describe the number of times a particle in a wave train vibrates per unit time; and the sound wave wavelength may be used to describe the distance the detection sound wave propagates within a time period.
[0071] In some embodiments, the electronic device may identify the sound wave feature corresponding to the detected sound wave to determine the sound wave feature greater than a preset sound wave feature threshold, and determine the second leakage point information corresponding to the pipeline according to the sound wave feature greater than the preset feature threshold. For example, the electronic device may determine the second leakage point information corresponding to the pipeline according to the sound wave frequency in the sound wave feature being greater than a preset frequency threshold.
[0072] S210, fusing the first leakage point information and the second leakage point information to obtain target leakage point information.
[0073] In one embodiment, the first leakage point information includes first leakage position information of a gas transmission leakage in the pipeline, and the second leakage point information includes second leakage position information of a gas transmission leakage in the pipeline, and the first leakage position information may be an image position of a pipeline leakage in the infrared image, and the second leakage position information may be an image position of a pipeline leakage in the initial pipeline image, and the image position of the pipeline leakage in the infrared image and the image position of the pipeline leakage in the initial pipeline image are fused to obtain the target leakage information. Further, if the difference between the image position of the pipeline leakage in the infrared image and the image position of the pipeline leakage in the initial pipeline image is less than a preset difference threshold, the image position of the pipeline leakage in the infrared image and the image position of the pipeline leakage in the initial pipeline image are fused to obtain the target leakage point information. For example, assuming that the difference threshold is 2, if the image position of the pipeline leakage in the infrared image is (3,4), and the image position of the pipeline leakage in the initial pipeline image is (4,5), the two image positions can be fused, specifically, the average value of the two can be calculated and then rounded up to obtain the fused image position (4,5).
[0074] After the electronic device obtains the target leakage point information, the target leakage point information may include target leakage position information. The target leakage position information is an image position obtained by fusing the image position where the pipeline leakage exists in the infrared image with the image position where the pipeline leakage exists in the initial pipeline image. Therefore, the electronic device may mark the target leakage information on the infrared image or the initial pipeline image according to the target leakage position information to obtain the target pipeline image, and output the target pipeline image on the display screen of the electronic device.
[0075] As an implementation mode, if the first leakage point information indicates that there is a gas transmission leakage, and the second leakage point information indicates that there is no gas transmission leakage, a prompt message is output; the prompt message is used to prompt the user that there is a deviation in the target leakage point information. The second leakage point information indicates that there is no gas transmission, which may indicate that the leakage of the gas transmission pipeline is not clear, so a prompt message can be output to prompt the user that there is a deviation in the target leakage point information. If the first leakage point information indicates that there is no gas leakage, and the second leakage point information indicates that there is a gas transmission leakage, it is determined that there is no gas leakage in the current transmission pipeline, and the electronic device can re-acquire the infrared image of the pipeline collected by the infrared imaging device, and identify the pipeline leakage on the infrared image. When the first leakage point information and the second leakage point information are inconsistent, the electronic device outputs a prompt message to prompt the user that there is a deviation in the current target leakage point information, which further ensures the scientific nature of the target leakage point information. After browsing the prompt message, the user can also further choose to re-detect the pipeline for leakage, which can improve the accuracy of the pipeline leakage detection.
[0076] In an embodiment of the present application, the electronic device performs pipeline leakage detection on an infrared image of the pipeline acquired by an infrared imaging device to obtain first leakage point information corresponding to the pipeline, and determines second leakage point information corresponding to the pipeline based on a temperature rise feature corresponding to the detected sound wave. The electronic device can perform pipeline leakage detection through information collected by the infrared imaging device and the temperature rise imaging device to obtain detection results of different dimensions, and fuse the first leakage point information and the second leakage point information to obtain target leakage point information, thereby reducing the error of pipeline leakage detection through single data and improving the accuracy of detecting the pipeline leakage position.
[0077] Figure 3 1 is a flow chart of identifying pipeline leakage using infrared images and obtaining the first leakage point information corresponding to the pipeline disclosed in the embodiment of the present application. Figure 3 As shown, the step of identifying pipeline leakage on the infrared image to obtain the first leakage point information corresponding to the pipeline includes the following steps:
[0078] S302, extracting features from the infrared image to obtain gas morphological features and gas motion features corresponding to the infrared image.
[0079] In some embodiments, the gas morphology feature can be used to describe the morphology of the delivered gas, such as the size and shape of the gas, the concentration of the gas, etc.; the gas motion feature can be used to describe the motion of the delivered gas, such as the speed or direction of the gas during delivery, etc. The electronic device extracts features from the infrared image by performing gas recognition on the infrared image to obtain a gas image of the gas on the infrared image, and extracts features from the recognized gas image to obtain gas morphology features and gas motion features corresponding to the infrared image.
[0080] S304, using a pipeline recognition model, pipeline leakage recognition is performed according to gas morphological features and gas movement features corresponding to the infrared image, and first leakage point information corresponding to the infrared image is determined.
[0081] In some embodiments, the pipeline recognition model can be used to perform pipeline leakage recognition on the input infrared image to determine the first leakage point information corresponding to the infrared image. The pipeline recognition model can be obtained by training a sample gas feature set, wherein the sample gas feature set includes sample gas morphological features and sample gas motion features obtained by extracting features from multiple frames of sample infrared images, and target first leakage point information corresponding to the multiple frames of sample infrared images. The electronic device can input the sample gas feature set into the pipeline recognition model to be trained, and recognize each sample gas morphological feature and sample gas motion feature through the pipeline recognition model to be trained to determine the predicted first leakage point information corresponding to the multiple frames of sample infrared images, and adjust the pipeline recognition model to be trained according to the error between the target first leakage point information and the predicted first leakage point information corresponding to the multiple frames of sample infrared images, so as to obtain a trained pipeline recognition model.
[0082] As an implementation method, the electronic device can fuse the gas morphology characteristics and the gas movement characteristics through the pipeline recognition model to obtain the gas infrared characteristics; calculate the similarity between the gas infrared characteristics and the preset leakage gas characteristics through the pipeline recognition model; if the similarity is greater than the preset similarity threshold, it is determined that there is a leakage point in the pipeline, and the pipeline recognition model is used to determine the first leakage position information corresponding to the leakage point in the infrared image based on the gas infrared characteristics. The characteristic data contained in the gas infrared characteristics can correspond to the first image position in the infrared image. For example, the gas infrared characteristics can be represented in the form of a matrix, and each element in the matrix can be used to represent each characteristic data. The position of each element in the matrix can correspond to the first image position in the infrared image. For example, the characteristic data a 34 is the element in the third row and fourth column of the matrix. 34 It can correspond to the first image position (3,4) in the infrared image. The characteristic data can be data describing the direction of gas movement, data describing the speed of gas movement, or data describing the concentration of gas. The characteristic data in the infrared characteristics of gas can be one or more values, and different values describe different gas parameters.
[0083] The electronic device performs a synthetic calculation based on the gas morphology characteristics and the gas movement characteristics to obtain the gas infrared characteristics, and calculates the similarity between the gas infrared characteristics and the preset leakage gas characteristics through the pipeline recognition model, wherein the preset leakage gas characteristics can be gas characteristics generated according to the infrared image collected when the pipeline leaks, and the leakage gas characteristics can be used to describe the situation of the gas transport when the pipeline leaks. The electronic device determines whether the similarity is greater than the preset similarity threshold. If the similarity is less than the preset similarity threshold, it is determined that there is no leakage point in the currently detected pipeline. The electronic device can directly output the infrared image to prompt the user that there is no leakage in the current pipeline, or it can output the recognition result, which is used to indicate that there is no leakage in the current pipeline. If the similarity is greater than the preset similarity threshold, it is determined that there is a leakage point in the currently detected pipeline, and the pipeline recognition model can be further used to determine the leakage location information of the transmission gas leakage according to the gas infrared characteristics, thereby obtaining the first leakage location information of the transmission gas leakage in the pipeline.
[0084] The electronic device obtains the gas infrared feature by synthesizing the gas morphology feature and the gas movement feature, and calculates the similarity between the gas infrared feature and the preset leakage gas feature. If the similarity is greater than the preset similarity threshold, it is determined that there is a leakage point in the currently detected pipeline, and the leakage location information of the transported gas leakage is determined according to the gas infrared feature through the pipeline recognition model. It can not only preliminarily ensure the accuracy of pipeline leakage detection based on the similarity calculation, but also avoid identifying the gas infrared features whose similarity is less than the preset similarity threshold, which reduces the amount of calculation in the pipeline leakage detection process to a certain extent, and improves the efficiency of pipeline leakage detection while also improving the accuracy of pipeline leakage detection.
[0085] Furthermore, the electronic device can select feature data greater than a first feature threshold in the infrared feature of the gas through the pipeline recognition model as target feature data; and determine the first leakage position information corresponding to the leakage point in the infrared image according to the first image position corresponding to the target feature data in the infrared image. 54 and feature data a 68 is feature data greater than the first feature threshold, then a 54 and a 68 As target feature data, since the target feature data a 54 The first image position of the corresponding infrared image is (5,4), and the target feature data a 68 The first image position of the corresponding infrared image is (6, 8), and the first leakage position information (5, 4) and (6, 8) indicating the presence of a gas leakage in the pipeline can be obtained.
[0086] The electronic device determines the leakage position information of the transported gas leakage according to the first image position corresponding to the target feature data greater than the first feature threshold in the infrared image through the pipeline recognition model, and can accurately identify the leakage position information of the gas leakage in the infrared image, thereby improving the accuracy of detecting the pipeline leakage position.
[0087] In an embodiment of the present application, feature extraction is performed on the infrared image to obtain gas morphological features and gas movement features corresponding to the infrared image. Through the pipeline recognition model, pipeline leakage is identified based on the gas morphological features and gas movement features corresponding to the infrared image, and the first leakage point information corresponding to the infrared image is determined. The first leakage position information of the transported gas leakage in the pipeline can be accurately determined, thereby improving the accuracy of detecting the pipeline leakage position.
[0088] See also Figure 4 , Figure 4 1 is a flow chart of another pipeline detection method disclosed in an embodiment of the present application. In one embodiment, the pipeline detection method comprises the following steps:
[0089] S402: Acquire an infrared image of the pipeline collected by an infrared imaging device.
[0090] S404, performing pipeline leakage identification on the infrared image to obtain first leakage point information corresponding to the pipeline.
[0091] S406, obtaining detection sound waves for the pipeline collected by the voiceprint detection device.
[0092] The description of steps S402 to S406 may refer to the relevant description of steps S202 to S206 in the above embodiment, which will not be repeated here.
[0093] S408, acquiring an initial pipeline image captured by the optical module.
[0094] In some embodiments, the optical module can be used as a component for optically photographing the detected pipeline, and further, the optical module can include an optical camera. After the electronic device receives the start signal, the soundprint device is controlled to start collecting detection sound waves for the pipeline, and the optical module can be controlled to collect the initial pipeline image. The frequency at which the electronic device controls the optical module to collect the initial pipeline image can be consistent with the frequency at which the infrared imaging device is controlled to collect infrared images, and the corresponding time points are recorded when collecting the initial pipeline image and collecting the infrared image, so as to match each initial pipeline image with the infrared image according to the time point corresponding to each initial pipeline image and the time point corresponding to each infrared image, and after the infrared image and the initial pipeline image are marked according to the first leakage location information and the second leakage location information, they can be fused according to the matched initial pipeline image and infrared image. For example, assuming that the time point corresponding to the initial pipeline image is 15:05:08, the initial pipeline image is matched with the infrared image whose corresponding time point is 15:05:08, so as to facilitate the subsequent fusion of the initial pipeline image and the infrared image.
[0095] As an implementation, the optical module may capture the initial pipeline image at a preset speed, or may capture the initial pipeline video and perform image capture on the captured initial pipeline video to obtain multiple frames of initial pipeline images. For example, the optical module may capture the initial pipeline image at a speed of 30 frames per second, or may capture the initial pipeline video and capture an average of 30 frames of initial pipeline images within each second of the initial pipeline video.
[0096] S410, determining a target sound wave frequency greater than a preset frequency threshold in the detection sound wave, and determining a second image position of a leakage point corresponding to the initial pipeline image according to the target sound wave frequency, and using the second image position as second leakage point information.
[0097] In some embodiments, when the electronic device collects the sound wave frequency, it will record the time point corresponding to the detected sound wave. Therefore, the corresponding initial pipeline image can be matched according to the time point corresponding to the detected sound wave, so as to determine the second image position corresponding to the initial pipeline image according to the sound wave frequency of the detected sound wave. The second image position corresponding to the initial pipeline image can be obtained by dividing the initial pipeline image into a number of rows and columns, thereby obtaining a plurality of image areas, and the position of each image area on the initial pipeline image can be the second image position. For example, the second image position (3,4) of the initial pipeline image can represent the image area where the third row and fourth column are located. The sound wave frequency can be two-dimensional data used to describe the frequency of the sound wave in space. The sound wave frequency can be presented in the form of a matrix, and the position of each element in the matrix can correspond to the second image position in the initial pipeline image. For example, the element a in the sound wave frequency can correspond to the second image position in the initial pipeline image. 34 is the element in the third row and fourth column of the matrix.34 It may correspond to the second image position (3, 4) in the initial pipeline image. The electronic device may correspond to the second image position in the initial pipeline image according to the sound wave frequency greater than a preset frequency threshold as the second leakage point information.
[0098] As an implementation method, the voiceprint detection device also includes an optical module, the first leakage point information includes the first leakage position information corresponding to the leakage point where gas leakage exists in the pipeline in the infrared image, and the second leakage point information includes the second leakage position information corresponding to the leakage point where gas leakage exists in the pipeline in the initial pipeline image. The electronic device can perform image registration on the infrared image and the initial pipeline image synchronously collected by the infrared imaging device and the optical module to determine the spatial transformation information; mark the leakage point where gas leakage occurs on the infrared image according to the first leakage position information corresponding to the infrared image to obtain the marked infrared image; mark the leakage point where gas leakage occurs on the initial pipeline image according to the second leakage position information corresponding to the initial pipeline image to obtain the marked initial pipeline image; fuse the marked infrared image and the marked initial pipeline image according to the spatial transformation information to obtain the target pipeline image.
[0099] The spatial transformation information can be used to describe the difference in spatial position between the infrared image and the initial pipeline image. For example, the difference between the image scene recorded by the infrared image and the image scene recorded by the initial pipeline image is a length unit. The image scene recorded by the initial pipeline image can be obtained by shifting the infrared image right by one length unit. Therefore, the spatial transformation information can be a length unit. Since the first leakage position information can be the image position of the pipeline where the gas transmission leak exists in the infrared image, the leakage point where the gas leakage occurs can be marked in the infrared image according to the first leakage position information to obtain the marked infrared image, and the marked infrared image can include the position where the detected pipeline leaks. Similarly, since the second leakage position information can be the image position where the gas leakage exists in the initial pipeline image, the leakage point where the gas leakage occurs can be marked in the infrared image according to the second leakage position information to obtain the marked initial pipeline image, and the marked initial pipeline image can include the position where the detected pipeline leaks. The marking can be to mark the position of the pipeline leakage in the infrared image or the initial pipeline image using a preset symbol, or to mark the position of the pipeline leakage in the infrared image or the initial pipeline image using a preset color. Furthermore, the darker the color marked on the infrared image or the initial pipeline image, the more serious the leakage is.
[0100] The electronic device can align the image scene of the annotated infrared image with the annotated initial pipeline image according to the spatial transformation information to compare the location of the pipeline leakage in the annotated infrared image and the annotated initial pipeline image. If the leakage location is marked in the same image location in the annotated infrared image and the annotated initial pipeline image, it can be determined that the leakage location occurs in the current image location, and a target pipeline image containing the image location marked is obtained. If the annotated infrared image is marked at a certain image location, but the annotated initial pipeline image is not marked at the image location, or if the annotated initial pipeline image is marked at a certain image location, but the annotated infrared image is not marked at the image location, it is determined that there is no leakage point at the image location, and the obtained target pipeline image does not mark the image location.
[0101] Further, the electronic device can generate an infrared matrix based on the annotated infrared image, and the values in the infrared matrix can be used to describe the pipeline leakage of the corresponding image area in the infrared image. For example, the higher the value, the higher the pipeline leakage in the corresponding image area. The electronic device can also generate an initial pipeline matrix based on the annotated initial pipeline image, and the values in the initial pipeline matrix can be used to describe the pipeline leakage of the corresponding image area in the initial pipeline image. The electronic device spatially aligns the infrared matrix and the initial pipeline matrix according to the spatial transformation information. The dimensions of the infrared matrix and the initial pipeline matrix should be the same. The aligned infrared matrix and the initial pipeline matrix are fused to obtain the target pipeline matrix. If there is a value greater than a preset threshold in the target pipeline matrix, the image area corresponding to the value is marked as having a pipeline leakage, thereby obtaining the target pipeline image. In addition, the higher the value, the darker the color can be marked to remind the user that the pipeline leakage in the image area is more serious. Further, the aligned infrared matrix and the initial pipeline matrix can be added to obtain the target pipeline matrix.
[0102] The electronic device marks the infrared image according to the first leakage position information to obtain a marked infrared image, and marks the initial pipeline image according to the second leakage position information to obtain a marked initial pipeline image, and fuses the marked infrared image and the marked initial pipeline image according to the spatial transformation information to obtain a target pipeline image. The leakage position information determined according to the information collected by two different devices can be fused, so that the pipeline leakage point marked in the output target pipeline image is more accurate.
[0103] S412: Merge the first leakage point information and the second leakage point information to obtain target leakage point information.
[0104] The description of step S412 may refer to the relevant description of step S210 in the above embodiment, which will not be repeated here.
[0105] In an embodiment of the present application, an initial pipeline image captured by an optical module is acquired, and a second image position corresponding to the initial pipeline image is determined according to a sound wave frequency greater than a preset frequency threshold, and the second image position is used as second leakage point information. The second image position can be determined in the second initial pipeline image according to the rising frequency, thereby determining the second leakage point information, providing a technical basis for fusing the first leakage point information and the second leakage point information to obtain the target leakage point information.
[0106] See also Figure 5 , Figure 5 Schematic diagram of the structure of a pipeline detection device disclosed in the embodiment of the present application. The device can be applied to the above-mentioned electronic equipment without specific limitation. Figure 5 As shown, the pipeline detection device 500 may include: a first acquisition module 501 , an identification module 502 , a second acquisition module 503 , a determination module 504 and a fusion module 505 .
[0107] The first acquisition module 501 is used to acquire an infrared image of the pipeline collected by an infrared imaging device;
[0108] The recognition module 502 is used to perform image recognition on the infrared image to obtain first leakage point information;
[0109] The second acquisition module 503 is used to acquire the detection sound waves for the pipeline collected by the voiceprint detection device;
[0110] A determination module 504, configured to determine the second leakage point information corresponding to the pipeline according to the sound wave characteristics corresponding to the detected sound wave;
[0111] The fusion module 505 is used to fuse the first leakage point information and the second leakage point information to obtain the target leakage point information.
[0112] In one embodiment, the identification module 502 may include a feature extraction unit and a leakage identification unit:
[0113] A feature extraction unit is used to extract features from the infrared image to obtain gas morphological features and gas motion features corresponding to the infrared image;
[0114] The leakage identification unit is used to identify pipeline leakage according to the gas morphological characteristics and gas movement characteristics corresponding to the infrared image through the pipeline identification model, and determine the first leakage point information corresponding to the infrared image.
[0115] In one embodiment, the leakage identification unit further includes a feature synthesis subunit, a similarity calculation subunit, a leakage determination subunit and a position determination subunit:
[0116] The feature synthesis subunit is used to fuse the gas morphological features and gas motion features through the pipeline recognition model to obtain the gas infrared features;
[0117] A similarity calculation subunit, used for calculating the similarity between the infrared characteristics of the gas and the preset leakage gas characteristics through the pipeline recognition model;
[0118] The position determination subunit is used to determine that there is a leak in the pipeline if the similarity is greater than a preset similarity threshold, and to determine the first leak position information corresponding to the leak in the infrared image according to the infrared characteristics of the gas through the pipeline recognition model.
[0119] In one embodiment, the position determination subunit is also used to select feature data greater than a first feature threshold in the gas infrared feature through a pipeline identification model as target feature data; and determine the first leakage position information corresponding to the leakage point in the infrared image according to the first image position corresponding to the target feature data in the infrared image.
[0120] In one embodiment, the pipeline detection device 500 further includes an image acquisition module:
[0121] An image acquisition module, used to acquire the initial pipeline image collected by the optical module;
[0122] The determination module 504 is further used to determine a target sound wave frequency greater than a preset frequency threshold in the detection sound wave, and determine the second image position of the leakage point corresponding to the initial pipeline image according to the target sound wave frequency, and use the second image position as the second leakage point information.
[0123] In one embodiment, the pipeline detection device 500 further includes a transformation determination module, a first annotation module, a second annotation module and an image fusion module:
[0124] A transformation determination module is used to perform image registration on the infrared image synchronously collected by the infrared imaging device and the optical module and the initial pipeline image to determine the spatial transformation information;
[0125] A first marking module, used for marking the leakage point where the gas leakage occurs on the infrared image according to the first leakage position information corresponding to the infrared image, so as to obtain the marked infrared image;
[0126] A second marking module is used to mark the leakage point where the gas leakage occurs on the initial pipeline image according to the second leakage position information corresponding to the initial pipeline image, so as to obtain the marked initial pipeline image;
[0127] The image fusion module is used to fuse the annotated infrared image and the annotated initial pipeline image according to the spatial transformation information to obtain the target pipeline image.
[0128] In one embodiment, the pipeline detection device 500 further includes a prompt module:
[0129] A prompt module is used to output a prompt message after fusing the first leakage point information and the second leakage point information to obtain the target leakage point information, if the first leakage point information indicates that there is a gas leakage in the pipeline and the second leakage point information indicates that there is no gas leakage in the pipeline; the prompt message is used to prompt the user that there is a deviation in the target leakage point information.
[0130] In an embodiment of the present application, pipeline leakage detection is performed on an infrared image of the pipeline acquired by an infrared imaging device to obtain first leakage point information corresponding to the pipeline, and second leakage point information corresponding to the pipeline is determined based on the sound wave characteristics corresponding to the detected sound wave. The pipeline can be leaked using information collected by the infrared imaging device and the sound wave imaging device respectively, and the leakage point information detected by the two can be fused to obtain target leakage point information, thereby reducing the error of leakage detection on the pipeline using a single detection device and improving the accuracy of detecting the leakage position of the pipeline.
[0131] See also Figure 6 , Figure 6 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.
[0132] like Figure 6 As shown, the electronic device 600 may include:
[0133] A memory 601 storing executable program codes;
[0134] a processor 602 coupled to the memory 601;
[0135] The processor 602 calls the executable program code stored in the memory 601 to execute any pipeline detection method disclosed in the embodiments of the present application.
[0136] 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 pipeline detection methods disclosed in the embodiment of the present application.
[0137] The embodiments of the present application disclose a computer program product, including a computer program, and the computer program can be executed by a processor to implement the methods described in the above embodiments.
[0138] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that 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 by the present application.
[0139] 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.
[0140] 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.
[0141] 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.
[0142] 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, a server or a 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.
[0143] Those 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 rewritable 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.
[0144] The above is a detailed introduction to a pipeline detection method, device, electronic device and storage medium disclosed in the embodiment of the present application. The principle and implementation method of the present application are described in detail using specific examples. 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 skilled 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 limiting the present application.
Claims
1. A pipeline detection method, characterized in that: Applied to electronic equipment, the electronic equipment includes an infrared imaging device and a voiceprint detection device, and the method includes: Acquire an infrared image of the pipeline collected by the infrared imaging device; Perform pipeline leakage identification on the infrared image to obtain first leakage point information corresponding to the pipeline; Acquiring a detection sound wave for the pipeline collected by the voiceprint detection device; Determining second leakage point information corresponding to the pipeline according to the sound wave characteristics corresponding to the detection sound wave; The first leakage point information and the second leakage point information are merged to obtain target leakage point information.
2. The method according to claim 1, characterized in that The performing pipeline leakage identification on the infrared image to obtain first leakage point information corresponding to the pipeline includes: Extracting features from the infrared image to obtain gas morphology features and gas motion features corresponding to the infrared image; Through the pipeline recognition model, pipeline leakage recognition is performed according to the gas morphology characteristics and gas movement characteristics corresponding to the infrared image, and the first leakage point information corresponding to the infrared image is determined.
3. The method according to claim 2, characterized in that The first leakage point information includes first leakage position information corresponding to the leakage point where gas leakage exists in the pipeline in the infrared image; the determining the first leakage point information corresponding to the infrared image according to the gas morphological characteristics and gas movement characteristics corresponding to the infrared image by the pipeline recognition model includes: The gas morphological characteristics and gas motion characteristics are integrated through a pipeline recognition model to obtain gas infrared characteristics; Calculating the similarity between the infrared characteristics of the gas and the preset leakage gas characteristics through the pipeline identification model; If the similarity is greater than a preset similarity threshold, it is determined that there is a leakage point in the pipeline, and the first leakage position information corresponding to the leakage point in the infrared image is determined by the pipeline recognition model according to the gas infrared characteristics.
4. The method according to claim 3, characterized in that The determining, by the pipeline recognition model according to the infrared characteristics of the gas, first leakage position information corresponding to the leakage point in the infrared image includes: Selecting feature data greater than a first feature threshold in the infrared features of the gas as target feature data through the pipeline recognition model; According to the first image position corresponding to the target feature data in the infrared image, first leakage position information corresponding to the leakage point in the infrared image is determined.
5. The method according to claim 1, characterized in that The acoustic wave feature includes the acoustic wave frequency of the detection acoustic wave, and the soundprint detection device further includes an optical module; before determining the second leakage point information corresponding to the pipeline according to the acoustic wave feature corresponding to the detection acoustic wave, the method further includes: Acquiring an initial pipeline image captured by the optical module; The determining, according to the sound wave feature corresponding to the detected sound wave, the second leakage point information corresponding to the pipeline comprises: A target sound wave frequency greater than a preset frequency threshold in the detection sound wave is determined, and a second image position of a leakage point corresponding to the initial pipeline image is determined according to the target sound wave frequency, and the second image position is used as second leakage point information.
6. The method according to claim 1, characterized in that The voiceprint detection device also includes an optical module; the first leakage point information includes first leakage position information corresponding to the leakage point where gas leakage exists in the pipeline in the infrared image, and the second leakage point information includes second leakage position information corresponding to the leakage point where gas leakage exists in the pipeline in the initial pipeline image; After determining the second leakage point information corresponding to the pipeline according to the sound wave characteristics corresponding to the detection sound wave, the method further includes: Performing image registration on the infrared image and the initial pipeline image synchronously collected by the infrared imaging device and the optical module to determine spatial transformation information; According to the first leakage position information corresponding to the infrared image, marking the leakage point where the gas leakage occurs on the infrared image to obtain a marked infrared image; According to the second leakage position information corresponding to the initial pipeline image, marking the leakage point where the gas leakage occurs on the initial pipeline image to obtain a marked initial pipeline image; The annotated infrared image and the annotated initial pipeline image are fused according to the spatial transformation information to obtain a target pipeline image.
7. The method according to claim 1, characterized in that After fusing the first leakage point information and the second leakage point information to obtain target leakage point information, the method further includes: If the first leakage point information indicates that there is a gas leakage in the pipeline, and the second leakage point information indicates that there is no gas leakage in the pipeline, a prompt message is output; the prompt message is used to prompt the user that there is a deviation in the target leakage point information.
8. A pipeline detection device, characterized in that: include: A first acquisition module, used to acquire an infrared image of the pipeline collected by the infrared imaging device; An identification module, used for performing image recognition on the infrared image to obtain first leakage point information; A second acquisition module, used to acquire the detection sound wave for the pipeline collected by the voiceprint detection device; A determination module, used to determine the second leakage point information corresponding to the pipeline according to the sound wave characteristics corresponding to the detection sound wave; A fusion module is used to fuse the first leakage point information and the second leakage point information to obtain target leakage point information.
9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method according to any one of claims 1 to 7.
10. 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 7 is implemented.
Citation Information
Patent Citations
Leakage detecting and locating method based on pressure and sound wave information amalgamation
CN101196872A
Underground pipeline positioning method and system based on infrared thermal imaging
CN115638375A
Oil and gas pipeline inspection device, control method thereof, control device and inspection system
CN115953854A
Infrared video detection method and system for hazardous gas leakage in complex scene
CN116682070A
Method, device and equipment for jointly detecting water pipe leakage point based on vision and sound
CN116907742A
