Defect detection method in pipeline trenchless repair process based on CCTV technology

By performing edge detection and feature analysis in CCTV technology and calculating the deformation index, the problem of CCTV technology being difficult to identify pipeline deformation defects is solved, and accurate detection and identification of pipeline deformation defects are achieved.

CN117974619BActive Publication Date: 2024-09-17JIANGXI SHENGJIE MUNICIPAL ENG CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410209984.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-26
Publication Date
2024-09-17
Estimated Expiration
2044-02-26

AI Technical Summary

Technical Problem

CCTV technology is difficult to accurately identify deformation defects during internal inspection of pipelines, resulting in difficulty in defect detection during trenchless pipeline repair.

Method used

By acquiring the pipeline image, perform edge detection and segmentation, calculate the straight line characteristic coefficient and concentric curvature isolation degree, calculate the deformation index by combining the degree of confusion and the number of circle centers, and use the Otsu threshold segmentation algorithm to identify deformation defects.

Benefits of technology

It achieves accurate identification of pipeline deformation defects, improves detection efficiency and accuracy, and can more effectively determine the area where deformation occurs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117974619B
    Figure CN117974619B
Patent Text Reader

Abstract

The present application relates to the field of image data processing technology, and proposes a defect detection method in the pipeline trenchless repair process based on CCTV technology, including: obtaining an original pipeline image; obtaining an edge area according to the original pipeline image; obtaining a straight line feature coefficient according to the edge area; obtaining a target edge curve according to the straight line feature coefficient; obtaining an area of ​​interest according to the target edge curve; obtaining a local highlight coefficient according to the area of ​​interest; obtaining concentric curvature isolation according to the local highlight coefficient; obtaining a deformation index according to the concentric curvature isolation; and obtaining a deformation defect detection result based on the deformation index using the Otsu threshold segmentation algorithm. The present application improves the accuracy of the deformation defect detection result by analyzing the edge features of the deformed area in the pipeline.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of image data processing, and in particular to a method for detecting defects in a pipeline trenchless repair process based on CCTV technology. Background Art

[0002] With the acceleration of urbanization, the number of pipeline facilities continues to increase, and pipeline defects and failures are becoming increasingly prominent, bringing many inconveniences to people's production and life. Traditional pipeline detection methods often require excavation of the road surface, which is not only costly, but also has an impact on traffic and the environment. Therefore, trenchless repair technology has gradually become a hot spot in the field of pipeline detection and repair. CCTV technology, as an advanced pipeline internal detection technology, has the advantages of real-time, intuitive, and accurate. It can provide detailed image information inside the pipeline and provide important basic data for defect detection.

[0003] Pipeline defects are divided into two categories: structural defects and functional defects. Structural defects refer to defects that damage the pipeline structure itself, affecting the strength, stiffness, structural stability and service life of the pipeline, including rupture, deformation, corrosion, misalignment, fluctuations, etc.; functional defects refer to defects that cause changes in the water-passing cross-section of the pipeline and affect its smooth performance, but usually have little effect on the life of the pipeline, including deposition, scaling, obstacles, residual walls, etc.

[0004] Although CCTV technology can provide real-time images of the inside of the pipeline, the complexity and dynamic changes of the internal environment of the pipeline, as well as the diversity of defect types, make it difficult to automatically identify the target defects. For example, it is difficult to accurately identify deformation defects in structural defects through CCTV technology. Therefore, how to accurately and efficiently detect deformation defects in the pipeline through CCTV technology images in the complex and changeable pipeline is an urgent problem to be solved. Summary of the invention

[0005] This application provides a defect detection method in the pipeline trenchless repair process based on CCTV technology to solve the problem of inaccurate identification of deformation defects in the pipeline. The technical solution adopted is as follows:

[0006] An embodiment of the present application provides a method for detecting defects in a pipeline trenchless repair process based on CCTV technology, the method comprising the following steps:

[0007] Get the original pipeline image;

[0008] Obtain each edge region in the original pipeline edge image according to the original pipeline image; obtain the straight line feature coefficient of each edge curve in each edge region in the original pipeline edge image according to each edge curve in each edge region in the original pipeline edge image; obtain each target edge curve in the original pipeline edge image according to the straight line feature coefficient of each edge curve in each edge region in the original pipeline edge image; obtain each region of interest in the original pipeline edge image and the degree of disorder of each region of interest according to all target edge curves in the original pipeline edge image, and obtain the number of circle centers in each region of interest in the original pipeline edge image according to each region of interest in the original pipeline edge image;

[0009] Obtaining the concentric curvature isolation of each target edge curve in each region of interest in the original pipeline edge image according to each target edge curve in each region of interest in the original pipeline edge image; obtaining the deformation index of each region of interest in the original pipeline edge image according to the concentric curvature isolation, chaos and number of circle centers;

[0010] The deformation defect detection result is obtained based on the deformation index using the Otsu threshold segmentation algorithm.

[0011] Preferably, the method for obtaining each edge region in the original pipeline edge image according to the original pipeline image is:

