Simplified catenary defect detection method based on edge feature angle enhancement

By using a weakly supervised detection network enhanced with edge feature angles, combined with directed part detection and defect detection networks, the shortcomings of manual inspection in simplified contact network defect detection are addressed, achieving efficient and accurate automatic inspection.

CN119048414APending Publication Date: 2024-11-29SHANGHAI RAILWAY BUREAU +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410880809.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

Current simplified contact network defect detection technologies rely on manual inspection, which suffers from long response times, dependence on human experience, and a high risk of false positives and false negatives, making it difficult to guarantee efficiency and accuracy.

Method used

A weakly supervised detection network based on edge feature angle enhancement is adopted. By combining a directed part detection network and a defect detection network with the fusion of horizontal and vertical edge features and regression features, a simplified automatic detection of catenary defects is achieved.

Benefits of technology

It has achieved simplified automatic detection of contact network defects, improved detection accuracy and efficiency, avoided the shortcomings of manual inspection, and more accurately predicted the target direction when the direction of the defect location is variable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119048414A_ABST
    Figure CN119048414A_ABST
Patent Text Reader

Abstract

The invention discloses a simplified contact network defect detection method based on edge feature angle enhancement, and the method employs a weak supervision detection network to obtain directed part detection information of a simplified contact network picture, employs a defect detection network according to the directed part detection information and the picture, and achieves the automatic detection of the defects of the simplified contact network. The problem existing in current manual detection is avoided, the direction information of the edge features is fully utilized, edge feature angle enhancement is performed on the regression features, the predicted bounding box angle result of the picture is obtained according to the enhanced features, and the difficulties that the simplified contact network defect detection data is scarce and the direction of the defect part is changeable are overcome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a simplified contact network defect detection method based on edge feature angle enhancement, and belongs to the technical field of image processing. Background Art

[0002] With the continuous advancement of modern technology, high-speed rail construction is developing day by day. As a key component of the high-speed electrified railway system, the use of simplified contact network has gradually replaced the traditional contact network. However, with the continuous expansion of high-speed rail lines, the complexity of high-speed rail lines is also increasing, which puts higher requirements on maintenance work. The defects and faults that may exist in the operation of high-speed rail, such as bird nests, foreign objects, missing parts, etc., have a serious impact on the safe operation of high-speed rail. Therefore, it is a very necessary task to realize the timely detection of contact network defects. At present, the defect detection of simplified contact network is usually carried out by setting up a camera device to obtain images and manually inspected by analysts. However, this method has problems such as long response time, reliance on manual experience, easy to have false detection and missed detection, and efficiency and accuracy are difficult to guarantee. Summary of the invention

[0003] The present invention provides a simplified contact network defect detection method based on edge feature angle enhancement, which solves the problems disclosed in the background technology.

[0004] According to one aspect of the present disclosure, a simplified contact network defect detection method is provided, comprising: obtaining a picture to be detected; wherein the picture is a simplified contact network picture; based on the picture, using a weakly supervised detection network to obtain directional part detection information of the picture; wherein the weakly supervised detection network performs feature extraction on the picture, respectively using a classification subnetwork and a regression subnetwork to obtain classification features and regression features from picture features, obtain classification and centrality results of the picture based on the classification features, obtain size and position information of a predicted bounding box of the picture based on the regression features, perform edge feature angle enhancement on the regression features, and obtain a predicted bounding box angle result of the picture based on the enhanced features; based on the directional part detection information and the picture, a defect detection network is used to obtain defects of the simplified contact network.

[0005] In some embodiments of the present disclosure, edge feature angle enhancement is performed on the regression feature, including: extracting horizontal edge features and vertical edge features from the regression feature; and fusing the horizontal edge features, vertical edge features and regression features to obtain enhanced features.

[0006] In some embodiments of the present disclosure, horizontal edge features and vertical edge features are extracted from regression features using the formula: ; ; ; ; In the formula, F h and F v are horizontal edge features and vertical edge features respectively, and F reg is the regression feature, Sobel h and Sobel v They are Sobel operators in the horizontal and vertical edge feature directions respectively.

