Wire breakage detection device and detection method thereof

By calculating the gradient cost and path accumulation cost of the grayscale image of the conductor and combining it with the optimal transmission algorithm to obtain the radial texture energy distribution, the problem of shadow interference in conductor strand breakage detection is solved, achieving a detection effect with high accuracy and low false alarm rate.

CN123136289APending Publication Date: 2026-11-20NANTONG JINGHAO METAL PRODUCTS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611610223.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-19
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing visual inspection methods are unable to effectively distinguish between normal interstrand shadows and broken strand defects on the conductor surface, resulting in a high false alarm rate and affecting the safe operation of transmission lines.

Method used

By acquiring grayscale images of the conductor, calculating gradient cost and path accumulation cost, extracting texture blocking strength, and using the optimal transmission algorithm to obtain radial texture energy distribution, the texture blocking strength is finally fused with the minimum misalignment distance to identify the broken strand region of the conductor.

Benefits of technology

It effectively reduced the false alarm rate caused by shadow interference, improved the accuracy and reliability of conductor strand breakage detection, and ensured the safe and stable operation of the power grid.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123136289A_ABST
    Figure CN123136289A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of wire fault detection, and particularly relates to a wire broken strand detection device and a detection method thereof. The present application calculates path cumulative cost along the axial direction of the wire and extracts texture interruption strength, simultaneously extracts radial texture energy distribution at each column position along the axial direction of the wire based on the path cumulative cost, and further obtains the minimum dislocation distance between the radial texture energy distributions through the optimal transmission algorithm. The present application discards the processing logic of simply relying on local gray gradient or edge strength for threshold discrimination in the traditional scheme, uses the double physical laws of axial texture interruption and radial texture dislocation caused by real broken strand as a joint criterion, and effectively avoids the false alarm problem caused by the high similarity of the shadow between the strands and the broken strand in gray. On this basis, the texture interruption strength and the minimum dislocation distance are fused, so that the real broken strand region is significantly enhanced in the fusion response.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of conductor fault detection technology, specifically to a conductor strand breakage detection device and its detection method. Background Technology

[0002] Overhead transmission lines are made of multiple strands of aluminum wire spirally twisted together. During long-term outdoor operation, the aluminum strands on the surface of the conductor may break due to the effects of wind vibration and mechanical stress. If not detected in time, the break will expand as stress concentrates, ultimately threatening the safe operation of the transmission line. Therefore, using drones equipped with visible light cameras to capture images of the conductors and automatically identifying strand breakage defects based on image processing technology is an important requirement in the field of power line inspection.

[0003] In conductor images, strand breakage defects appear as dark lines perpendicular to the conductor's axis, indicating that the previously continuous aluminum strand texture is interrupted at the break point. However, existing visual inspection methods face the common challenge of shadow interference. Due to the helical structure of steel-cored aluminum stranded wire, there are natural inter-strand depressions between adjacent aluminum strands. Under strong light, these depressions produce dark shadow lines. These shadow lines also appear in the image as "dark" and having "large edge gradients," closely resembling real strand breakage cracks. Traditional edge detection algorithms or grayscale thresholding methods struggle to effectively distinguish between these two features, easily misreporting normal inter-strand shadows as strand breakage defects. Summary of the Invention

[0004] To address the technical problem that existing technologies struggle to effectively distinguish between normal interstrand shadows and conductor breakage defects, the present invention aims to provide a conductor breakage detection device and method, the specific technical solution of which is as follows: This invention proposes a method for detecting broken strands in a conductor, the method comprising: Obtain the grayscale image of the conductor; The gradient cost of each pixel in the grayscale image is obtained based on the grayscale value and the grayscale gradient change; the gradient cost is accumulated along the conductor axis to calculate the path accumulation cost of each pixel in the grayscale image; the texture blocking intensity of the local conductor is obtained based on the path accumulation cost. Based on the path accumulation cost, the radial texture energy distribution at each column position along the conductor axis is extracted, and the minimum misalignment distance between axially adjacent radial texture energy distributions is obtained through the optimal transmission algorithm. The texture blocking intensity is fused with the minimum misalignment distance, and the broken strand region of the conductor is identified based on the fusion result.

[0005] Furthermore, the method for obtaining the gradient cost includes: The low reflectivity response term and axial abrupt change response term of each pixel in the grayscale image are obtained, and the gradient cost is obtained based on the weighted combination result of the low reflectivity response term and the axial abrupt change response term; the low reflectivity response term is determined according to the grayscale value of the pixel, and the axial abrupt change response term is determined according to the grayscale gradient change of the pixel along the axis of the conductor.

