An intelligent detection method for hard bending of contact wire of overhead contact network

Through image acquisition and processing technology, combined with Hough transform and multi-scale edge detection algorithms, the hard bending defects of the catenary are automatically identified, solving the problems of low efficiency and insufficient accuracy of the existing detection methods, and realizing efficient and accurate hard bending of the catenary. Bend detection improves the safety of urban rail transit systems.

CN118379294BActive Publication Date: 2024-09-13CHENGDU NUOBIKAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410823249.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-13
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

The existing contact line hard bend detection method is inefficient and costly, and the detection accuracy and intelligence are insufficient in harsh environments. It is easy to miss or misdetect, affecting the safe operation of the urban rail transit system.

Method used

Using image acquisition and processing technology, image preprocessing is performed through Gaussian filter and two-dimensional continuous wavelet transform based on complex numbers, combined with Hough transform straight line detection and multi-scale edge detection algorithms, to automatically identify hard bending defects of the catenary, using local thresholds and Non-maximum suppression techniques improve detection accuracy and robustness.

Benefits of technology

It achieves efficient and accurate detection of catenary hard bends, reduces labor costs and equipment investment, improves detection reliability and safety, and adapts to changes in catenary structure in different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379294B
    Figure CN118379294B
Patent Text Reader

Abstract

The present invention discloses an intelligent detection method for hard bending of contact wire of contact network, which relates to the field of contact network technology. The method comprises: step 1: collecting an image of the target contact network, preprocessing the image, and obtaining a preprocessed image; step 2: performing Hough transform straight line detection on the preprocessed image, and identifying all straight lines in the preprocessed image; step 3: finding the intersection of all straight lines, calculating the angle formed by the straight lines at the intersection, and if the angle is greater than a preset threshold, the intersection is determined to be a hard bending defect. The present invention improves the accuracy and robustness of detection, reduces labor costs and equipment investment, and improves the safety and reliability of urban rail transit systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of contact networks, and in particular to an intelligent detection method for hard bending of contact lines of contact networks. Background Art

[0002] With the development of urban rail transit systems, the contact network, as an important part of the electrified railway system, undertakes the important task of power supply and transmission of electric energy. In order to ensure the safe and stable operation of the contact network, it is necessary to conduct regular inspection and maintenance. The hard bending defect of the contact network is one of the important factors leading to power supply system failures and accidents. Therefore, the research on the intelligent detection method of hard bending of the contact network is of great significance.

[0003] In the prior art, the detection of hard bending of the contact network is usually carried out by manual inspection or special equipment detection. The manual inspection method has problems such as low efficiency, long time consumption, high cost, etc., and is affected by the subjective factors of the staff, and is prone to missed detection or misdetection. Although the special equipment detection method can improve the detection efficiency, the equipment cost is expensive, requires professional personnel to operate, and cannot perform comprehensive coverage detection of the contact network, which has certain limitations.

[0004] In addition, the traditional contact network detection method still needs to be improved in terms of detection accuracy and intelligence. The existing technology mainly relies on manual visual inspection or simple image processing algorithms for detection, which has certain limitations in the detection accuracy and precision of contact network hard bends. Especially in complex environments, such as bad weather, poor lighting conditions or complex contact network structures, traditional detection methods are prone to missed detection or false detection, affecting the detection effect and reliability.

[0005] Therefore, in response to the above problems, it is necessary to propose a more intelligent, accurate and efficient contact network hard bend detection method to improve the accuracy and reliability of contact network detection, reduce labor costs and equipment investment, and further ensure the safe operation of urban rail transit systems. This requires the combination of modern image processing technology, artificial intelligence technology and other high-tech technologies to develop an intelligent detection system that can automatically identify contact network hard bend defects, thereby achieving comprehensive, efficient and accurate detection and monitoring of the contact network. Summary of the invention

[0006] The purpose of the present invention is to provide an intelligent detection method for hard bending of contact wires of a contact network, which improves the accuracy and robustness of detection, reduces labor costs and equipment investment, and improves the safety and reliability of urban rail transit systems.

[0007] In order to solve the above technical problems, the present invention provides an intelligent detection method for hard bending of contact wire of overhead contact network, the method comprising:

[0008] Step 1: Collect an image of the target contact network, preprocess the image, and obtain a preprocessed image;

[0009] Step 2: Perform Hough transform straight line detection on the preprocessed image to identify all straight lines in the preprocessed image;

[0010] Step 3: Find the intersection of all straight lines and calculate the angle formed by the straight lines at the intersection. If the angle is greater than a preset threshold, the intersection is determined to be a hard bend defect.

[0011] Furthermore, the process of preprocessing the image in step 1 to obtain the preprocessed image specifically includes: using a Gaussian filter to smooth the image to obtain an intermediate image; using a complex-based two-dimensional continuous wavelet transform to decompose the intermediate image into a multi-scale and multi-directional frequency domain representation; using the non-local similarity principle to perform non-local mean denoising on the wavelet coefficients in each frequency domain representation, and then performing soft threshold processing on the wavelet coefficients; performing an inverse wavelet transform on the frequency domain representation to reconstruct the intermediate image; and performing local contrast enhancement processing on the reconstructed intermediate image to obtain the preprocessed image.

[0012] Furthermore, step 2 specifically includes:

[0013] Step 2.1: Use a multi-scale edge detection algorithm on the preprocessed image to obtain edge images of the preprocessed image at multiple scales;

[0014] Step 2.2: Construct the Hough space, perform multi-scale Hough transform on the edge image at each scale, obtain the Hough transform results at multiple scales, and continuously accumulate the Hough space during the multi-scale Hough transform process;

[0015] Step 2.3: Introduce the local threshold, consider the transformation of the gradient intensity and gradient direction of each pixel at different scales, and calculate the local threshold; compare each Hough transform result with the local threshold, and only retain the Hough transform results with gradient amplitude greater than the local threshold;

[0016] Step 2.4: Perform non-maximum suppression on the accumulated Hough space to eliminate repeated detections of adjacent straight lines;

[0017] Step 2.5: Estimate the parameters of the straight line based on the accumulated Hough space; filter and merge the straight lines based on the estimated parameters of the straight line to eliminate redundant straight lines.