[0007] In some embodiments of the present disclosure, fusion is performed by splicing along the channel dimension, and the enhanced feature formula is obtained as follows: ; ; In the formula, F h and F v are horizontal edge features and vertical edge features respectively, and F reg is the regression feature, F sobel It is the feature after the horizontal edge feature and the vertical edge feature are fused. Dim represents the latitude of splicing. Concat represents splicing along the channel dimension. Conv 3×3 represents a 3×3 convolutional layer, F aai The enhanced features.

[0008] In some embodiments of the present disclosure, the weakly supervised detection network is a branch of the directed part detection network, the directed part detection network also includes a supervised detection network, there is no classification subnetwork in the supervised detection network, and the other structures are consistent with the weakly supervised detection network; when training the directed part detection network, the sample image is input into the weakly supervised detection network, and the randomly rotated sample image is input into the supervised detection network.

[0009] In some embodiments of the present disclosure, a large selective kernel network is used to extract features from images.

[0010] According to another aspect of the present disclosure, a simplified contact network defect detection device is provided, comprising: An acquisition module is used to acquire the image to be detected; wherein the image is a simplified contact network image; The oriented part detection information module uses a weakly supervised detection network to obtain the oriented part detection information of the image according to the image; wherein the weakly supervised detection network extracts features of the image, respectively uses a classification subnetwork and a regression subnetwork to obtain classification features and regression features from the image features, obtains the classification and center results of the image according to the classification features, obtains the size and position information of the predicted bounding box of the image according to the regression features, performs edge feature angle enhancement on the regression features, and obtains the predicted bounding box angle results of the image according to the enhanced features; The defect detection module uses a defect detection network to obtain simplified contact network defects based on directional part detection information and images.

[0011] In some embodiments of the present disclosure, in the weakly supervised detection network of the oriented part detection information module, the edge feature angle enhancement is performed on the regression feature, including: extracting horizontal edge features and vertical edge features from the regression features; fusing the horizontal edge features, vertical edge features and regression features to obtain enhanced features.

[0012] According to another aspect of the present disclosure, a computer-readable storage medium is provided, which stores one or more programs, and the one or more programs include instructions. When the instructions are executed by a computing device, the computing device executes a simplified contact network defect detection method.

[0013] According to another aspect of the present disclosure, a computer device is provided, comprising one or more processors and one or more memories, wherein one or more programs are stored in the one or more memories and are configured to be executed by the one or more processors, and the one or more programs include instructions for executing a simplified contact network defect detection method.

[0014] The beneficial effects achieved by the present invention are as follows: 1. The present invention adopts a weakly supervised detection network to obtain directional part detection information of a simplified contact network image, and adopts a defect detection network based on the directional part detection information and the image to realize automatic detection of simplified contact network defects, thereby avoiding the problems existing in current manual detection; 2. The present invention makes full use of the directional information of edge features, performs edge feature angle enhancement on regression features, and obtains the predicted bounding box angle result of the image based on the enhanced features, thereby overcoming the difficulties of the scarcity of simplified contact network defect detection data and the variable directions of defect parts; 3. The edge feature angle enhancement of the present invention is used for the angle prediction front end of the weakly supervised detection network, and in the enhancement, the horizontal edge features, the vertical edge features and the regression features are integrated, thereby increasing the content of edge information in the channel dimension, thereby helping the weakly supervised detection network to pay more attention to the features that are effective for angle prediction in the angle prediction part, rather than using exactly the same features in position prediction, scale prediction and angle prediction, thereby facilitating more accurate prediction of the direction of the target. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A flow chart to simplify the method of detecting defects in contact lines; Figure 2 It is a schematic diagram of the structure of the directed part detection network; Figure 3 Flowchart for edge feature angle enhancement; Figure 4 The test result diagram for simplifying the method of detecting defects in contact network; Figure 5 The present invention is a flow chart of a simplified contact network defect detection device. DETAILED DESCRIPTION