[0012] The original pipeline image is used as the input of the canny edge detection algorithm, and the original pipeline edge image is obtained by using the canny edge detection algorithm;

[0013] The original pipeline edge image is equally divided into four regions by a cross segmentation method, and each of the regions is used as each edge region in the original pipeline edge image.

[0014] Preferably, the method for obtaining the straight line characteristic coefficient of each edge curve in each edge region in the original pipeline edge image according to each edge curve in each edge region in the original pipeline edge image is:

[0015] The numbers of the upper left, upper right, lower right, and lower left edge regions in the original pipeline edge image are recorded as 1, 2, 3, and 4 respectively;

[0016] For each edge curve in each edge region in the original pipe edge image, a straight line segment formed by connecting two end points of the edge curve is recorded as a target straight line segment, and the slope of the target straight line segment is calculated;

[0017] Calculate the mapping result with -1 as the base and the serial number of the edge area as the index; count the number of intersections between the target straight line segment and the edge curve; and use the product of the mapping result, the slope of the target straight line segment, and the difference between the number of intersections minus 1 as the numerator;

[0018] The sum of the absolute value of the slope of the target straight line segment and 1 is used as the denominator;

[0019] The ratio of the numerator to the denominator is taken as the straight line characteristic coefficient of the edge curve.

[0020] Preferably, the method for obtaining each target edge curve in the original pipeline edge image according to the straight line characteristic coefficient of each edge curve in each edge region in the original pipeline edge image is:

[0021] The slope of the target straight line segment of each edge curve in each edge region in the original pipeline edge image is used as the numerator, and the sum of the absolute value of the slope of the target straight line segment of each edge curve in each edge region in the original pipeline edge image and 1 is used as the denominator; the inverse of the ratio of the numerator to the denominator is used as the judgment value;

[0022] Each edge curve with a straight line characteristic coefficient greater than 0 is regarded as each target edge curve in the original pipeline edge image;

[0023] Each edge curve whose straight line characteristic coefficient is less than the judgment value is regarded as each target edge curve in the original pipe edge image;

[0024] For each edge curve whose straight line characteristic coefficient is equal to the judgment value, a vertical straight line is drawn on the target straight line segment of the edge curve, and the intersection of the vertical straight line and the target straight line segment is taken as the first intersection point, and the intersection of the vertical straight line and the edge curve is taken as the second intersection point. When the first intersection point is directly above the second intersection point, the edge curve is taken as the target edge curve in the original pipeline edge image.

[0025] Preferably, the method of obtaining each region of interest in the original pipeline edge image and the degree of disorder of each region of interest according to all target edge curves in the original pipeline edge image, and obtaining the number of circle centers in each region of interest in the original pipeline edge image according to each region of interest in the original pipeline edge image is:

[0026] For each target edge curve in the original pipe edge image, a circular area determined by taking the center point of the target straight line segment of the target edge curve as the center and half the length of the target straight line segment as the radius is used as the circular area of ​​the target edge curve;

[0027] When the circular areas of different target edge curves in the original pipe edge image intersect, the circular areas are merged using a region merging algorithm to obtain a region of interest in the original pipe edge image;

[0028] For each region of interest in the original pipe edge image, the number of circular regions in the region of interest is used as the chaos degree of the region of interest;

[0029] Each region of interest in the original pipe edge image is used as the input of the Hough circle detection algorithm, and the output of the Hough circle detection algorithm is used as the number of circle centers in each region of interest in the original pipe edge image.

[0030] Preferably, the method for obtaining the concentric curvature isolation of each target edge curve in each region of interest in the original pipeline edge image according to each target edge curve in each region of interest in the original pipeline edge image is:

[0031] According to each target edge curve in each region of interest in the original pipeline edge image, respectively obtain a set of adjacent edge curvatures of each edge pixel point in each target edge curve in each region of interest in the original pipeline edge image and a gradient direction sequence of each edge pixel point;

[0032] According to the neighboring edge curvature set of each edge pixel point in each target edge curve in each region of interest in the original pipeline edge image and the gradient direction sequence of each edge pixel point, the neighboring edge curve set of each target edge curve in each region of interest in the original pipeline edge image and the local highlight coefficient of each edge pixel point in each target edge curve are respectively obtained;

[0033] For each target edge curve in each region of interest in the original pipeline edge image, calculate the difference between the local highlighting coefficient of each edge pixel point in the target edge curve and the local highlighting coefficient of each edge pixel point in each target edge curve in the set of neighboring edge curves of the target edge curve, and calculate the quadratic cumulative sum of the difference on the set of neighboring edge curves;

[0034] Calculate the variance of the local salient coefficients of all edge pixels in the target edge curve;

[0035] The product of the quadratic cumulative sum and the variance is taken as the concentric curvature isolation degree of the target edge curve.

[0036] Preferably, the method of respectively obtaining the adjacent edge curvature set of each edge pixel point in each target edge curve in each region of interest in the original pipeline edge image and the gradient direction sequence of each edge pixel point is as follows:

[0037] For each target edge curve in each region of interest in the original pipeline edge image, a set of curvatures of a second preset parameter number of edge pixels closest to each edge pixel in the target edge curve is used as a set of neighboring edge curvatures of each edge pixel in the target edge curve;

[0038] Each target edge curve in each region of interest in the original pipe edge image is taken as the first target edge curve, the center of the first target edge curve is obtained by using the Hough circle detection algorithm, the straight line segment between each edge pixel point in the first target edge curve and the center of the first target edge curve is connected, the gradient direction angles of all intersections formed by the straight line segment passing through all target edge curves are calculated, and the sequence composed of all the gradient direction angles is taken as the gradient direction sequence of each edge pixel point in the first target edge curve.

[0039] Preferably, the method of respectively obtaining the set of neighboring edge curves of each target edge curve in each region of interest in the original pipeline edge image and the local highlight coefficient of each edge pixel point in each target edge curve according to the set of neighboring edge curvatures of each edge pixel point in each target edge curve in each region of interest in the original pipeline edge image and the gradient direction sequence of each edge pixel point is:

[0040] Each target edge curve in each region of interest in the original pipe edge image is used as a second target edge curve, the center of the second target edge curve is obtained by using a Hough circle detection algorithm, a straight line segment is connected between each edge pixel point in the second target edge curve and the center of the second target edge curve, and a set consisting of the straight line segment passing through all target edge curves is calculated as a set of adjacent edge curves of the second target edge curve;

[0041] Calculate the metric distance between the gradient direction sequence of each edge pixel point in the second target edge curve and the gradient direction sequence of each edge pixel point in each target edge curve in the set of adjacent edge curves of the second target edge curve, and calculate the cumulative sum of the metric distances on the set of adjacent edge curves;

[0042] The coefficient of variation of all values ​​in the set of adjacent edge curvatures of each edge pixel point in the second target edge curve is calculated, and the product of the cumulative sum and the coefficient of variation is used as the local highlight coefficient of each edge pixel point in the second target edge curve.

[0043] Preferably, the method for obtaining the deformation index of each region of interest in the original pipe edge image according to the concentric curvature isolation, disorder and number of circle centers is:

[0044] For each region of interest in the original pipeline edge image, the cumulative sum of the concentric curvature isolation of all target edge curves in the region of interest is calculated, and the sum of the cumulative sum and the chaos degree of the region of interest is used as a numerator;

[0045] The sum of the number of circle centers in the region of interest and 1 is used as the denominator;

[0046] The ratio of the numerator to the denominator is taken as the deformation index of the region of interest.

[0047] Preferably, the method of obtaining the deformation defect detection result based on the deformation index by using the Otsu threshold segmentation algorithm is:

[0048] The deformation index of all regions of interest is used as the input of the Otsu threshold segmentation algorithm, and the segmentation threshold is obtained by using the Otsu threshold segmentation algorithm. Each region of interest with a deformation index higher than the segmentation threshold is taken as a deformation region. All deformation regions are merged using the region merging algorithm to obtain a deformation defect region, and the deformation defect region is used as the deformation defect detection result.

[0049] The beneficial effects of the present application are as follows: the present application obtains pipeline images through a CCTV detection system, performs edge detection on the pipeline to obtain edge images, and analyzes the characteristics of the deformed area in the edge image, thereby finding the area with the greatest possibility of deformation. First, by analyzing the edge image of the pipeline in different regions, the edge curve that may be the deformed area is found from the slope characteristics of the pipeline curve, the number of intersections between the target straight line segment and the curve, and the positional relationship between the target straight line segment and the curve, and then the area of ​​interest is obtained; secondly, the Hough circle detection is performed on the area of ​​interest to obtain the number of centers of the area of ​​interest and calculate the isolation of the concentric curvature, and then the deformation index of the area of ​​interest is calculated, and the area with the greatest possibility of deformation is determined according to the deformation index. In this way, the slope characteristics of the pipeline curve, the straight line characteristic coefficient of the curve, whether the curve is an arc, the curvature changes of the curve itself, and the curvature difference are combined to jointly judge the characteristics of the edge curve, so that the area where deformation occurs can be more accurately judged. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art 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 labor.

[0051] Figure 1 A schematic flow chart of a defect detection method in a pipeline trenchless repair process based on CCTV technology provided by an embodiment of the present application;

[0052] Figure 2 This is a flowchart of an implementation method of a defect detection method in a trenchless pipeline repair process based on CCTV technology provided in one embodiment of the present application. DETAILED DESCRIPTION

[0053] 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.

[0054] See also Figure 1 , which shows a flow chart of a defect detection method in a pipeline trenchless repair process based on CCTV technology provided by an embodiment of the present application, the method comprising the following steps:

[0055] Step S001: Use CCTV detection technology to shoot the pipeline to obtain a pipeline information video, and obtain an original pipeline image based on the pipeline information video.

