A system for identifying cracks in pipelines
By using deep learning and reflective adaptation modules in the pipeline internal identification system to identify and locate cracks inside the pipeline, the problem of insufficient texture recognition and reflective utilization in the existing technology is solved, and the efficiency of crack judgment and location is improved.
Patent Information
- Application Number
- CN202210086000.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-01-25
AI Technical Summary
Existing technology cannot effectively identify the texture inside the pipe and utilize the reflective effect, making it difficult to locate cracks.
A pipeline internal crack image recognition system including a camera, real-time transmission module, image system and central processing system is designed. The inner diameter and texture of the pipeline are learned through the deep learning module, the original texture is eliminated, and the reflective adaptation module is used to enhance the texture display. , and locate cracks through the damage location module.
It improves the judgment efficiency and positioning effect of internal cracks in pipelines, reduces the impact of reflection on images, generates clear internal threads and inner diameters of pipelines, and enhances the ability to locate pipeline cracks.
Smart Images

Figure CN114486934B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a system for identifying crack images inside a pipeline. Background Art
[0002] Defects and cracks in pipelines are generally initially located by cameras, but traditional pipeline endoscopes can only capture images of the inside of the pipeline during use.
[0003] After searching, the invention patent with Chinese patent number CN113393381A discloses a method, device and terminal equipment for generating pipeline inner wall images, wherein the method includes: extracting at least two key frames from the pipeline inner wall video according to the shooting parameters of the pipeline inner wall video; converting each key frame into a plane map; performing radial distortion correction processing on the plane map to obtain a correction map; and obtaining the pipeline inner wall image according to at least two correction maps. Through the provided pipeline inner wall image generation scheme, the hardware requirements for the carrier platform during the pipeline inner wall image detection process are reduced, a plane map can be generated through the collected pipeline inner wall video, the plane map is corrected, and the pipeline inner wall image is obtained according to the correction map. It is suitable for pipelines placed at various angles, which expands the scope of application, improves the detection effect of the pipeline inner wall image, and reduces the difficulty of application.
[0004] However, during use, the above patent can only correct the image taken inside the pipeline, thereby improving the detection effect of the pipeline inner wall image and reducing the application difficulty, but lacks effective recognition of the original texture in the pipeline, and also fails to effectively utilize the reflective effect generated inside the pipeline, making it difficult to locate the cracks inside the pipeline. Therefore, a system for recognizing crack images inside pipelines is needed. Summary of the invention
[0005] The purpose of the present invention is to solve the shortcomings of the prior art that there is a lack of effective recognition of the original texture in the pipeline and the inability to effectively utilize the reflective effect generated inside the pipeline, thereby making it difficult to locate cracks inside the pipeline. A system for image recognition of cracks inside the pipeline is proposed.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] A system for identifying cracks in pipelines comprises a processing host, wherein the processing host comprises a camera, a real-time transmission module, an image system, a central processing system and a damage location module, wherein the camera is communicatively connected to the real-time transmission module, wherein the image system comprises an image shooting module, an image acquisition module, an image processing module and an image recognition module, wherein the image system enables the camera to start working, and simultaneously collects images taken by the camera, and then processes and identifies the collected images;
[0008] The image system is communicatively connected to the central processing system, and the image system transmits the identified image data to the central processing system. The central processing system includes a deep learning module and a comparison and elimination module. The deep learning module includes a pipeline inner diameter acquisition unit, a pipeline inner texture acquisition unit and a reflection adaptation module. The central processing system performs deep learning on the acquired image data, thereby learning the inner diameter and the inner texture of the pipeline, while retaining the reflection generated during shooting, and finally eliminating the original texture. The central processing system transmits the eliminated model to the damage positioning module, and locates the position of the damage in the pipeline through the residual texture on the pipeline model.
[0009] The above technical solution further includes:
[0010] The image shooting module controls the camera to shoot the image inside the pipeline, the image acquisition module collects the shot image through the real-time transmission module, the image processing module processes the image, the image noise reduction unit reduces the noise points in the collected image, the brightness enhancement unit enhances the overall brightness of the image, and the edge detection unit performs edge detection on the image.
[0011] The image processing module transmits the processed image to the image recognition module, and the image recognition module recognizes the processed image data, thereby recognizing the original texture inside the pipeline and the cracks inside the pipeline.
[0012] The image recognition module transmits the recognized image data to the central processing system, the pipeline inner diameter acquisition unit identifies the pipeline inner diameter according to the data in the image, the pipeline inner texture acquisition unit acquires the original texture inside the pipeline through the recognized data, and the reflection adaptation module adapts the uneven brightness formed by the reflection inside the pipeline, so that the reflection enhances the display of the texture inside the pipeline.
[0013] The deep learning module constructs a model of the pipeline through deep learning, and the comparison and elimination module eliminates the original texture in the pipeline model according to the data of the original texture inside the pipeline, so that the retained texture is the crack inside the pipeline.
[0014] The comparison and elimination module transmits the pipeline model with the original texture eliminated to the damage location module, and the damage location module locates the surface damage position inside the pipeline through the position of the texture in the model.
[0015] The image denoising unit adopts median filtering to denoise the image, and the grayscales of all pixels in a small window centered on the pixel are sorted from small to large, and the middle value of the sorting result is taken as the grayscale value of the pixel.
[0016] The brightness enhancement unit assumes that the grayscale range of the original image f(x, y) is [a, b] when working, and hopes that the grayscale range of the transformed image g(x, y) is extended to [c, d]. The grayscale linear transformation can be expressed as: This function is then used to increase the brightness of the image.
[0017] The edge detection unit first constructs a second-order edge detection mathematical formula when working:
[0018]
[0019]
[0020] Then extract the coefficients of formula (3) and formula (4), construct an edge detection template, and finally use the edge detection template to perform convolution operation with the image to detect the edge of the image:
[0021] (Where w(i,j) is the template coefficient, f(x,y) is the image pixel to be processed, is the image after convolution operation, and the image size is M×N).
[0022] In the process of recognizing the texture inside the pipeline, the image recognition module constructs a fractional integral pyramid for the image, then constructs a Laplace pyramid, extracts the edge of the multi-scale and multi-resolution Laplace high-frequency image, and finally reconstructs the multi-scale Laplace high-frequency image for field simulation, thereby generating clear internal threads of the pipeline.
[0023] Compared with the prior art, the present invention has the following beneficial effects:
[0024] 1. In the present invention, the noise points inside the pipeline are reduced by collecting and repairing the internal image of the pipeline, and the original texture inside the pipeline is obtained through the identified data. The comparison and elimination module eliminates the original texture in the pipeline model according to the data of the original texture inside the pipeline, so that the retained texture is the crack inside the pipeline, which greatly increases the efficiency of judging the crack inside the pipeline.
[0025] 2. In the present invention, the uneven brightness caused by the reflection inside the pipeline is adapted by the reflection adaptation module, so that the reflection enhances the display of the texture inside the pipeline, reduces the impact of the reflection during shooting, and uses the reflection, thereby increasing the clarity of the image inside the pipeline. In the process of identifying the texture inside the pipeline by the image recognition module, a fractional integral pyramid is constructed for the image, and finally a multi-scale Laplace high-frequency image is reconstructed for field simulation, thereby generating a clear internal thread of the pipeline, and the pipeline inner diameter acquisition unit identifies the inner diameter of the pipeline according to the data in the image, which is convenient for the subsequent production of the pipeline model, thereby matching the cracks in the pipeline to the pipeline model, greatly increasing the positioning effect of the pipeline cracks. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 This is a system block diagram of a pipeline internal crack image recognition system proposed by the present invention;
[0027] Figure 2 is a system block diagram of the image system in the present invention;
[0028] Figure 3 is a system block diagram of the image processing module in the present invention;
[0029] Figure 4 is a system block diagram of the central processing system of the present invention;
[0030] Figure 5 This is a system block diagram of the deep learning module in the present invention.
[0031] In the figure: 1. Camera; 2. Real-time transmission module; 3. Image system; 4. Central processing system; 5. Damage localization module; 6. Image shooting module; 7. Image acquisition module; 8. Image processing module; 9. Image recognition module; 10. Image denoising unit; 11. Brightness enhancement unit; 12. Edge detection unit; 13. Deep learning module; 14. Comparison and rejection module; 15. Pipeline inner diameter acquisition unit; 16. Pipeline inner texture acquisition unit; 17. Reflective adaptation module. DETAILED DESCRIPTION
[0032] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and specific embodiments.
[0033] Embodiment 1
[0034] like Figure 1-5 As shown, the present invention proposes a system for identifying cracks in pipelines, including a processing host, the processing host internally includes a camera 1, a real-time transmission module 2, an image system 3, a central processing system 4 and a damage location module 5, the camera 1 is connected to the real-time transmission module 2 for communication, the image system 3 internally includes an image shooting module 6, an image acquisition module 7, an image processing module 8 and an image recognition module 9, the image system 3 enables the camera 1 to start working, and at the same time collects images taken by the camera 1, and then processes and identifies the collected images;
[0035] The image system 3 is connected to the central processing system 4 in communication. The image system 3 transmits the identified image data to the central processing system 4. The central processing system 4 includes a deep learning module 13 and a comparison and elimination module 14. The deep learning module 13 includes a pipeline inner diameter acquisition unit 15, a pipeline inner texture acquisition unit 16 and a reflection adaptation module 17. The central processing system 4 performs deep learning on the acquired image data, thereby learning the inner diameter and the inner texture of the pipeline, and retains the reflection generated during shooting. Finally, the original texture is eliminated. The central processing system 4 transmits the eliminated model to the damage positioning module 5, and locates the position of the damage in the pipeline through the texture remaining on the pipeline model;
[0036] The image shooting module 6 controls the camera 1 to shoot the image inside the pipeline, the image acquisition module 7 collects the captured image through the real-time transmission module 2, the image processing module 8 processes the image, the image denoising unit 10 reduces the noise in the collected image, and the brightness enhancement unit 11 enhances the overall brightness of the image. When the brightness enhancement unit 11 is working, it is assumed that the grayscale range of the original image f(x, y) is [a, b], and it is hoped that the grayscale range of the transformed image g(x, y) is extended to [c, d]. Then the grayscale linear transformation can be expressed as: Then use this function to improve the brightness of the image;
[0037] The edge detection unit 12 performs edge detection on the image. When working, the edge detection unit 12 first constructs a second-order edge detection mathematical formula:
[0038]
[0039]
[0040] Then extract the coefficients of formula (3) and formula (4), construct an edge detection template, and finally use the edge detection template to perform convolution operation with the image to detect the edge of the image:
[0041] (Where w(i,j) is the template coefficient, f(x,y) is the image pixel to be processed, is the image after convolution operation, the image size is M×N);
[0042] The image processing module 8 transmits the processed image to the image recognition module 9, and the image recognition module 9 recognizes the processed image data. In the process of recognizing the texture inside the pipeline, the image recognition module 9 constructs a fractional integral pyramid for the image, and then constructs a Laplace pyramid, and then extracts the edge of the multi-scale and multi-resolution Laplace high-frequency image. Finally, the multi-scale Laplace high-frequency image is reconstructed for field simulation, thereby generating a clear internal thread of the pipeline, and then identifying the original texture inside the pipeline and the cracks inside the pipeline.
[0043] The working principle of a pipeline internal crack image recognition system based on the first embodiment is that when working, the camera 1 starts to work to shoot the inside of the pipeline to be inspected, the image acquisition module 7 collects the shot image through the real-time transmission module 2, and the image processing module 8 processes the image;
[0044] The image processing module 8 reduces noise points in the collected image through the image denoising unit 10 during the processing. The image denoising unit 10 uses median filtering to denoise the image. The grayscales of all pixels in a small window centered on the pixel are sorted from small to large, and the middle value of the sorting result is taken as the grayscale value of the pixel.
[0045] The brightness enhancement unit 11 enhances the overall brightness of the image. When working, the brightness enhancement unit 11 assumes that the grayscale range of the original image f(x, y) is [a, b], and it is hoped that the grayscale range of the transformed image g(x, y) is extended to [c, d]. The grayscale linear transformation can be expressed as: Then use this function to improve the brightness of the image;
[0046] The image after brightness enhancement by the brightness enhancement unit 11 is subjected to edge detection by the edge detection unit 12. When the edge detection unit 12 is working, it first constructs a second-order edge detection mathematical formula:
[0047]
[0048]
[0049] Then extract the coefficients of the formula image system 3 and the formula central processing system 4, construct the edge detection template, and finally use the edge detection template to perform convolution operation with the image to realize the detection of the image edge:
[0050] (Where w(i,j) is the template coefficient, f(x,y) is the image pixel to be processed, is the image after convolution operation, the image size is M×N);
[0051] The image processing module 8 transmits the processed image to the image recognition module 9, and the image recognition module 9 recognizes the processed image data. In the process of recognizing the texture inside the pipeline, the image recognition module 9 constructs a fractional integral pyramid for the image, and then constructs a Laplace pyramid, and then extracts the edge of the multi-scale and multi-resolution Laplace high-frequency image. Finally, the multi-scale Laplace high-frequency image is reconstructed for field simulation, thereby generating a clear internal thread of the pipeline, and then identifying the original texture inside the pipeline and the cracks inside the pipeline.
[0052] Embodiment 2
[0053] like Figure 1-5 As shown, based on the first embodiment, the image recognition module 9 transmits the recognized image data to the central processing system 4, the pipeline inner diameter acquisition unit 15 recognizes the pipeline inner diameter according to the data in the image, and the pipeline inner texture acquisition unit 16 acquires the original texture inside the pipeline through the recognized data, and at the same time, the reflection adaptation module 17 adapts the uneven brightness formed by the reflection inside the pipeline, so that the reflection enhances the display of the texture inside the pipeline;
[0054] The deep learning module 13 constructs a model of the pipeline through deep learning, and the comparison and elimination module 14 eliminates the original texture in the pipeline model according to the data of the original texture inside the pipeline, so that the retained texture is the crack inside the pipeline;
[0055] The comparison and elimination module 14 transmits the pipeline model with the original texture eliminated to the damage location module 5 , and the damage location module 5 locates the surface damage position inside the pipeline through the position of the texture in the model.
[0056] In this embodiment, when working, during the process of testing the pipeline, the test device is first placed in the pipeline for preliminary shooting, and then the camera 1 is moved, the moving direction is consistent with the direction of the pipeline, and the moving distance is 5 cm. At this time, the camera 1 takes another picture of the inside of the pipe, and the deviation between the images when shooting on both sides and the moving distance are transmitted to the pipeline inner diameter acquisition unit 15. The pipeline inner diameter acquisition unit 15 identifies the inner diameter of the pipeline according to the data in the image;
[0057] The pipeline texture acquisition unit 16 acquires the original texture inside the pipeline through the identified data, and the reflection adaptation module 17 adapts the uneven brightness formed by the reflection inside the pipeline, so that the reflection enhances the display of the texture inside the pipeline. The deep learning module 13 constructs a pipeline model through deep learning, and the comparison and elimination module 14 eliminates the original texture in the pipeline model according to the data of the original texture inside the pipeline, so that the retained texture is the crack inside the pipeline;
[0058] The comparison and elimination module 14 transmits the pipeline model with the original texture eliminated to the damage location module 5. The damage location module 5 locates the surface damage position inside the pipeline through the position of the texture in the model, and then matches the cracks in the pipeline to the pipeline model, which greatly increases the location effect of the pipeline cracks.
[0059] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A system for identifying cracks in pipelines, comprising a processing host, characterized in that: The processing host comprises a camera (1), a real-time transmission module (2), an image system (3), a central processing system (4) and a damage positioning module (5); the camera (1) is communicatively connected to the real-time transmission module (2); the image system (3) comprises an image shooting module (6), an image acquisition module (7), an image processing module (8) and an image recognition module (9); the image system (3) enables the camera (1) to start working, and at the same time collects images after being taken by the camera (1), and then processes and recognizes the collected images; The image system (3) is connected to the central processing system (4) by communication. The image system (3) transmits the identified image data to the central processing system (4). The central processing system (4) includes a deep learning module (13) and a comparison and elimination module (14). The deep learning module (13) includes a pipeline inner diameter acquisition unit (15), a pipeline inner texture acquisition unit (16) and a reflection adaptation module (17). The central processing system (4) performs deep learning on the acquired image data, thereby learning the inner diameter and the inner texture of the pipeline, and retains the reflection generated during shooting. Finally, the original texture is eliminated. The central processing system (4) transmits the eliminated model to the damage positioning module (5), and locates the position of the damage in the pipeline through the texture remaining on the pipeline model.
2. A pipeline internal crack image recognition system according to claim 1, characterized in that: The image capturing module (6) controls the camera (1) to capture images of the interior of the pipeline; the image acquisition module (7) collects the captured images through the real-time transmission module (2); the image processing module (8) processes the images; the image noise reduction unit (10) reduces noise points in the collected images; the brightness enhancement unit (11) enhances the overall brightness of the images; and the edge detection unit (12) performs edge detection on the images.
3. A pipeline internal crack image recognition system according to claim 2, characterized in that: The image processing module (8) transmits the processed image to the image recognition module (9), and the image recognition module (9) recognizes the processed image data, thereby identifying the original texture inside the pipeline and the cracks inside the pipeline.
4. A pipeline internal crack image recognition system according to claim 3, characterized in that: The image recognition module (9) transmits the recognized image data to the central processing system (4), the pipeline inner diameter acquisition unit (15) recognizes the pipeline inner diameter according to the data in the image, the pipeline inner texture acquisition unit (16) acquires the original texture inside the pipeline through the recognized data, and the reflection adaptation module (17) adapts the uneven brightness formed by the reflection inside the pipeline, so that the reflection enhances the display of the texture inside the pipeline.
5. The system for identifying cracks in pipelines according to claim 4, characterized in that: The deep learning module (13) constructs a model of the pipeline through deep learning, and the comparison and elimination module (14) eliminates the original texture in the pipeline model according to the data of the original texture inside the pipeline, so that the retained texture is the crack inside the pipeline.
6. A pipeline internal crack image recognition system according to claim 5, characterized in that: The comparison and elimination module (14) transmits the pipeline model with the original texture eliminated to the damage positioning module (5), and the damage positioning module (5) locates the surface damage position inside the pipeline through the position of the texture in the model.
7. The system for identifying cracks in pipelines according to claim 2, characterized in that: The image denoising unit (10) adopts median filtering to denoise the image, sorts the grayscales of all pixels in a small window centered on the pixel from small to large, and takes the middle value of the sorting result as the grayscale value of the pixel.
8. The system for identifying cracks in pipelines according to claim 2, characterized in that: The brightness enhancement unit (11) assumes during operation that the grayscale range of the original image f(x, y) is [a, b], and that the grayscale range of the transformed image g(x, y) is expected to be extended to [c, d]. The grayscale linear transformation can be expressed as: This function is then used to increase the brightness of the image.
9. The system for identifying cracks in pipelines according to claim 2, characterized in that: When working, the edge detection unit (12) first constructs a second-order edge detection mathematical formula: Then extract the coefficients of formula (3) and formula (4), construct an edge detection template, and finally use the edge detection template to perform convolution operation with the image to detect the edge of the image: Where w(i,j) is the template coefficient, f(x,y) is the image pixel to be processed, is the image after convolution operation, and the image size is M×N.
10. The system for identifying cracks in pipelines according to claim 3, characterized in that: In the process of recognizing the texture inside the pipeline, the image recognition module (9) constructs a fractional integral pyramid on the image, then constructs a Laplace pyramid, extracts the edge of the multi-scale and multi-resolution Laplace high-frequency image, and finally reconstructs the multi-scale Laplace high-frequency image for field simulation, thereby generating clear internal threads of the pipeline.