[0006] Furthermore, the method for obtaining the cumulative path cost includes: The gradient cost of each pixel is calculated by using a dynamic programming algorithm along the axis of the conductor. For the starting column, the cumulative path cost is equal to the gradient cost of the starting column. For each position in the current column, the adjacent positions in the previous column are backtracked, and the path source with the minimum cumulative cost is selected. The sum of the gradient cost of the current position and the cumulative cost of the selected path source is used as the cumulative path cost of the current position.

[0007] Furthermore, the method for obtaining the texture blocking intensity includes: The path cumulative cost is back-differentiated using a multi-step sliding window. The minimum cumulative cost is selected from the adjacent rows with a preset difference step size. The path cumulative cost at the current position is subtracted from the minimum cumulative cost, and the resulting difference is used as the texture blocking intensity.

[0008] Furthermore, the method for extracting the radial texture energy distribution includes: The path cumulative cost of each column is numerically shifted to obtain the path energy of each column; the path energy is then converted into a probability distribution vector along the radial direction, and the probability distribution vector is used as the radial texture energy distribution.

[0009] Furthermore, the method for obtaining the minimum misalignment distance includes: Two radial texture energy distributions with a predetermined step size are selected along the conductor axis. The transmission distance between the two radial texture energy distributions is calculated using the optimal transmission algorithm, and the transmission distance is taken as the minimum misalignment distance.

[0010] Furthermore, the optimal transmission algorithm is the Sinkhorn algorithm, and the transmission distance is the regularized Wasserstein distance.

[0011] Further, fusing the texture blocking intensity with the minimum misalignment distance includes: Using the texture blocking intensity as the base value and the exponential function of the minimum misalignment distance as the amplification factor, the base value is multiplied by the amplification factor to calculate the defect significance response value.

[0012] Furthermore, based on the fusion results, regions of broken strands in the conductors are identified, including: Obtain the mean and standard deviation of the defect saliency response values ​​of the entire image, and determine the adaptive segmentation threshold based on the mean and standard deviation; The defect significance response value is binarized and segmented using the adaptive segmentation threshold to generate candidate regions; regions in the candidate regions that satisfy the preset radial span constraint and the preset axial span constraint are taken as conductor strand breakage regions.

[0013] The present invention also proposes a conductor strand breakage detection device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of any of the conductor strand breakage detection methods described above.

[0014] The present invention has the following beneficial effects: This invention calculates the path accumulation cost along the conductor axis and extracts the texture blocking intensity. Simultaneously, based on the path accumulation cost, it extracts the radial texture energy distribution at each column position along the conductor axis. Then, it obtains the minimum misalignment distance between the radial texture energy distributions through an optimal transmission algorithm. This abandons the traditional approach that relies solely on local grayscale gradients or edge intensity for threshold judgment. It utilizes the dual physical law that a true strand break inevitably causes both axial texture interruption and radial texture misalignment as a joint criterion, effectively avoiding false alarms caused by the grayscale similarity between inter-strand shadows and broken strands. Furthermore, the texture blocking intensity and the minimum misalignment distance are fused, significantly enhancing the true strand break region in the fused response, while effectively suppressing shadow regions with abnormal intensity but intact structure because the minimum misalignment distance approaches zero. This maintains a high detection rate while significantly reducing false alarms caused by shadow interference, providing objective and reliable technical support for transmission conductor strand break detection and effectively ensuring the safe and stable operation of the power grid. Attached Figure Description

[0015] Figure 1 This is a flowchart of a wire strand breakage detection method provided in one embodiment of the present invention. Detailed Implementation

[0016] Please see Figure 1 The diagram illustrates a flowchart of a wire strand breakage detection method according to an embodiment of the present invention, the method comprising: Step S1: Obtain the grayscale image of the conductor.

[0017] In overhead power line inspection scenarios, drones equipped with visible light cameras fly along the conductor's path and acquire raw images containing the conductor. Due to differences in drone flight attitude, shooting distance, and hovering angle, the image size and direction of the conductor in different raw images are not uniform. The same type of conductor may exhibit different widths and tilt angles in different flight images. Therefore, it is necessary to convert the raw images of the conductor into uniform grayscale images.

[0018] Specifically, firstly, edge features are extracted from the original image using an edge detection operator to obtain a binarized edge image. Then, a line detection transform is performed on the edge image to identify the principal axis centerline of the conductor, and the angle between the principal axis centerline and the horizontal direction of the image is calculated. Based on this angle, an affine transformation matrix is ​​constructed, and the original image is subjected to reverse rotation correction so that the axis of the rotated conductor is parallel to the horizontal direction of the image.

[0019] Then, based on the identified upper and lower edge boundaries of the conductor, an image region containing only the conductor body is cropped along a direction perpendicular to the conductor's axis. To unify the texture density at different shooting distances, the cropped image region is resampled to a uniform size along the conductor's radial direction. For example, the radial height of the image is fixed at 128 pixels to balance texture detail preservation and computational efficiency, while the axial width of the image is scaled proportionally according to the aspect ratio of the original image.