[0018] Furthermore, in step 2.1, the process of using a multi-scale edge detection algorithm on the preprocessed image to obtain edge images of the preprocessed image at multiple scales specifically includes: applying a series of Gaussian filters of different scales to the preprocessed image to obtain multiple filtered images of different scales; wherein the standard deviation of the Gaussian filter of each scale increases exponentially according to the characteristics of the Gaussian distribution; and the Gaussian filter of each scale is represented by the following formula:

[0019] ;

[0020] in, is the scale, which is equal to the standard deviation of the Gaussian filter at that scale; is the pixel plane coordinate; is the X-axis coordinate; is the Y-axis coordinate; applying the edge response operator to the filtered image at each scale to calculate the edge response of each filtered image at each scale; performing zero-crossing detection on the edge response of each filtered image at each scale to determine the position of the edge, and then performing edge refinement to eliminate noise and redundancy; performing edge connection to form a continuous edge; is a Gaussian filter.

[0021] Furthermore, the edge response operator is expressed using the following formula:

[0022] ;

[0023] in, For scale The edge response operator below.

[0024] Furthermore, the Hough space constructed in step 2.2 is a Hough space with curvature and deflection angle, and the parameters are introduced ; The formula for multi-scale Hough transform is:

[0025] ;

[0026] ;

[0027] ;

[0028] ;

[0029] ;

[0030] ;

[0031] in, is the coordinate of the center point of the Hough space; is the set curvature; is the polar diameter; is the Dirac delta function; is the edge image; is the deflection angle of the straight line; For scale The Hough accumulation matrix under this scale is used as the Hough transform result under this scale; , , In the case of , and Discretize into , and value, then Represented as a size of A three-dimensional array ; is the given polar diameter; is a given deflection angle.

[0032] Furthermore, the local threshold in step 2.3 Use the following formula to express it:

[0033] ;

[0034] in, is the maximum scale number; by comparing and The size of of .

[0035] Furthermore, in step 2.4, the process of performing non-maximum suppression on the accumulated Hough space to eliminate repeated detection of adjacent straight lines specifically includes: using the following formula to calculate the accumulated Hough space:

[0036] ;

[0037] in, Indicates that for all scales greater than or equal to of Perform cumulative calculations; then use the following formula to perform non-maximum suppression on the accumulated Hough space:

[0038] ;

[0039] in, is the interval in the polar direction, which is used to determine the position of adjacent straight lines; for a given position If the straight line at Greater than or equal to its adjacent position and If the accumulated Hough space at , then the line is retained, otherwise it is set to 0; is the accumulated Hough space; It is the result of non-maximum suppression processing on the accumulated Hough space; For a given location The accumulated Hough space at ; For a given location The accumulated Hough space at .

[0040] Furthermore, for each peak point in the Hough space at each scale, the peak point corresponds to the point with the highest cumulative count, which is converted into the polar diameter and deflection angle of the straight line through inverse Hough transform as the parameters of the estimated straight line; the estimated straight line parameters are screened, and the polar diameter range and the deflection angle range are used for screening to remove the straight lines with the polar diameter outside the polar diameter range and the deflection angle outside the deflection angle range; for the remaining straight lines, if the polar diameter distance is less than the set judgment distance, and the difference in the deflection angle is less than the set judgment difference, the two straight lines are merged into one straight line.

[0041] By adopting the above technical scheme, the present invention produces the following beneficial effects: the present invention adopts image acquisition and processing technology to efficiently and quickly acquire and preprocess the target contact network. By using Gaussian filter for smoothing and complex-based two-dimensional continuous wavelet transform, the noise and interference of the image are effectively reduced, and the accuracy and robustness of subsequent processing are improved. At the same time, the wavelet coefficients are denoised and soft thresholded by using the non-local similarity principle, which further enhances the quality and clarity of the image, and lays a good foundation for subsequent straight line detection. Secondly, the present invention adopts Hough transform straight line detection technology, which can automatically identify the straight line in the image and effectively distinguish the hard bend defect. By constructing a multi-scale edge detection algorithm and a multi-scale Hough transform, not only can the image be comprehensively detected at different scales, but also the accuracy and robustness of the detection can be effectively improved. At the same time, the local threshold and non-maximum suppression technology are introduced to further optimize the results of straight line detection, eliminate noise and repeated detection, and ensure the reliability and stability of the detection results. In addition, the present invention also combines intelligent algorithms and parameter optimization technologies, which can automatically calculate the parameters of the straight line and perform screening and merging. By estimating and screening the parameters of the peak points in the Hough space, the straight lines in the image can be accurately extracted, and the adjacent straight lines can be merged to eliminate duplicate detection and improve the continuity of detection. This intelligent parameter optimization method can not only improve the efficiency and accuracy of straight line detection, but also reduce human intervention, reduce labor costs and operational difficulties. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention 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 embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0043] Figure 1 A schematic flow chart of an intelligent detection method for hard bending of a contact line of a contact network provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0044] Example 1: Reference Figure 1 , an intelligent detection method for hard bending of a contact line of a contact network, the method comprising:

[0045] Step 1: Collect an image of the target contact network, preprocess the image, and obtain a preprocessed image;

[0046] Step 2: Perform Hough transform straight line detection on the preprocessed image to identify all straight lines in the preprocessed image;

[0047] Step 3: Find the intersection of all straight lines and calculate the angle formed by the straight lines at the intersection. If the angle is greater than a preset threshold, the intersection is determined to be a hard bend defect.

