A pipeline defect dynamic detection method and device based on ultrasonic guided waves

Through the signal processing and image processing technology of ultrasonic waveguide transducer array, dynamic detection of pipeline defects is realized, and the problem of lack of dynamic detection and circumferential positioning capabilities in the prior art is solved, and the changes of pipeline defects can be visually displayed.

CN115047073BActive Publication Date: 2024-11-22GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210695553.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-17
Publication Date
2024-11-22
Estimated Expiration
2042-06-17

AI Technical Summary

Technical Problem

The existing ultrasonic waveguide pipeline defect detection methods cannot achieve dynamic detection, cannot intuitively display the changes of pipeline defects, and lack circumferential positioning capabilities, which can only reflect the defect situation at the current moment.

Method used

By controlling the ultrasonic waveguide transducer array to transmit and receive signals, generate ultrasonic waveguide scan images, and perform image preprocessing, defect edge extraction and superposition processing to realize dynamic detection of pipeline defects. Specific steps include image graying, median filtering, segmented linear enhancement and binarization processing, obtaining and superimposing all edge extracted images within the preset time period, and generating dynamic scan defect images.

Benefits of technology

Dynamic detection of pipeline defects is realized, the defect change process can be visually displayed during the time period, the circumferential positioning ability is enhanced, and the defect changes in the pipeline can be dynamically monitored.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115047073B_ABST
    Figure CN115047073B_ABST
Patent Text Reader

Abstract

The present invention discloses a pipeline defect dynamic detection method and device based on ultrasonic guided waves. The method comprises the following steps: controlling an ultrasonic guided wave transducer array to receive a second ultrasonic guided wave signal returned from a pipeline detection area, generating a first ultrasonic guided wave scanning image according to the amplitude of the second ultrasonic guided wave signal; preprocessing the first ultrasonic guided wave scanning image to obtain a second ultrasonic guided wave scanning image, extracting defect edges from the second ultrasonic guided wave scanning image to obtain an ultrasonic guided wave edge extraction image, and performing defect detection to obtain a pipeline defect detection result; superimposing all ultrasonic guided wave edge extraction images within a preset time period to generate an ultrasonic guided wave dynamic scanning defect image, and obtaining a pipeline defect dynamic detection result based on the pipeline defect detection result of each ultrasonic guided wave edge extraction image, thereby realizing dynamic detection of pipeline defects and intuitively displaying the dynamic change process of pipeline defects within a time period.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of defect detection, and in particular to a pipeline defect dynamic detection method and device based on ultrasonic guided waves. Background Art

[0002] Existing pipeline defect detection usually uses full-circle coverage of ultrasonic guided waves on in-service pipelines to receive ultrasonic guided wave echo signals to evaluate the health of the pipeline structure. Ultrasonic guided waves use full-circle coverage to locate defects based on scanning signals. The defect echo signal is determined by the loss ratio of the defect relative to the pipeline cross section.

[0003] In addition, the existing ultrasonic guided wave scanning signal only carries the axial information of pipeline defects and lacks the ability to locate pipeline defects in the circumferential direction. That is, in the existing ultrasonic guided wave scanning signal, as long as the loss ratio of a single large defect and multiple small defects on the same cross section is the same for the pipeline cross section, their defect echo signals are also the same. This makes the existing ultrasonic guided wave scanning signal limited in evaluating pipeline defects, and can only reflect the current pipeline defect situation, and cannot describe the defect change process of the in-service pipeline. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a pipeline defect dynamic detection method and device based on ultrasonic guided waves, so as to realize dynamic detection of pipeline defects and intuitively display the dynamic change process of pipeline defects within a time period.

[0005] In order to solve the above technical problems, the present invention provides a pipeline defect dynamic detection method based on ultrasonic guided waves, comprising:

[0006] Controlling the ultrasonic guided wave transducer array to transmit a first ultrasonic guided wave signal to the pipeline detection area, and controlling the ultrasonic guided wave transducer array to receive a second ultrasonic guided wave signal returned by the pipeline detection area, and generating a first ultrasonic guided wave scanning image of the pipeline detection area according to the amplitude of the second ultrasonic guided wave signal;

[0007] Preprocessing the first ultrasonic guided wave scanning image to obtain a second ultrasonic guided wave scanning image, wherein the preprocessing includes image grayscale processing, median filtering processing, piecewise linear enhancement processing and binarization processing;

[0008] Extracting defect edges from the second ultrasonic guided wave scanning image to obtain an ultrasonic guided wave edge extraction image, and performing defect detection on the ultrasonic guided wave edge extraction image to obtain a pipeline defect detection result of the ultrasonic guided wave edge extraction image;

[0009] All ultrasonic guided wave edge extraction images within a preset time period are acquired and superimposed to generate ultrasonic guided wave dynamic scanning defect images, and pipeline defect dynamic detection results are obtained based on the pipeline defect detection results of each ultrasonic guided wave edge extraction image.

[0010] In a possible implementation manner, preprocessing the first ultrasonic guided wave scanning image specifically includes:

[0011] Performing image grayscale processing on the first ultrasonic guided wave scanning image, so that the maximum value and the minimum value of the amplitude of each ultrasonic guided wave signal in the first ultrasonic guided wave scanning image are quantized to the brightest value and the darkest value of the same standardized grayscale matrix, respectively, to generate an ultrasonic guided wave grayscale image;

[0012] Performing median filtering on the ultrasonic guided wave grayscale image, so that the grayscale value of each pixel in the ultrasonic guided wave grayscale image is set to the median value of the grayscale values ​​of all pixels in a neighborhood window of each pixel, to generate an ultrasonic guided wave median filtered image;

[0013] The ultrasonic guided wave median filter image is subjected to piecewise linear enhancement processing, so that the grayscale values ​​of all pixels in the ultrasonic guided wave median filter image are divided into three segments, and each segment of the grayscale value is subjected to linear enhancement processing respectively, so as to generate an ultrasonic guided wave linear enhanced image.

