Method and System for Detecting Wear Edges of Carbon Plate Sliders on Train Pantographs

Through the carbon plate wear detection method based on historical detection information, combined with numerical features and edge detection algorithms, the pantograph carbon plate wear edge is quickly and accurately extracted, solving the problems of low efficiency and low accuracy in the existing technology. Suitable for maintenance and repair of rail vehicles.

CN115541591BActive Publication Date: 2024-09-10BEIJING JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211163639.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-23
Publication Date
2024-09-10
Estimated Expiration
2042-09-23

AI Technical Summary

Technical Problem

The existing technology has low efficiency and low accuracy in detecting train pantograph carbon plate wear, and the equipment cost is high, and the detection algorithm is time-consuming, making it difficult to achieve fast and accurate wear edge extraction.

Method used

A method based on historical detection information is used to process carbon skateboard images, combine numerical features and edge detection algorithms for adaptive edge detection, use two-dimensional entropy and multi-edge detection algorithms to extract the initial wear edge, and use pixel grayscale tracking and Outliers are filtered out to obtain the final wear edge image.

Benefits of technology

It realizes the rapid, complete and accurate extraction of the wear edge of the carbon slide, reduces the detection time and calculation amount, improves the detection efficiency, and is suitable for the maintenance and repair of rail vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115541591B
    Figure CN115541591B
Patent Text Reader

Abstract

The present invention provides a method and system for detecting the worn edge of a carbon slide plate of a train pantograph, which belongs to the field of rail transit operation and maintenance technology. The obtained carbon slide plate image is processed to select numerical features that characterize the carbon slide plate image information; based on the numerical features of the carbon slide plate image information, an auxiliary edge detection operator performs adaptive edge detection, and the carbon slide plate wear edge is obtained through an edge tracking method and an outlier screening method; based on a multi-edge detection algorithm, the carbon slide plate edge detection result is obtained through a merging result algorithm. The present invention improves the integrity and accuracy of the carbon slide plate wear edge detection while improving the carbon slide plate wear edge detection rate; provides targeted bearing maintenance suggestions for maintenance departments, and helps formulate optimal grinding and replacement strategies, thereby reducing the time and economic cost of carbon slide plate maintenance and improving the operational service reliability of urban rail vehicles.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of rail transit operation and maintenance, and in particular to a method and system for detecting the worn edge of a train pantograph carbon slide plate based on historical detection information. Background Art

[0002] As the mileage of my country's tracks gradually increases, higher requirements are placed on the safety and reliability of trains. Whether the condition of the pantograph carbon slide is good or not will affect the safety of train operation. The wear of the carbon slide will affect the contact between the pantograph and the contact network. Excessive wear may cause the contact network line to be stuck in the deep groove on the surface of the carbon slide, resulting in pantograph defects such as slide cracks, bow head tilt, damage or loss of pantograph parts, and damage to the pantograph. Therefore, real-time and accurate detection of the worn edge of the pantograph carbon slide is an important measure to ensure the safety of the pantograph network.

[0003] The problem of detecting the remaining wear of the carbon slide plate of the pantograph of a train is currently mostly detected through manual detection, sensor or maintenance vehicle detection, laser detection and image detection. However, in actual applications, manual detection is cumbersome and inefficient, with a large workload and low precision and accuracy; using sensors or maintenance vehicles for detection requires occupying the line, thereby interfering with driving, or installing a large number of sensors on the carbon slide plate, thereby increasing the cost of the carbon slide plate; laser detection has high accuracy but the equipment is expensive, and the wear edge of the carbon slide plate obtained by image detection is discontinuous and the detection algorithm takes a long time. Summary of the invention

[0004] The purpose of the present invention is to provide a train pantograph carbon slide wear edge detection method and system based on historical detection information, which can quickly, completely and accurately extract the carbon slide wear edge image, so as to solve at least one technical problem existing in the above-mentioned background technology.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] In one aspect, the present invention provides a method for detecting the worn edge of a carbon slide plate of a train pantograph, comprising:

[0007] Processing the obtained carbon skateboard image, and selecting numerical features representing the carbon skateboard image information;

[0008] Based on the numerical characteristics of the carbon slide plate image information, the edge detection algorithm is combined to perform adaptive edge detection to obtain the initial wear edge;

[0009] The obtained initial worn edge is subjected to carbon slide wear edge tracking and outlier screening based on pixel grayscale to obtain the final carbon slide wear edge image.

[0010] Optionally, a two-dimensional entropy-assisted wear edge extraction algorithm is used to extract the initial wear edge of the carbon slide plate, including:

[0011] Sliding window is performed on the carbon slide plate image, and the sliding window size is equivalent to the width of the bus bar, and the area where the bus bar is located is eliminated;

[0012] The gray value of the pixel in the sliding window of the carbon slide image and the neighborhood information of the pixel constitute a binary group (I i ,I j-vertical ), where I i is the gray value of the middle pixel among three adjacent pixels. If the coordinates of point i are (x, y), then:

[0013]

[0014] For each pair (I i ,I j-vertical ) is counted and recorded as f ij-vertical ; The frequency p of each binary pair ij-vertical We can get:

[0015]

[0016] p ij-vertical It is one of the comprehensive characteristics of the gray value of the pixel position and the gray distribution of surrounding pixels;

[0017] The two-dimensional grey entropy formula is:

[0018]

[0019] Record the train number and the two-dimensional entropy value in each sliding window of each corresponding carbon slide;

[0020] The Canny operator is used to detect edges in each sliding window, and the threshold of the Canny operator is set to th. low =0.001×H,th high =0.003×H; after screening the results, the initial carbon slide wear curve results are obtained.

[0021] Optionally, the initial wear edge is extracted based on a combination of multiple edge detection algorithms, including: using the Edge drawing edge detection operator to extract the wear curve of the image, and then using the morphological edge detection algorithm to extract the wear curve, comparing the wear edges obtained by the two algorithms, and when the wear edge detection results of the two algorithms conflict, use the wear edge result with a higher value on the vertical axis of the coordinate in the image; use a wear edge detection algorithm based on two-dimensional entropy to complete the wear edge in the vacant areas, and obtain a preliminary carbon skateboard wear curve result.

[0022] Furthermore, the carbon skateboard wear edge tracking based on pixel grayscale includes:

[0023] The wear edge pixels with a distance between adjacent pixels greater than 3 pixels are considered as segmentation points, and then the wear edge is tracked to determine whether it is a wear edge pixel based on the gray level of the pixel;

[0024] If the horizontal coordinates of the left and right boundaries of the busbar in the carbon slide picture are L_busbar and R_busbar respectively, for the obtained carbon slide wear edge point set A={a1,a2,...,a p},for like And i<p, when a i ∈[0,L_busbar), in the interval (a i ,min(a i+1 ,L_busbar)) to find the missing carbon slide wear curve. i ∈(R_busbar,a p ), in the interval (a i ,a i+1 ) to find the missing carbon slide wear curve; let X be the abscissa set of carbon slide wear edge pixels, and Y be the ordinate set of carbon slide wear edge pixels. For each x in X, there is a unique element y in Y corresponding to it. When performing neighborhood retrieval, the next edge pixel is found by traversing the horizontally adjacent pixels.