[0020] Finally, the resampled image is converted into a single-channel grayscale image, where the column coordinates are along the axial direction of the conductor and the row coordinates are along the radial direction. After grayscale conversion, the grayscale value of each pixel is in the integer range of 0 to 255. To facilitate mathematical calculations and avoid numerical overflow, this step maps the grayscale value of each pixel in the single-channel grayscale image to... The grayscale image is obtained by dividing the grayscale value of each pixel by the maximum grayscale value of 255 within the floating-point range. The normalized grayscale value represents the relative reflectivity of each position on the conductor surface in floating-point form, where 0 corresponds to pure black and 1 corresponds to pure white.

[0021] Step S2: Obtain the gradient cost of each pixel in the grayscale image based on the grayscale value and grayscale gradient change; accumulate the gradient cost along the conductor axis to calculate the path accumulation cost of each pixel in the grayscale image; obtain the local texture blocking intensity of the conductor based on the path accumulation cost.

[0022] In a conductor structure composed of multiple strands of aluminum strands, the texture of the aluminum strands in the normal region extends continuously along the conductor's axial direction. Texture interruptions caused by broken strands and shadowed areas between strands also exhibit low brightness and significant grayscale variations. To convert all candidate abnormal regions that may cause texture interruptions into numerical signals, the gradient cost of each pixel is first calculated based on its grayscale value and the grayscale gradient change along the conductor's axial direction. This gradient cost characterizes the degree to which the pixel's location disrupts the axial continuity of the conductor's surface texture.

[0023] Based on this, the gradient cost of the entire image is accumulated along the conductor axis, and the path accumulation cost of each pixel is calculated. This process simulates a virtual path extending from the starting column to the ending column of the image along the surface texture of the conductor. The path tends to traverse regions with low gradient costs and accumulates when it encounters regions with high gradient costs. The path accumulation cost obtained by recursively calculating column by column reflects the minimum accumulation cost from the starting column of the image to each pixel. The path accumulation cost in normal texture regions increases smoothly along the axis, while the path accumulation cost in texture interruption regions experiences additional accumulation due to being forced to traverse high gradient cost regions.

[0024] The path cumulative cost includes the sum of accumulated gradient costs from the image starting point to the current pixel, exhibiting a linear drift trend as the axial column coordinate increases. The image starting point refers to the initial column of the path cumulative cost dynamic programming recursion, i.e., the first column of pixels on the far left of the image. To remove this background drift and quantify the texture blocking strength at the current position, it is necessary to filter out the accumulated values ​​of previous paths and single-pixel noise, retaining only the texture blocking strength of the current local region on the texture axial continuity. The texture blocking strength characterizes the degree of local obstruction experienced by the wire texture as it extends axially at the current position.

[0025] Preferably, in this embodiment of the invention, the method for obtaining the gradient cost includes: The low reflectivity response term and axial abrupt change response term of each pixel in the grayscale image are obtained, and the gradient cost is obtained based on the weighted combination result of the low reflectivity response term and the axial abrupt change response term; the low reflectivity response term is determined according to the grayscale value of the pixel, and the axial abrupt change response term is determined according to the grayscale gradient change of the pixel along the axis of the conductor.

[0026] When strand cracks appear on the surface of a conductor, the light reflectivity at the crack gap is low, appearing as a low grayscale value in the image; the grayscale value at the crack edge undergoes a sharp jump along the conductor's axis. The shadowed areas between strands also exhibit low reflectivity and sharp grayscale value changes along the axis. To convert all potential candidate anomaly regions into computable numerical signals, it is necessary to obtain the low reflectivity response term and the axial abrupt change response term for each pixel.

[0027] The low reflectivity response term is used to capture low reflectivity areas on the conductor surface caused by strand breakage or interstrand depressions. The lower the grayscale value of the pixel, the larger the value of the low reflectivity response term. The axial abrupt change response term is used to capture grayscale abrupt changes caused by the edges of strand breakage or shadow edges. The larger the grayscale gradient magnitude of the pixel along the conductor axis, the larger the value of the axial abrupt change response term. In a specific implementation of this invention, the coordinates in the grayscale image are... The gradient cost of a pixel is expressed by the formula: in, Indicates coordinates as The gradient cost of each pixel; Indicates coordinates as The pixel value of the pixel; This represents the low reflectivity response term; This represents the axial abrupt change response term, which is numerically equal to the gradient magnitude along the conductor's axis. The gradient magnitude can be calculated using the Sobel operator. For a normal aluminum strand surface, the texture changes gently along the axis, and the gradient magnitude is small. However, for broken strands, cracks, or hard shadow edges, the grayscale value jumps drastically along the axis, and the gradient magnitude increases significantly.