[0014] In a possible implementation manner, preprocessing the first ultrasonic guided wave scanning image further includes:

[0015] According to the maximum entropy threshold method, the ultrasonic guided wave linear enhancement image is binarized to generate a second ultrasonic guided wave scanning image.

[0016] In a possible implementation, defect detection is performed on the ultrasonic guided wave edge extraction image to obtain a pipeline defect detection result of the ultrasonic guided wave edge extraction image, specifically including:

[0017] Acquire an ultrasonic guided wave reference scanning image of the pipeline detection area, and calculate the similarity between the ultrasonic guided wave reference scanning image and the ultrasonic guided wave edge extraction image according to the cosine similarity;

[0018] The similarity is compared with a preset threshold. If the similarity is greater than or equal to the preset threshold, a pipeline defect detection result is generated as no defect exists; if the similarity is less than the preset threshold, a pipeline defect detection result is generated as a defect exists.

[0019] In a possible implementation, controlling the ultrasonic guided wave transducer array to transmit a first ultrasonic guided wave signal to a pipeline detection area specifically includes:

[0020] According to the equal time and space phase principle, an ultrasonic guided wave transmission delay scheme is set for the ultrasonic transducer array, so that the ultrasonic transducer array transmits a first ultrasonic guided wave signal to the pipeline detection area according to the ultrasonic guided wave transmission delay scheme;

[0021] The equal space-time phase principle is Φ=ωt+kx, where Φ is the phase angle, ω is the angular frequency, t is the time, k is the wave number, and x is the distance;

[0022] The ultrasonic guided wave transmission delay scheme is to set the phase angle of each ultrasonic transducer in the ultrasonic transducer array unchanged, and the angular frequency and wave number unchanged, and set the corresponding transmission delay time according to the distance from each ultrasonic transducer to the defect area in the pipeline inspection area.

[0023] In a possible implementation, controlling the ultrasonic guided wave transducer array to receive the second ultrasonic guided wave signal returned by the pipeline detection area specifically includes:

[0024] According to the equal time and space phase principle, an ultrasonic guided wave receiving delay scheme is set for the ultrasonic transducer array, so that the ultrasonic transducer array receives the second ultrasonic guided wave signal returned by the pipeline detection area according to the ultrasonic guided wave receiving delay scheme;

[0025] Among them, the ultrasonic guided wave receiving delay scheme includes setting the phase angle, angular frequency and wave number of each ultrasonic transducer in the ultrasonic transducer array unchanged, and setting the corresponding receiving delay time according to the distance from the defect area in the pipeline detection area to each ultrasonic transducer.

[0026] In a possible implementation, generating a first ultrasonic guided wave scanning image of the pipeline detection area according to the amplitude of the second ultrasonic guided wave signal specifically includes:

[0027] Acquire the amplitude of the second ultrasonic guided wave signal, and convert the amplitude into an RGB value;

[0028] The axial distance and circumferential position corresponding to the second ultrasonic guided wave signal are obtained, and each second ultrasonic guided wave signal is arranged according to the axial distance and circumferential position, and a first ultrasonic guided wave scanning image of the pipeline detection area is generated.

[0029] The embodiment of the present invention also provides a pipeline defect dynamic detection device based on ultrasonic guided waves, comprising: an image generation module, an image preprocessing module, an image defect edge extraction module and an image superposition module;

[0030] The image generation module is used to control the ultrasonic guided wave transducer array to transmit a first ultrasonic guided wave signal to the pipeline detection area, and to control the ultrasonic guided wave transducer array to receive a second ultrasonic guided wave signal returned by the pipeline detection area, and to generate a first ultrasonic guided wave scanning image of the pipeline detection area according to the amplitude of the second ultrasonic guided wave signal;

[0031] The image preprocessing module is used to preprocess the first ultrasonic guided wave scanning image to obtain a second ultrasonic guided wave scanning image, wherein the preprocessing includes image grayscale processing, median filtering processing, piecewise linear enhancement processing and binarization processing;

[0032] The image defect edge extraction module is used to extract defect edges from the second ultrasonic guided wave scanning image to obtain an ultrasonic guided wave edge extraction image, and to perform defect detection on the ultrasonic guided wave edge extraction image to obtain a pipeline defect detection result of the ultrasonic guided wave edge extraction image;

[0033] The image superposition module is used to acquire and superimpose all ultrasonic guided wave edge extraction images within a preset time period to generate an ultrasonic guided wave dynamic scanning defect image, and obtain a pipeline defect dynamic detection result based on the pipeline defect detection result of each ultrasonic guided wave edge extraction image.

[0034] In a possible implementation, the image preprocessing module is used to preprocess the first ultrasonic guided wave scanning image, specifically including:

[0035] Performing image grayscale processing on the first ultrasonic guided wave scanning image, so that the maximum value and the minimum value of the amplitude of each ultrasonic guided wave signal in the first ultrasonic guided wave scanning image are quantized to the brightest value and the darkest value of the same standardized grayscale matrix, respectively, to generate an ultrasonic guided wave grayscale image;

[0036] Performing median filtering on the ultrasonic guided wave grayscale image, so that the grayscale value of each pixel in the ultrasonic guided wave grayscale image is set to the median value of the grayscale values ​​of all pixels in a neighborhood window of each pixel, to generate an ultrasonic guided wave median filtered image;

[0037] The ultrasonic guided wave median filter image is subjected to piecewise linear enhancement processing, so that the grayscale values ​​of all pixels in the ultrasonic guided wave median filter image are divided into three segments, and each segment of the grayscale value is subjected to linear enhancement processing respectively, so as to generate an ultrasonic guided wave linear enhanced image.

[0038] In a possible implementation, the image preprocessing module is used to preprocess the first ultrasonic guided wave scanning image, and further includes:

[0039] According to the maximum entropy threshold method, the ultrasonic guided wave linear enhancement image is binarized to generate a second ultrasonic guided wave scanning image.

[0040] In a possible implementation, the image defect edge extraction module is used to perform defect detection on the ultrasonic guided wave edge extraction image to obtain a pipeline defect detection result of the ultrasonic guided wave edge extraction image, specifically including:

[0041] Acquire an ultrasonic guided wave reference scanning image of the pipeline detection area, and calculate the similarity between the ultrasonic guided wave reference scanning image and the ultrasonic guided wave edge extraction image according to the cosine similarity;

[0042] The similarity is compared with a preset threshold. If the similarity is greater than or equal to the preset threshold, a pipeline defect detection result is generated as no defect exists; if the similarity is less than the preset threshold, a pipeline defect detection result is generated as a defect exists.

[0043] In a possible implementation, the image generation module is used to control the ultrasonic guided wave transducer array to transmit the first ultrasonic guided wave signal to the pipeline detection area, specifically including:

[0044] According to the equal time and space phase principle, an ultrasonic guided wave transmission delay scheme is set for the ultrasonic transducer array, so that the ultrasonic transducer array transmits a first ultrasonic guided wave signal to the pipeline detection area according to the ultrasonic guided wave transmission delay scheme;

[0045] The equal space-time phase principle is Φ=ωt+kx, where Φ is the phase angle, ω is the angular frequency, t is the time, k is the wave number, and x is the distance;

[0046] The ultrasonic guided wave transmission delay scheme is to set the phase angle of each ultrasonic transducer in the ultrasonic transducer array unchanged, and the angular frequency and wave number unchanged, and set the corresponding transmission delay time according to the distance from each ultrasonic transducer to the defect area in the pipeline inspection area.

[0047] In a possible implementation, the image generation module is used to control the ultrasonic guided wave transducer array to receive the second ultrasonic guided wave signal returned by the pipeline detection area, specifically including:

[0048] According to the equal time and space phase principle, an ultrasonic guided wave receiving delay scheme is set for the ultrasonic transducer array, so that the ultrasonic transducer array receives the second ultrasonic guided wave signal returned by the pipeline detection area according to the ultrasonic guided wave receiving delay scheme;

[0049] Among them, the ultrasonic guided wave receiving delay scheme includes setting the phase angle, angular frequency and wave number of each ultrasonic transducer in the ultrasonic transducer array unchanged, and setting the corresponding receiving delay time according to the distance from the defect area in the pipeline detection area to each ultrasonic transducer.

[0050] In a possible implementation, the image generation module is used to generate a first ultrasonic guided wave scanning image of the pipeline detection area according to the amplitude of the second ultrasonic guided wave signal, specifically including:

[0051] Acquire the amplitude of the second ultrasonic guided wave signal, and convert the amplitude into an RGB value;

[0052] The axial distance and circumferential position corresponding to the second ultrasonic guided wave signal are obtained, and each second ultrasonic guided wave signal is arranged according to the axial distance and circumferential position, and a first ultrasonic guided wave scanning image of the pipeline detection area is generated.

[0053] An embodiment of the present invention also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for dynamic detection of pipeline defects based on ultrasonic guided waves as described in any one of the above is implemented.

[0054] An embodiment of the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the dynamic pipeline defect detection method based on ultrasonic guided waves as described in any one of the above.

[0055] The present invention provides a pipeline defect dynamic detection method and device based on ultrasonic guided waves.

[0056] Compared with the prior art, it has the following beneficial effects:

[0057] The first ultrasonic guided wave signal is transmitted to the pipeline detection area by controlling the ultrasonic guided wave transducer array, and the second ultrasonic guided wave signal returned by the pipeline detection area is received by controlling the ultrasonic guided wave transducer array, and a first ultrasonic guided wave scanning image of the pipeline detection area is generated according to the amplitude of the second ultrasonic guided wave signal; the first ultrasonic guided wave scanning image is preprocessed to obtain a second ultrasonic guided wave scanning image, wherein the preprocessing includes image graying processing, median filtering processing, piecewise linear enhancement processing and binarization processing, defect edges are extracted from the second ultrasonic guided wave scanning image to obtain an ultrasonic guided wave edge extraction image, and the ultrasonic guided wave edge extraction image is detected to generate a pipeline defect detection result of the ultrasonic guided wave edge extraction image, all ultrasonic guided wave edge extraction images within a preset time period are acquired and superimposed to generate an ultrasonic guided wave dynamic scanning defect image, and based on the pipeline defect detection result of each ultrasonic guided wave edge extraction image, a pipeline defect dynamic detection result is obtained, so as to realize dynamic detection of pipeline defects and intuitively display the dynamic change process of pipeline defects within a time period. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 It is a flow chart of an embodiment of a pipeline defect dynamic detection method based on ultrasonic guided waves provided by the present invention;

[0059] Figure 2 It is a structural schematic diagram of an embodiment of a pipeline defect dynamic detection device based on ultrasonic guided waves provided by the present invention;

[0060] Figure 3 is a schematic structural diagram of an ultrasonic guided wave phased array according to an embodiment of the present invention;

[0061] Figure 4 is a two-dimensional diagram of the axial distance and circumferential position of a pipeline according to an embodiment of the present invention;

[0062] Figure 5 is an ultrasonic guided wave grayscale image of an embodiment provided by the present invention;

[0063] Figure 6 This is an ultrasonic guided wave median filtering image of an embodiment provided by the present invention;

[0064] Figure 7 It is an ultrasonic guided wave linear enhancement image provided by an embodiment of the present invention;

[0065] Figure 8 is a second ultrasonic guided wave scanning image of an embodiment provided by the present invention;

[0066] Fig. 9 An ultrasonic guided wave edge extraction image according to an embodiment of the present invention;

[0067] Fig.10 is a schematic diagram of a defect area in an ultrasonic guided wave edge extraction image provided by an embodiment of the present invention;

[0068] Fig.11 This is an ultrasonic guided wave reference scanning image of an embodiment provided by the present invention. DETAILED DESCRIPTION

[0069] The following will be combined with the accompanying drawings in the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0070] Example 1

[0071] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of an embodiment of a pipeline defect dynamic detection method based on ultrasonic guided waves provided by the present invention. Figure 1 As shown, the method includes steps 101 to 104, which are specifically as follows:

[0072] Step 101: Control the ultrasonic guided wave transducer array to transmit a first ultrasonic guided wave signal to a pipeline detection area, and control the ultrasonic guided wave transducer array to receive a second ultrasonic guided wave signal returned by the pipeline detection area, and generate a first ultrasonic guided wave scanning image of the pipeline detection area according to the amplitude of the second ultrasonic guided wave signal.

[0073] In one embodiment, the ultrasonic guided wave transducer array is composed of N ultrasonic guided wave transducers, which are evenly arranged in the pipeline at a certain distance, wherein N is a positive integer.

[0074] In one embodiment, the ultrasonic guided wave phased array detection device is composed of an ultrasonic guided wave transducer array 2 installed on a pipeline 1, which performs ultrasonic guided wave transmission and reception delay setting according to the equal time and space phase principle, so that the first ultrasonic guided wave signal is focused at the defect 3. By setting the ultrasonic guided wave transmission and reception delay adjustment for the ultrasonic guided wave transducer array, ultrasonic guided wave focused scanning of a specific area of ​​the pipeline can be achieved, such as Figure 3 As shown, Figure 3 It is a schematic diagram of the ultrasonic guided wave phased array structure.

[0075] Specifically, according to the equal time and space phase principle, an ultrasonic guided wave transmission delay scheme is set for the ultrasonic transducer array, so that the ultrasonic transducer array transmits a first ultrasonic guided wave signal to the pipeline detection area according to the ultrasonic guided wave transmission delay scheme;

[0076] The equal space-time phase principle is Φ=ωt+kx, where Φ is the phase angle, ω is the angular frequency, t is the time, k is the wave number, and x is the distance.

[0077] The ultrasonic guided wave transmission delay scheme is to set the phase angle of each ultrasonic transducer in the ultrasonic transducer array unchanged, and the angular frequency and wave number unchanged, and set the corresponding transmission delay time according to the distance from each ultrasonic transducer to the defect area in the pipeline inspection area.

[0078] Specifically, according to the equal space-time phase principle, an ultrasonic guided wave receiving delay scheme is set for the ultrasonic transducer array, so that the ultrasonic transducer array receives the second ultrasonic guided wave signal returned from the pipeline detection area according to the ultrasonic guided wave receiving delay scheme.

[0079] The ultrasonic guided wave receiving delay scheme includes setting the phase angle, angular frequency and wave number of each ultrasonic transducer in the ultrasonic transducer array unchanged, and setting the corresponding receiving delay time according to the distance from the defect area in the pipeline detection area to each ultrasonic transducer.

[0080] In one embodiment, the second ultrasonic guided wave signal returned by the pipeline detection area and received by the ultrasonic guided wave transducer array can be represented in a two-dimensional diagram of the pipeline axial distance and circumferential position, such as Figure 4 As shown, Figure 4 It is a two-dimensional graph of the pipeline axial distance and circumferential position; the coordinate origin of the two-dimensional graph of the pipeline axial distance and circumferential position is set at the 1# transducer position of the ultrasonic guided wave transducer array 2. The coordinates of the two-dimensional graph of the pipeline axial distance and circumferential position correspond one to one with the cylindrical coordinate position of the pipeline.

[0081] By expressing the amplitude of the ultrasonic guided wave phased array focused echo signal at different circumferential positions in the form of color gradients on the two-dimensional image of axial distance and circumferential position, the pipeline circumference can be fully scanned and the inherent features and tiny defects at different axial positions can be distinguished. The signal amplitude is reflected in the two-dimensional image as the brightness of the color. The darker position in the image corresponds to the undamaged area of ​​the pipeline, and the brighter position in the image corresponds to the damage or inherent features of the pipeline.

[0082] Specifically, by acquiring the amplitude of the second ultrasonic guided wave signal, the amplitude is converted into an RGB value; and the axial distance and circumferential position corresponding to the second ultrasonic guided wave signal are acquired, and each second ultrasonic guided wave signal is arranged on a two-dimensional image according to the axial distance and the circumferential position, and a first ultrasonic guided wave scanning image of the pipeline detection area is generated.

[0083] Step 102: preprocessing the first ultrasonic guided wave scanning image to obtain a second ultrasonic guided wave scanning image, wherein the preprocessing includes image grayscale processing, median filtering processing, piecewise linear enhancement processing and binarization processing.

[0084] In one embodiment, the first ultrasonic guided wave scanning image is preprocessed, wherein the preprocessing includes image grayscale processing, median filtering processing and piecewise linear enhancement processing. By preprocessing the first ultrasonic guided wave scanning image, interference factors can be removed and the quality of the first ultrasonic guided wave scanning image can be improved.

[0085] In one embodiment, the first ultrasonic guided wave scanning image is subjected to image grayscale processing, and the maximum and minimum values ​​of the amplitudes of each ultrasonic guided wave signal in the first ultrasonic guided wave scanning image are quantized to the brightest value and the darkest value of the same standardized grayscale matrix, respectively, to generate an ultrasonic guided wave grayscale image, such as Figure 5 As shown; wherein the brightest value of the same standardized grayscale matrix is ​​255 and the darkest value is 0.

[0086] The grayscale conversion process of the first ultrasonic guided wave scanning image can remove the interference of the ultrasonic guided wave capability caused by the instrument fluctuation during the ultrasonic guided wave scanning process, and ensure the equivalence of the grayscale contribution of the ultrasonic guided wave scanning image pixels at each circumferential position.

[0087] In one embodiment, the ultrasonic guided wave grayscale image is subjected to median filtering. Median filtering is a spatial domain filtering method that can eliminate the influence of noise introduced by complex factors such as instrument electrical noise during ultrasonic guided wave monitoring on the subsequent processing accuracy of the ultrasonic guided wave grayscale image. This is because during the median filtering process, noise points are often directly ignored, so the blurring effect caused by noise reduction is relatively low.