[0025] Preferably, when performing pixel tracking, the grayscale value of the pixel is determined, specifically including:

[0026] Let the starting pixel be a k , with coordinates (m,n), a k =a i

[0027] Remember a k Pixel a at the three adjacent coordinates (m+1,n+1), (m+1,n), (m+1,n-1) k1 ,a k2 ,a k3 The gray value is grey k1 ,grey k2 ,grey k3 ;

[0028] If grey kmax =grey k1 ,a k+1 =a k1 ,

[0029] If grey kmax <grey k2 ×1.05,grey kmax =grey k2×1.05,a k+1 =a k2

[0030] If grey kmax <grey k3 ,grey kmax =grey k3 ,a k+1 =a k3

[0031] a k =a k+1 ,when The tracking is terminated when the wear edge is reached; then the wear edge is tracked at the starting point of the wear edge on the right side of the busbar to complete the wear curve;

[0032] Since the rest of the carbon slide plate has wear curves, only (R_busbar, a m ) interval to track the wear edge, where a m >R_busbar,a m-1 <R_busbar.

[0033] Furthermore, the obtained worn edge is subjected to discrete point screening, including: segmenting the completed worn edge according to the distance between adjacent worn edge points, finding the shortest edge, deleting the shortest edge if the edge length is less than the minimum length, and performing edge tracking again until the worn edge cannot be segmented, or the segmented edges are all greater than the minimum length.

[0034] In a second aspect, the present invention provides a train pantograph carbon slide wear edge detection system, comprising:

[0035] A processing module, used to process the acquired carbon skateboard image and select numerical features representing the carbon skateboard image information;

[0036] An extraction module is used to perform adaptive edge detection based on the numerical features of the carbon slide plate image information and the edge detection algorithm to obtain the initial wear edge;

[0037] The tracking and screening module is used to track the carbon slide wear edge and screen outliers based on the pixel grayscale of the obtained initial wear edge to obtain the final carbon slide wear edge image.

[0038] In a third aspect, the present invention provides a non-transitory computer-readable storage medium, which is used to store computer instructions. When the computer instructions are executed by a processor, the train pantograph carbon slide wear edge detection method as described above is implemented.

[0039] In a fourth aspect, the present invention provides a computer program product, comprising a computer program, which, when running on one or more processors, is used to implement the method for detecting the worn edge of the carbon slide plate of a train pantograph as described above.

[0040] In a fifth aspect, the present invention provides an electronic device, comprising: a processor, a memory and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory so that the electronic device executes instructions for implementing the method for detecting the wear edge of the carbon slide plate of the train pantograph as described above.

[0041] Beneficial effects of the present invention:

[0042] Compared with the best existing technologies, the method of the present invention makes a complete and accurate estimation of the wear edge of the carbon slide, realizes the rapid extraction of the wear edge of the carbon slide, reduces the amount of algorithm calculation, and ultimately achieves the purpose of improving detection efficiency and reducing detection time. In addition, it is convenient for practical application and can provide technical support for the prediction of bearing degradation trajectory in engineering practice.

[0043] The method of the present invention takes into account the relationship between the edge gray values ​​in the carbon slide picture, effectively improves the integrity of the carbon slide wear edge extraction, and reduces the algorithm time consumption. At the same time, the historical detection parameters of the carbon slide are taken into account, and the historical detection parameters are used to assist the carbon slide wear edge extraction, reduce the algorithm calculation amount, and improve the algorithm detection efficiency.

[0044] Additional advantages of the present invention will be more clearly presented in the following description or learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0046] Figure 1 This is a flow chart of the method for detecting the worn edge of the carbon slide plate of a train pantograph according to an embodiment of the present invention.

[0047] Figure 2 It is a schematic diagram of the process of tracking a complete worn edge in a carbon skateboard image according to an embodiment of the present invention.

[0048] Figure 3 It is a schematic diagram of the process of tracking the worn edge of the carbon slide plate at a single gap according to an embodiment of the present invention.

[0049] Figure 4 It is a schematic diagram of the process of screening out discrete points on the worn edge of a carbon slide board according to an embodiment of the present invention.

[0050] Figure 5 This is a target carbon slide plate image extracted for the worn edge according to an embodiment of the present invention.

[0051] Figure 6 Schematic diagram of the carbon slide wear edge tracking and outlier removal process according to an embodiment of the present invention.

[0052] Figure 7 This is a schematic diagram of the anchoring position described in an embodiment of the present invention.

[0053] Figure 8 This is a schematic diagram comparing the integrity of the worn edge of a carbon slide board using different algorithms according to an embodiment of the present invention.

[0054] Fig. 9 Schematic diagram of comparing the accuracy of the worn edge of a carbon slide plate using different algorithms according to an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below by the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.

[0056] It should be understood by those skilled in the art that unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art to which this invention belongs.

[0057] It should also be understood that terms, such as those defined in commonly used dictionaries, should be understood to have a meaning consistent with that in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless as defined herein.

[0058] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements and / or groups thereof.

[0059] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.

[0060] To facilitate understanding of the present invention, the present invention is further explained below with reference to specific embodiments in conjunction with the accompanying drawings, and the specific embodiments do not constitute a limitation on the embodiments of the present invention.

[0061] Those skilled in the art should understand that the drawings are merely schematic diagrams of embodiments, and the components in the drawings are not necessarily necessary for implementing the present invention.

[0062] Example 1

[0063] In order to improve the safety and reliability of rail vehicle operation and overcome the problems in the prior art of complex pantograph image detection process and time-consuming extraction of carbon skateboard wear edges, this embodiment provides a carbon skateboard wear edge extraction technology based on historical detection information of the same train. Compared with the existing train carbon skateboard wear edge detection algorithm, the relationship between the edge grayscale values ​​in the carbon skateboard image and the historical detection parameters are used to extract the wear edge to obtain the carbon skateboard wear edge coordinate array, so as to facilitate the subsequent maintenance of the carbon skateboard, provide a basis for the replacement and polishing of urban vehicle carbon skateboards, and ensure the safe and reliable operation of urban rail vehicles.

[0064] First, this embodiment 1 provides a train pantograph carbon slide wear edge detection system, the system includes: a processing module, used to process the acquired carbon slide image, and select numerical features that characterize the carbon slide image information; an extraction module, used to perform adaptive edge detection based on the numerical features of the carbon slide image information and the edge detection algorithm to obtain the initial wear edge; a tracking and screening module, used to perform carbon slide wear edge tracking and outlier screening based on pixel grayscale on the obtained initial wear edge to obtain the final carbon slide wear edge image.