[0048] Specifically, first, in the image acquisition stage, the system uses a camera or other sensors to obtain images of the target contact network. These images may be affected by factors such as lighting conditions, camera angles, and the position of the target object, and may therefore contain noise, blur, or other interference. Next, the task of image preprocessing is to convert the original image into a form that is more suitable for feature extraction and analysis. The preprocessing process usually includes the following steps: During the image acquisition process, it is often interfered by various types of noise, such as electronic noise, optical noise, etc. These noises will reduce the image quality and affect the accuracy of subsequent processing. Therefore, the first step is to remove noise from the image. Common methods include mean filtering, median filtering, Gaussian filtering, etc., which can effectively reduce the noise in the image. The contrast in the image determines the degree of difference between the grayscale values ​​of different areas in the image. Low-contrast images may make it difficult to distinguish the details in the image. Therefore, in the preprocessing process, the image is usually contrast enhanced to increase the dynamic range of the image and make the details in the image clearer. Common contrast enhancement methods include histogram equalization and contrast stretching. The edge is an area in the image where the grayscale value changes significantly, and usually contains important information in the image. In the contact network image, the edge may represent important features such as the contact line and the structural boundary. Therefore, in the preprocessing stage, the image is usually detected for edge detection for subsequent feature extraction and analysis. Common edge detection algorithms include Sobel operator, Canny edge detection, etc. Morphological processing is an image processing technology based on the principle of image morphology, which is mainly used for image thinning, connection, filling and other operations, and is often used to process binary images. In the preprocessing of the contact network image, morphological processing can be used to remove small noise points, connect broken edges, fill holes, etc. Common morphological operations include corrosion, expansion, opening operation, closing operation, etc. Through the above preprocessing steps, the original contact network image is converted into an optimized preprocessed image. Such a preprocessed image is more suitable for subsequent feature extraction, target detection and other operations, laying the foundation for the subsequent steps of the intelligent detection method. Through these preprocessing steps, the accuracy and efficiency of image processing can be effectively improved, providing a reliable foundation for the subsequent contact network hard bending defect detection.

[0049] Hough transform is a method commonly used to detect geometric shapes in images, among which line detection is the most widely used. The core idea of ​​Hough transform is to correspond each point in the image to a curve in parameter space (for line detection, the parameter space is usually the polar coordinate representation of the line). If there is a line in the image, then the curve corresponding to it in the parameter space will have a clear peak near a certain point. First, edge detection is required to find the lines in the image. Common edge detection algorithms include Sobel operator, Canny edge detection, etc. These algorithms can help find places in the image where the grayscale value changes significantly, usually corresponding to the edges of objects. Next, the parameter space of Hough transform needs to be established. For line detection, it is usually polar coordinate space. In polar coordinate space, each line can be represented by two parameters: polar diameter (i.e., the distance from the line to the origin) and deflection angle (i.e., the angle between the line and a fixed direction). In the parameter space, an accumulator array is established to count the number of votes for each point. The dimension of the accumulator array depends on the size of the image and the possible range of lines to be detected. For each edge point, traverse each possible straight line in the parameter space and vote at the corresponding position in the accumulator array. If a certain parameter combination can pass a sufficient number of edge points, a vote will be added to the corresponding position in the accumulator array. After the voting is completed, check the peaks in the accumulator array, which correspond to the straight lines in the image. A threshold can be set to determine which peaks are valid straight lines. Once the position and direction of the straight line are determined, these straight lines can be drawn on the original image. Compared with the traditional straight line detection method, the innovation of this method is that it utilizes the principle of Hough transform and combines the results of image preprocessing to more accurately detect the straight lines in the contact network image. By voting in polar coordinate space, this method can effectively filter out noise and find the straight line that truly represents the contact network structure. In addition, this method can flexibly adjust parameters to adapt to the changes in the contact network structure in different scenarios, and has certain versatility and robustness. Therefore, this method has high practical value and innovation in the detection of hard bending defects in the contact network.

[0050] Step 3 in the intelligent detection method involves finding the intersection of all straight lines and calculating the angle between the straight lines at the intersection to determine hard bend defects. The principle of this step involves two key aspects: intersection detection and angle calculation. The intersection is the location where two straight lines intersect on a plane, and all the straight lines in the image have been found through the Hough transform in step 2. Therefore, in the next step, these straight lines need to be combined in pairs to find their intersection. In plane geometry, the intersection of two straight lines can be obtained by solving their system of equations. If the equations of the lines are and , then their intersection It can be obtained by solving the system of equations:

[0051] ;

[0052] By solving this system of equations, we can get the coordinates of the intersection point . In practical applications, in order to avoid division operations, the equation of the line is usually converted into polar coordinates before calculation. After obtaining the intersection points of all the lines, it is necessary to calculate the angle between the lines at each intersection to determine whether there is a hard bend defect. The angle calculation can be done using the vector method. For two lines on a plane, the angle between them can be calculated by their direction vectors. Assume that the direction vector of line 1 is , the direction vector of line 2 is , then their angle can be calculated by their dot product:

[0053] ;

[0054] in, Representation vector and The dot product of and Represents vectors and Then, the angle It can be calculated by the inverse cosine function. After obtaining the angle between the straight lines at each intersection, a preset threshold needs to be set to determine whether there is a hard bend defect. If the angle between the straight lines at a certain intersection exceeds the preset threshold, it can be determined that there is a hard bend defect at the intersection. This method combines the straight line intersection and angle calculation, and judges the hard bend defect by analyzing the angle between the straight lines at the intersection. Compared with the traditional method, this method can not only locate the position of the hard bend defect more accurately, but also flexibly adjust the angle threshold according to the actual situation to adapt to different scenarios and requirements. In addition, this method can also realize automated detection, reduce the manual burden, and improve detection efficiency. Therefore, this intelligent detection method has important application value in railway contact network maintenance and safety management.

[0055] Embodiment 2: Based on Embodiment 1, the process of preprocessing the image in step 1 to obtain the preprocessed image specifically includes: using a Gaussian filter to smooth the image to obtain an intermediate image; using a complex-based two-dimensional continuous wavelet transform to decompose the intermediate image into a multi-scale and multi-directional frequency domain representation; utilizing the non-local similarity principle to perform non-local mean denoising on the wavelet coefficients in each frequency domain representation, and then performing soft threshold processing on the wavelet coefficients; performing an inverse wavelet transform on the frequency domain representation to reconstruct the intermediate image; and performing local contrast enhancement on the reconstructed intermediate image to obtain the preprocessed image.