[0088] By setting the grayscale value of each pixel in the ultrasonic guided wave grayscale image to the median value of the grayscale values ​​of all pixels in the neighborhood window of each pixel, an ultrasonic guided wave median filtered image is generated, such as Figure 6 shown.

[0089] In one embodiment, the ultrasonic guided wave median filter image is subjected to piecewise linear enhancement processing, so that the grayscale values ​​of all pixels in the ultrasonic guided wave median filter image are divided into three segments, and each segment of the grayscale value is subjected to linear enhancement processing to generate an ultrasonic guided wave linear enhanced image, such as Figure 7 As shown in the figure, the piecewise linear grayscale enhancement is set to three segments. The grayscale value 0-60 segment is the pipeline's tiny background signal, which is weakened; the grayscale value 61-210 segment is the defect signal, which is highlighted and enhanced; the grayscale value 211-255 segment is the pipeline's inherent characteristic signal, which is smoothed.

[0090] The piecewise linear enhancement processing of the ultrasonic guided wave median filtered image is aimed at solving the problem that after the ultrasonic guided wave grayscale image is subjected to median filtering, the difference between the amplitude of the weak defect feature signal and the background signal is small, that is, the contrast between the ultrasonic guided wave grayscale image defect and the background grayscale is not obvious. By using the piecewise linear grayscale enhancement method, the dynamic range of the grayscale is stretched, the contrast of the image is improved, and the defect features are highlighted.

[0091] In one embodiment, the preprocessing of the first ultrasonic guided wave scanning image further includes: binarizing the ultrasonic guided wave linear enhancement image according to the maximum entropy threshold method to generate a second ultrasonic guided wave scanning image, such as Figure 8 shown.

[0092] Specifically, by taking advantage of the fact that the pipeline feature area and the background area have different gray levels, the maximum entropy threshold method is selected to perform binarization processing on the ultrasonic guided wave linear enhancement image, which plays a role in highlighting the pipeline features, improving image contrast, strengthening the defect edge effect, and suppressing unimportant information in the image. The second ultrasonic guided wave scanning image not only retains the main features of the first ultrasonic guided wave scanning image, but also greatly compresses the amount of information, which is conducive to the extraction of pipeline feature information.

[0093] Step 103: extract defect edges from the second ultrasonic guided wave scanning image to obtain an ultrasonic guided wave edge extraction image, and perform defect detection on the ultrasonic guided wave edge extraction image to obtain a pipeline defect detection result of the ultrasonic guided wave edge extraction image.

[0094] In one embodiment, the reflection of the ultrasonic guided wave caused by pipeline defects or inherent structural features is reflected in the echo signal as a larger amplitude signal, which has a large difference in pixel value from the background area. Therefore, according to the amplitude difference between the characteristic signal and the background area in the second ultrasonic guided wave scanning image, the second ultrasonic guided wave scanning image is detected for defect edges, and the edge features are extracted to achieve the purpose of defect feature extraction.

[0095] Specifically, the grayscale value of the neighborhood of each pixel in the second ultrasonic guided wave scanning image is checked according to the Roberts operator, and the grayscale change rate of each pixel point and its area is quantified to determine the edge point. Based on the edge point, the defect edge area is extracted to generate an ultrasonic guided wave edge extraction image, such as Fig. 9 shown.

[0096] Since there are inherent structural features in actual pipelines, such as welds, which are easily extracted as pipeline defects when defect edge extraction is performed, but welds have a fixed structure, which is specifically manifested as a straight line shape with a certain length. Therefore, in this embodiment, when extracting the defect edge area, it is also necessary to judge whether the defect edge area is an inherent feature of the pipeline. If so, the defect edge area is discarded.

[0097] In one embodiment, an ultrasonic guided wave reference scanning image of a pipeline inspection area is obtained, wherein the ultrasonic guided wave reference scanning image of the pipeline inspection area is a pipeline ultrasonic guided wave characteristic image recorded by ultrasonic guided wave monitoring when the pipeline is operating normally, and the similarity between the ultrasonic guided wave reference scanning image and the ultrasonic guided wave edge extraction image is calculated according to the cosine similarity, and the similarity is compared with a preset threshold value. If the similarity is greater than or equal to the preset threshold value, a pipeline defect detection result is generated as no defect; if the similarity is less than the preset threshold value, a pipeline defect detection result is generated as defect.

[0098] Specifically, the defect area in the ultrasonic guided wave edge extraction image is obtained, such as Fig.10 As shown, the ultrasonic guided wave reference scanning image corresponding to the defect area is obtained, such as Fig.11 As shown, the cosine similarity metric can be used to calculate the feature vector distance between the defective area in the ultrasonic guided wave edge extraction image and the ultrasonic guided wave reference scanning image corresponding to the area to determine the similarity between the two. If the pipeline is in good health, the ultrasonic guided wave edge extraction image and the ultrasonic guided wave reference scanning image have a high similarity. If defects such as corrosion occur, it will cause reflection or scattering of the ultrasonic guided wave, reducing the similarity between the ultrasonic guided wave edge extraction image and the ultrasonic guided wave reference scanning image, and the above-mentioned preset threshold can be set according to needs.

[0099] Step 104: Obtain and superimpose all ultrasonic guided wave edge extraction images within a preset time period to generate an ultrasonic guided wave dynamic scanning defect image, and obtain a pipeline defect dynamic detection result based on the pipeline defect detection result of each ultrasonic guided wave edge extraction image.

[0100] In one embodiment, the above steps 101 to 103 are repeated to obtain a plurality of ultrasonic guided wave edge extraction images and a pipeline defect detection result corresponding to each ultrasonic guided wave edge extraction image within a preset time period.

[0101] In one embodiment, all ultrasonic guided wave edge extraction images obtained within a preset time period are superimposed. Specifically, all ultrasonic guided wave edge extraction images obtained within the preset time period are sorted according to the time sequence of obtaining each ultrasonic guided wave edge extraction image, and each ultrasonic guided wave edge extraction image is used as an image frame. Each image frame is superimposed in order from early to late to generate an ultrasonic guided wave dynamic scanning defect image.