[0065] Secondly, in this embodiment 1, the above-mentioned train pantograph carbon slide board wear edge detection system is used to implement the train pantograph carbon slide board wear edge detection method, including: using the processing module to process the acquired carbon slide board image, and selecting the numerical features that characterize the carbon slide board image information; using the extraction module to perform adaptive edge detection based on the numerical features of the carbon slide board image information and the edge detection algorithm to obtain the initial wear edge; finally, using the tracking and screening module to perform carbon slide board wear edge tracking and outlier screening based on pixel grayscale on the obtained initial wear edge to obtain the final carbon slide board wear edge image.

[0066] In the step of obtaining the initial carbon slide wear edge, for example, the longitudinal grayscale information in the sliding window of the carbon slide image can be evaluated based on the adaptive edge detection algorithm of two-dimensional entropy, and the numerical features can be applied to the Canny operator to obtain the wear edge, which specifically includes:

[0067] Sliding window is performed on the carbon slide plate image, and the sliding window size is equivalent to the width of the bus bar, and the area where the bus bar is located is eliminated;

[0068] The gray value of the pixel in the sliding window of the carbon slide image and the neighborhood information of the pixel constitute a binary group (I i ,I j-vertical ), where I i is the gray value of the middle pixel among three adjacent pixels. If the coordinates of point i are (x, y), then:

[0069]

[0070] For each pair (I i ,I j-vertical ) is counted and recorded as f ij-vertical ; The frequency p of each binary pair ij-vertical We can get:

[0071]

[0072] p ij-vertical It is one of the comprehensive characteristics of the gray value of the pixel position and the gray distribution of surrounding pixels;

[0073] The two-dimensional grey entropy formula is:

[0074]

[0075] The train number and the two-dimensional entropy value in each sliding window of each corresponding carbon slide are recorded;

[0076] The Canny operator is used to detect edges in each sliding window, and the threshold of the Canny operator is set to th. low =0.001×H,th high=0.003×H; after screening the results, the preliminary carbon slide wear curve results were obtained.

[0077] In the step of obtaining the initial carbon skateboard wear edge, the initial edge extraction can also be performed based on the edge detection method of the multi-edge detection algorithm, including: using the Edge drawing edge detection operator to extract the wear curve of the image, and then using the morphological edge detection algorithm to extract the wear curve, comparing the wear edges obtained by the two algorithms, and the non-wear edge part of the fused wear edge is mostly located on the side of the carbon skateboard. Therefore, when the wear edge detection results of the two algorithms conflict, the wear edge result on the upper side of the picture is used; the wear edge detection algorithm based on two-dimensional entropy is used for the vacant parts to complete the wear edge and obtain the preliminary carbon skateboard wear curve result.

[0078] The carbon slide wear edge tracking method and outlier removal based on pixel grayscale include:

[0079] The wear edge pixels with a distance between adjacent pixels greater than 3 pixels are considered as segmentation points, and then the wear edge is tracked to determine whether it is a wear edge pixel based on the gray level of the pixel;

[0080] If the horizontal coordinates of the left and right boundaries of the busbar in the carbon slide picture are L_busbar and R_busbar respectively, for the obtained carbon slide wear edge point set A={a1,a2,...,a p},for like And i<p, when a i ∈[0,L_busbar), in the interval (a i ,min(a i+1 ,L_busbar)) to find the missing carbon slide wear curve. i ∈(R_busbar,a p ), in the interval (a i ,a i+1 ) to find the missing carbon slide wear curve; let X be the abscissa set of carbon slide wear edge pixels, and Y be the ordinate set of carbon slide wear edge pixels. For each x in X, there is a unique element y in Y corresponding to it. When performing neighborhood retrieval, the next edge pixel is found by traversing the horizontally adjacent pixels.

[0081] When performing pixel tracking, the pixel grayscale value is judged, including:

[0082] Let the starting pixel be a k , with coordinates (m,n), a k =a i

[0083] Remember ak Pixel a at the three adjacent coordinates (m+1,n+1), (m+1,n), (m+1,n-1) k1 ,a k2 ,a k3 The gray value is grey k1 ,grey k2 ,grey k3 ;

[0084] If grey kmax =grey k1 ,a k+1 =a k1 ,

[0085] If grey kmax <grey k2 ×1.05,grey kmax =grey k2 ×1.05,a k+1 =a k2 ,

[0086] If grey kmax <grey k3 ,grey kmax =grey k3 ,a k+1 =a k3 .

[0087] a k =a k+1 ,when The tracking is terminated when the wear edge is reached; then the wear edge is tracked at the starting point of the wear edge on the right side of the busbar to complete the wear curve;

[0088] Since the rest of the carbon slide plate has wear curves, only (R_busbar, a m ) interval to track the wear edge, where a m >R_busbar,a m-1 <R_busbar;

[0089] The obtained wear edge is screened, and the completed wear edge is cut according to the distance between adjacent wear edge points to find the shortest edge. If the edge length is less than the minimum length, the shortest edge is deleted and the edge is tracked again until the wear edge cannot be cut or the cut edges are greater than the minimum length; then edge tracking is performed again to obtain the final carbon skateboard wear edge.

[0090] Example 2

[0091] In the existing research on the extraction of worn edges of carbon slides, the relationship between the grayscale values ​​of the edges in the carbon slide image and the influence of the historical detection parameters of the carbon slide are less considered. The grayscale value of the worn edge of the carbon slide is higher than the grayscale value of the non-edge pixels of the surrounding carbon slide. The discontinuous parts between the existing worn edges can be supplemented by the grayscale values ​​of the worn edges and the surrounding pixels that have been detected. At the same time, the relative position of the pantograph in the detection image at different times, the contrast between the edge and non-edge areas, and some worn edges change slightly. By using historical detection parameters to quickly segment and extract the edges of the carbon slide, the detection time can be shortened. Therefore, in this embodiment 2, a train pantograph carbon slide wear edge detection method based on historical detection information is provided.

[0092] In this embodiment 2, the train pantograph carbon slide wear edge detection method based on historical detection information first improves the wear edge extraction algorithm to improve the completeness and accuracy of the wear edge extraction, and then uses the carbon slide wear edge tracking algorithm to track the already obtained wear edge according to the grayscale information of the carbon slide image, and then screens the outliers in the tracking results, and finally tracks the edge of the screened results again to obtain the final wear edge, and records the carbon slide wear edge detection information. In the process of rapid detection of pantograph images based on historical information, the recorded parameter information is used in the subsequent detection process of the detected pantograph to reduce the detection calculation amount, and finally achieve the purpose of improving detection efficiency and reducing detection time.