[0016] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. It is obvious that the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.

[0017] Unless otherwise specified, the relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure.

[0018] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0019] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0020] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0021] It should be noted that similar symbols and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it does not require further discussion in subsequent figures.

[0022] In order to solve the problems existing in manual detection of simplified contact network defects, the present disclosure proposes a simplified contact network defect detection method based on edge feature angle enhancement, which specifically adopts image processing technology to realize automatic detection of simplified contact network defects.

[0023] Figure 1 This is a schematic diagram of an embodiment of a simplified contact network defect detection method disclosed in the present invention. Figure 1 The embodiment may be executed by a server of a railway operation and maintenance system.

[0024] like Figure 1 As shown, step 1 of the embodiment is to obtain a picture to be detected; wherein the picture is a simplified contact network picture.

[0025] It should be noted that the images to be tested here come from the overhead contact network suspension state detection and monitoring device (4C), which is the image taken by the high-definition industrial camera on the high-speed rail overhead contact network operation vehicle, and can implement continuous fixed-point automatic capture imaging of overhead contact network facilities and important parts. Due to the high cost of directed data set annotation and the fact that most data sets use horizontal annotation, the horizontally supervised simplified overhead contact network image is used here. The horizontally supervised simplified overhead contact network image refers to the simplified overhead contact network image whose target annotation method is a horizontal frame.

[0026] return Figure 1 In step 2 of the embodiment, based on the image, a weakly supervised detection network is used to obtain the directional part detection information of the image. The directional part detection information of the image mainly includes the classification and center results of the image, the size and position information of the predicted bounding box of the image, and the predicted bounding box angle result of the image; the weakly supervised detection network extracts features of the image, respectively uses a classification sub-network and a regression sub-network to obtain classification features and regression features from the image features, obtains the classification and center results of the image based on the classification features, obtains the size and position information of the predicted bounding box of the image based on the regression features, performs edge feature angle enhancement on the regression features, and obtains the predicted bounding box angle result of the image based on the enhanced features.

[0027] It should be noted that since the image is annotated with a horizontal box and does not contain a specific direction, direct training using conventional methods cannot allow the model to learn effective angles, that is, directly training a weakly supervised detection network. Therefore, in some embodiments, a two-branch architecture of a weakly supervised detection network and a self-supervised detection network is used. In the weakly supervised detection network, weakly supervised horizontally annotated data is used to learn the category, centrality, and rough scale information of the target, and the self-supervised detection network predicts the angle of the rotated image. The consistency loss between the two network prediction angles is used to learn the specific target direction, so as to achieve the effect of predicting a directed target. This two-branch architecture can obtain more accurate detection results, improve the detection accuracy of narrow and long targets such as insulators, and thus improve the accuracy of defect detection.

[0028] Therefore, in some embodiments, the weakly supervised detection network is a branch of the directed part detection network, and the directed part detection network also includes a supervised detection network. There is no classification subnetwork in the supervised detection network, and the other structures are consistent with the weakly supervised detection network. Figure 2 , train the entire directed part detection network, and use the weakly supervised detection network for detection during detection.

[0029] It should be noted that a simplified overhead line image with horizontal supervision can be collected, the image can be rotated, and both the original image and the rotated image can be used as sample images for training, and the rotated sample images can be input into a supervised detection network.

[0030] It should be noted that the random rotation and reflection filling method can be used to generate the rotated image, which can be as follows: 21) Generate a random rotation angle θ between [-π,π] using random numbers and calculate the rotation matrix R.

[0031] It should be noted that the specific formula of the rotation matrix here is: .

[0032] 22) Use the rotation matrix R to rotate the image. Use reflection filling to fill in the black edges that do not exist in the original image. For pixels that do not have specific values ​​in the original image, use bicubic linear interpolation to calculate the specific values ​​of the unknown pixels to obtain the rotated image.