[0102] Preferably, the generated ultrasonic guided wave dynamic scanning defect image can be displayed in the form of a moving picture or in the form of an image video.

[0103] In one embodiment, the pipeline defect detection result of each ultrasonic guided wave edge extraction image is obtained in step 103, and the pipeline defect detection result is arranged according to the arrangement order of each ultrasonic guided wave edge extraction image.

[0104] In one embodiment, it is determined whether the pipeline defect detection results of all ultrasonic guided wave edge extraction images are that the pipeline is in good health. If so, the pipeline defect dynamic detection result is output as no defect in the pipeline within the time period. If not, it is determined whether the pipeline defect detection result of the ultrasonic guided wave edge extraction image with the first arrangement order is that there is a defect. If not, the pipeline defect dynamic detection result is output as the defect status of the pipeline within the time period from existence to non-existence; if so, the similarity corresponding to each ultrasonic guided wave edge extraction image obtained in 103 is obtained, and the similarities are arranged according to the arrangement order of each ultrasonic guided wave edge extraction image. If the similarities in the arrangement show a trend from large to small, the pipeline defect dynamic detection result is output as the defects in the pipeline within the time period showing an increasing trend; if the similarities in the arrangement show a stable trend, the pipeline defect dynamic detection result is output as the defects in the pipeline within the time period showing a stable trend.

[0105] Example 2

[0106] See also Figure 2 , Figure 2 is a schematic structural diagram of an embodiment of a pipeline defect dynamic detection device based on ultrasonic guided waves provided by the present invention, such as Figure 2 As shown, the device includes an image generation module 201, an image preprocessing module 202, an image defect edge extraction module 203 and an image superposition module 204, which are specifically as follows:

[0107] The image generation module 201 is used to control the ultrasonic guided wave transducer array to transmit a first ultrasonic guided wave signal to the pipeline detection area, and control the ultrasonic guided wave transducer array to receive a second ultrasonic guided wave signal returned by the pipeline detection area, and generate a first ultrasonic guided wave scanning image of the pipeline detection area according to the amplitude of the second ultrasonic guided wave signal.

[0108] The image preprocessing module 202 is used to preprocess the first ultrasonic guided wave scanning image to obtain a second ultrasonic guided wave scanning image, wherein the preprocessing includes image grayscale processing, median filtering processing, piecewise linear enhancement processing and binarization processing.

[0109] The image defect edge extraction module 203 is used to extract defect edges from the second ultrasonic guided wave scanning image to obtain an ultrasonic guided wave edge extraction image, and perform defect detection on the ultrasonic guided wave edge extraction image to obtain a pipeline defect detection result of the ultrasonic guided wave edge extraction image.

[0110] The image superposition module 204 is used to acquire and superimpose all ultrasonic guided wave edge extraction images within a preset time period to generate an ultrasonic guided wave dynamic scanning defect image, and obtain a pipeline defect dynamic detection result based on the pipeline defect detection result of each ultrasonic guided wave edge extraction image.

[0111] In one embodiment, the image preprocessing module 202 is used to preprocess the first ultrasonic guided wave scanning image, specifically including: performing image grayscale processing on the first ultrasonic guided wave scanning image, so that the maximum value and the minimum value of the amplitude of each ultrasonic guided wave signal in the first ultrasonic guided wave scanning image are quantized to the brightest value and the darkest value of the same standardized grayscale matrix, respectively, to generate an ultrasonic guided wave grayscale image; performing median filtering processing on the ultrasonic guided wave grayscale image, so that the grayscale value of each pixel in the ultrasonic guided wave grayscale image is set to the median value of the grayscale values ​​of all pixels in the neighborhood window of each pixel, to generate an ultrasonic guided wave median filtered image; performing piecewise linear enhancement processing on the ultrasonic guided wave median filtered image, so that the grayscale values ​​of all pixels in the ultrasonic guided wave median filtered image are divided into three segments, and linear enhancement processing is performed on each segment of the grayscale value, respectively, to generate an ultrasonic guided wave linear enhanced image.

[0112] In one embodiment, the image preprocessing module 202 is used to preprocess the first ultrasonic guided wave scanning image, and further includes: binarizing the ultrasonic guided wave linear enhancement image according to a maximum entropy threshold method to generate a second ultrasonic guided wave scanning image.

[0113] In one embodiment, the image defect edge extraction module 203 is used to perform defect detection on the ultrasonic guided wave edge extraction image to obtain a pipeline defect detection result of the ultrasonic guided wave edge extraction image, specifically including: acquiring an ultrasonic guided wave reference scanning image of the pipeline detection area, and calculating the similarity between the ultrasonic guided wave reference scanning image and the ultrasonic guided wave edge extraction image according to the cosine similarity; comparing the similarity with a preset threshold, and if the similarity is greater than or equal to the preset threshold, generating a pipeline defect detection result that there is no defect; if the similarity is less than the preset threshold, generating a pipeline defect detection result that there is a defect.

[0114] In one embodiment, the image generation module 201 is used to control the ultrasonic guided wave transducer array to transmit a first ultrasonic guided wave signal to the pipeline detection area, specifically including: according to the equal time and space phase principle, setting an ultrasonic guided wave transmission delay scheme for the ultrasonic transducer array, so that the ultrasonic transducer array transmits the first ultrasonic guided wave signal to the pipeline detection area according to the ultrasonic guided wave transmission delay scheme; wherein the equal time and space phase principle is Φ=ωt+kx, wherein Φ is a phase angle, ω is an angular frequency, t is time, k is a wave number, and x is a distance; the ultrasonic guided wave transmission delay scheme is to set the phase angle of each ultrasonic transducer in the ultrasonic transducer array unchanged, and the angular frequency and wave number are unchanged, and set the corresponding transmission delay time according to the distance from each ultrasonic transducer to the defect area in the pipeline detection area.