[0093] Specifically, the carbon skateboard wear edge extraction technology based on the historical detection information of the same train described in this Example 2 includes: processing the acquired carbon skateboard image, and selecting numerical features that characterize the carbon skateboard image information; based on the numerical features of the carbon skateboard image information, adaptive edge detection is performed in combination with the edge detection algorithm to obtain the initial wear edge; for the obtained initial wear edge, pixel grayscale-based carbon skateboard wear edge tracking and outlier screening are performed to obtain the final carbon skateboard wear edge image.

[0094] The processing of the carbon slide plate image and the selection of the numerical features of the carbon slide plate image information to adaptively optimize the edge detection algorithm include: obtaining the carbon slide plate position coordinates in the pantograph image and applying them to subsequent detection. Obtaining the carbon slide plate two-dimensional entropy data {H1, H2, ..., H k ,...,H n},(k=1,2,...,n),H k is the two-dimensional entropy of the sliding window of the k-th carbon slide image. Multiple edge detection algorithms are fused to detect the worn edge. Carbon slide wear edge tracking and outlier removal based on pixel grayscale relationship. The carbon slide wear edge in the obtained pantograph image is used for subsequent detection.

[0095] In this embodiment 2, the longitudinal grayscale information in the sliding window of the carbon slide plate image can be evaluated based on the adaptive edge detection algorithm of two-dimensional entropy, and the numerical features can be applied to the Canny operator to obtain the initial wear edge. Alternatively, the initial wear edge can be extracted by combining multiple edge detection algorithms.

[0096] Specifically, the adaptive carbon skateboard wear edge extraction method based on two-dimensional entropy includes:

[0097] Sliding window is performed on the carbon slide plate image, and the sliding window size is equivalent to the width of the bus bar, and the area where the bus bar is located is eliminated so that it does not affect the calculation;

[0098] The gray value of the pixel in the sliding window of the carbon slide image and the neighborhood information of the pixel constitute a binary group (I i ,I j-vertical ), where I i is the gray value of the middle pixel among three adjacent pixels. If the coordinates of point i are (x, y), then:

[0099]

[0100] For each pair (I i ,I j-vertical ) is counted and recorded as f ij-vertical The frequency p of each binary pair ij-vertical We can get:

[0101]

[0102] p ij-vertical It is one of the comprehensive characteristics of the gray value of the pixel position and the gray distribution of the surrounding pixels. The two-dimensional gray entropy formula is

[0103]

[0104] The train number and the corresponding two-dimensional entropy value in the carbon slide window are recorded in list3;

[0105] The Canny operator is used to detect edges in each sliding window, and the threshold of the Canny operator is set to th. low =0.001×H,th high = 0.003 × H. After screening the results, the preliminary carbon slide wear curve results were obtained.

[0106] Specifically, the edge detection method based on the multi-edge detection algorithm includes:

[0107] The Edge drawing edge detection operator is used to extract the wear curve of the image, and then the morphological edge detection algorithm is used to extract the wear curve. The wear edges obtained by the two algorithms are compared. The non-wear edge part of the fused wear edge is mostly located on the side of the carbon slide. Therefore, when the wear edge detection results of the two algorithms conflict, the wear edge result on the upper side of the image is used. The wear edge detection algorithm based on two-dimensional entropy is used for the vacant parts to complete the wear edge and obtain the preliminary wear curve result of the carbon slide. The wear edge detection algorithm based on two-dimensional entropy is used for the vacant parts to complete the wear edge and obtain the preliminary wear curve result of the carbon slide.

[0108] In this embodiment 2, the carbon slide wear edge tracking method and outlier removal method based on pixel grayscale specifically include:

[0109] The worn edge is segmented based on the pixel distance. The pixels of the worn edge with a distance between adjacent pixels greater than 3 pixels are the segmentation points. Then the worn edge is tracked and the pixel grayscale is used to determine whether it is a worn edge pixel.

[0110] If the horizontal coordinates of the left and right boundaries of the busbar in the carbon slide picture are L_busbar and R_busbar respectively, for the obtained carbon slide wear edge point set A={a1,a2,...,a p},for like And i<p, when a i ∈[0,L_busbar), in the interval (a i ,min(a i+1 ,L_busbar)) to find the missing carbon slide wear curve. i ∈(R_busbar,a p ), in the interval (a i ,a i+1 ) to find the missing carbon slide wear curve. Let X be the abscissa set of carbon slide wear edge pixels, and Y be the ordinate set of carbon slide wear edge pixels. For each x in X, there is a unique element y in Y corresponding to it. When performing neighborhood search, the next edge pixel is found by traversing the horizontal adjacent pixels.

[0111] When performing pixel tracking, the pixel grayscale value is judged. The specific steps are as follows:

[0112] Let the starting pixel be a k , with coordinates (m,n), a k =a i

[0113] Remember a kPixel a at the three adjacent coordinates (m+1,n+1), (m+1,n), (m+1,n-1) k1 ,a k2 ,a k3 The gray value is grey k1 ,grey k2 ,grey k3 .

[0114] If grey kmax =grey k1 ,a k+1 =a k1 ,

[0115] If grey kmax <grey k2 ×1.05,grey kmax =grey k2 ×1.05,a k+1 =a k2

[0116] If grey kmax <grey k3 ,grey kmax =grey k3 ,a k+1 =a k3

[0117] a k =a k+1 ,when If the condition is not met, repeat step 2).

[0118] Then the wear edge is tracked at the starting point of the wear edge on the right side of the bus to complete the wear curve.

[0119] Since the rest of the carbon slide plate has wear curves, only (R_busbar, a m ) interval to track the wear edge, where a m >R_busbar,a m-1 <R_busbar. At the same time, in order to ensure that there are multiple pixels with the same brightness value in the pixel neighborhood, the pixels in the horizontal neighborhood are preferentially selected based on experience. The specific edge tracking steps are as follows:

[0120] Let the starting pixel be a k , with coordinates (m,n), a k =a m

[0121] Remember a kPixel a at the three adjacent coordinates (m-1,n+1), (m-1,n), (m-1,n-1) k1 ,a k2 ,a k3 The gray value is grey k1 ,grey k2 ,grey k3 .

[0122] If grey kmax =grey k1 ,a k+1 =a k1 ,

[0123] If grey kmax <grey k2 ×1.05,grey kmax =grey k2 ×1.05,a k+1 =a k2

[0124] If grey kmax <grey k3 ,grey kmax =grey k3 ,a k+1 =a k3

[0125] a k =a k+1 ,when The tracking is terminated.

[0126] In this embodiment 2, the obtained worn edge is screened including: dividing the completed worn edge according to the distance between adjacent worn edge points, finding the shortest edge, deleting the shortest edge if the edge length is less than the minimum length, and performing edge tracking again until the worn edge cannot be divided, or the divided edges are all greater than the minimum length. Then edge tracking is performed again to obtain the final carbon slide wear edge.

[0127] In specific subsequent applications, the two-dimensional entropy obtained based on historical detection can quickly extract the worn edge, shorten the detection and extraction time, and improve efficiency, including:

[0128] The worn edge of the cut carbon slide is extracted by the two-dimensional entropy value of the saved historical image: the two-dimensional entropy of the corresponding sliding window in the carbon slide corresponding to the train image in list3 is extracted by the train number, the carbon slide image is divided into sliding windows, and the corresponding two-dimensional entropy value H in the previous detection is used in the sliding window. The threshold of the Canny operator is set to th low =0.001×H,th high=0.003×H, and the wear edge result of the pantograph is obtained after edge tracking and outlier removal.

[0129] Rapidly update the wear edge based on the wear edge coordinates obtained from historical inspections, including:

[0130] The carbon slide wear edge coordinates obtained from historical detection are used to quickly extract the carbon slide wear edge. First, the two fixing screws under the carbon slide bottom plate are taken as key points, and the carbon slide images of the same train at different times are aligned.

[0131] According to the midline results in the historical detection results, the part above the midline in the carbon skateboard image is removed so that it does not affect the subsequent key point positioning.

[0132] Then, the remaining bottom plate image is subjected to adaptive binarization to separate the carbon skateboard bottom plate from the background image. The noise and holes in the binary image are removed by morphological methods. Then, the width of the bottom plate part is screened. The thickness of the carbon skateboard bottom plate in the binary image is counted, and the bottom plate part with a thickness less than the median of the foreground thickness in the binary image is removed to obtain the incomplete lower edge of the carbon skateboard bottom plate, and then the complete lower edge of the carbon skateboard bottom plate is obtained by curve fitting. The sobel edge detection result of the carbon skateboard image is subjected to adaptive binarization, and the image above the lower edge in the binary image is blackened and then the connected domain is screened to remove the connected domain with a smaller area, and a binary image containing the edges on both sides of the rivet is obtained.

[0133] The positions of the two rivets are as follows Figure 7 As shown in the black box in the figure, the inner edges of the two rivets are x l ,x r , then according to the bus position relationship, the rivet position is limited: x l <L_busbar,x r >w img -L_busbar. After finding the two rivets under the bottom plate of the carbon skateboard, match the two carbon skateboard images through the two rivet coordinates of the carbon skateboard. Determine whether they can match based on the relative position of the rivets on the carbon skateboard image in the previous test and the carbon skateboard image in this test. If the relative position difference is small, align the two carbon skateboard images by aligning the points.

[0134] The two aligned carbon skateboard images are differentiated and adaptively binarized, and the wear edge is updated according to the difference image. On the binary difference image, the image area from the original wear edge to the h pixel height below it is taken to obtain a binary image with a width equal to the length of the wear edge point coordinate list and a height of h. Only the larger connected domain in the image is retained, and the connected domain skeleton is taken out. The obtained skeleton coordinates are the wear edge that needs to be updated.

[0135] Example 3

[0136] In this embodiment 3, a carbon slide wear edge detection method based on pixel grayscale correlation and historical detection information is proposed, which realizes the detection of the carbon slide wear edge of the pantograph and provides operation and maintenance support for the vehicle maintenance department. Figure 1 shown.

[0137] Figure 8 , Fig. 9 The first three pantograph images (12 carbon skateboard images) in Table 1 are the first wear edge detection, and the first six pantograph images (24 carbon skateboard images) are wear edge detection using historical detection information. Algorithm 1 represents the Canny operator based on two-dimensional entropy improvement and the edge tracking algorithm to fill the gaps between edges. The subsequent detection applies the saved two-dimensional entropy value to reduce the algorithm calculation amount and improve the running speed. Algorithm 2 represents the first detection image of the vehicle after manual annotation, and the subsequent detection results rely on the first detection results, and the wear edge is updated by the difference between the images. Algorithm 3 represents the carbon skateboard wear edge detected by the algorithm combined with multiple edge detection algorithms, and is filled by the edge tracking algorithm, and the subsequent detection results rely on the first detection results, and the wear edge is updated by the difference between the images. In Algorithm 2 and Algorithm 3, if the subsequent detection image matching is wrong, it will be re-detected according to the process of undetected images. In Table 1, for the three algorithms, the time time1 for extracting the worn edge from the picture of the complete pantograph in the first inspection of the train, the time time2 for extracting the worn edge from the picture of the cut carbon skateboard in the first inspection of the train, the time time3 for extracting the worn edge from the picture of the complete pantograph of the inspected train, and the time time4 for extracting the worn edge from the picture of the carbon skateboard of the inspected train.

[0138] Step 1: Extract the train number

[0139] Identify the train number through the train number photo, and compare the train number with the train numbers stored in the train number list list1. If the train number does not exist in the list, store the train number in the table list1 and proceed to step 2. If the train number exists in the list, proceed to steps 6 and 7.

[0140] Step 2: Carbon skateboard image spatial position parameter storage

[0141] The pantograph image is subjected to morphological and edge detection methods to obtain the coordinate position of the carbon slide plate in the image, and the coordinates are stored in list list2.

[0142] Step 3: Extraction of initial wear edge of carbon slide

[0143] In this embodiment, the following three methods can be used to extract the worn edge of the carbon slide:

[0144] Method 1: Use the two-dimensional entropy-assisted wear edge extraction algorithm to extract the wear edge of the carbon slide. Slide the carbon slide image with a sliding window size equivalent to the bus width, and remove the area where the bus is located so that it does not affect the calculation.

[0145] The gray value of the pixel in the sliding window of the carbon slide image and the neighborhood information of the pixel constitute a binary group (I i ,I j-vertical ), where I i is the gray value of the middle pixel among three adjacent pixels. If the coordinates of point i are (x, y), then:

[0146]

[0147] For each pair (I i ,I j-vertical ) is counted and recorded as f ij-vertical The frequency p of each binary pair ij-vertical We can get:

[0148]

[0149] p ij-vertical It is one of the comprehensive characteristics of the gray value of the pixel position and the gray distribution of the surrounding pixels. The two-dimensional gray entropy formula is

[0150]

[0151] The train number and the corresponding two-dimensional entropy value in the carbon slide window are recorded in list3.

[0152] The Canny operator is used to detect edges in each sliding window, and the threshold of the Canny operator is set to th. low =0.001×H,th high =0.003×H.

[0153] After screening the results, the preliminary carbon slide wear curve results were obtained.

[0154] Method 2: Wear edge detection method using a combination of multiple edge detection methods:

[0155] The algorithm first uses the Edge drawing edge detection operator to extract the wear curve of the image. The specific steps are as follows: 1) Use Gaussian filtering to reduce the noise of the image. 2) Calculate the amplitude and direction of the gradient of each element in the image set. 3) Extract the anchor points in the set. 4) Automatically connect the anchor points through the intelligent pathfinding algorithm to obtain the edges in the image. 5) Filter the results to obtain the wear curve of the carbon skateboard.