[0056] First, use a pipeline crawling robot carrying a CCTV detection system to shoot the pipeline and obtain the original video data. Then read the original video data, set the interval value T of the extracted frame according to the video acquisition rate (the empirical value is 2 seconds), and save the pipeline image under each frame. The pipeline image may have noise and the image brightness is too dark, which affects edge detection. Therefore, it is necessary to preprocess the image to reduce the interference of noise and improve the brightness of the image. Take the pipeline image as input, use the median filtering algorithm and the histogram equalization algorithm to preprocess the pipeline image, and obtain the preprocessed original pipeline image. The median filtering algorithm and the histogram equalization algorithm are both well-known technologies, and the specific process will not be repeated.

[0057] At this point, the preprocessed original pipeline image is obtained.

[0058] Step S002, obtaining a straight line characteristic coefficient according to the original pipeline image, obtaining a target edge curve according to the straight line characteristic coefficient, obtaining a concentric curvature isolation degree according to the target edge curve, and obtaining a deformation index according to the concentric curvature isolation degree.

[0059] The preprocessed original pipeline image is used as the input of the canny edge detection algorithm, and the original pipeline edge image is obtained by using the canny edge detection algorithm, wherein the canny edge detection algorithm is a well-known technology, and the specific process is not repeated. For the accuracy of subsequent analysis, the original pipeline edge image is divided into 4 regions by a cross segmentation method, and each of the regions is used as each edge region in the original pipeline edge image. The cross segmentation method is to divide the original pipeline edge image into 4 square regions by a horizontal segmentation line and a vertical segmentation line.

[0060] Since the original pipe is a cylinder, the edge of the pipe should be round, and the slope trend of this segmentation pattern has a certain regularity. In the edge area A on the upper left, in the clockwise direction, the slope k of the tangent on the pipe edge curve is A Satisfy k A ≥0; In the upper right edge area B, in the clockwise direction, the slope k of the tangent line of the pipe edge curve B Satisfy k B ≤0; In the lower right edge area C, in the clockwise direction, the slope k of the tangent line of the pipe edge curve C Satisfy k C ≥0; In the lower left edge area D, in the clockwise direction, the slope k of the tangent line of the pipe edge curve D Satisfy k D ≤0.

[0061] Pipe deformation may occur at any position, so it is necessary to be able to detect whether deformation has occurred in any area among A, B, C, and D.

[0062] First, select the edge curves that may be deformed in each area. Take the edge curve i in the upper left edge area A as an example. Take the pixel points M and N at the two end points of the edge curve i. The straight line segment formed by the line connecting the two pixel points M and N is recorded as the target straight line segment MN. Calculate the straight line characteristic coefficient of the edge curve i in the upper left edge area A

[0063]

[0064] in, is the linear characteristic coefficient of edge curve i in the upper left edge region A; k MN is the slope of the target line segment MN; g is the number of intersections between the target line segment MN and the edge curve i, g ≥ 2; α is the parameter adjustment coefficient, which is used to prevent the denominator from being 0, and α takes an empirical value of 1; j A is the serial number of the upper left edge region A, and the serial number of the upper left edge region A is 1. It should be noted that, since the slopes of edge regions A and C are greater than 0, and the slopes of edge regions B and D are less than 0, in order for the straight line characteristic coefficient to describe the four edge regions at the same time, each edge region is given a serial number to control the positive and negative of the straight line characteristic coefficient. The serial numbers of edge regions B, C, and D are 2, 3, and 4, respectively. In addition, the calculation of the slope is a well-known technology, and the specific process will not be repeated.

[0065] when or When , the edge curve i may be the edge curve of the deformation area; when Further judgment is needed. Linear characteristic coefficient The specific meanings are explained as follows:

[0066] (1) The slope of the target straight line segment MN of the normal pipeline edge curve should satisfy the slope characteristics of the area where MN is located, and the number of intersections between the target straight line segment and the edge curve should be equal to 2. In this case, the straight line characteristic coefficient But there is also a linear characteristic coefficient of edge curve i However, it is still the edge curve of the deformed pipe. When , it is impossible to directly determine whether the edge curve i is a normal pipe edge curve, and further processing is required.

[0067] (2) The slope of the target straight line segment MN of the normal pipeline edge curve should satisfy the slope characteristics of the area where MN is located. If the slope of the target straight line segment MN of edge curve i does not satisfy the slope characteristics of the area where MN is located, then edge curve i is not the edge curve of the normal pipeline. In this case, the straight line characteristic coefficient is It is determined that the edge curve i may be an edge curve of the deformation area.

[0068] (3) The normal pipeline edge curve is an arc, so the number of intersections between the target straight line segment and the edge curve in the edge curve should be equal to 2. If the number of intersections between the target straight line segment MN of edge curve i and edge curve i is greater than 2, then edge curve i is not an arc, and thus edge curve i is not the edge curve of a normal pipeline. In this case, the straight line characteristic coefficient is It is determined that the edge curve i may be an edge curve of the deformation area.

[0069] When the straight line characteristic coefficient Further judgment is needed, make a vertical line on the target straight line segment of edge curve i, take the intersection of the vertical line and the target straight line segment as the first intersection, take the intersection of the vertical line and the edge curve as the second intersection, when the first intersection is directly above the second intersection, it is judged that edge curve i may be the edge curve of the deformation area.