[0056] Specifically, first, a Gaussian filter is used to smooth the image. The Gaussian filter is a linear filter, and its basic principle is to use a Gaussian function to convolve the image, thereby blurring the image. In image processing, this smoothing operation helps to remove high-frequency noise in the image, making the image smoother and more continuous. Through the Gaussian filter, the subtle noise in the image can be eliminated, providing a cleaner data basis for subsequent processing. Next, the smoothed image is decomposed using a two-dimensional continuous wavelet transform based on complex numbers. Wavelet transform is a time-frequency analysis method that can decompose the signal into wavelet coefficients of different scales and frequencies, thereby realizing a multi-scale representation of image features. The complex-based wavelet transform is more accurate in processing image phase information and can better capture the detailed features of the image. After the wavelet transform, the wavelet coefficients in each frequency domain representation are subjected to non-local mean denoising. The principle of this step is based on the non-local similarity principle, that is, using the information of similar areas in the image to reduce noise. By calculating the similarity between wavelet coefficients and using these similarities for mean filtering, the noise in the image can be effectively removed and the clarity and quality of the image can be improved. Next, the wavelet coefficients are subjected to soft threshold processing. Soft threshold processing is a commonly used wavelet denoising method. Its principle is to retain the wavelet coefficients less than the threshold, and compress or set the wavelet coefficients greater than the threshold to zero. This processing can further reduce the noise in the image and retain the detailed information of the image, making the image clearer and easier to analyze. Subsequently, the wavelet coefficients after denoising and soft threshold processing are subjected to inverse wavelet transform to reconstruct the processed intermediate image. Inverse wavelet transform is the inverse operation of wavelet transform, which can reconstruct the wavelet coefficients into the original image. Through this step, the intermediate image after denoising and processing is obtained, which has higher quality and clarity. Finally, the reconstructed intermediate image is subjected to local contrast enhancement processing. Local contrast enhancement is an image enhancement method. Its principle is to adjust the image according to the contrast information of the local area of ​​the image, making the image clearer and easier to observe. Through this step, the quality of the image can be further improved, making it more suitable for subsequent processing and analysis.

[0057] Embodiment 3: Based on Embodiment 2, step 2 specifically includes:

[0058] Step 2.1: Use a multi-scale edge detection algorithm on the preprocessed image to obtain edge images of the preprocessed image at multiple scales;

[0059] Step 2.2: Construct the Hough space, perform multi-scale Hough transform on the edge image at each scale, obtain the Hough transform results at multiple scales, and continuously accumulate the Hough space during the multi-scale Hough transform process;

[0060] Step 2.3: Introduce the local threshold, consider the transformation of the gradient intensity and gradient direction of each pixel at different scales, and calculate the local threshold; compare each Hough transform result with the local threshold, and only retain the Hough transform results with gradient amplitude greater than the local threshold;

[0061] Step 2.4: Perform non-maximum suppression on the accumulated Hough space to eliminate repeated detections of adjacent straight lines;

[0062] Step 2.5: Estimate the parameters of the straight line based on the accumulated Hough space; filter and merge the straight lines based on the estimated parameters of the straight line to eliminate redundant straight lines.

[0063] Specifically, multi-scale edge detection uses various edge detection algorithms (such as Sobel, Canny, etc.) to detect edges of images at different scales. These algorithms find places where the grayscale value changes dramatically in the image by performing gradient calculations or filtering operations on the image, which usually correspond to the edges of objects. In the process of edge detection, multi-scale feature description is crucial. Because the edges in the image may have different scales, some edges may be subtle, while others may be very obvious. Therefore, the use of multi-scale edge detection algorithms can extract the edge information of the image at different scales, thereby more comprehensively describing the features of the image. The role of multi-scale edge detection is to provide accurate feature descriptions for subsequent line detection. Straight lines are usually represented as edges in images. After edge detection, the features of the straight lines will be presented in the form of a series of interconnected edge points. Therefore, multi-scale edge detection can effectively extract edge information in the image and provide accurate clues and features for subsequent line detection.

[0064] For edge images at each scale, a Hough space needs to be constructed. Hough space is a parameter space in which each point represents the possibility of a straight line in the image. Usually, the parameters of the Hough space are polar coordinate representations of the straight line, including the length and angle of the straight line. Next, a multi-scale Hough transform is performed on the edge image at each scale. During the multi-scale Hough transform process, each edge point in the edge image is converted into the Hough space, and a vote is performed in the Hough space according to its possible straight line parameters. Because edge points may belong to multiple straight lines, for each edge point, a vote is performed for its multiple possible straight line parameter positions in the Hough space. During the multi-scale Hough transform process, voting is performed at different scales and the Hough space is continuously accumulated. The purpose of this is to find straight lines of different lengths and directions in the image at different scales, thereby providing a more comprehensive description of straight line features. The role of the multi-scale Hough transform is to detect straight lines in the image and provide a description of straight line features at multiple scales. By performing the Hough transform at different scales, straight lines of different lengths and directions can be detected, thereby comprehensively describing the straight line features in the image. This is very important for subsequent line screening and merging, and can improve the accuracy and robustness of line detection.

[0065] The calculation of the local threshold is based on the local characteristics of the image. During the Hough transform process, the transformation of the gradient strength and gradient direction of each pixel at different scales is considered. This means that the gradient information around each point in the image is analyzed to determine the characteristics of the local gradient. This local threshold calculation method can adjust the threshold according to the characteristics of different areas of the image, so as to better adapt to the local changes of the image. The introduction of the local threshold is to control the sensitivity of line detection. In the result of the Hough transform, each point represents a possible line position, and its strength (or number of votes) is related to the edge strength in the image. By comparing with the local threshold, the Hough transform results with a gradient amplitude greater than the local threshold can be screened out, that is, line candidates with sufficient strength. This can filter out weaker line candidates, reduce the false detection rate, and improve the accuracy and robustness of line detection. Step 2.3 calculates the local threshold according to the local characteristics of the image, and compares each Hough transform result with the local threshold to retain the line candidates with a gradient amplitude greater than the local threshold. Its role is to improve the accuracy of line detection, avoid detecting lines that are not obvious or have large noise interference, and thus obtain more reliable line detection results.

[0066] The Hough transform will vote for each point in the image in the Hough space to determine the possible position of the line. This will generate multiple peaks in the Hough space, each corresponding to a line. However, when there are adjacent parallel or nearly parallel lines in the image, the Hough transform will cause multiple peaks in the Hough space to interfere with each other, and repeated detection of multiple similar lines may occur. To solve this problem, step 2.4 uses the non-maximum suppression technique. The principle of this technique is to find the local maximum in the Hough space and suppress other peaks. Specifically, for each peak, the peak intensity in its adjacent area is checked. If the current peak intensity is the largest, it is retained, otherwise it is suppressed. This ensures that each line is detected only once, eliminating repeated detection of adjacent lines. Secondly, the role of non-maximum suppression is to improve the accuracy and uniqueness of line detection. By eliminating repeated detection of adjacent lines, clearer and more accurate line detection results can be obtained. This can avoid redundant line detection results, reduce the false detection rate, and improve the robustness and reliability of the line detection algorithm.