[0033] The training method of the weakly supervised detection network is weak supervision, that is, the model is trained using a non-fully supervised dataset that does not contain angles.

[0034] like Figure 2 As shown in the figure, the original image and the rotated image are input into the directed part detection network, and the feature map F1 of the original image and the feature map F2 of the rotated image are obtained after feature extraction; F1 is respectively passed through the classification sub-network and the regression sub-network to obtain the classification feature F 11 and regression feature F 12 ; F2 is input into the regression subnetwork to obtain the regression feature F 21 . Classification feature F 11 Through two prediction convolution layers, the center and classification results are obtained. The classification subnetwork is trained directly through the predicted target category (i.e., classification result) and center of the weakly supervised detection network and the category and center of the corresponding position level target in the target dataset.

[0035] Regression feature F 12 and F 21 Through the prediction convolution layer, the size and position information of the predicted bounding box are output; for F 12 and F 21Perform edge feature angle enhancement to obtain the enhanced features, input them into the angle prediction convolution layer, obtain the predicted bounding box angle, and finally obtain the predicted box of the original image by the weak supervision detection network and the predicted box of the rotated image by the self-supervision detection network. Angle training is performed through the consistency loss between the predicted angles of the self-supervision detection network and the predicted angles of the weak supervision detection network. The bounding box is supervised by the intersection-over-union ratio between the external horizontal box of the weak supervision detection network prediction box and the horizontal supervision real box. At the same time, the shape consistency of the predicted box results of the weak supervision detection network and the self-supervision detection network before and after the image is rotated is used for auxiliary supervision.

[0036] The loss function when training the part detection network can be expressed as: ; ; ; Where, L ws and L ss are the consistency losses of the weakly supervised detection network and the self-supervised detection network, respectively. μ1, μ2, μ3 and λ are all hyperparameters used to adjust the weights of different losses. pos represents the number of positive sample points, that is, the sample points whose predicted category is not background, L cls represents the category loss, p (x,y) and c (x,y) Respectively represent the target true category and predicted category at the point (x, y), L cn represents the center loss, Respectively represent the predicted centrality and true centrality at the point (x, y), Represents the true center of the positive sample and the true center at the rotation coordinate (x*, y*), represents the directed box predicted by the weakly supervised detection network at (x, y) and the true horizontal bounding box at (x, y), represents the directed box predicted by the weakly supervised detection network and the directed box predicted by the self-supervised detection network at the rotated image (x*, y*), cn pos represents the positive sample of centrality, and Indicates that the category is not background, L reg represents the regression loss, r2h represents the transformation operation from the directed box to the external horizontal box, and (x*, y*) represents the coordinates of the point (x, y) after the image rotation transformation.

[0037] It should be noted that, in some embodiments, in the weakly supervised detection network and the self-supervised detection network, a large selective kernel network, namely LSKNet, is used to extract features from images. The network includes multiple large selective convolution modules that select convolutions of different sizes. After model training and learning, it is possible to adaptively select convolution kernels of different sizes for different targets according to different situations, thereby obtaining receptive fields of different sizes and achieving the effect of adaptively selecting receptive fields.

[0038] It should be noted that edge feature angle enhancement is to first extract edge features and then fuse the original features with the edge features, making full use of the role of edge information in directional detection angle recognition, which is beneficial to help the network improve the accuracy of angle prediction.

[0039] In some embodiments, Figure 3 As shown, the edge feature angle of the regression feature is enhanced, and the specific process may include: S1) Use the Sobel operator to extract horizontal edge features and vertical edge features from the regression features, which can be expressed as: ; ; ; ; In the formula, F h and F v are horizontal edge features and vertical edge features respectively, and F reg is the regression feature, Sobel h and Sobel v They are Sobel operators in the horizontal and vertical edge feature directions respectively.