[0070] Furthermore, based on the above analysis, all edge curves that may be deformation areas can be extracted based on the straight line feature coefficients, and the edge curves that may be deformation areas can be used as target edge curves in the original pipe edge image.

[0071] Specifically, each edge curve whose straight line characteristic coefficient is greater than 0 is used as each target edge curve in the original pipe edge image; Each edge curve of is taken as each target edge curve in the original pipeline edge image; for the straight line feature coefficient equal to the judgment value For each edge curve, a vertical straight line is drawn on the target straight line segment of the edge curve, the intersection of the vertical straight line and the target straight line segment is taken as the first intersection point, and the intersection of the vertical straight line and the edge curve is taken as the second intersection point. When the first intersection point is directly above the second intersection point, the edge curve is taken as the target edge curve in the original pipeline edge image.

[0072] Furthermore, if an edge curve is in multiple areas at the same time, a point on the boundary between areas in the edge curve is used as one of the endpoints, and judgment is performed in each area. As long as it is judged as an edge curve that may be a deformation area in at least one area, the entire edge curve is judged as an edge curve that may be a deformation area.

[0073] Specifically, for each target edge curve in the original pipe edge image, a circular area determined by taking the center point of the target straight line segment of the target edge curve as the center and half the length of the target straight line segment as the radius is used as the circular area of ​​the target edge curve. When the circular areas of different target edge curves in the original pipe edge image intersect, the circular areas are merged using a region merging algorithm to obtain a region of interest in the original pipe edge image, wherein the region merging algorithm is a well-known technology and the specific process is not repeated here.

[0074] In addition, for each region of interest in the original pipe edge image, the number of circular regions in the region of interest is used as the degree of chaos of the region of interest. Generally, the edge curve of the normal pipe part and the curves in the surrounding neighborhood are relatively neat and conform to the law of the corresponding region, while the edge curve of the deformed region and the curves in the surrounding neighborhood are relatively chaotic, so the greater the degree of chaos of the region of interest, the more chaotic the edge curve contained in the region of interest is, and it is more consistent with the characteristics around the deformed region.

[0075] Secondly, Hough circle detection is performed on each region of interest in the final region of interest set, and each region of interest in the original pipeline edge image is used as the input of the Hough circle detection algorithm. The output of the Hough circle detection algorithm is used as the number of circle centers in each region of interest in the original pipeline edge image. The Hough circle detection algorithm is a well-known technology, and the specific process will not be repeated here.

[0076] Since the cross-section of a normal pipe is circular or approximately circular, in the edge image obtained by canny edge detection, the curves around the normal pipe are relatively neat and almost all approximate arc curves. Through Hough circle detection, a corresponding circle and center of the circle will be automatically fitted for these curves; while the deformed edge curve is no longer an arc, so when performing Hough circle detection, it is impossible to fit a circle for the edge curve in the deformed area. For the curves in the neighborhood around the deformed area, due to the influence of deformation, most of the curves are no longer approximate arc curves and are difficult to fit a circle, so the number of center of the circle is relatively smaller.

[0077] Furthermore, under normal circumstances, the curves in a normal pipeline are relatively neat and almost concentric circles, and the curves are similar to arcs. The characteristic of concentric circles is that the curvatures of each straight line passing through the center of the circle and the intersections of multiple concentric arcs should be relatively close. The degree of similarity between the curvature sequence of each curve and the curvature sequences of the remaining multiple curves is measured. If the degree of deformation in the local area where the edge curve is located is greater, the probability that the edge curve destroys the above concentric circle characteristics is higher, and the curvature and gradient direction of the edge points on the edge curve are more prominent.

[0078] Specifically, due to the different degrees of influence of regional deformation on the edge curve, the abnormal prominence of each edge point on the edge curve in the local area is also different. For each target edge curve in each region of interest in the original pipeline edge image, the set of curvatures of the 10 edge pixel points with the closest Euclidean distance to each edge pixel point in the target edge curve is used as the neighboring edge curvature set of each edge pixel point in the target edge curve, wherein the calculation of the curvature is a well-known technology, and the specific process is not repeated here.

[0079] Each target edge curve in each region of interest in the original pipe edge image is taken as the first target edge curve, the center of the first target edge curve is obtained by using the Hough circle detection algorithm, the straight line segment between each edge pixel point in the first target edge curve and the center of the first target edge curve is connected, the gradient direction angle of all intersections formed by the straight line segment passing through all target edge curves is calculated, and the sequence composed of all the gradient direction angles is taken as the gradient direction sequence of each edge pixel point in the first target edge curve, wherein the Hough circle detection algorithm and the calculation of the gradient direction angle are both well-known technologies, and the specific process is not repeated here.

[0080] In addition, each target edge curve in each region of interest in the original pipe edge image is taken as the second target edge curve, the center of the second target edge curve is obtained using the Hough circle detection algorithm, and the straight line segment between each edge pixel point in the second target edge curve and the center of the second target edge curve is connected, and the set consisting of the straight line segment passing through all the target edge curves is calculated as the adjacent edge curve set of the second target edge curve.