[0156] Then, the wear curve is extracted using the morphological edge detection algorithm: 1) Use the closing operation to eliminate the noise in the original image. 2) Perform a dilation operation on the original image to obtain a dilated image. 3) Perform an erosion operation on the original image to obtain a eroded image. 4) Difference the dilation image and the eroded image. 5) Adaptively binarize the differential edge image.

[0157] The edge drawing edge detection results are fused with the morphological edge detection results. During the fusion process, the worn edges obtained by the two algorithms are compared. Since the side texture of the carbon skateboard has a greater impact on the edge detection algorithm, the non-worn edge part in the detection result is mostly located on the side of the carbon skateboard. When the worn edge detection results of the two algorithms conflict, the worn edge result on the upper side of the picture is used.

[0158] The fused carbon slide wear edge detection results are tested. If there are gaps larger than 50 pixels in the results, the wear edge detection algorithm based on two-dimensional entropy is used to fill the gaps and obtain the preliminary wear curve results of the carbon slide. The wear edge detection algorithm based on two-dimensional entropy is used to fill the gaps and obtain the preliminary wear curve results of the carbon slide.

[0159] Method 3: Annotate the worn edge of the carbon skateboard in the image by manual annotation.

[0160] Step 4: Wear edge tracking

[0161] The wear edge tracking process is as follows Figure 2 , Figure 3 As shown:

[0162] First, the obtained worn edge is segmented according to the distance between pixels. The pixels of the worn edge with a distance between adjacent pixels greater than 3 pixels are used as segmentation points. The worn edge is segmented into several segments, and then the worn edge is tracked. According to the principle that the worn edge and its surroundings are bright areas in the carbon slide image, but the worn edge of the carbon slide is brighter than the rest, and the grayscale value is higher than the surrounding, the edge tracking algorithm is adjusted from the gradient tracking edge to the grayscale value of the pixel in the lateral neighborhood of the edge pixel to determine whether it is a worn edge pixel.

[0163] According to the pixel grayscale characteristics in the carbon slide image, the basis for judging whether a pixel point is a worn edge during edge tracking is replaced by the pixel grayscale level. If the horizontal coordinates of the left and right boundaries of the busbar in the carbon slide image are L_busbar and R_busbar respectively, for the obtained carbon slide wear edge point set A = {a1, a2, ..., a p},for like And i<p, when a i ∈[0,L_busbar), in the interval (a i ,min(a i+1 ,L_busbar)) to find the missing carbon slide wear curve. i ∈(R_busbar,a p ), in the interval (a i ,a i+1 ) to find the missing carbon slide wear curve. Let X be the abscissa set of carbon slide wear edge pixels, and Y be the ordinate set of carbon slide wear edge pixels. For each x in X, there is a unique element y in Y corresponding to it. When performing neighborhood search, the next edge pixel is found by traversing the horizontal adjacent pixels.

[0164] When performing pixel tracking, the pixel grayscale value is judged. The specific steps are as follows:

[0165] Let the starting pixel be a k , with coordinates (m,n), a k =a i ;

[0166] Remember a k Pixel a at the three adjacent coordinates (m+1,n+1), (m+1,n), (m+1,n-1) k1 ,a k2 ,a k3 The gray value is grey k1 ,grey k2 ,grey k3 ;

[0167] If grey kmax =grey k1 ,a k+1 =a k1 ,

[0168] If grey kmax <grey k2 ×1.05,grey kmax =grey k2 ×1.05,a k+1 =a k2 ;

[0169] If grey kmax <grey k3 ,grey kmax =grey k3 ,a k+1 =a k3 ;

[0170] a k =a k+1 ,when When the condition is not met, the tracking is terminated. If the condition is not met, repeat step 2;

[0171] Then the wear edge is tracked at the starting point of the wear edge on the right side of the bus to complete the wear curve.

[0172] Since the rest of the carbon slide plate has wear curves, only (R_busbar, a m ) interval to track the wear edge, where a m >R_busbar,a m-1 <R_busbar. At the same time, in order to ensure that there are multiple pixels with the same brightness value in the pixel neighborhood, the pixels in the horizontal neighborhood are preferentially selected based on experience. The specific edge tracking steps are as follows:

[0173] Let the starting pixel be a k , with coordinates (m,n), a k =a m ;

[0174] Remember a k Pixel a at the three adjacent coordinates (m-1,n+1), (m-1,n), (m-1,n-1) k1 ,a k2 ,a k3 The gray value is grey k1 ,grey k2 ,grey k3 ;

[0175] If grey kmax =grey k1 ,a k+1 =a k1 ,

[0176] If grey kmax <grey k2 ×1.05,grey kmax =grey k2 ×1.05,a k+1 =a k2 ;

[0177] If greykmax <grey k3 ,grey kmax =grey k3 ,a k+1 =a k3 ;

[0178] a k =a k+1 ,when If the condition is not met, repeat step 2.

[0179] Step 5: Remove outliers from the wear edge to obtain the final wear edge.

[0180] The obtained wear edge is screened, and the wear edge is segmented according to the distance between the pixels of the wear edge of the carbon slide, and the area deviating from the remaining segments is removed to obtain a complete wear edge. The specific flow chart is as follows Figure 4 As shown in the figure: After the completed edge is split, the shortest edge is found, and the edge length is less than the minimum length. The shortest edge is deleted and the edge tracking is performed again until the worn edge cannot be split or the split edges are all greater than the minimum length. Figure 6 As shown, from top to bottom are the obtained wear edge image, the wear edge image after edge tracking, the last two are images of the outlier screening process, and the last one is the final wear edge image.

[0181] Step 6: Rapid segmentation of carbon skateboards based on historical detection information

[0182] Since the train shakes on the track, there are slight differences in the pictures taken at different times of the same train. First, the pantograph pictures are matched. The image matching steps are as follows:

[0183] Key point extraction: Extract the feature points of the image by using the ORB algorithm. The ORB algorithm is used to extract the feature points of the pantograph image. The first step of the ORB algorithm is to locate all the key points in the target image. Then the key points are described by the corresponding binary feature vectors.

[0184] Key point matching: Use a brute force exhaustive algorithm to find the 20 most similar key points in the key points of the two images. Use the RANSAC algorithm to remove possible "outliers" from the 20 matching key points.

[0185] Image rotation: After obtaining the matching key points, the optimal single mapping transformation matrix H between multiple two-dimensional point pairs is calculated, and then the image is transformed homographically to obtain a pantograph image with the same shaking angle as in the historical detection.

[0186] Carbon slide extraction: The bow head cutting coordinates in the historical detection of this train can be used to quickly obtain the bow head area image in this image, and the carbon slide position coordinates in the historical detection can be referenced to the obtained bow head area image to cut the image.

[0187] Step 7: Edge Quick Update Method

[0188] In this embodiment, the following methods can be used to update the edge of the carbon slide plate:

[0189] Method 1: Extract the worn edge of the cut carbon slide plate through the two-dimensional entropy value of the saved historical image: extract the two-dimensional entropy of the corresponding sliding window in the carbon slide plate corresponding to the train image in list3 through the train number, divide the carbon slide plate image into sliding windows, and use the corresponding two-dimensional entropy value H in the previous detection in the sliding window. The threshold of the Canny operator is set to th low =0.001×H,th high =0.003×H, and the obtained wear edge is subjected to step 4 to obtain the pantograph wear edge result.

[0190] Method 2: Use the coordinates of the carbon slide wear edge obtained from historical detection to quickly extract the carbon slide wear edge: First, take the two fixing screws under the carbon slide bottom plate as the key point coordinates. Since the position of the gasket under the carbon slide bracket may change, if the coordinates of the entire part are considered when selecting the key points, the coordinates will be affected by the link parts. When selecting the coordinates, the intersection of the upper left corner of the bracket and the carbon slide bottom plate is used as the key point, and the carbon slide images of the same train at different times are aligned.

[0191] According to the midline results in the historical detection results, the part above the midline in the carbon skateboard image is removed so that it does not affect the subsequent key point positioning.

[0192] Then, the remaining bottom plate image is subjected to adaptive binarization to separate the carbon skateboard bottom plate from the background image. The noise and holes in the binary image are removed by morphological methods. Then, the width of the bottom plate part is screened. The thickness of the carbon skateboard bottom plate in the binary image is counted, and the bottom plate part with a thickness less than the median of the foreground thickness in the binary image is removed to obtain the incomplete lower edge of the carbon skateboard bottom plate, and then the complete lower edge of the carbon skateboard bottom plate is obtained by curve fitting. The sobel edge detection result of the carbon skateboard image is subjected to adaptive binarization, and the image above the lower edge in the binary image is blackened and then the connected domain is screened to remove the connected domain with a smaller area, and a binary image containing the edges on both sides of the rivet is obtained.

[0193] The inner edge of the two rivets is x l ,x r , then according to the bus position relationship, the rivet position is limited: xl <L_busbar,x r >w img -L_busbar. After finding the two rivets under the bottom plate of the carbon skateboard, match the two carbon skateboard images through the two rivet coordinates of the carbon skateboard. Determine whether they can match based on the relative position of the rivets on the carbon skateboard image in the previous detection process and the carbon skateboard image in this detection. If the relative position difference is large, proceed to steps 3 and 4. If the relative position difference is small, align the two carbon skateboard images by aligning the points.

[0194] The two aligned carbon skateboard images are differentiated and adaptively binarized, and the wear edge is updated according to the difference image. On the binary difference image, the image area from the original wear edge to the h pixel height below it is taken to obtain a binary image with a width equal to the length of the wear edge point coordinate list and a height of h. Only the larger connected domain in the image is retained, and the connected domain skeleton is taken out. The obtained skeleton coordinates are the wear edge that needs to be updated. The detection accuracy of the carbon skateboard wear edge obtained in this way is as follows: Figure 8 , Fig. 9 shown. Figure 8 is the completeness evaluation index F value, Fig. 9 Imp value is the accuracy evaluation index. The algorithm time consumption is shown in Table 1.

[0195] Table 1

[0196]

[0197] Example 4

[0198] Embodiment 4 of the present invention provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium is used to store computer instructions. When the computer instructions are executed by a processor, a method for detecting a worn edge of a carbon slide plate of a train pantograph is implemented. The method includes:

[0199] Processing the obtained carbon skateboard image, and selecting numerical features representing the carbon skateboard image information;

[0200] Based on the numerical characteristics of the carbon slide plate image information, the edge detection algorithm is combined to perform adaptive edge detection to obtain the initial wear edge;

[0201] The obtained initial worn edge is subjected to carbon slide wear edge tracking and outlier screening based on pixel grayscale to obtain the final carbon slide wear edge image.

[0202] Example 5

[0203] Embodiment 5 of the present invention provides a computer program (product), including a computer program, wherein when the computer program is run on one or more processors, the computer program is used to implement a method for detecting a worn edge of a carbon slide plate of a train pantograph, the method comprising:

[0204] Processing the obtained carbon skateboard image, and selecting numerical features representing the carbon skateboard image information;

[0205] Based on the numerical characteristics of the carbon slide plate image information, the edge detection algorithm is combined to perform adaptive edge detection to obtain the initial wear edge;

[0206] The obtained initial worn edge is subjected to carbon slide wear edge tracking and outlier screening based on pixel grayscale to obtain the final carbon slide wear edge image.

[0207] Example 6

[0208] Embodiment 6 of the present invention provides an electronic device, including: a processor, a memory, and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory, so that the electronic device executes instructions for implementing a method for detecting a worn edge of a carbon slide plate of a train pantograph, the method comprising:

[0209] Processing the obtained carbon skateboard image, and selecting numerical features representing the carbon skateboard image information;

[0210] Based on the numerical characteristics of the carbon slide plate image information, the edge detection algorithm is combined to perform adaptive edge detection to obtain the initial wear edge;

[0211] The obtained initial worn edge is subjected to carbon slide wear edge tracking and outlier screening based on pixel grayscale to obtain the final carbon slide wear edge image.

[0212] In summary, the method and system for detecting the worn edge of the carbon slide plate of the vertical car pantograph described in the embodiment of the present invention evaluates the grayscale changes in the worn edge in the area through indicators such as two-dimensional entropy, and adjusts the Canny operator threshold to achieve the purpose of adaptive edge detection. The worn edge is obtained by the fusion of multiple edge detection algorithms, and then a time-consuming detection method is used to fill in the gaps, ensuring that the algorithm has high accuracy while reducing the algorithm time consumption. Taking full account of the grayscale relationship of the pixels on the worn edge of the carbon slide plate, an edge tracking algorithm is performed on the worn edge, and outliers are removed by the distance between the obtained pixels on the worn edge. Consideration is given to using the relationship between the edge grayscale values ​​in the carbon slide plate image and the historical detection parameters, recording the detection parameter information of the pantograph image, and applying the recorded historical parameter information in the subsequent detection process to reduce the detection calculation amount and improve the detection efficiency. Compared with the existing carbon slide wear edge detection method, the method of the present invention can achieve more complete, accurate and rapid carbon slide wear edge detection, reduce the detection time while ensuring the accuracy and completeness of the carbon slide wear edge detection, and provide targeted carbon slide grinding and replacement suggestions for the maintenance department, thereby reducing time and economic costs and improving the reliability of urban rail vehicles. The algorithm of the method is easy to program with relevant software, the calculation is simple, and it is convenient and practical. Therefore, the invention has certain economic and social benefits.