[0040] S2) The horizontal edge features, vertical edge features and regression features are fused to obtain enhanced features.

[0041] It should be noted that the fusion here adopts the method of splicing along the channel dimension. Specifically, the horizontal edge features and the vertical edge features can be spliced ​​along the channel latitude to obtain the edge information features, and then the edge information features are further fused in two directions through a convolution layer, and spliced ​​with the regression features along the channel latitude to obtain the enhanced features.

[0042] The formula can be expressed as: ; ; In the formula, F h and F vare horizontal edge features and vertical edge features respectively, and F reg is the regression feature, F sobel It is the feature after the horizontal edge feature and the vertical edge feature are fused. Dim represents the latitude of splicing. Concat represents splicing along the channel dimension. Indicates splicing F according to the second latitude h and F v , Conv 3×3 Represents a 3×3 convolutional layer, which is used to further fuse the transformation from F h and F v The edge information and direction information obtained, F aai The enhanced features.

[0043] By making full use of the directional information of edge features, the edge feature angle is enhanced for the regression features, and the predicted bounding box angle result of the image is obtained based on the enhanced features, thus overcoming the difficulties of scarce data for simplified contact network defect detection and variable directions of defective parts. The edge feature angle enhancement here is used for the angle prediction front end of the weakly supervised detection network, and the horizontal edge features, vertical edge features and regression features are fused in the enhancement, which increases the content of edge information in the channel dimension, helping the weakly supervised detection network to pay more attention to the features that are effective for angle prediction in the angle prediction part, rather than using exactly the same features in position prediction, scale prediction and angle prediction, which is conducive to more accurate prediction of the target direction.

[0044] It should be noted that during detection, the image to be detected is input into the trained weakly supervised detection network. In the network, LSKNet is first used to extract features of the image, and the classification subnetwork and regression subnetwork are used respectively to obtain classification features and regression features from the image features. The classification and centerness results of the image are obtained according to the classification features, and the size and position information of the predicted bounding box of the image is obtained according to the regression features. The edge feature angle of the regression feature is enhanced, and the predicted bounding box angle result of the image is obtained according to the enhanced feature.

[0045] return Figure 1 In step 3 of the embodiment, defects of the simplified contact network are obtained by using a defect detection network based on directional part detection information and images; specifically, the directional part detection information and images are directly input into the defect detection network to obtain defects of the simplified contact network.

[0046] It should be noted that the defect detection network is a target detection network commonly used in defect detection methods, such as yolov8, fcos, etc. The defect detection network includes a backbone network for feature extraction and a detection head for corresponding predicted defect target categories. According to the specific defect detection tasks and requirements, the defect detection network can be appropriately adjusted, such as replacing a better loss function and feature fusion network, adding spatial or channel attention, etc.

[0047] like Figure 4 As shown, the simplified contact network directional part detection in this method can detect targets with specific directions, and can obtain more accurate target positions and boundary information than ordinary horizontal detection methods, thereby providing less background information for the next step of defect detection, and improving the accuracy of defect detection. The simplified contact network defect detection method makes full use of the directional information of edge features, designs an edge feature angle enhancement step, and is used to overcome the difficulties of the scarcity of simplified contact network defect detection data and the variable directions of defect parts, and is combined with weakly supervised directional detection to obtain a network for directional part detection. The regression features of the regression subnetwork are used as the input of edge feature angle enhancement to enrich the angle information, and are combined with the regression features to input the prediction convolution layer to obtain more accurate part information, and then the part information and the target image are input into the subsequent defect detection network to finally obtain the defect detection result, which is suitable for simplified contact network defect detection.

[0048] The above-mentioned simplified contact network defect detection method adopts a weakly supervised detection network to obtain the directional part detection information of the simplified contact network image. According to the directional part detection information and the image, a defect detection network is adopted to realize the automatic detection of simplified contact network defects, thus avoiding the problems existing in the current manual detection.