[0028] This represents the low reflectivity penalty coefficient, used to adjust the weight of dark area features in the total cost. In this embodiment, it is set to a value of [value missing]. ; This represents the axial abrupt change penalty coefficient, used to enhance the weight of axial discontinuity characteristics; in this embodiment, it is set to a value of [value missing]. .set up The value is greater than The aim is to make high-frequency axial abrupt changes dominate the total gradient cost in order to suppress noise interference in the gradually changing dark regions of the surface.

[0029] By performing a weighted combination operation on the low reflectivity response term and the axial abrupt change response term, the gradient cost of both the actual broken strand and the shadow region between the strands is made to be high.

[0030] Preferably, in this embodiment of the invention, the method for obtaining the path cumulative cost includes: The gradient cost of each pixel is calculated by using a dynamic programming algorithm along the axis of the conductor. For the starting column, the cumulative path cost is equal to the gradient cost of the starting column. For each position in the current column, the adjacent positions in the previous column are backtracked, and the path source with the minimum cumulative cost is selected. The sum of the gradient cost of the current position and the cumulative cost of the selected path source is used as the cumulative path cost of the current position.

[0031] Each pixel in the grayscale image of the conductor corresponds to a spatial location on the conductor surface. Based on the obtained gradient cost matrix, a dynamic programming algorithm is used to calculate the path integral of the gradient cost matrix along the conductor axis. The physical meaning is to simulate the process of a virtual path extending along the surface texture of the conductor from the starting column to the ending column of the image. The virtual path tends to move along the low gradient cost region and is forced to pay additional cost in the high gradient cost region.

[0032] In the specific calculation, the initial column of the image is first initialized, so that the cumulative path cost at each position in the initial column is equal to the gradient cost at that position. Then, starting from the second column, the process is recursively applied to the last column. For each position in the current column, the adjacent positions in the previous column are backtracked, and the position with the minimum cumulative path cost is selected as the optimal path source. The sum of the gradient cost of the current position and the cumulative path cost of the selected path source is used as the cumulative path cost of the current position. Through this column-by-column recursive process, a cumulative path cost covering the entire image is generated. In a specific implementation of this invention, the coordinates in the grayscale image are... The cumulative path cost of a pixel is expressed by the formula: in, Indicates coordinates as The cumulative path cost of pixels; Indicates coordinates as The gradient cost of each pixel; This indicates the row offset from the previous column in the path. Corresponding to the top left position, Corresponding to the position directly to the left, Corresponding to the bottom left position; This indicates that the minimum value is selected; The value for skipping lines is the penalty value, which is set to a value in this embodiment. .