[0115] In one embodiment, the image generation module 201 is used to control the ultrasonic guided wave transducer array to receive the second ultrasonic guided wave signal returned from the pipeline detection area, specifically including: according to the principle of equal time and space phase, setting an ultrasonic guided wave receiving delay scheme for the ultrasonic transducer array, so that the ultrasonic transducer array receives the second ultrasonic guided wave signal returned from the pipeline detection area according to the ultrasonic guided wave receiving delay scheme; wherein the ultrasonic guided wave receiving delay scheme includes setting the phase angle, angular frequency and wave number of each ultrasonic transducer in the ultrasonic transducer array unchanged, and setting the corresponding receiving delay time according to the distance from the defect area in the pipeline detection area to each ultrasonic transducer.

[0116] In one embodiment, the image generation module 201 is used to generate a first ultrasonic guided wave scanning image of the pipeline detection area according to the amplitude of the second ultrasonic guided wave signal, specifically including: obtaining the amplitude of the second ultrasonic guided wave signal, converting the amplitude into an RGB value; and obtaining the axial distance and circumferential position corresponding to the second ultrasonic guided wave signal, and arranging each second ultrasonic guided wave signal according to the axial distance and the circumferential position, and generating a first ultrasonic guided wave scanning image of the pipeline detection area.

[0117] In summary, the present invention discloses a pipeline defect dynamic detection method and device based on ultrasonic guided waves, which control an ultrasonic guided wave transducer array to transmit a first ultrasonic guided wave signal to a pipeline detection area, and control the ultrasonic guided wave transducer array to receive a second ultrasonic guided wave signal returned by the pipeline detection area, and generate a first ultrasonic guided wave scanning image of the pipeline detection area according to the amplitude of the second ultrasonic guided wave signal; preprocess the first ultrasonic guided wave scanning image to obtain a second ultrasonic guided wave scanning image, wherein the preprocessing includes image grayscale processing, median filtering processing, piecewise linear enhancement processing and binarization processing, perform defect edge extraction on the second ultrasonic guided wave scanning image to obtain an ultrasonic guided wave edge extraction image, and detect the ultrasonic guided wave edge extraction image to generate a pipeline defect detection result of the ultrasonic guided wave edge extraction image, obtain and superimpose all ultrasonic guided wave edge extraction images within a preset time period, generate an ultrasonic guided wave dynamic scanning defect image, and obtain a pipeline defect dynamic detection result based on the pipeline defect detection result of each ultrasonic guided wave edge extraction image, so as to realize dynamic detection of pipeline defects and intuitively display the dynamic change process of pipeline defects within a time period.

[0118] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention. These improvements and substitutions should also be regarded as the scope of protection of the present invention.

Claims

1. A pipeline defect dynamic detection method based on ultrasonic guided waves, characterized in that: include: Controlling the ultrasonic guided wave transducer array to transmit a first ultrasonic guided wave signal to the pipeline detection area, and controlling the ultrasonic guided wave transducer array to receive a second ultrasonic guided wave signal returned by the pipeline detection area, and generating a first ultrasonic guided wave scanning image of the pipeline detection area according to the amplitude of the second ultrasonic guided wave signal; Preprocessing the first ultrasonic guided wave scanning image to obtain a second ultrasonic guided wave scanning image, wherein the preprocessing includes image grayscale processing, median filtering processing, piecewise linear enhancement processing and binarization processing; Extracting defect edges from the second ultrasonic guided wave scanning image to obtain an ultrasonic guided wave edge extraction image, and performing defect detection on the ultrasonic guided wave edge extraction image to obtain a pipeline defect detection result of the ultrasonic guided wave edge extraction image; Acquire all ultrasonic guided wave edge extraction images within a preset time period, and perform superposition processing on all ultrasonic guided wave edge extraction images within the preset time period to generate ultrasonic guided wave dynamic scanning defect images, and obtain pipeline defect dynamic detection results based on the pipeline defect detection results of each ultrasonic guided wave edge extraction image; Among them, the preprocessing of the first ultrasonic guided wave scanning image specifically includes: performing image grayscale processing on the first ultrasonic guided wave scanning image, quantizing the maximum value and the minimum value of the amplitude of each ultrasonic guided wave signal in the first ultrasonic guided wave scanning image to the brightest value and the darkest value of the same standardized grayscale matrix, respectively, to generate an ultrasonic guided wave grayscale image; performing median filtering processing on the ultrasonic guided wave grayscale image, setting the grayscale value of each pixel in the ultrasonic guided wave grayscale image to the median value of the grayscale values ​​of all pixels in the neighborhood window of each pixel, to generate an ultrasonic guided wave median filtered image; performing piecewise linear enhancement processing on the ultrasonic guided wave median filtered image, dividing the grayscale values ​​of all pixels in the ultrasonic guided wave median filtered image into three segments, and performing linear enhancement processing on each segment of the grayscale value, respectively, to generate an ultrasonic guided wave linear enhanced image; Among them, controlling the ultrasonic guided wave transducer array to transmit the first ultrasonic guided wave signal to the pipeline detection area specifically includes: according to the equal time and space phase principle, setting an ultrasonic guided wave transmission delay scheme for the ultrasonic transducer array, so that the ultrasonic transducer array transmits the first ultrasonic guided wave signal to the pipeline detection area according to the ultrasonic guided wave transmission delay scheme; wherein the equal time and space phase principle is Φ=ωt+kx, where Φ is the phase angle, ω is the angular frequency, t is the time, k is the wave number, and x is the distance; the ultrasonic guided wave transmission delay scheme is to set the phase angle of each ultrasonic transducer in the ultrasonic transducer array unchanged, and the angular frequency and wave number unchanged, and set the corresponding transmission delay time according to the distance from each ultrasonic transducer to the defect area in the pipeline detection area; Among them, according to the amplitude of the second ultrasonic guided wave signal, a first ultrasonic guided wave scanning image of the pipeline detection area is generated, which specifically includes: obtaining the amplitude of the second ultrasonic guided wave signal, converting the amplitude into an RGB value; and obtaining the axial distance and circumferential position corresponding to the second ultrasonic guided wave signal, arranging each second ultrasonic guided wave signal according to the axial distance and the circumferential position, and generating a first ultrasonic guided wave scanning image of the pipeline detection area.