[0081] Based on the above analysis, the concentric curvature isolation is constructed to reflect the extent to which the edge points on each edge curve and the edge points on other edge curves are affected by the deformation area. For each region of interest in the original pipe edge image, the calculation formula for the concentric curvature isolation of the zth target edge curve is as follows:

[0082]

[0083]

[0084] In the formula, S z,p is the local saliency coefficient of the pth edge pixel on the zth target edge curve, y z,p is the set of neighboring edge curvatures of the pth edge pixel on the zth target edge curve, cv(y z,p ) is the coefficient of variation of all values ​​in the neighboring edge curvature set of the pth edge pixel on the zth target edge curve, m is the number of target edge curves in the neighboring edge curve set of the zth target edge curve, j is the jth target edge curve in the neighboring edge curve set of the zth target edge curve, dtw() is the dtw distance function, x z,p is the gradient direction sequence of the pth edge pixel on the zth target edge curve, x j,p is the gradient direction sequence of the pth edge pixel point on the jth target edge curve in the set of neighboring edge curves of the zth target edge curve, dtw(x z,p ,x j,p ) is the dtw distance between the gradient direction sequence of the p-th edge pixel point on the z-th target edge curve and the gradient direction sequence of the p-th edge pixel point on the j-th target edge curve in its adjacent edge curve set; wherein the calculation of the dtw distance and the coefficient of variation are both well-known techniques, and the specific process will not be repeated here.

[0085] V z is the concentric curvature isolation of the zth target edge curve, J(S) is the set of local saliency coefficients of all edge pixels on the zth target edge curve, σ(J(S)) is the variance of all elements in the set J(S), n is the number of edge pixels on the zth target edge curve, S k,p It is the local saliency coefficient of the pth edge pixel on the kth target edge curve in the set of neighboring edge curves of the zth target edge curve.

[0086] The greater the influence of deformation on the pth edge pixel point and its surroundings on the zth target edge curve, the greater the local highlight coefficient of the pth edge pixel point, the greater the curvature difference between the pth edge pixel point and its neighboring points on the same edge curve, and the greater the prominence of the sequence composed of the gradient direction angles of the pth edge pixel point and the remaining edge points on the same straight line passing through the center of the circle.

[0087] The greater the possibility that the zth target edge curve is located in the deformation area, the greater the concentric curvature isolation of the zth target edge curve, the greater the curvature difference between the edge points on the zth target edge curve and the other edge points on the same straight line passing through the center of the circle, and the greater the number of edge points with large curvature abnormality on the ith edge curve.

[0088] Furthermore, the deformation index of each region of interest in the original pipeline edge image is calculated:

[0089]

[0090] Among them, H t is the deformation index of the tth region of interest in the original pipeline edge image, σ t is the degree of chaos of the t-th region of interest in the original pipeline edge image, N is the number of target edge curves in the t-th region of interest in the original pipeline edge image, and V z is the concentric curvature isolation of the zth target edge curve in the tth region of interest in the original pipeline edge image, O t is the number of circle centers in the tth region of interest in the original pipe edge image, α is the parameter adjustment coefficient used to prevent the number of circle centers from being 0, and β takes the empirical value of 1.

[0091] According to the curve characteristics of the deformation area, first, the curve of the deformation area is more chaotic, that is, the degree of chaos σ t Secondly, most of the curves in the deformation area are no longer approximate arcs. It is difficult to fit a circle through Hough circle detection, that is, the number of circle centers is O. t Finally, the curves in the deformed area are no longer distributed in approximately concentric circles, and there are obvious differences in the curvature changes of the pixels of the curve itself and in the curvature changes of other curves in the neighborhood, that is, the concentric curvature isolation of the edge curve in the corresponding area In summary, the deformation index H t The larger the value, the greater the possibility of deformation in the region of interest.

[0092] At this point, the deformation index of each region of interest in the original pipe edge image is obtained.

[0093] Step S003, using the Otsu threshold segmentation algorithm to obtain deformation defect detection results based on the deformation index.

[0094] Based on the above steps, the deformation index of each region of interest is calculated on the original pipe edge image, and the deformation index of all regions of interest is used as the input of the Otsu threshold segmentation algorithm. The segmentation threshold is obtained using the Otsu threshold segmentation algorithm, and each region of interest with a deformation index higher than the segmentation threshold is taken as a deformation region. Then, all deformation regions are merged using the region merging algorithm to obtain a deformation defect region, and the deformation defect region is used as the deformation defect detection result. The Otsu threshold segmentation algorithm and the region merging algorithm are well-known technologies, and the specific process will not be repeated here. The implementation flow chart of this application is shown in FIG. Figure 2 shown.

[0095] At this point, the defect detection method in the trenchless repair process of pipelines based on CCTV technology is completed.