[0049] Figure 5 This is a schematic diagram of an embodiment of a simplified contact network defect detection device disclosed in the present invention. The device is a virtual device, which can be a software. Figure 1 The embodiments can be loaded and executed by the server of the railway operation and maintenance system.

[0050] The simplified contact network defect detection device specifically includes an acquisition module, a directional position detection information module and a defect detection module.

[0051] The acquisition module of the embodiment is configured to acquire a picture to be detected; wherein the picture is a simplified contact network picture.

[0052] The oriented part detection information module of the embodiment is configured to obtain the oriented part detection information of the image based on the image using a weakly supervised detection network; wherein the weakly supervised detection network performs feature extraction on the image, and respectively uses a classification subnetwork and a regression subnetwork to obtain classification features and regression features from the image features, obtains the classification and centerness results of the image based on the classification features, obtains the size and position information of the predicted bounding box of the image based on the regression features, performs edge feature angle enhancement on the regression features, and obtains the predicted bounding box angle results of the image based on the enhanced features.

[0053] It should be noted that edge feature angle enhancement is to first extract edge features and then fuse the original features with the edge features, making full use of the role of edge information in directional detection angle recognition, which is beneficial to help the network improve the accuracy of angle prediction.

[0054] In the weakly supervised detection network of the oriented part detection information module, the process of enhancing the edge feature angle of the regression feature can be: extracting horizontal edge features and vertical edge features from the regression features; fusing the horizontal edge features, the vertical edge features and the regression features to obtain enhanced features.

[0055] It should be noted that the fusion here adopts the method of splicing along the channel dimension. Specifically, the horizontal edge features and the vertical edge features can be spliced ​​along the channel latitude to obtain the edge information features, and then the edge information features are further fused in two directions through a convolution layer, and spliced ​​with the regression features along the channel latitude to obtain the enhanced features.

[0056] By making full use of the directional information of edge features, the edge feature angle is enhanced for the regression features, and the predicted bounding box angle result of the image is obtained based on the enhanced features, thus overcoming the difficulties of scarce data for simplified contact network defect detection and variable directions of defective parts. The edge feature angle enhancement here is used for the angle prediction front end of the weakly supervised detection network, and the horizontal edge features, vertical edge features and regression features are fused in the enhancement, which increases the content of edge information in the channel dimension, helping the weakly supervised detection network to pay more attention to the features that are effective for angle prediction in the angle prediction part, rather than using exactly the same features in position prediction, scale prediction and angle prediction, which is conducive to more accurate prediction of the target direction.

[0057] The defect detection module of the embodiment is configured to obtain the defects of the simplified contact network using a defect detection network based on directional part detection information and images.

[0058] Similar to the above method, this device makes full use of the directional information of edge features and designs an edge feature angle enhancement step to overcome the difficulties of scarce data and variable directions of defective parts in simplified contact network defect detection. It is combined with weakly supervised directed detection to obtain a network for directed part detection. The regression features of the regression subnetwork are used as input for edge feature angle enhancement to enrich the angle information. The information is combined with the regression features and input into the prediction convolution layer to obtain more accurate part information. The part information and the target image are then input into the subsequent defect detection network to finally obtain the defect detection result, which is suitable for simplified contact network defect detection.

[0059] The device adopts a weakly supervised detection network to obtain the directional part detection information of the simplified contact network image. According to the directional part detection information and the image, a defect detection network is adopted to realize the automatic detection of simplified contact network defects, thus avoiding the problems existing in the current manual detection.

[0060] Based on the same technical solution, the present invention also discloses a computer-readable storage medium, which stores one or more programs, and the one or more programs include instructions. When the instructions are executed by a computing device, the computing device executes a simplified contact network defect detection method.

[0061] Based on the same technical solution, the present invention also discloses a computer device, including one or more processors and one or more memories, one or more programs are stored in the one or more memories and are configured to be executed by one or more processors, and the one or more programs include instructions for executing a simplified contact network defect detection method.

[0062] It will be appreciated by those skilled in the art 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. Furthermore, 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.