2. A pipeline defect dynamic detection method based on ultrasonic guided waves according to claim 1, characterized in that: Preprocessing the first ultrasonic guided wave scanning image also includes: According to the maximum entropy threshold method, the ultrasonic guided wave linear enhancement image is binarized to generate a second ultrasonic guided wave scanning image.

3. The method for dynamic detection of pipeline defects based on ultrasonic guided waves according to claim 1, characterized in that: Performing defect detection on the ultrasonic guided wave edge extraction image to obtain a pipeline defect detection result of the ultrasonic guided wave edge extraction image specifically includes: Acquire an ultrasonic guided wave reference scanning image of the pipeline detection area, and calculate the similarity between the ultrasonic guided wave reference scanning image and the ultrasonic guided wave edge extraction image according to the cosine similarity metric; The similarity is compared with a preset threshold. If the similarity is greater than or equal to the preset threshold, a pipeline defect detection result is generated as no defect exists; if the similarity is less than the preset threshold, a pipeline defect detection result is generated as a defect exists.

4. The method for dynamic detection of pipeline defects based on ultrasonic guided waves according to claim 1, characterized in that: Controlling the ultrasonic guided wave transducer array to receive the second ultrasonic guided wave signal returned by the pipeline detection area specifically includes: According to the equal time and space phase principle, an ultrasonic guided wave receiving delay scheme is set for the ultrasonic transducer array, so that the ultrasonic transducer array receives the second ultrasonic guided wave signal returned by the pipeline detection area according to the ultrasonic guided wave receiving delay scheme; Among them, the ultrasonic guided wave receiving delay scheme includes setting the phase angle, angular frequency and wave number of each ultrasonic transducer in the ultrasonic transducer array unchanged, and setting the corresponding receiving delay time according to the distance from the defect area in the pipeline detection area to each ultrasonic transducer.

5. A pipeline defect dynamic detection device based on ultrasonic guided waves, characterized in that: include: Image generation module, image preprocessing module, image defect edge extraction module and image overlay module; The image generation module is used to control the ultrasonic guided wave transducer array to transmit a first ultrasonic guided wave signal to the pipeline detection area, and to control the ultrasonic guided wave transducer array to receive a second ultrasonic guided wave signal returned by the pipeline detection area, and to generate a first ultrasonic guided wave scanning image of the pipeline detection area according to the amplitude of the second ultrasonic guided wave signal; The image preprocessing module is used to preprocess the first ultrasonic guided wave scanning image to obtain a second ultrasonic guided wave scanning image, wherein the preprocessing includes image grayscale processing, median filtering processing, piecewise linear enhancement processing and binarization processing; The image defect edge extraction module is used to extract defect edges from the second ultrasonic guided wave scanning image to obtain an ultrasonic guided wave edge extraction image, and to perform defect detection on the ultrasonic guided wave edge extraction image to obtain a pipeline defect detection result of the ultrasonic guided wave edge extraction image; The image superposition module is used to obtain all ultrasonic guided wave edge extraction images within a preset time period, and perform superposition processing on all ultrasonic guided wave edge extraction images within the preset time period to generate an ultrasonic guided wave dynamic scanning defect image, and obtain a pipeline defect dynamic detection result based on the pipeline defect detection result of each ultrasonic guided wave edge extraction image; Among them, the preprocessing of the first ultrasonic guided wave scanning image specifically includes: performing image grayscale processing on the first ultrasonic guided wave scanning image, quantizing the maximum value and the minimum value of the amplitude of each ultrasonic guided wave signal in the first ultrasonic guided wave scanning image to the brightest value and the darkest value of the same standardized grayscale matrix, respectively, to generate an ultrasonic guided wave grayscale image; performing median filtering processing on the ultrasonic guided wave grayscale image, setting the grayscale value of each pixel in the ultrasonic guided wave grayscale image to the median value of the grayscale values ​​of all pixels in the neighborhood window of each pixel, to generate an ultrasonic guided wave median filtered image; performing piecewise linear enhancement processing on the ultrasonic guided wave median filtered image, dividing the grayscale values ​​of all pixels in the ultrasonic guided wave median filtered image into three segments, and performing linear enhancement processing on each segment of the grayscale value, respectively, to generate an ultrasonic guided wave linear enhanced image; Among them, controlling the ultrasonic guided wave transducer array to transmit the first ultrasonic guided wave signal to the pipeline detection area specifically includes: according to the equal time and space phase principle, setting an ultrasonic guided wave transmission delay scheme for the ultrasonic transducer array, so that the ultrasonic transducer array transmits the first ultrasonic guided wave signal to the pipeline detection area according to the ultrasonic guided wave transmission delay scheme; wherein the equal time and space phase principle is Φ=ωt+kx, where Φ is the phase angle, ω is the angular frequency, t is the time, k is the wave number, and x is the distance; the ultrasonic guided wave transmission delay scheme is to set the phase angle of each ultrasonic transducer in the ultrasonic transducer array unchanged, and the angular frequency and wave number unchanged, and set the corresponding transmission delay time according to the distance from each ultrasonic transducer to the defect area in the pipeline detection area; Among them, according to the amplitude of the second ultrasonic guided wave signal, a first ultrasonic guided wave scanning image of the pipeline detection area is generated, which specifically includes: obtaining the amplitude of the second ultrasonic guided wave signal, converting the amplitude into an RGB value; and obtaining the axial distance and circumferential position corresponding to the second ultrasonic guided wave signal, arranging each second ultrasonic guided wave signal according to the axial distance and the circumferential position, and generating a first ultrasonic guided wave scanning image of the pipeline detection area.

6. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for dynamic detection of pipeline defects based on ultrasonic guided waves according to any one of claims 1 to 4 is implemented.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the dynamic pipeline defect detection method based on ultrasonic guided waves according to any one of claims 1 to 4.