[0096] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for detecting defects in pipeline trenchless repair based on CCTV technology, characterized in that: The method comprises the following steps: Use CCTV detection technology to shoot the pipeline to obtain pipeline information video, and obtain the original pipeline image based on the pipeline information video; Obtain each edge region in the original pipeline edge image according to the original pipeline image; obtain the straight line feature coefficient of each edge curve in each edge region in the original pipeline edge image according to each edge curve in each edge region in the original pipeline edge image; obtain each target edge curve in the original pipeline edge image according to the straight line feature coefficient of each edge curve in each edge region in the original pipeline edge image; obtain each region of interest in the original pipeline edge image and the degree of disorder of each region of interest according to all target edge curves in the original pipeline edge image, and obtain the number of circle centers in each region of interest in the original pipeline edge image according to each region of interest in the original pipeline edge image; Obtaining the concentric curvature isolation of each target edge curve in each region of interest in the original pipeline edge image according to each target edge curve in each region of interest in the original pipeline edge image; obtaining the deformation index of each region of interest in the original pipeline edge image according to the concentric curvature isolation, chaos and number of circle centers; The deformation defect detection result is obtained based on the deformation index using the Otsu threshold segmentation algorithm.

2. The defect detection method in the pipeline trenchless repair process based on CCTV technology according to claim 1 is characterized in that: The method for obtaining each edge region in the original pipeline edge image according to the original pipeline image is: The original pipeline image is used as the input of the canny edge detection algorithm, and the original pipeline edge image is obtained by using the canny edge detection algorithm; The original pipeline edge image is equally divided into four regions by a cross segmentation method, and each of the regions is used as each edge region in the original pipeline edge image.

3. The defect detection method in the pipeline trenchless repair process based on CCTV technology according to claim 1 is characterized in that: The method for obtaining the straight line characteristic coefficient of each edge curve in each edge region in the original pipeline edge image according to each edge curve in each edge region in the original pipeline edge image is: The numbers of the upper left, upper right, lower right, and lower left edge regions in the original pipeline edge image are recorded as 1, 2, 3, and 4 respectively; For each edge curve in each edge region in the original pipe edge image, a straight line segment formed by connecting two end points of the edge curve is recorded as a target straight line segment, and the slope of the target straight line segment is calculated; Calculate the mapping result with -1 as the base and the serial number of the edge area as the index; count the number of intersections between the target straight line segment and the edge curve; The product of the mapping result, the slope of the target straight line segment, and the difference between the number of intersections and 1 is used as a numerator; The sum of the absolute value of the slope of the target straight line segment and 1 is used as the denominator; The ratio of the numerator to the denominator is taken as the straight line characteristic coefficient of the edge curve.

4. The defect detection method in the pipeline trenchless repair process based on CCTV technology according to claim 1 is characterized in that: The method for obtaining each target edge curve in the original pipeline edge image according to the straight line characteristic coefficient of each edge curve in each edge region in the original pipeline edge image is: The slope of the target straight line segment of each edge curve in each edge region in the original pipeline edge image is used as the numerator, and the sum of the absolute value of the slope of the target straight line segment of each edge curve in each edge region in the original pipeline edge image and 1 is used as the denominator; the inverse of the ratio of the numerator to the denominator is used as the judgment value; Each edge curve with a straight line characteristic coefficient greater than 0 is regarded as each target edge curve in the original pipeline edge image; Each edge curve whose straight line characteristic coefficient is less than the judgment value is regarded as each target edge curve in the original pipe edge image; For each edge curve whose straight line characteristic coefficient is equal to the judgment value, a vertical straight line is drawn on the target straight line segment of the edge curve, and the intersection of the vertical straight line and the target straight line segment is taken as the first intersection point, and the intersection of the vertical straight line and the edge curve is taken as the second intersection point. When the first intersection point is directly above the second intersection point, the edge curve is taken as the target edge curve in the original pipeline edge image.

5. The defect detection method in the pipeline trenchless repair process based on CCTV technology according to claim 1 is characterized in that: The method of obtaining each region of interest in the original pipeline edge image and the degree of disorder of each region of interest according to all target edge curves in the original pipeline edge image, and obtaining the number of circle centers in each region of interest in the original pipeline edge image according to each region of interest in the original pipeline edge image is as follows: For each target edge curve in the original pipe edge image, a circular area determined by taking the center point of the target straight line segment of the target edge curve as the center and half the length of the target straight line segment as the radius is used as the circular area of ​​the target edge curve; When the circular areas of different target edge curves in the original pipe edge image intersect, the circular areas are merged using a region merging algorithm to obtain a region of interest in the original pipe edge image; For each region of interest in the original pipe edge image, the number of circular regions in the region of interest is used as the chaos degree of the region of interest; Each region of interest in the original pipe edge image is used as the input of the Hough circle detection algorithm, and the output of the Hough circle detection algorithm is used as the number of circle centers in each region of interest in the original pipe edge image.