[0067] According to the accumulated Hough space, the parameters of each line can be obtained, usually the slope and intercept (or polar radius and deflection angle) of the line. These parameters can be estimated by the accumulated results of the Hough transform, where the point with the highest accumulated value corresponds to the most likely line parameters. Then, the estimated line parameters are used to screen and merge the lines. In this process, some heuristic rules can be used to determine which lines are real and which are noise or redundant. For example, the judgment can be made based on the length of the line, the relationship with the image boundary, the angle with other lines, etc. Secondly, for multiple adjacent or nearly adjacent lines detected, a merge operation can be performed. This can be achieved by clustering adjacent lines and calculating the cluster centers. Through the merge operation, repeated or redundant lines can be merged into longer straight line segments, improving the accuracy and robustness of line detection. The purpose of step 2.5 is to further improve the accuracy and reliability of line detection. By estimating the line parameters according to the Hough space and screening and merging the lines, redundant lines can be eliminated and more accurate line detection results can be obtained. This can reduce errors in subsequent processing and improve the accuracy and reliability of image analysis and application.

[0068] Embodiment 4: Based on Embodiment 3, the process of using a multi-scale edge detection algorithm on the preprocessed image in step 2.1 to obtain edge images of the preprocessed image at multiple scales specifically includes: applying a series of Gaussian filters of different scales to the preprocessed image to obtain filtered images of multiple scales; wherein the standard deviation of the Gaussian filter of each scale increases exponentially according to the characteristics of the Gaussian distribution; and the Gaussian filter of each scale is represented by the following formula:

[0069] ;

[0070] in, is the scale, which is equal to the standard deviation of the Gaussian filter at that scale; is the pixel plane coordinate; is the X-axis coordinate; is the Y-axis coordinate; applying the edge response operator to the filtered image at each scale to calculate the edge response of each filtered image at each scale; performing zero-crossing detection on the edge response of each filtered image at each scale to determine the position of the edge, and then performing edge refinement to eliminate noise and redundancy; performing edge connection to form a continuous edge; is a Gaussian filter.

[0071] Specifically, using Gaussian filters of different scales can realize multi-scale image analysis. In image processing, different scales correspond to different detail information. By applying Gaussian filters at different scales, features of different scales in the image can be analyzed and extracted. The standard deviation of the Gaussian filter determines the blurring degree of the filter. The larger the standard deviation, the higher the blurring degree of the filter, and the easier it is for the detail information in the image to be smoothed out, thereby achieving image feature enhancement. In multi-scale edge detection, by applying Gaussian filters at different scales, the edge detection effect can be improved, making the edge features in the image clearer and more significant. The exponentially growing standard deviation can make the scale of the Gaussian filter adapt to the features of different scales in the image. Since the target and background in the image may have different scales, the exponentially growing standard deviation can ensure that the Gaussian filter has good adaptability at different scales and can effectively extract feature information at different scales in the image.

[0072] For each filtered image at each scale, first apply edge detection operators (such as Sobel, Prewitt, etc.) to calculate edge responses. These operators are usually a set of convolution kernels used to detect edges in the horizontal and vertical directions in the image. The role of the edge detection operator is to calculate the gradient value and gradient direction of each pixel in the image, so as to find the edge in the image. For the edge response of each filtered image, perform zero crossing detection to determine the location of the edge. The specific steps are as follows: traverse each pixel in the image and consider the edge response values ​​of its adjacent pixels. For the edge response in the horizontal direction, check whether the edge response values ​​of the current pixel and its left and right adjacent pixels have different signs (that is, one is positive and the other is negative). If so, it means that a zero crossing has occurred and the current pixel may be located on the edge. For the edge response in the vertical direction, check whether the edge response values ​​of the current pixel and its upper and lower adjacent pixels have different signs. If so, it means that a zero crossing has occurred. If zero crossings are detected in both the horizontal and vertical directions, the current pixel is considered to be on the edge and is marked as an edge pixel. Traverse the entire image and repeat the above steps to obtain the locations of all edge pixels. Zero-crossing detection may produce some broken edge pixels. In order to eliminate these noises and discontinuities, the edges can be thinned and connected so that the edges present a continuous contour.

[0073] Edge thinning is achieved by iteratively removing edge pixels to retain the main outline of the edge. A commonly used edge thinning algorithm is the Zhang-Suen algorithm. The basic idea of ​​the Zhang-Suen algorithm is to iteratively check each pixel, and if a certain condition is met, mark it as an edge and delete it. Then use the same condition to check the neighboring pixels of the deleted pixel. If the neighboring pixel meets the condition, it is also marked as an edge and deleted. Repeat this process until no pixels are deleted. The conditions usually include: the number of connections of the surrounding pixels (pixels with a connection number of 1 can be deleted). If there are more than 1 pixels less than or equal to 1 in the 8-neighborhood of the pixel, it is deleted. Edge connection is to connect discontinuous but adjacent edge pixels to form a continuous edge outline. Common edge connection algorithms include region-based methods and pixel-based methods. Region-based methods divide the image into different regions and then connect the edges based on the edge pixel relationship between regions. Pixel-based methods operate directly at the pixel level and connect the edges by finding adjacent edge pixels and establishing connection relationships. During the connection process, some heuristic rules or thresholds may be introduced to determine whether two edge pixels can be connected and whether the connected edges meet the expected requirements.

[0074] Embodiment 5: Based on Embodiment 4, the edge response operator is expressed using the following formula:

[0075] ;

[0076] in, For scale The edge response operator below.