[0063] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

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

[0065] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions 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.

[0066] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are included in the scope of the claims of the present invention to be approved.

Claims

1. A simplified contact network defect detection method, characterized in that: include: Obtain the image to be tested; wherein the image is a simplified overhead contact network image; According to the picture, a weakly supervised detection network is used to obtain the directional part detection information of the picture; wherein the weakly supervised detection network extracts features of the picture, and respectively uses a classification sub-network and a regression sub-network to obtain classification features and regression features from the picture features, obtains the classification and center results of the picture according to the classification features, obtains the size and position information of the predicted bounding box of the picture according to the regression features, performs edge feature angle enhancement on the regression features, and obtains the predicted bounding box angle result of the picture according to the enhanced features; According to the directional part detection information and pictures, the defects of the simplified contact network are obtained by using the defect detection network.

2. The simplified contact network defect detection method according to claim 1 is characterized in that: The edge feature angle of the regression feature is enhanced, including: Extracting horizontal edge features and vertical edge features from the regression features; The horizontal edge features, vertical edge features and regression features are fused to obtain enhanced features.

3. The simplified contact network defect detection method according to claim 2, characterized in that: Extract horizontal edge features and vertical edge features from the regression features. The formula is: ; ; ; ; In the formula, F h and F v are horizontal edge features and vertical edge features respectively, and F reg is the regression feature, Sobel h and Sobel v They are Sobel operators in the horizontal and vertical edge feature directions respectively.

4. The simplified contact network defect detection method according to claim 2, characterized in that: The fusion adopts the splicing method along the channel dimension, and the enhanced feature formula is obtained as follows: ; ; In the formula, F h and F v are horizontal edge features and vertical edge features respectively, and F reg is the regression feature, F sobel It is the feature after the horizontal edge feature and the vertical edge feature are fused. Dim represents the latitude of splicing. Concat represents splicing along the channel dimension. Conv 3×3 represents a 3×3 convolutional layer, F aai The enhanced features.

5. The simplified contact network defect detection method according to claim 1, characterized in that: The weakly supervised detection network is a branch of the directed part detection network. The directed part detection network also includes a supervised detection network. There is no classification subnetwork in the supervised detection network, and the other structures are consistent with the weakly supervised detection network. When training the directed part detection network, the sample images are input into the weakly supervised detection network, and the randomly rotated sample images are input into the supervised detection network.

6. The simplified contact network defect detection method according to claim 1 or 5, characterized in that: A large selective kernel network is used to extract features from images.

7. A simplified contact network defect detection device, characterized in that: include: An acquisition module is used to acquire the image to be detected; wherein the image is a simplified contact network image; The oriented part detection information module uses a weakly supervised detection network to obtain the oriented part detection information of the image according to the image; wherein the weakly supervised detection network extracts features of the image, respectively uses a classification subnetwork and a regression subnetwork to obtain classification features and regression features from the image features, obtains the classification and center results of the image according to the classification features, obtains the size and position information of the predicted bounding box of the image according to the regression features, performs edge feature angle enhancement on the regression features, and obtains the predicted bounding box angle results of the image according to the enhanced features; The defect detection module uses a defect detection network to obtain simplified contact network defects based on directional part detection information and images.

8. The simplified contact network defect detection device according to claim 7, characterized in that: In the weakly supervised detection network of the directional part detection information module, the edge feature angle of the regression feature is enhanced, including: Extracting horizontal edge features and vertical edge features from the regression features; The horizontal edge features, vertical edge features and regression features are fused to obtain enhanced features.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, wherein the one or more programs include instructions, and when the instructions are executed by a computing device, the computing device executes any one of the methods described in claims 1 to 6.

10. A computer device, characterized in that: include: One or more processors and one or more memories, one or more programs are stored in the one or more memories and are configured to be executed by the one or more processors, and the one or more programs include instructions for executing any of the methods described in claims 1 to 6.