6. The defect detection method in the pipeline trenchless repair process based on CCTV technology according to claim 1 is characterized in that: The method for obtaining the concentric curvature isolation of each target edge curve in each region of interest in the original pipeline edge image according to each target edge curve in each region of interest in the original pipeline edge image is: According to each target edge curve in each region of interest in the original pipeline edge image, respectively obtain a set of adjacent edge curvatures of each edge pixel point in each target edge curve in each region of interest in the original pipeline edge image and a gradient direction sequence of each edge pixel point; According to the neighboring edge curvature set of each edge pixel point in each target edge curve in each region of interest in the original pipeline edge image and the gradient direction sequence of each edge pixel point, the neighboring edge curve set of each target edge curve in each region of interest in the original pipeline edge image and the local highlight coefficient of each edge pixel point in each target edge curve are respectively obtained; For each target edge curve in each region of interest in the original pipeline edge image, calculate the difference between the local highlighting coefficient of each edge pixel point in the target edge curve and the local highlighting coefficient of each edge pixel point in each target edge curve in the set of neighboring edge curves of the target edge curve, and calculate the quadratic cumulative sum of the difference on the set of neighboring edge curves; Calculate the variance of the local salient coefficients of all edge pixels in the target edge curve; The product of the quadratic cumulative sum and the variance is taken as the concentric curvature isolation degree of the target edge curve.

7. The defect detection method in the pipeline trenchless repair process based on CCTV technology according to claim 6 is characterized in that: The method of obtaining the adjacent edge curvature set of each edge pixel point and the gradient direction sequence of each edge pixel point in each target edge curve in each region of interest in the original pipeline edge image according to each target edge curve in each region of interest in the original pipeline edge image is as follows: For each target edge curve in each region of interest in the original pipeline edge image, a set of curvatures of a second preset parameter number of edge pixels closest to each edge pixel in the target edge curve is used as a set of neighboring edge curvatures of each edge pixel in the target edge curve; Each target edge curve in each region of interest in the original pipe edge image is taken as the first target edge curve, the center of the first target edge curve is obtained by using the Hough circle detection algorithm, the straight line segment between each edge pixel point in the first target edge curve and the center of the first target edge curve is connected, the gradient direction angles of all intersections formed by the straight line segment passing through all target edge curves are calculated, and the sequence composed of all the gradient direction angles is taken as the gradient direction sequence of each edge pixel point in the first target edge curve.

8. The defect detection method in the pipeline trenchless repair process based on CCTV technology according to claim 6 is characterized in that: The method for respectively obtaining the set of adjacent edge curves for each target edge curve in each region of interest in the original pipeline edge image and the local highlight coefficient of each edge pixel point in each target edge curve according to the set of adjacent edge curvatures for each edge pixel point in each target edge curve in each region of interest in the original pipeline edge image and the gradient direction sequence of each edge pixel point is as follows: Each target edge curve in each region of interest in the original pipe edge image is used as a second target edge curve, the center of the second target edge curve is obtained by using a Hough circle detection algorithm, a straight line segment is connected between each edge pixel point in the second target edge curve and the center of the second target edge curve, and a set consisting of the straight line segment passing through all target edge curves is calculated as a set of adjacent edge curves of the second target edge curve; Calculate the metric distance between the gradient direction sequence of each edge pixel point in the second target edge curve and the gradient direction sequence of each edge pixel point in each target edge curve in the set of adjacent edge curves of the second target edge curve, and calculate the cumulative sum of the metric distances on the set of adjacent edge curves; The coefficient of variation of all values ​​in the set of adjacent edge curvatures of each edge pixel point in the second target edge curve is calculated, and the product of the cumulative sum and the coefficient of variation is used as the local highlight coefficient of each edge pixel point in the second target edge curve.

9. The defect detection method in the pipeline trenchless repair process based on CCTV technology according to claim 1 is characterized in that: The method for obtaining the deformation index of each region of interest in the original pipe edge image according to the concentric curvature isolation, chaos and number of circle centers is: For each region of interest in the original pipeline edge image, the cumulative sum of the concentric curvature isolation of all target edge curves in the region of interest is calculated, and the sum of the cumulative sum and the chaos degree of the region of interest is used as a numerator; The sum of the number of circle centers in the region of interest and 1 is used as the denominator; The ratio of the numerator to the denominator is taken as the deformation index of the region of interest.

10. The defect detection method in the pipeline trenchless repair process based on CCTV technology according to claim 1 is characterized in that: The method of obtaining the deformation defect detection result based on the deformation index by using the Otsu threshold segmentation algorithm is: The deformation index of all regions of interest is used as the input of the Otsu threshold segmentation algorithm, and the segmentation threshold is obtained by using the Otsu threshold segmentation algorithm. Each region of interest with a deformation index higher than the segmentation threshold is taken as a deformation region. All deformation regions are merged using the region merging algorithm to obtain a deformation defect region, and the deformation defect region is used as the deformation defect detection result.

Citation Information

Patent Citations

  • Gesture pre-processing of video stream using skintone detection

    CN104050443A

  • Impeller surface defect identification method

    CN115294338A

  • Automatic detection method for belt conveying equipment

    CN115375688A

  • Edge detection method, defect detection method and detection device

    CN115861351A

  • Device, method and computer program for identifying a traffic sign in an image

    US20100067805A1