[0033] The cross-row jump penalty value is used to simulate the rigid constraint of the aluminum strand material. Under normal circumstances, the aluminum strand texture should remain horizontally extended along the axial direction (i.e., To avoid high-impedance regions, cross-line skipping is chosen, requiring the addition of an extra penalty value. The higher the cross-line skipping penalty value is set, the smoother the generated path and the stronger the suppression of longitudinal jitter.

[0034] When the grayscale image height is When pixels are used, for image edge regions (i.e. or ),index It may exceed The effective range. To avoid this situation, this embodiment employs a boundary replication (replication padding) strategy: when calculating Access required At that time, take directly The value is used as a substitute; similarly, when calculating... Access required At that time, take directly The value is used as a substitute.

[0035] Preferably, in this embodiment of the invention, the method for obtaining the texture blocking intensity includes: The path cumulative cost is back-differentiated using a multi-step sliding window. The minimum cumulative cost is selected from the adjacent rows with a preset difference step size. The path cumulative cost at the current position is subtracted from the minimum cumulative cost, and the resulting difference is used as the texture blocking intensity.

[0036] The path cumulative cost reflects the minimum cumulative cost extending along the surface texture of the guide wire from the starting column of the image to each pixel. Since the path cumulative cost includes all historical cumulative information from the starting point to the current position, it exhibits a slow upward trend even in normal texture areas as the number of image columns increases. This background trend can mask the true degree of obstruction in local areas; therefore, it is necessary to strip away the preceding historical accumulation and use the net increment of the path cumulative cost at the current position as the texture obstruction strength.

[0037] The physical meaning of subtracting the minimum cumulative cost from the current location's cumulative path cost is as follows: if the path is not blocked when traversing the current local region, the current location's cumulative path cost should be approximately equal to the theoretical cost of extending from the previous location to the current location, with the difference remaining at a low level; if there is a texture interruption in the current region, and the path is forced to pass through at a higher cost, the current location's cumulative path cost will be significantly higher than the theoretical cost of extending from the backtracking location, with the difference increasing accordingly.

[0038] Using a multi-step sliding window for differential analysis allows the blocking response to cover an area with a certain axial width, effectively suppressing single-pixel level noise interference and ensuring that the blocking features of the actual broken strand region appear as a continuous and significant response in the differential results. In this embodiment, the preset differential step size is 3 pixels. Compared to single-pixel differential analysis, the 3-pixel span can smooth out minor imperfections and noise on the aluminum strand surface, retaining only significant blocking features with a certain width.

[0039] In one specific implementation of this invention, the coordinates in the grayscale image are... The texture blocking strength of a pixel is expressed by the formula: in, ( , ) indicates that the coordinates are ( , The texture blocking strength of the pixels; ( , ) indicates that the coordinates are ( , The path accumulation cost of pixels; ( - , + ) indicates that the coordinates are ( - , + The path accumulation cost of pixels; Indicates the preset difference step size; Indicates column coordinates as The row offset of the backtracking reference position relative to the current row. , and These correspond to the adjacent positions above, in the same row, and below, respectively. ∈{-1,0,1} indicates selecting the minimum value; This is the penalty value for jumping across rows.

[0040] In the initial region of calculation (i.e., column coordinates) When there is insufficient path accumulation cost to perform backward differential backtracking, the texture blocking strength is directly set to 0.

[0041] The final obtained texture blocking intensity represents the local increment of the path cumulative cost at the current location relative to the reference cumulative cost of the preceding differential window. At the break point, because the high-impedance region runs radially, the path cannot bypass it, resulting in a peak in the texture blocking intensity. In normal regions, the path passes smoothly, and the texture blocking intensity remains at a low level. It should be noted that shaded areas also exhibit higher texture blocking intensity.

[0042] Step S3: Based on the path cumulative cost, extract the radial texture energy distribution at each column position along the conductor axis, and obtain the minimum misalignment distance between axially adjacent radial texture energy distributions through the optimal transmission algorithm.

[0043] Since both the interstrand shadow and the actual broken strand exhibit low brightness and high gradient characteristics in grayscale, resulting in high gradient costs and texture blocking intensity, it is necessary to construct a radial texture energy distribution independent of grayscale intensity at the structural level. The peak position in the radial texture energy distribution corresponds to the center position of each aluminum strand on the conductor surface, and the distribution shape reflects the arrangement of the aluminum strands on the conductor cross-section.

[0044] The minimum misalignment distance obtained by the optimal transmission algorithm can quantify the degree of shape displacement of the radial texture energy distribution of axially adjacent strands. When only light and shadow exist, the radial arrangement of each aluminum strand in the conductor does not change, the shape of adjacent distributions is basically the same, and the minimum misalignment distance approaches zero. When the conductor actually breaks, the aluminum strands break and are accompanied by radial misalignment, which causes a substantial difference in the shape of the radial texture energy distribution, and the minimum misalignment distance increases significantly.

[0045] Compared to traditional methods such as direct vector subtraction or calculating mean differences, the optimal transmission algorithm employed in this invention is more sensitive and stable to differences in distribution shape, accurately capturing minute shifts in peak positions and avoiding the fuzzy matching problems that may exist in conventional similarity measurement methods. The minimum misalignment distance obtained through the optimal transmission algorithm provides a topological criterion independent of grayscale intensity for distinguishing shadows from broken strands. This minimum misalignment distance quantitatively characterizes the degree of displacement of the radial texture energy distribution in spatial shape from a topological perspective.

[0046] Preferably, in this embodiment of the invention, the method for extracting the radial texture energy distribution includes: The path cumulative cost of each column is numerically shifted to obtain the path energy of each column; the path energy is then converted into a probability distribution vector along the radial direction, and the probability distribution vector is used as the radial texture energy distribution.

[0047] Each aluminum strand on the conductor surface is represented in the image as a continuous texture extending along the axial direction, with its center position corresponding to the distribution of each aluminum strand on the conductor cross-section. The cumulative cost distribution of each column of radial paths reflects the cumulative cost of the texture path through each radial position at that cross-section location, where the lower cost position corresponds to the center region of the aluminum strand, and the higher cost position corresponds to the edge of the aluminum strand or the recessed area between the strands.

[0048] To transform the above information into a quantifiable energy distribution, the cumulative path cost at each radial position in each column is numerically transformed, converting the path energy radially along the conductor into a probability distribution vector. Specifically, when the grayscale image height is... When dealing with pixels, the cumulative path cost of the current column is first numerically shifted. The minimum cumulative path cost for that column is calculated, and this minimum is subtracted from all elements to obtain the path energy for the current column. Then, the Softmax function is used to transform the path energy into a probability distribution vector, where the _i_th ... The first of the columns The probability distribution of the radial positions is expressed as follows: in, Indicates the first The first of the columns The probability distribution of radial positions; Indicates the first The minimum cumulative path cost for all pixels in the column; Represents the natural exponential function; Indicates coordinates as The cumulative path cost of pixels; Indicates coordinates as The cumulative path cost of pixels; This represents the summation of all positions from row coordinate 0 to H-1; This represents the height of the grayscale image, which is the total number of rows along the radial direction of the image; This represents the preset distribution smoothing coefficient, which takes the value specified in this embodiment. .

[0049] The distribution smoothing coefficient is analogous to the temperature coefficient in thermodynamics, used to adjust the sharpness of the distribution. A smaller value indicates a distribution more concentrated on the optimal path (High Peak); a larger value indicates a smoother distribution. A suitable value is... This helps to tolerate minor path jitter while preserving the main peak.

[0050] It should be noted that an L1 normalization check needs to be performed on the probability distribution vector calculated for the current column. This ensures that the sum of all elements of the probability distribution vector is strictly equal to 1.0. If the sum is not 1 due to floating-point operation errors, it is corrected by dividing by the current sum again.

[0051] Each column of the final grayscale image generates a one-dimensional probability distribution vector along the radial direction of the conductor. The length of the probability distribution vector is equal to the radial height of the conductor, and the value represents the probability density of the path energy at that radial position. This probability distribution vector is used as the radial texture energy distribution. In the radial texture energy distribution, each peak position corresponds to the center position of each aluminum strand of the conductor, and the relative height of the peaks reflects the degree of energy concentration of the texture path on different aluminum strands.

[0052] Preferably, in this embodiment of the invention, the method for obtaining the minimum misalignment distance includes: Two radial texture energy distributions with a predetermined step size are selected along the conductor axis. The transmission distance between the two radial texture energy distributions is calculated using the optimal transmission algorithm, and the transmission distance is taken as the minimum misalignment distance.

[0053] In this embodiment, the preset step size is set to 3 pixels. Since the broken strand crack has a physical width of several pixels in the image, setting the preset step size to 3 pixels means that the total span of the comparison is 6 pixels, which can ensure that the comparison window spans the entire crack gap and accurately capture the structural differences by obtaining the stable normal aluminum strand texture at both ends of the crack.

[0054] Based on the obtained radial texture energy distribution at a certain location, two radial texture energy distributions with a 3-pixel interval are selected along the conductor axis, serving as the preceding and subsequent distributions, respectively. The optimal transmission algorithm is used to calculate the transmission distance required to transport the preceding distribution to the subsequent distribution, and this transmission distance is taken as the minimum misalignment distance corresponding to the current position.

[0055] The transmission distance is mathematically quantified as the minimum physical cost required to move one probability distribution to another. When the two radial texture energy distributions have the same shape and the peak positions do not shift, the transmission distance approaches zero; when the peak positions of the radial texture energy distributions shift radially, the transmission distance increases significantly.

[0056] Preferably, in this embodiment of the invention, the optimal transmission algorithm is the Sinkhorn algorithm, and the transmission distance is the regularized Wasserstein distance.

[0057] The classic optimal transmission problem involves linear programming, which has high computational complexity and is difficult to meet the real-time requirements of image processing. This embodiment uses the Sinkhorn algorithm as the specific implementation of the optimal transmission algorithm, transforming the original linear programming problem into an iteratively solvable matrix scaling problem.

[0058] Specifically, firstly, a distance weight matrix is ​​established. The elements in the distance weight matrix are expressed by the formula: in, The distance weight matrix represents the first... Line number The elements of the column represent the energy flowing radially from the conductor. row transferred to the first The basic transportation costs required for the trip; This represents the height of the grayscale image, which is the total number of rows along the radial direction. This formula introduces the image height. Normalization is performed as the denominator to limit the square of the row index difference to a certain value. Within the dimensionless interval. Without this normalization... The maximum value can reach tens of thousands, and subsequent exponential operations will directly lead to computer memory overflow.

[0059] Further construct the kernel matrix, which is expressed by the formula: in, Represents the kernel matrix. Line number Column elements; ( , ) represents the distance weight matrix. Line number Column elements; ( ) represents the natural exponential function; This is the regularization parameter, which is set to 0.1 in this embodiment.

[0060] Then initialize two scaling vectors. and ,in The length of is equal to the dimension of the preceding distribution P. The length of is equal to the dimension of the subsequent distribution Q. and All elements are initialized to 1, and the two scaling vectors are iteratively updated. and until the edge distribution constraint is satisfied: and The specific methods involved in the iterative updates are all well-known techniques to those skilled in the art, and will not be elaborated upon here.

[0061] The optimal transfer matrix is ​​constructed based on the final scaling vector and kernel matrix. Each element in the optimal transfer matrix represents the probability mass of transferring a radial position in the preceding distribution to a radial position in the subsequent distribution. The row edge distribution of the optimal transfer matrix is ​​equal to the preceding radial texture energy distribution, and the column edge distribution is equal to the subsequent radial texture energy distribution. That is, the sum of all rows equals the probability value of each radial position in the preceding distribution, and the sum of all columns equals the probability value of each radial position in the subsequent distribution.

[0062] Each element of the optimal transport matrix is ​​multiplied by the unit transport cost at the corresponding position in the distance weight matrix, and the summation is performed over all rows and columns to obtain the regularized Wasserstein distance. This regularized Wasserstein distance retains the sensitivity of the Wasserstein distance to distribution shape displacement while using regularization constraints to smooth the transport plan, achieving a balance between solution efficiency and accuracy in measuring distribution differences.

[0063] Step S4: Fuse the texture blocking intensity with the minimum misalignment distance, and identify the broken strand region of the conductor based on the fusion result.

[0064] Texture interruption intensity reflects the degree to which the surface texture of the conductor is obstructed along the axial direction, exhibiting higher values ​​in both broken strand regions and interstrand shadow regions. Minimum misalignment distance reflects the degree of radial misalignment of the energy distribution across the conductor cross-section, significantly increasing in true broken strand regions while approaching zero in shadow regions due to the intact radial structure. True broken strands necessarily satisfy both axial texture interruption and radial texture misalignment conditions simultaneously, while interstrand shadows only exhibit axial texture interruption characteristics, with the radial structure remaining intact. By jointly analyzing these two types of features, regions satisfying both conditions can be enhanced in the fusion result, while shadow regions satisfying only one condition can be suppressed.

[0065] By fusing the results of texture blocking intensity and minimum misalignment distance, the broken strand region of the conductor can be identified. This method can effectively eliminate false responses caused by shadows while maintaining high sensitivity to real broken strands, and ultimately identify the real broken strand region of the conductor.

[0066] Preferably, in this embodiment of the invention, fusing the texture blocking intensity with the minimum misalignment distance includes: Using the texture blocking intensity as the base value and the exponential function of the minimum misalignment distance as the amplification factor, the base value is multiplied by the amplification factor to calculate the defect significance response value.

[0067] The base value reflects the intensity of texture interruption at various locations on the conductor surface. Using an exponential function of the minimum misalignment distance as the amplification factor, when the minimum misalignment distance approaches zero, the amplification factor approaches 1, and the defect significance response value is approximately equal to the original value of the texture interruption intensity. When the minimum misalignment distance increases, the amplification factor increases exponentially, and the texture interruption intensity is magnified many times over. This results in regions possessing both high-intensity interruption and significant radial misalignment receiving response values ​​far exceeding those of regions possessing only high-intensity interruption but structurally intact. The formula for calculating the defect significance response value is as follows: in, Indicates coordinates as The defect saliency response value of the pixel; Represents the natural exponential function; Indicates coordinates as The texture blocking strength of the pixels; Indicates the first The minimum misalignment distance corresponding to the column; The value of the misalignment weighted index is taken in this embodiment. Its function is to control the magnification factor of the base value.

[0068] Preferably, in this embodiment of the invention, identifying the broken strand region of the conductor based on the fusion result includes: Obtain the mean and standard deviation of the defect saliency response values ​​of the entire image, and determine the adaptive segmentation threshold based on the mean and standard deviation.

[0069] The significant defect response value appears as an outlier with extremely high values ​​in the actual broken section region, while maintaining a lower value level in the background and shadow regions. First, the mean and standard deviation of the significant defect response values ​​across the entire image are calculated to statistically describe the distribution pattern of these values ​​across the entire image. The mean plus three times the standard deviation is used as the adaptive segmentation threshold. This segmentation strategy is based on the outlier detection principle. Since the response value in the actual broken section region is statistically an outlier far from the mean, while the response values ​​in the background and shadow regions cluster around the mean, the adaptive segmentation threshold can automatically adapt to the numerical distribution characteristics of different images without manual setting, effectively separating the highly significant broken section signal from the low-significance background region.

[0070] Subsequently, the defect saliency response value is binarized using the adaptive segmentation threshold. Pixels with response values ​​higher than the threshold are marked as candidate pixels, generating binarized candidate regions. Then, regions within these candidate regions that satisfy preset radial span constraints and preset axial span constraints are designated as conductor strand breakage regions.

[0071] The physical morphology of a broken conductor strand is the fracture of an aluminum strand accompanied by radial misalignment. Visually, this manifests as an area with a certain span along the radial direction of the conductor and a relatively small span along the axial direction. Based on this, a radial span constraint is set to eliminate candidate areas with a radial span less than 3 pixels, thus removing single-pixel-level salt-and-pepper noise. Simultaneously, an axial span constraint is set to eliminate candidate areas where the ratio of radial span to axial span is less than 1.2, thus removing residual shadows or stains extending along the conductor's axial direction.

[0072] Through the above morphological screening, candidate regions that simultaneously satisfy the radial span constraint and the axial span constraint are retained as the final conductor strand breakage regions, and the position coordinates of the conductor strand breakage regions are output as the detection results.

[0073] Based on the same inventive concept, the present invention also proposes a conductor strand breakage detection device, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program to implement the steps of any of the conductor strand breakage detection methods described above.

[0074] For those skilled in the art, various modifications can be made based on the above description. The general principles defined in this invention can be implemented in other embodiments without departing from the spirit or scope of this application. Any modifications, substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection claimed by this invention.

Claims

1. A method for detecting broken strands in a conductor, characterized in that, The method includes: Obtain the grayscale image of the conductor; The gradient cost of each pixel in the grayscale image is obtained based on the grayscale value and the grayscale gradient change; the gradient cost is accumulated along the conductor axis to calculate the path accumulation cost of each pixel in the grayscale image; the texture blocking intensity of the local conductor is obtained based on the path accumulation cost. Based on the path accumulation cost, the radial texture energy distribution at each column position along the conductor axis is extracted, and the minimum misalignment distance between axially adjacent radial texture energy distributions is obtained through the optimal transmission algorithm. The texture blocking intensity is fused with the minimum misalignment distance, and the broken strand region of the conductor is identified based on the fusion result.

2. The method for detecting broken strands in a conductor according to claim 1, characterized in that, The method for obtaining the gradient cost includes: The low reflectivity response term and axial abrupt change response term of each pixel in the grayscale image are obtained, and the gradient cost is obtained based on the weighted combination result of the low reflectivity response term and the axial abrupt change response term; the low reflectivity response term is determined according to the grayscale value of the pixel, and the axial abrupt change response term is determined according to the grayscale gradient change of the pixel along the axis of the conductor.

3. The method for detecting broken strands in a conductor according to claim 1, characterized in that, The method for obtaining the cumulative cost of the path includes: The gradient cost of each pixel is calculated by using a dynamic programming algorithm along the axis of the conductor. For the starting column, the cumulative path cost is equal to the gradient cost of the starting column. For each position in the current column, the adjacent positions in the previous column are backtracked, and the path source with the minimum cumulative cost is selected. The sum of the gradient cost of the current position and the cumulative cost of the selected path source is used as the cumulative path cost of the current position.

4. The method for detecting broken strands in a conductor according to claim 1, characterized in that, The method for obtaining the texture blocking intensity includes: The path cumulative cost is back-differentiated using a multi-step sliding window. The minimum cumulative cost is selected from the adjacent rows with a preset difference step size. The path cumulative cost at the current position is subtracted from the minimum cumulative cost, and the resulting difference is used as the texture blocking intensity.

5. The method for detecting broken strands in a conductor according to claim 1, characterized in that, The method for extracting the radial texture energy distribution includes: The path cumulative cost of each column is numerically shifted to obtain the path energy of each column; the path energy is then converted into a probability distribution vector along the radial direction, and the probability distribution vector is used as the radial texture energy distribution.

6. The method for detecting broken strands in a conductor according to claim 1, characterized in that, The method for obtaining the minimum misalignment distance includes: Two radial texture energy distributions with a predetermined step size are selected along the conductor axis. The transmission distance between the two radial texture energy distributions is calculated using the optimal transmission algorithm, and the transmission distance is taken as the minimum misalignment distance.

7. The method for detecting broken strands in a conductor according to claim 6, characterized in that, The optimal transmission algorithm is the Sinkhorn algorithm, and the transmission distance is the regularized Wasserstein distance.

8. The method for detecting broken strands in a conductor according to claim 1, characterized in that, The process of fusing the texture blocking intensity with the minimum misalignment distance includes: Using the texture blocking intensity as the base value and the exponential function of the minimum misalignment distance as the amplification factor, the base value is multiplied by the amplification factor to calculate the defect significance response value.

9. The method for detecting broken strands in a conductor according to claim 8, characterized in that, Based on the fusion results, the broken strand regions of the conductors were identified, including: Obtain the mean and standard deviation of the defect saliency response values ​​of the entire image, and determine the adaptive segmentation threshold based on the mean and standard deviation; The defect significance response value is binarized and segmented using the adaptive segmentation threshold to generate candidate regions; regions in the candidate regions that satisfy the preset radial span constraint and the preset axial span constraint are taken as conductor strand breakage regions.

10. A conductor strand breakage detection device, the device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 9.