[0077] Specifically, the formula The scale is The edge response operator under . This operator is a filter used for edge detection of images. It can detect edges with a certain width at different scales. is a normalization factor used to ensure that the amplitude of the edge response is within the appropriate range. is a quadratic polynomial that models the second-order derivative of the Gaussian function. The maximum value is obtained at the edge, so the maximum response is obtained at the edge. It is the part of the Gaussian function, which is used to smooth the image in order to suppress noise during edge detection. The principle of the LoG operator is based on the smoothness of the Gaussian function and the edge detection properties of the second-order derivative. The Gaussian function has the characteristic of smoothness. It can effectively blur the image and has different degrees of smoothness at different scales of the image. The second-order derivative can be used to detect the rate of change in the image, especially at the edge position, where the second-order derivative will reach an extreme value. The LoG operator combines these two characteristics. By performing Gaussian smoothing on the image and then calculating the second-order derivative, the final edge response value can accurately reflect the edge information in the image at different scales. Scale parameter Controls the size of the LoG operator, thus affecting its ability to detect edge width. Small edges can be detected, while larger Then wider edges can be detected. The advantage of the LoG operator is that it can suppress noise and provide sub-pixel positioning of edges. However, the computation of the LoG operator is large, so in practical applications, discrete approximation is often used to accelerate the calculation, such as using the Gaussian difference operator (DoG) to approximate instead of the LoG operator.

[0078] Example 6: Based on Example 5, the Hough space constructed in step 2.2 is a Hough space with curvature and deflection angle, and the parameter is introduced ; The formula for multi-scale Hough transform is:

[0079] ;

[0080] This formula describes how to get from the polar radius and deflection angle Calculate the horizontal coordinate in the image .first, Represents the center of the Hough space Starting from the pole, it moves a certain distance in a direction perpendicular to the straight line. This distance is determined by the polar diameter. Determined, minus a compensation term , this compensation term is to correct the starting point of the straight line so as to accurately locate the position of the straight line in the image. Then, through the cosine function This distance is adjusted horizontally to obtain the horizontal coordinate in the image. .

[0081] ;

[0082] This formula describes how to get from the polar radius and deflection angle Calculate the vertical coordinate in the image Similarly, Represents the center of the Hough space Start, move forward a certain distance in the direction perpendicular to the straight line, minus the compensation term Then, through the sine function This distance is adjusted vertically to obtain the vertical coordinate in the image. .

[0083] ;

[0084] This formula describes how to get from the pixel coordinates in the image Calculate the polar radius in Hough space It actually calculates the point To the center of Hough space The square root function is used here. To calculate the distance, we are actually calculating the point arrive The straight-line distance.

[0085] ;

[0086] This formula describes how to get from the pixel coordinates in the image Calculate the deflection angle in Hough space It actually calculates the point and the center point of Hough space The angle between the straight line and the horizontal axis is the inverse tangent value. The inverse tangent function is used here. To calculate the angle.

[0087] ;

[0088] Consider the polar coordinate equation for a point on the curve ,in is the polar diameter, is the deflection angle. In this formula, the curve of interest is The curvature of the direction, so we need to calculate right The polar coordinate equation of the curve can be obtained by the parametric equation and We can use the chain rule to calculate right The derivative of Then again Derivation, get right The second derivative of Next, consider the expression of the curve in the Cartesian coordinate system and By solving these two equations, we can get the parametric form of the curve in the Cartesian coordinate system. Using this parametric form, we can calculate the curve in and Derivative in direction and Then, using the relationship between the derivatives in the formula, we can calculate the curvature The numerator of the formula describes the change in curvature of the curve in polar coordinates, and the denominator describes the change in curvature of the curve in Cartesian coordinates. By calculating the change in curvature in these two directions and comparing them, we get the curvature .

[0089] ;

[0090] In the formula For each pixel in the image The sum is performed, which means that every point in the image is processed. Indicates that the edge image is at pixel The intensity at the position reflects whether there is an edge in the image. Then, the formula Function is used to determine the point Is it on a straight line in Hough space? First, Judgment Point To the center of Hough space Is the distance to the given polar radius equal, so that the points in the image can be mapped into the Hough space. Then, Judgment Point Is the direction consistent with the given deflection angle? equal, thus ensuring that the point In Hough space, the direction is consistent with the specified line. Finally, Determine whether the curvature is the same as the given curvature equal, thus ensuring that the point The curvature at is consistent with the specified curvature. Each The function is to exclude points that do not meet the conditions and retain only the points that meet the conditions, thereby determining the straight line in the Hough space. Then the intensities of all points that meet the conditions are accumulated to obtain the cumulative count of the line in the Hough space. Combination, you can get a corresponding cumulative count, forming the Hough cumulative matrix This formula uses the idea of ​​Hough transform to map the points in the image into Hough space and determine whether a straight line is formed according to the given polar radius, deflection angle and curvature conditions. By processing and accumulating all the points in the image, we get The combined cumulative counts form the Hough accumulation matrix, which is used to represent the straight line features in the image.

[0091] :This part Function is used to determine the point in the image Is it at a given polar radius? It calculates the point To the Hough Space Center distance, and with the given polar diameter For comparison. If the The distance to the center of Hough space is equal to the given polar radius ,but The function evaluates to 1 if the function fails; otherwise, it evaluates to 0. The function is a special function that takes the value 1 when the parameter meets certain conditions, otherwise it takes the value 0. Here, For judging point Is it located at the given polar radius? Inside, that is, point Whether it is on a straight line in Hough space. :This part Function is used to determine the point in the image Is the direction consistent with the given deflection angle? It is consistent with the calculation point To the Hough Space Center The direction angle and the given deflection angle For comparison. If the The direction angle and the given deflection angle If they are equal, The function evaluates to 1 if the function fails; otherwise, it evaluates to 0. For judging point Is the direction consistent with the given deflection angle? Consistent. Among them, The points are calculated The direction angle to the center of Hough space. :This part The function is used to determine whether the curvature is equal to the given curvature. It calculates the curvature of the curve at a point and compares it with the given curvature. If the curvature is equal to the given curvature If they are equal, The function evaluates to 1 if the function fails; otherwise, it evaluates to 0. Used to determine whether the curvature is consistent with the given curvature Consistent. Among them, Represents the curvature of the curve in polar coordinates, which is the deflection angle Polar diameter The derivative of . These parts are combined to form the calculation formula of the Hough accumulation matrix. Each part has its own function, which is used to screen the points that meet the conditions and accumulate them, and finally the Hough accumulation matrix describing the straight line features in the image is obtained.

[0092] in, is the coordinate of the center point of the Hough space; is the set curvature; is the polar diameter; is the Dirac delta function; is the edge image; is the deflection angle of the straight line; For scale The Hough accumulation matrix under this scale is used as the Hough transform result under this scale; , , In the case of , and Discretize into , and value, then Represented as a size of A three-dimensional array ; is the given polar diameter; is a given deflection angle.