[0213] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0214] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0215] These computer program instructions can also be loaded onto a computer or other programmable data processing device, and a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0216] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative work on the basis of the technical solution disclosed in the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for detecting the wear edge of a carbon slide plate of a train pantograph, characterized in that: include: Processing the obtained carbon skateboard image, and selecting numerical features representing the carbon skateboard image information; Based on the numerical characteristics of the carbon slide plate image information, the edge detection algorithm is combined to perform adaptive edge detection to obtain the initial wear edge; For the initial worn edge obtained, the carbon slide wear edge is tracked and outliers are removed based on the pixel grayscale to obtain the final carbon slide wear edge image; Among them, the two-dimensional entropy-assisted wear edge extraction algorithm extracts the initial wear edge of the carbon slide, including: Sliding window is performed on the carbon slide plate image, and the sliding window size is equivalent to the width of the bus bar, and the area where the bus bar is located is eliminated; The gray value of the pixel in the sliding window of the carbon slide image and the neighborhood information of the pixel constitute a binary group (I i ,I j-vertical ), where I i is the gray value of the middle pixel among three adjacent pixels. If the coordinates of point i are (x, y), then: For each pair (I i ,I j-vertical ) is counted and recorded as f ij-vertical ; The frequency p of each binary pair ij-vertical We can get: p ij-vertical It is one of the comprehensive characteristics of the gray value of the pixel position and the gray distribution of surrounding pixels; The two-dimensional grey entropy formula is: Record the train number and the two-dimensional entropy value in each sliding window of each corresponding carbon slide; The Canny operator is used to detect edges in each sliding window, and the threshold of the Canny operator is set to th. low =0.001×H,th high =0.003×H; after screening the results, the initial carbon slide wear curve results are obtained.

2. The train pantograph carbon slide wear edge detection method according to claim 1, characterized in that: The initial wear edge is extracted based on a combination of multiple edge detection algorithms, including: using the Edge drawing edge detection operator to extract the wear curve of the image, and then using the morphological edge detection algorithm to extract the wear curve, comparing the wear edges obtained by the two algorithms, and when the wear edge detection results of the two algorithms conflict, the wear edge result with a higher value on the vertical axis of the coordinate in the image is used; the wear edge detection algorithm based on two-dimensional entropy is used for the vacant parts to complete the wear edge and obtain the preliminary carbon skateboard wear curve results.

3. The train pantograph carbon slide wear edge detection method according to claim 1, characterized in that: Carbon skateboard wear edge tracking based on pixel grayscale includes: The wear edge pixels with a distance between adjacent pixels greater than 3 pixels are considered as segmentation points, and then the wear edge is tracked to determine whether it is a wear edge pixel based on the gray level of the pixel; If the horizontal coordinates of the left and right boundaries of the busbar in the carbon slide picture are L_busbar and R_busbar respectively, for the obtained carbon slide wear edge point set A={a1,a2,...,a p },for like And i<p, when a i ∈[0,L_busbar), in the interval (a i ,min(a i+1 ,L_busbar)) to find the missing carbon slide wear curve. i ∈(R_busbar,a p ), in the interval (a i ,a i+1 ) to find the missing carbon slide wear curve; let X be the abscissa set of carbon slide wear edge pixels, and Y be the ordinate set of carbon slide wear edge pixels. For each x in X, there is a unique element y in Y corresponding to it. When performing neighborhood retrieval, the next edge pixel is found by traversing the horizontally adjacent pixels.

4. The train pantograph carbon slide plate wear edge detection method according to claim 3, characterized in that: When performing pixel tracking, the pixel grayscale value is judged, including: Let the starting pixel be a k , with coordinates (m,n), a k =a i Remember a k Pixel a at the three adjacent coordinates (m+1,n+1), (m+1,n), (m+1,n-1) k1 ,a k2 ,a k3 The gray value is grey k1 ,grey k2 ,grey k3 ; If grey kmax = grey k1 , a k+1 = a k1 , If grey kmax <grey k2 ×1.05, grey kmax =grey k2 ×1.05, a k+1 =a k2 If grey kmax <grey k3 , grey kmax = grey k3 , a k+1 = a k3 a k =a k+1 ,when The tracking is terminated when the wear edge is reached; then the wear edge is tracked at the starting point of the wear edge on the right side of the busbar to complete the wear curve; Since the rest of the carbon slide plate has wear curves, only (R_busbar, a m ) interval to track the wear edge, where a m >R_busbar,a m-1 <R_busbar.

5. The train pantograph carbon slide plate wear edge detection method according to claim 4, characterized in that: Discrete points are screened out for the worn edge obtained, including: segmenting the completed worn edge according to the distance between adjacent worn edge points, finding the shortest edge, deleting the shortest edge if the edge length is less than the minimum length, and performing edge tracking again until the worn edge cannot be segmented or the segmented edges are all greater than the minimum length.

6. A train pantograph carbon slide wear edge detection system, characterized in that: include: A processing module, used to process the acquired carbon skateboard image and select numerical features representing the carbon skateboard image information; An extraction module is used to perform adaptive edge detection based on the numerical features of the carbon slide plate image information and the edge detection algorithm to obtain the initial wear edge; A tracking and screening module is used to track the carbon slide wear edge and screen out outliers based on the pixel grayscale of the obtained initial wear edge to obtain the final carbon slide wear edge image; Among them, the two-dimensional entropy-assisted wear edge extraction algorithm extracts the initial wear edge of the carbon slide, including: Sliding window is performed on the carbon slide plate image, and the sliding window size is equivalent to the width of the bus bar, and the area where the bus bar is located is eliminated; The gray value of the pixel in the sliding window of the carbon slide image and the neighborhood information of the pixel constitute a binary group (I i ,I j-vertical ), where I i is the gray value of the middle pixel among three adjacent pixels. If the coordinates of point i are (x, y), then: For each pair (I i ,I j-vertical ) is counted and recorded as f ij-vertical ; The frequency p of each binary pair ij-vertical We can get: p ij-vertical It is one of the comprehensive characteristics of the gray value of the pixel position and the gray distribution of surrounding pixels; The two-dimensional grey entropy formula is: Record the train number and the two-dimensional entropy value in each sliding window of each corresponding carbon slide; The Canny operator is used to detect edges in each sliding window, and the threshold of the Canny operator is set to th. low =0.001×H,th high =0.003×H; after screening the results, the initial carbon slide wear curve results are obtained.

7. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium is used to store computer instructions. When the computer instructions are executed by the processor, the method for detecting the worn edge of the carbon slide plate of the train pantograph as described in any one of claims 1-5 is implemented.

8. A computer program product, characterized in that It comprises a computer program, which, when running on one or more processors, is used to implement the method for detecting the worn edge of the carbon slide plate of the train pantograph as described in any one of claims 1-5.

9. An electronic device, characterized in that: include: A processor, a memory and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory so that the electronic device executes instructions for implementing the train pantograph carbon slide wear edge detection method as described in any one of claims 1-5.