[0093] Example 7: Based on Example 6, the local threshold in step 2.3 Use the following formula to express it:

[0094] ;

[0095] in, is the maximum scale number; by comparing and The size of of .

[0096] Specifically, the formula It means to sum all the elements in the Hough accumulation matrix and get The cumulative count sum under . Secondly, Represents the Hough accumulation matrix at scale Finally, divide the sum by the maximum value and multiply by ,in is the maximum number of scales. This step is equivalent to normalizing and scaling the Hough cumulative counts to obtain the local threshold. Local Threshold The calculation of is intended to determine the local threshold at each scale based on the cumulative counts in the Hough cumulative matrix. The purpose of this threshold is to determine a dynamic threshold for subsequent screening operations based on the relative size of the cumulative counts at each scale. By calculating the local threshold, it is possible to determine which cumulative count values ​​are larger at each scale based on the cumulative counts at that scale, thereby identifying features that may represent a straight line. After the local threshold is calculated, the elements in the Hough cumulative matrix can be compared with the local threshold. An element is retained only if its cumulative count is greater than or equal to the local threshold at the corresponding scale; otherwise, it is discarded. This screening operation helps to exclude elements with low cumulative counts, thereby improving the accuracy and robustness of line detection. The calculation of the local threshold and the screening operation help determine the threshold of the cumulative counts at each scale in the Hough cumulative matrix, thereby determining which elements represent possible straight line features, thereby improving the accuracy and robustness of line detection.

[0097] Embodiment 8: Based on Embodiment 7, the process of performing non-maximum suppression on the accumulated Hough space in step 2.4 to eliminate repeated detection of adjacent straight lines specifically includes: using the following formula to calculate the accumulated Hough space:

[0098] ;

[0099] Hough transform is an image processing technique used to detect geometric shapes such as straight lines and circles in images. The core idea is to map the pixels in the image to the parameter space. For straight line detection, the parameter space is usually the polar coordinate space, that is, the polar radius of the straight line. and deflection angle In Hough space, each pixel is projected into the parameter space as a curve, and the intersection of the curves represents the possible straight lines in the image. In the process, each pixel in the image is converted to Hough space and accumulated in the accumulation matrix according to its projection position. This process can be divided into the following steps: Hough transform starts from each pixel of the image and converts it to the parameter space in Hough space, that is, polar coordinates Space. For each pixel, calculate its projection position in the parameter space based on the mapping relationship between its position in the image and the parameter space This step is usually calculated using the straight line equation. According to the coordinates of the pixel points and the parameters of the straight line equation, the parameters of the straight line in the parameter space are calculated. The projection position of each pixel point in the parameter space is The corresponding accumulation matrix elements are accumulated. If there is a curve intersection in the parameter space, then the accumulation operation is performed at the corresponding position in the accumulation matrix. After traversing all the pixels in the image and accumulating the projection position of each pixel, the accumulated Hough space is obtained. In this space, every position The value of represents the cumulative count at that position, that is, the strength of the possible existence of a straight line in the image. Through this process, the straight line features in the image can be converted into the Hough space and the cumulative counts are performed, thus obtaining the Hough space that describes the cumulative straight line features in the image. The higher the cumulative count value in this space, the stronger the corresponding position. The stronger the straight line features that may exist in the image.

[0100] in, Indicates that for all scales greater than or equal to of Perform cumulative calculations; then use the following formula to perform non-maximum suppression on the accumulated Hough space:

[0101] ;

[0102] In Hough space, every position Cumulative count at It indicates the strength of the straight line feature that may exist at this position. Since the Hough transform is a cumulative voting process, there may be multiple positions with high cumulative counts, which correspond to multiple adjacent straight lines in the image. In order to retain the uniqueness of each straight line in the image, it is necessary to filter the cumulative counts, retain only the local maximum value, and set other values ​​to zero. For each position , first compare their cumulative counts With adjacent locations and The cumulative count at . is the interval in the polar direction, used to determine the position of adjacent lines. Cumulative count at If it is greater than or equal to the cumulative count at its adjacent position, then the cumulative count at that position is retained, that is, Otherwise, if the cumulative count at the current position does not meet the above conditions, it is set to zero, that is, Through this process, it is ensured that the cumulative counts are retained only at the local maximum, while the cumulative counts at other locations are suppressed to zero. In this way, the non-maximum suppression of the accumulated Hough space is achieved, the repeated detection of adjacent straight lines is eliminated, and the uniqueness of each straight line is retained.

[0103] in, is the interval in the polar direction, which is used to determine the position of adjacent straight lines; for a given position If the straight line at Greater than or equal to its adjacent position and If the accumulated Hough space at , then the line is retained, otherwise it is set to 0; is the accumulated Hough space; It is the result of non-maximum suppression processing on the accumulated Hough space; For a given location The accumulated Hough space at ; For a given location The accumulated Hough space at .

[0104] Example 9: On the basis of Example 8, for each peak point in the Hough space at each scale, the peak point corresponds to the point with the highest cumulative count, which is converted into the polar diameter and deflection angle of the straight line through inverse Hough transform as the parameters of the estimated straight line; the estimated straight line parameters are screened, and the polar diameter range and the deflection angle range are used for screening to remove the straight lines with polar diameters outside the polar diameter range and the deflection angles outside the deflection angle range; for the remaining straight lines, if the polar diameter distance is less than the set judgment distance, and the difference in the deflection angles is less than the set judgment difference, the two straight lines are merged into one straight line.

[0105] Specifically, in the Hough space at each scale, find the point with the highest cumulative count, that is, the peak point. These peak points correspond to possible straight lines in the image. The extraction of peak points is based on the cumulative count in the Hough space. The higher the cumulative count, the stronger the straight line in the image. Through the inverse Hough transform, each peak point is converted into the polar radius and deflection angle of the straight line as the parameters of the estimated straight line. The inverse Hough transform is the process of converting the parameters in the Hough space back to the image space, so as to determine the position and angle of the straight line in the image. The estimated straight line parameters are screened, and the polar radius range and deflection angle range are used for screening. The purpose of this step is to remove the straight lines that are not within the preset range to improve the accuracy and robustness of straight line detection. For the remaining straight lines, if the distance of the polar radius is less than the set judgment distance, and the difference of the deflection angle is less than the set judgment difference, the two straight lines are merged into one straight line. The purpose of this step is to remove the lines that are detected repeatedly and merge the adjacent straight lines into a longer straight line, so as to improve the continuity and accuracy of straight line detection.

[0106] The present invention is described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. An intelligent detection method for hard bending of contact wire of overhead contact network, characterized in that: The method comprises: Step 1: Collect an image of the target contact network, preprocess the image, and obtain a preprocessed image; Step 2: Perform Hough transform straight line detection on the preprocessed image to identify all straight lines in the preprocessed image; Step 3: Find the intersection of all the straight lines, calculate the angle formed by the straight lines at the intersection, and if the angle is greater than the preset threshold, the intersection is determined to be a hard bend defect; Step 2 specifically includes: Step 2.1: Use a multi-scale edge detection algorithm on the preprocessed image to obtain edge images of the preprocessed image at multiple scales; Step 2.2: Construct the Hough space, perform multi-scale Hough transform on the edge image at each scale, obtain the Hough transform results at multiple scales, and continuously accumulate the Hough space during the multi-scale Hough transform process; Step 2.3: Introduce the local threshold, consider the transformation of the gradient intensity and gradient direction of each pixel at different scales, and calculate the local threshold; compare each Hough transform result with the local threshold, and only retain the Hough transform results with gradient amplitude greater than the local threshold; Step 2.4: Perform non-maximum suppression on the accumulated Hough space to eliminate repeated detections of adjacent straight lines; Step 2.5: Estimate the parameters of the straight line based on the accumulated Hough space; filter and merge the straight lines based on the estimated parameters of the straight line to eliminate redundant straight lines; In step 2.1, the process of using a multi-scale edge detection algorithm on the preprocessed image to obtain edge images of the preprocessed image at multiple scales specifically includes: applying a series of Gaussian filters of different scales to the preprocessed image to obtain multiple filtered images of different scales; wherein the standard deviation of the Gaussian filter of each scale increases exponentially according to the characteristics of the Gaussian distribution; and the Gaussian filter of each scale is represented by the following formula: ; in, is the scale, which is equal to the standard deviation of the Gaussian filter at that scale; is the pixel plane coordinate; applying the edge response operator to the filtered image at each scale to calculate the edge response of each filtered image at each scale; performing zero crossing detection on the edge response of each filtered image at each scale to determine the position of the edge, and then performing edge refinement to eliminate noise and redundancy; performing edge connection to form a continuous edge; is a Gaussian filter; The Hough space constructed in step 2.2 is a Hough space with curvature and deflection angle, and the parameters are introduced ; The formula for multi-scale Hough transform is: ; ; ; ; ; ; in, is the coordinate of the center point of the Hough space; is the set curvature; is the polar diameter; is the Dirac delta function, used to determine the point Whether it is on a straight line in Hough space; is the edge image in pixels The strength of the place; is the deflection angle of the straight line; For scale The Hough accumulation matrix under the scale is taken as the Hough transform result under the scale; , , In the case of , and Discretize into , and value, then Represented as a size of A three-dimensional array ; is the given polar diameter; is a given deflection angle; is the X-axis coordinate; is the Y-axis coordinate; Judgment Point To the center of Hough space Is the distance to the given polar radius equal; Judgment Point Is the direction consistent with the given deflection angle? equal, thus ensuring that the point It is consistent with the specified straight line direction in Hough space; Represents the curvature of the curve in polar coordinates, which is the deflection angle Polar diameter The derivative of The intensities of all points that meet the conditions are accumulated to obtain the cumulative count of the line in the Hough space; represents the sine function; is the cosine function; Local threshold in step 2.3 Use the following formula to express it: ; in, is the maximum scale number; by comparing and The size of of ; It means to sum all the elements in the Hough accumulation matrix and get The cumulative count sum under ; Represents the Hough accumulation matrix at scale The maximum cumulative count under this scale is taken.

2. The intelligent detection method for hard bending of contact wire of contact network according to claim 1, characterized in that: The process of preprocessing the image in step 1 to obtain the preprocessed image specifically includes: using a Gaussian filter to smooth the image to obtain an intermediate image; using a two-dimensional continuous wavelet transform based on complex numbers to decompose the intermediate image into a multi-scale and multi-directional frequency domain representation; using the non-local similarity principle to perform non-local mean denoising on the wavelet coefficients in each frequency domain representation, and then performing soft threshold processing on the wavelet coefficients; performing an inverse wavelet transform on the frequency domain representation to reconstruct the intermediate image; and performing local contrast enhancement processing on the reconstructed intermediate image to obtain the preprocessed image.

3. The intelligent detection method for hard bending of contact wire of contact network as claimed in claim 2, characterized in that: The edge response operator is expressed using the following formula: ; in, For scale The edge response operator below.

4. The intelligent detection method for hard bending of contact wire of overhead contact network according to claim 3, characterized in that: The process of performing non-maximum suppression on the accumulated Hough space in step 2.4 to eliminate repeated detection of adjacent straight lines specifically includes: using the following formula to calculate the accumulated Hough space: ; in, Indicates that for all scales greater than or equal to of Perform cumulative calculations; then use the following formula to perform non-maximum suppression on the accumulated Hough space: ; in, is the interval in the polar direction, which is used to determine the position of adjacent straight lines; for a given position If the straight line at Greater than or equal to its adjacent position and If the accumulated Hough space at , then the line is retained, otherwise it is set to 0; is the accumulated Hough space; It is the result of non-maximum suppression processing on the accumulated Hough space; For a given location The accumulated Hough space at ; For a given location The accumulated Hough space at .

5. The intelligent detection method for hard bending of contact wire of overhead contact network according to claim 4, characterized in that: For each peak point in the Hough space at each scale, the peak point corresponds to the point with the highest cumulative count, which is converted into the polar diameter and deflection angle of the straight line through inverse Hough transform as the parameters of the estimated straight line; the estimated straight line parameters are screened by using the polar diameter range and the deflection angle range to remove the straight lines with the polar diameter outside the polar diameter range and the deflection angle outside the deflection angle range; for the remaining straight lines, if the polar diameter distance is less than the set judgment distance, and the difference in the deflection angle is less than the set judgment difference, the two straight lines are merged into one straight line.