A method and device for detecting defects in overhead transmission lines

Depth coordinates are calculated through depth separation convolution and gridding parameters to directly determine the defect points of overhead transmission lines, which solves the problem of low detection efficiency in the existing technology and achieves more efficient defect detection.

CN118396981BActive Publication Date: 2024-09-27GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410813849.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-27
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

In the existing technology, the defect detection efficiency of overhead transmission lines is low, and the deep learning model does not match the scenario, resulting in low detection efficiency.

Method used

The depth separation convolution method is used to obtain inspection images of overhead transmission lines, and the defect coordinates of the three-dimensional feature tensor are calculated through grid parameters and preset defect coordinates to directly determine the defect points and avoid relying on cloud deep learning models.

Benefits of technology

The efficiency and accuracy of defect detection of overhead transmission lines are improved, the calculation speed is faster, the detection efficiency is higher, and it does not rely on cloud computing power.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118396981B
    Figure CN118396981B
Patent Text Reader

Abstract

The present invention discloses a method and device for defect detection of overhead power transmission lines, which relates to the field of visible light defect detection, including: obtaining a first detection image of an overhead power transmission line to be detected according to preset gridding parameters; performing multiple depth separation convolutions on the first detection image to obtain a first three-dimensional feature tensor; calculating multiple defect coordinates of the first three-dimensional feature tensor according to the gridding parameters and a preset first defect coordinate determination method, so as to obtain multiple defect points of the first detection image according to the multiple defect coordinates. Different from the prior art, the depth separation convolution used in the present application can improve the defect detection efficiency while maintaining the detection accuracy, and at the same time, by calculating the defect coordinates to determine the defect points instead of directly determining the defect points by the traditional deep learning model, the defect detection efficiency can be improved, so that the present invention can improve the defect detection efficiency of overhead power transmission lines.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of visible light defect detection, and in particular to a visible light defect detection method and device for overhead transmission lines. Background Art

[0002] Due to long-term exposure to extreme weather conditions in the wild, overhead transmission lines may have a series of problems such as rust, damage, and broken strands on their components, such as conductors, hardware, and insulators. In addition, the improper installation of components of overhead transmission lines may also threaten the safe operation of overhead transmission lines. Therefore, it is necessary to pay attention to the operating status of widely distributed overhead transmission lines and to promptly maintain overhead transmission lines with defective components.

[0003] In the prior art, deep learning methods are usually used to detect defects in overhead transmission lines. Existing deep learning defect detection methods usually rely on deep learning models deployed in the cloud, that is, the process is "collecting data - uploading to the cloud - performing inference detection in the cloud - returning detection results in the cloud". The entire prediction process of this defect detection method is completed by the deep learning model in the cloud, which relies on cloud computing power. When the cloud computing power is insufficient, the detection efficiency is low and the real-time performance is poor. At the same time, the deep learning model used in the cloud also has the problem of not matching the scenario of defect detection of overhead transmission lines, resulting in low detection efficiency. Therefore, the technical problem of low detection efficiency of visible light defects in overhead transmission lines still needs to be solved urgently. Summary of the invention

[0004] The present invention provides a method and device for detecting defects of an overhead power transmission line, so as to solve the technical problem that the defect detection efficiency of an overhead power transmission line is low in the prior art.

[0005] According to a first aspect of an embodiment of the present application, there is provided a method for detecting defects in an overhead transmission line, comprising:

[0006] Acquire a first detection image of the overhead power transmission line to be detected according to preset gridding parameters;

[0007] Performing multiple depth separation convolutions on the first detection image to obtain a first three-dimensional feature tensor;

[0008] According to the gridding parameters and a preset first defect coordinate determination method, multiple defect coordinates of the first three-dimensional feature tensor are calculated to obtain multiple defect points of the first detection image according to the multiple defect coordinates.

[0009] In this way, the first detection image of the overhead transmission line to be detected is obtained according to the preset gridding parameters, and then the first detection image is subjected to multiple depth separation convolutions to obtain the first three-dimensional feature tensor. Different from the traditional convolution used in the prior art, the depth separation convolution used in this application has a faster operation speed and the accuracy is equivalent to that of the traditional convolution, which can effectively improve the efficiency of defect detection; then, according to the gridding parameters and the first defect coordinate determination method, multiple defect coordinates of the first three-dimensional feature tensor are calculated, and then multiple defect points of the first detection image are obtained correspondingly. Different from the prior art that directly obtains defect points through a deep learning model, this application is based on the first three-dimensional tensor obtained by deep separation convolution, and the defect points are obtained by calculating the defect coordinates. The defect points are determined directly using mathematical methods rather than deep learning models, which has a faster operation speed, higher efficiency, and no decrease in detection accuracy. Therefore, this application can improve the efficiency of defect detection of overhead transmission lines.

[0010] In some embodiments of the present application, the step of acquiring a first detection image of the overhead power transmission line to be detected according to a preset gridding parameter specifically includes:

[0011] Acquire a real-life image of an overhead power transmission line to be inspected;

[0012] The real scene image is gridded according to the gridding parameters to obtain a first detection image.

[0013] In this way, a real-life image of the overhead transmission line to be inspected is first obtained, and then the real-life image is gridded to obtain a first inspection image. Based on the regional characteristics of the defect, the real-life image can be divided into multiple grids, so that a more accurate three-dimensional feature tensor can be obtained according to the regional characteristics of the defect when performing deep separation convolution on the first inspection image.

[0014] In some embodiments of the present application, performing multiple depth separation convolutions on the first detection image to obtain a first three-dimensional feature tensor specifically includes:

[0015] According to a preset feature conversion method, the first detection image is converted into a first feature vector;

[0016] Inputting the first feature vector into a plurality of preset convolution detection blocks, and obtaining a first three-dimensional feature tensor through depth separation convolution;

[0017] Among them, multiple convolution detection blocks are connected end to end, and the output of the previous convolution detection block is used as the input of the next convolution detection block; the input of the starting convolution detection block is the first feature vector, and the output of the ending convolution detection block is the first three-dimensional feature tensor; in each convolution detection block, the input features are first grouped according to a preset number of channels to obtain multiple groups of channel features, and the multiple groups of channel features are subjected to deep separation convolution to obtain multiple groups of channel feature maps corresponding to the multiple groups of channel features, and then the multiple groups of channel feature maps are rearranged in sequence according to a preset method and the aggregated results are used as the output result of the current convolution detection block.

[0018] In this way, feature conversion is performed first, and then deep separation convolution is performed through multiple convolution detection blocks. In each convolution detection block, the input features are grouped into multiple groups of channel features and convolution is performed in groups. After the convolution is completed, the channel feature maps of multiple groups completed by convolution are rearranged and aggregated in sequence. This allows the channels to interact while maintaining the operating speed of the deep separation convolution, thereby maintaining the detection accuracy.

[0019] In some embodiments of the present application, the method of determining the first defect coordinates according to the gridding parameters and the preset method of determining the first defect coordinates calculates the multiple defect coordinates of the first three-dimensional feature tensor, so as to obtain the multiple defect points of the first detection image according to the multiple defect coordinates, specifically including:

[0020] Dividing the first three-dimensional feature tensor according to a preset first dimension division method to obtain a plurality of two-dimensional feature tensors;

[0021] According to the gridding parameters and the first defect coordinate determination method, a plurality of defect coordinates corresponding to the plurality of two-dimensional feature tensors are calculated respectively, so as to obtain a plurality of defect points of the first detection image according to the plurality of defect coordinates.

[0022] In this way, the first three-dimensional feature tensor is first divided into multiple two-dimensional feature tensors, which can convert the defect coordinate determination problem in three-dimensional space into the defect coordinate determination problem in multiple two-dimensional spaces, reducing the dimension and thus reducing the difficulty of defect coordinate determination. Then, based on the gridding parameters, the multiple defect coordinates corresponding to the multiple two-dimensional feature tensors are calculated respectively, and then the corresponding multiple defect points are obtained. Compared with using a deep learning model, the calculation is faster and can maintain the detection accuracy.

[0023] In some embodiments of the present application, the method of respectively calculating the multiple defect coordinates corresponding to the multiple two-dimensional feature tensors according to the gridding parameters and the first defect coordinate determination method, so as to obtain the multiple defect points of the first detection image according to the multiple defect coordinates, specifically includes:

[0024] arbitrarily selecting a two-dimensional feature tensor as the current two-dimensional feature tensor, and calculating a single defect coordinate corresponding to the current two-dimensional feature tensor according to the gridding parameter and the first defect coordinate determination method, until the multiple two-dimensional feature tensors are selected;

[0025] Output a plurality of defect coordinates corresponding to the plurality of two-dimensional feature tensors to obtain a plurality of defect points of the first detection image according to the plurality of defect coordinates.

[0026] In some embodiments of the present application, calculating the single defect coordinate corresponding to the current two-dimensional feature tensor according to the gridding parameter and the first defect coordinate determination method specifically includes:

[0027] Based on the gridding parameter, obtaining a first feature column vector according to the current two-dimensional feature tensor;

[0028] According to the first defect coordinate determination method, the first defect feature of each element in the first feature column vector is calculated, and the elements whose first defect features in the first feature column vector are greater than a preset threshold are eliminated to obtain a second feature column vector;

[0029] The mean of the abscissa and the mean of the ordinate of all elements in the second characteristic column vector are used as the abscissa and the ordinate of the first defect coordinate, and the first defect coordinate is output.

[0030] In this way, the current two-dimensional feature tensor is operated based on the gridding parameters to obtain the first feature column vector, and then the first defect feature of each element in the first feature column vector is calculated, and the elements of the first feature column vector are screened according to the first defect feature to obtain the second feature column vector. This can screen out abnormal points and improve detection accuracy. Then, the mean of the horizontal coordinates and the mean of the vertical coordinates of all elements in the second feature column vector are used as the horizontal coordinate and the vertical coordinate of the first defect coordinate. The error of the first defect coordinate can be reduced through the mean, thereby improving detection accuracy.

[0031] In some implementations of the present application, obtaining the first feature column vector based on the gridding parameter and the current two-dimensional feature tensor specifically includes:

[0032] According to the gridding parameter, the current two-dimensional feature tensor is divided into a plurality of first feature row vectors;

[0033] Normalizing the plurality of first characteristic row vectors respectively, and applying a preset characteristic coordinate determination method to the plurality of normalized first characteristic row vectors respectively, to obtain a plurality of characteristic coordinates corresponding to the plurality of first characteristic row vectors;

[0034] The characteristic coordinate determination method is specifically as follows: calculating a plurality of first desired features corresponding to all elements in the current first characteristic row vector; taking the coordinates of the element with the largest first desired feature as the characteristic coordinates of the current first characteristic row vector;

[0035] The multiple feature coordinates are combined to obtain a first column vector of the current two-dimensional feature tensor.

[0036] In this way, the current two-dimensional feature tensor is first divided into multiple first feature row vectors based on the gridding parameters, which can divide the problem more finely into each first feature row vector, and then normalize them respectively. According to the first expected features of each element of the normalized multiple first feature row vectors, the multiple feature coordinates corresponding to the multiple first feature row vectors are calculated. In this way, the feature coordinates are determined based on the first expected features, which can reduce errors and improve detection accuracy.

[0037] According to a second aspect of the embodiments of the present application, there is provided an overhead power line defect detection device, comprising an image acquisition module, an image convolution module and a defect determination module;

[0038] The image acquisition module is used to acquire a first detection image of the overhead power transmission line to be detected according to preset grid parameters;

[0039] The image convolution module is used to perform multiple depth separation convolutions on the first detection image to obtain a first three-dimensional feature tensor;

[0040] The defect determination module is used to calculate multiple defect coordinates of the first three-dimensional feature tensor according to the gridding parameters and a preset first defect coordinate determination method, so as to obtain multiple defect points of the first detection image according to the multiple defect coordinates.

[0041] In some embodiments of the present application, the image acquisition module includes a real scene acquisition submodule and an image gridding submodule;

[0042] The real scene acquisition submodule is used to acquire a real scene image of the overhead power transmission line to be detected;

[0043] The image gridding submodule is used to grid the real scene image according to the gridding parameters to obtain a first detection image.

[0044] In some embodiments of the present application, the image convolution module includes a feature conversion submodule and a depth convolution submodule;

[0045] The feature conversion submodule is used to convert the first detection image into a first feature vector according to a preset feature conversion method;

[0046] The depth convolution submodule is used to input the first feature vector into a plurality of preset convolution detection blocks, and obtain a first three-dimensional feature tensor through depth separation convolution;

[0047] Among them, multiple convolution detection blocks are connected end to end, and the output of the previous convolution detection block is used as the input of the next convolution detection block; the input of the starting convolution detection block is the first feature vector, and the output of the ending convolution detection block is the first three-dimensional feature tensor; in each convolution detection block, the input features are first grouped according to a preset number of channels to obtain multiple groups of channel features, and the multiple groups of channel features are subjected to deep separation convolution to obtain multiple groups of channel feature maps corresponding to the multiple groups of channel features, and then the multiple groups of channel feature maps are rearranged in sequence according to a preset method and the aggregated results are used as the output result of the current convolution detection block.

[0048] In some embodiments of the present application, the defect determination module includes a three-dimensional segmentation submodule and a defect determination submodule;

[0049] The three-dimensional division submodule is used to divide the first three-dimensional feature tensor according to a preset first dimension division method to obtain a plurality of two-dimensional feature tensors;

[0050] The defect determination submodule is used to calculate the multiple defect coordinates corresponding to the multiple two-dimensional feature tensors according to the gridding parameters and the first defect coordinate determination method, so as to obtain the multiple defect points of the first detection image according to the multiple defect coordinates.

[0051] In some embodiments of the present application, the defect determination submodule includes a defect calculation unit and a coordinate output unit;

[0052] The defect calculation unit is used to arbitrarily select a two-dimensional feature tensor as the current two-dimensional feature tensor, and calculate a single defect coordinate corresponding to the current two-dimensional feature tensor according to the gridding parameter and the first defect coordinate determination method, until the multiple two-dimensional feature tensors are selected;

[0053] The coordinate output unit is used to output a plurality of defect coordinates corresponding to the plurality of two-dimensional feature tensors, so as to obtain a plurality of defect points of the first detection image according to the plurality of defect coordinates.

[0054] In some embodiments of the present application, the defect calculation unit includes a first column vector acquisition subunit, a second column vector acquisition subunit, and a coordinate calculation output subunit;

[0055] The first column vector acquisition subunit is used to obtain a first feature column vector according to the current two-dimensional feature tensor based on the gridding parameter;

[0056] The second column vector acquisition subunit is used to calculate the first defect feature of each element in the first feature column vector according to the first defect coordinate determination method, and remove the elements in the first feature column vector whose first defect feature is greater than a preset threshold, so as to obtain a second feature column vector;

[0057] The coordinate calculation output subunit is used to use the mean of the horizontal coordinates and the mean of the vertical coordinates of all elements in the second characteristic column vector as the horizontal coordinate and the vertical coordinate of the first defect coordinate, and output the first defect coordinate.

[0058] In some embodiments of the present application, the first column vector acquisition subunit includes a two-dimensional tensor partitioning component, a feature coordinate calculation component, and a feature coordinate combination component;

[0059] The two-dimensional tensor division component is used to divide the current two-dimensional feature tensor into a plurality of first feature row vectors according to the gridding parameter;

[0060] The feature coordinate calculation component is used to normalize the multiple first feature row vectors respectively, and apply a preset feature coordinate determination method to the multiple normalized first feature row vectors respectively to obtain multiple feature coordinates corresponding to the multiple first feature row vectors;

[0061] The characteristic coordinate determination method is specifically as follows: calculating a plurality of first desired features corresponding to all elements in the current first characteristic row vector; taking the coordinates of the element with the largest first desired feature as the characteristic coordinates of the current first characteristic row vector;

[0062] The feature coordinate combination component is used to combine the multiple feature coordinates to obtain the first column vector of the current two-dimensional feature tensor.

[0063] In this way, the first detection image of the overhead transmission line to be detected is obtained according to the preset gridding parameters, and then the first detection image is subjected to multiple depth separation convolutions to obtain the first three-dimensional feature tensor. Different from the traditional convolution used in the prior art, the depth separation convolution used in this application has a faster operation speed and the accuracy is equivalent to that of the traditional convolution, which can effectively improve the efficiency of defect detection; then, according to the gridding parameters and the first defect coordinate determination method, multiple defect coordinates of the first three-dimensional feature tensor are calculated, and then multiple defect points of the first detection image are obtained correspondingly. Different from the prior art that directly obtains defect points through a deep learning model, this application is based on the first three-dimensional tensor obtained by deep separation convolution, and the defect points are obtained by calculating the defect coordinates. The defect points are determined directly using mathematical methods rather than deep learning models, which has a faster operation speed, higher efficiency, and no decrease in detection accuracy. Therefore, this application can improve the efficiency of defect detection of overhead transmission lines. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 : is a flow chart showing a method for detecting defects in an overhead transmission line in an embodiment of the present application;

[0065] Figure 2 : is a module structure diagram of a defect detection device for an overhead transmission line in an embodiment of the present application;

[0066] Figure 3 : is a schematic diagram of the network structure of a feature extraction network shown in an implementation manner of the present application. DETAILED DESCRIPTION

[0067] The following will be combined with the drawings of the embodiments of the present application to clearly and completely describe the technical solutions of the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments shown in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0068] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, unless otherwise clearly and specifically defined, "multiple" and "several" mean two or more.

[0069] When overhead transmission lines are exposed to extreme weather conditions in the wild for a long time, their components may have a series of defects such as rust and breakage, which may lead to problems with the overhead transmission lines and bring safety hazards. Therefore, it is necessary to pay attention to the operating status of overhead transmission lines and promptly detect defects in overhead transmission lines through visible light inspections for timely maintenance.

[0070] Visible light inspection refers to the use of visible light equipment such as image stabilizers, cameras and / or video cameras to inspect the power line body, auxiliary facilities and line corridors during power line inspection to record images of relevant visible light defects. After obtaining relevant information about visible light defects, relevant visible light defect detection methods can be used to detect the places in the corresponding power lines that may cause defects, so as to promptly discover the defects of the power lines and perform maintenance in a timely manner.

[0071] In the prior art, deep learning methods are usually preferred for defect detection of overhead power transmission lines. This method deploys the deep learning model in the cloud and is extremely dependent on interaction with cloud servers. When the cloud computing power is insufficient or there are difficulties in interacting with the cloud, the detection efficiency of this method will gradually decrease, and it will lose its real-time advantage. In addition, in the existing deep learning defect detection methods, there are technical difficulties that cannot match the scenario of defect detection of overhead power transmission lines, resulting in low efficiency of traditional deep learning models in defect detection of overhead power transmission lines.

[0072] Based on the above technical background, this application proposes a defect detection method for overhead transmission lines, see Figure 1 , is a flow chart of a defect detection method for an overhead transmission line provided in the present application, including steps S101 to S103, each of which is specifically as follows:

[0073] Step S101: acquiring a first detection image of an overhead power transmission line to be detected according to preset gridding parameters.

[0074] In some embodiments of the present application, the step of acquiring a first detection image of the overhead power transmission line to be detected according to a preset gridding parameter specifically includes:

[0075] Acquire a real-life image of an overhead power transmission line to be inspected;

[0076] The real scene image is gridded according to the gridding parameters to obtain a first detection image.

[0077] In this way, a real-life image of the overhead transmission line to be inspected is first obtained, and then the real-life image is gridded to obtain a first inspection image. Based on the regional characteristics of the defect, the real-life image can be divided into multiple grids, so that a more accurate three-dimensional feature tensor can be obtained according to the regional characteristics of the defect when performing deep separation convolution on the first inspection image.

[0078] Step S102: performing multiple depth separation convolutions on the first detection image to obtain a first three-dimensional feature tensor.

[0079] In some embodiments of the present application, performing multiple depth separation convolutions on the first detection image to obtain a first three-dimensional feature tensor specifically includes:

[0080] According to a preset feature conversion method, the first detection image is converted into a first feature vector;

[0081] Inputting the first feature vector into a plurality of preset convolution detection blocks, and obtaining a first three-dimensional feature tensor through depth separation convolution;

[0082] Among them, multiple convolution detection blocks are connected end to end, and the output of the previous convolution detection block is used as the input of the next convolution detection block; the input of the starting convolution detection block is the first feature vector, and the output of the ending convolution detection block is the first three-dimensional feature tensor; in each convolution detection block, the input features are first grouped according to a preset number of channels to obtain multiple groups of channel features, and the multiple groups of channel features are subjected to deep separation convolution to obtain multiple groups of channel feature maps corresponding to the multiple groups of channel features, and then the multiple groups of channel feature maps are rearranged in sequence according to a preset method and the aggregated results are used as the output result of the current convolution detection block.

[0083] In some optional implementations of the present application, when performing multiple depth separation convolutions on the first detection image to obtain the first three-dimensional feature vector, it is necessary to use the trained deep learning model as the feature extraction network, see Figure 3 , which is a schematic diagram of the network structure of a feature extraction network provided by the present application; wherein, “input image” means “input first feature vector”, “output feature” means “output first three-dimensional feature tensor”; “depth-separable convolution” means “depth-separable convolution”, “1×1 convolution” means that the convolution kernel size of the current convolution layer is 1×1, and “N” means the number of convolution detection blocks;

[0084] In each convolution detection block, the specific structure is as follows:

[0085] The input features are grouped according to the preset number of channels to obtain multiple groups of channel features;

[0086] Performing deep separation convolution on multiple groups of channel features respectively to obtain multiple groups of channel feature maps corresponding to the multiple groups of channel features;

[0087] Merge multiple groups of channel feature maps according to channels to obtain merged channel features;

[0088] Through the channel interaction layer, the channel feature maps in the merged channel features are rearranged and aggregated, and the result obtained after aggregation is used as the output result of the current convolution detection block;

[0089] The channel feature maps in the merged channel features are sequentially rearranged and aggregated, and the result obtained after aggregation is used as the output result of the current convolution detection block, specifically:

[0090] According to a preset number of groups, the merged channel features are grouped to obtain multiple groups of second channel features;

[0091] Rearranging the channel feature maps in each group of second channel features in order within the group to obtain multiple groups of third channel features;

[0092] The result obtained by aggregating multiple groups of third channel features is used as the output result of the current convolution detection block.

[0093] In this way, feature conversion is performed first, and then deep separation convolution is performed through multiple convolution detection blocks. In each convolution detection block, the input features are grouped into multiple groups of channel features and convolution is performed in groups. After the convolution is completed, the channel feature maps of multiple groups completed by convolution are rearranged and aggregated in sequence. This allows the channels to interact while maintaining the operating speed of the deep separation convolution, thereby maintaining the detection accuracy.

[0094] In some optional implementations of the present application, after the training of the feature extraction network is completed, the feature extraction network further includes:

[0095] Based on a preset model conversion middleware, converting the trait extraction network from a first format to a second format; wherein the second format is an optimizable editable format;

[0096] Analyze and optimize the converted trait extraction network to obtain an optimized trait extraction network;

[0097] Based on the model conversion middleware, the optimized trait extraction network is converted from the second format to the third format.

[0098] In some optional embodiments of the present application, the converted trait extraction network is analyzed and optimized to obtain an optimized trait extraction network, specifically;

[0099] Analyze the nodes, edges, constants and the relationship between them in the converted feature extraction network to obtain a first analysis result;

[0100] According to the first analysis result, optimizing the converted trait extraction network to obtain an optimized trait extraction network;

[0101] According to the first analysis result, the converted feature extraction network is optimized, specifically:

[0102] According to the first analysis result, delete redundant nodes and edges connected to the redundant nodes;

[0103] According to the first analysis result, merging consecutive linear operation nodes into a single operation node;

[0104] According to the first analysis result, directly calculating the constant and the node connected to the constant, and using the calculation result as a new operation node to achieve constant folding;

[0105] According to the first analysis result, a plurality of consecutive constant operation nodes are merged into a single constant operation node.

[0106] Exemplarily, the first format is specifically: torch format; the second format is preferably: ONNX format; the third format is preferably: NCNN format.

[0107] By converting the feature extraction network in this way, it is possible to realize the mobile terminal deployment of the feature extraction network; by optimizing the feature extraction network, the operation speed of the deep separation convolution can be further improved, thereby improving the efficiency of defect detection.

[0108] Step S103: According to the gridding parameters and a preset first defect coordinate determination method, multiple defect coordinates of the first three-dimensional feature tensor are calculated to obtain multiple defect points of the first detection image according to the multiple defect coordinates.

[0109] In some embodiments of the present application, the method of determining the first defect coordinates according to the gridding parameters and the preset method of determining the first defect coordinates calculates the multiple defect coordinates of the first three-dimensional feature tensor, so as to obtain the multiple defect points of the first detection image according to the multiple defect coordinates, specifically including:

[0110] Dividing the first three-dimensional feature tensor according to a preset first dimension division method to obtain a plurality of two-dimensional feature tensors;

[0111] According to the gridding parameters and the first defect coordinate determination method, a plurality of defect coordinates corresponding to the plurality of two-dimensional feature tensors are calculated respectively, so as to obtain a plurality of defect points of the first detection image according to the plurality of defect coordinates.

[0112] In some optional implementations of the present application, the first three-dimensional feature tensor is divided according to a preset first dimension division method to obtain multiple two-dimensional feature tensors, specifically:

[0113] Obtaining categories and lengths of three dimensions of the first three-dimensional feature tensor;

[0114] Based on the categories of the three dimensions mentioned, the first dimension category of the current study was selected;

[0115] The first three-dimensional feature tensor is divided into multiple two-dimensional feature tensors according to the length of the dimension corresponding to the first dimensional category.

[0116] Exemplarily, the first three-dimensional feature tensor is recorded as ;in, are the lengths of the three dimensions respectively; The dimension category is the first dimension category. Divide into Two-dimensional feature tensors; each of which has a size of .

[0117] It should be understood that The value of should be determined by the actual research problem. In this application, The specific value of can be determined by the actual number of overhead transmission lines that need to be detected.

[0118] It should be understood that The value of should be determined by the actual research problem. In this application, The preferred value of is 18,200.

[0119] In this way, the first three-dimensional feature tensor is first divided into multiple two-dimensional feature tensors, which can convert the defect coordinate determination problem in three-dimensional space into the defect coordinate determination problem in multiple two-dimensional spaces, reducing the dimension and thus reducing the difficulty of defect coordinate determination. Then, based on the gridding parameters, the multiple defect coordinates corresponding to the multiple two-dimensional feature tensors are calculated respectively, and then the corresponding multiple defect points are obtained. Compared with using a deep learning model, the calculation is faster and can maintain the detection accuracy.

[0120] In some embodiments of the present application, the method of respectively calculating the multiple defect coordinates corresponding to the multiple two-dimensional feature tensors according to the gridding parameters and the first defect coordinate determination method, so as to obtain the multiple defect points of the first detection image according to the multiple defect coordinates, specifically includes:

[0121] arbitrarily selecting a two-dimensional feature tensor as the current two-dimensional feature tensor, and calculating a single defect coordinate corresponding to the current two-dimensional feature tensor according to the gridding parameter and the first defect coordinate determination method, until the multiple two-dimensional feature tensors are selected;

[0122] Output a plurality of defect coordinates corresponding to the plurality of two-dimensional feature tensors to obtain a plurality of defect points of the first detection image according to the plurality of defect coordinates.

[0123] In some embodiments of the present application, calculating the single defect coordinate corresponding to the current two-dimensional feature tensor according to the gridding parameter and the first defect coordinate determination method specifically includes:

[0124] Based on the gridding parameter, obtaining a first feature column vector according to the current two-dimensional feature tensor;

[0125] According to the first defect coordinate determination method, the first defect feature of each element in the first feature column vector is calculated, and the elements whose first defect features in the first feature column vector are greater than a preset threshold are eliminated to obtain a second feature column vector;

[0126] The mean of the abscissa and the mean of the ordinate of all elements in the second characteristic column vector are used as the abscissa and the ordinate of the first defect coordinate, and the first defect coordinate is output.

[0127] In this way, the current two-dimensional feature tensor is operated based on the gridding parameters to obtain the first feature column vector, and then the first defect feature of each element in the first feature column vector is calculated, and the elements of the first feature column vector are screened according to the first defect feature to obtain the second feature column vector. This can screen out abnormal points and improve detection accuracy. Then, the mean of the horizontal coordinates and the mean of the vertical coordinates of all elements in the second feature column vector are used as the horizontal coordinate and the vertical coordinate of the first defect coordinate. The error of the first defect coordinate can be reduced through the mean, thereby improving detection accuracy.

[0128] In some implementations of the present application, obtaining the first feature column vector based on the gridding parameter and the current two-dimensional feature tensor specifically includes:

[0129] According to the gridding parameter, the current two-dimensional feature tensor is divided into a plurality of first feature row vectors;

[0130] Normalizing the plurality of first characteristic row vectors respectively, and applying a preset characteristic coordinate determination method to the plurality of normalized first characteristic row vectors respectively, to obtain a plurality of characteristic coordinates corresponding to the plurality of first characteristic row vectors;

[0131] The characteristic coordinate determination method is specifically as follows: calculating a plurality of first desired features corresponding to all elements in the current first characteristic row vector; taking the coordinates of the element with the largest first desired feature as the characteristic coordinates of the current first characteristic row vector;

[0132] The multiple feature coordinates are combined to obtain a first column vector of the current two-dimensional feature tensor.

[0133] In some optional implementations of the present application, the method for determining the feature coordinates is specifically as follows:

[0134] Calculate a plurality of first expected features corresponding to all elements in the current first feature row vector;

[0135] The first desired characteristic , specifically:

[0136] ;

[0137] in, is the first eigenrow vector of the current The value of the element, is the sum of the element values ​​of all elements of the current first eigenrow vector;

[0138] The coordinates of the element with the largest first expected feature are used as the feature coordinates of the current first feature row vector.

[0139] In some optional embodiments of the present application, the coordinates of the element with the largest first desired feature are used as the feature coordinates of the current first feature row vector, specifically;

[0140] The element with the largest first expected feature is recorded as ,but ;

[0141] in, Indicates that the current first eigenvector is in the first eigenvector of the current two-dimensional eigentensor. OK, The grid width and the second dimension of the current two-dimensional feature tensor are The pixel size of Express Round down.

[0142] In some optional implementations of the present application, the first defect feature of each element in the first feature column vector is calculated according to the first defect coordinate determination method, and the elements in the first feature column vector whose first defect feature is greater than a preset threshold are removed to obtain a second feature column vector, specifically:

[0143] Calculating a first defect feature of each element in the first feature column vector;

[0144] The first defect characteristic ,for:

[0145] ;

[0146] in, is the first eigenvalue vector No. elements, are the mean and standard deviation of all elements of the first eigenvalue vector, respectively.

[0147] The elements of the first defect feature in the first feature column vector that are greater than a preset threshold are removed to obtain a second feature column vector.

[0148] In this way, the current two-dimensional feature tensor is first divided into multiple first feature row vectors based on the gridding parameters, which can divide the problem more finely into each first feature row vector, and then normalize them respectively. According to the first expected features of each element of the normalized multiple first feature row vectors, the multiple feature coordinates corresponding to the multiple first feature row vectors are calculated. In this way, the feature coordinates are determined based on the first expected features, which can reduce errors and improve detection accuracy.

[0149] The present application first obtains the first detection image of the overhead power transmission line to be detected according to the preset gridding parameters, and then performs multiple depth separation convolutions on the first detection image to obtain the first three-dimensional feature tensor. Different from the traditional convolution used in the prior art, the depth separation convolution used in the present application has a faster operation speed and the accuracy is equivalent to the traditional convolution, which can effectively improve the efficiency of defect detection; then, according to the gridding parameters and the first defect coordinate determination method, multiple defect coordinates of the first three-dimensional feature tensor are calculated, and then multiple defect points of the first detection image are obtained correspondingly. Different from the prior art that directly obtains defect points through a deep learning model, the present application is based on the first three-dimensional tensor obtained by deep separation convolution, and the defect points are obtained by calculating the defect coordinates. The defect points are determined directly using mathematical methods instead of deep learning models, which has a faster operation speed, higher efficiency, and no decrease in detection accuracy. Therefore, the present application can improve the efficiency of defect detection of overhead power transmission lines.

[0150] Corresponding to the above method, according to the second aspect of the implementation of the present application, see Figure 2 , is a defect detection device for an overhead power transmission line provided in the present application, comprising an image acquisition module 210, an image convolution module 220 and a defect determination module 230;

[0151] The image acquisition module 210 is used to acquire a first detection image of the overhead power transmission line to be detected according to preset grid parameters;

[0152] The image convolution module 220 is used to perform multiple depth separation convolutions on the first detection image to obtain a first three-dimensional feature tensor;

[0153] The defect determination module 230 is used to calculate multiple defect coordinates of the first three-dimensional feature tensor according to the gridding parameters and a preset first defect coordinate determination method, so as to obtain multiple defect points of the first detection image according to the multiple defect coordinates.

[0154] In some embodiments of the present application, the image acquisition module 210 includes a real scene acquisition submodule 211 and an image gridding submodule 212;

[0155] The real scene acquisition submodule 211 is used to acquire a real scene image of the overhead power transmission line to be detected;

[0156] The image gridding submodule 212 is used to grid the real scene image according to the gridding parameters to obtain a first detection image.

[0157] In some embodiments of the present application, the image convolution module 220 includes a feature conversion submodule 221 and a depth convolution submodule 222;

[0158] The feature conversion submodule 221 is used to convert the first detection image into a first feature vector according to a preset feature conversion method;

[0159] The depth convolution submodule 222 is used to input the first feature vector into a plurality of preset convolution detection blocks, and obtain a first three-dimensional feature tensor through depth separation convolution;

[0160] Among them, multiple convolution detection blocks are connected end to end, and the output of the previous convolution detection block is used as the input of the next convolution detection block; the input of the starting convolution detection block is the first feature vector, and the output of the ending convolution detection block is the first three-dimensional feature tensor; in each convolution detection block, the input features are first grouped according to a preset number of channels to obtain multiple groups of channel features, and the multiple groups of channel features are subjected to deep separation convolution to obtain multiple groups of channel feature maps corresponding to the multiple groups of channel features, and then the multiple groups of channel feature maps are rearranged in sequence according to a preset method and the aggregated results are used as the output result of the current convolution detection block.

[0161] In some embodiments of the present application, the defect determination module 230 includes a three-dimensional segmentation submodule 231 and a defect determination submodule 232;

[0162] The three-dimensional division submodule 231 is used to divide the first three-dimensional feature tensor according to a preset first dimension division method to obtain a plurality of two-dimensional feature tensors;

[0163] The defect determination submodule 232 is used to calculate the multiple defect coordinates corresponding to the multiple two-dimensional feature tensors according to the gridding parameters and the first defect coordinate determination method, so as to obtain the multiple defect points of the first detection image according to the multiple defect coordinates.

[0164] In some embodiments of the present application, the defect determination submodule includes a defect calculation unit and a coordinate output unit;

[0165] The defect calculation unit is used to arbitrarily select a two-dimensional feature tensor as the current two-dimensional feature tensor, and calculate a single defect coordinate corresponding to the current two-dimensional feature tensor according to the gridding parameter and the first defect coordinate determination method, until the multiple two-dimensional feature tensors are selected;

[0166] The coordinate output unit is used to output a plurality of defect coordinates corresponding to the plurality of two-dimensional feature tensors, so as to obtain a plurality of defect points of the first detection image according to the plurality of defect coordinates.

[0167] In some embodiments of the present application, the defect calculation unit includes a first column vector acquisition subunit, a second column vector acquisition subunit, and a coordinate calculation output subunit;

[0168] The first column vector acquisition subunit is used to obtain a first feature column vector according to the current two-dimensional feature tensor based on the gridding parameter;

[0169] The second column vector acquisition subunit is used to calculate the first defect feature of each element in the first feature column vector according to the first defect coordinate determination method, and remove the elements in the first feature column vector whose first defect feature is greater than a preset threshold, so as to obtain a second feature column vector;

[0170] The coordinate calculation output subunit is used to use the mean of the horizontal coordinates and the mean of the vertical coordinates of all elements in the second characteristic column vector as the horizontal coordinate and the vertical coordinate of the first defect coordinate, and output the first defect coordinate.

[0171] In some embodiments of the present application, the first column vector acquisition subunit includes a two-dimensional tensor partitioning component, a feature coordinate calculation component, and a feature coordinate combination component;

[0172] The two-dimensional tensor division component is used to divide the current two-dimensional feature tensor into a plurality of first feature row vectors according to the gridding parameter;

[0173] The feature coordinate calculation component is used to normalize the multiple first feature row vectors respectively, and apply a preset feature coordinate determination method to the multiple normalized first feature row vectors respectively to obtain multiple feature coordinates corresponding to the multiple first feature row vectors;

[0174] The characteristic coordinate determination method is specifically as follows: calculating a plurality of first desired features corresponding to all elements in the current first characteristic row vector; taking the coordinates of the element with the largest first desired feature as the characteristic coordinates of the current first characteristic row vector;

[0175] The feature coordinate combination component is used to combine the multiple feature coordinates to obtain the first column vector of the current two-dimensional feature tensor.

[0176] The present application first obtains the first detection image of the overhead power transmission line to be detected according to the preset gridding parameters, and then performs multiple depth separation convolutions on the first detection image to obtain the first three-dimensional feature tensor. Different from the traditional convolution used in the prior art, the depth separation convolution used in the present application has a faster operation speed and the accuracy is equivalent to the traditional convolution, which can effectively improve the efficiency of defect detection; then, according to the gridding parameters and the first defect coordinate determination method, multiple defect coordinates of the first three-dimensional feature tensor are calculated, and then multiple defect points of the first detection image are obtained correspondingly. Different from the prior art that directly obtains defect points through a deep learning model, the present application is based on the first three-dimensional tensor obtained by deep separation convolution, and the defect points are obtained by calculating the defect coordinates. The defect points are determined directly using mathematical methods instead of deep learning models, which has a faster operation speed, higher efficiency, and no decrease in detection accuracy. Therefore, the present application can improve the efficiency of defect detection of overhead power transmission lines.

[0177] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for detecting defects in an overhead transmission line, characterized in that: include: Acquire a first detection image of the overhead power transmission line to be detected according to preset gridding parameters; Performing multiple depth separation convolutions on the first detection image to obtain a first three-dimensional feature tensor; According to the gridding parameters and a preset first defect coordinate determination method, a plurality of defect coordinates of the first three-dimensional feature tensor are calculated to obtain a plurality of defect points of the first detection image corresponding to the plurality of defect coordinates; The step of calculating a plurality of defect coordinates of the first three-dimensional feature tensor according to the gridding parameter and a preset first defect coordinate determination method, so as to obtain a plurality of defect points of the first detection image according to the plurality of defect coordinates, specifically includes: Dividing the first three-dimensional feature tensor according to a preset first dimension division method to obtain a plurality of two-dimensional feature tensors; According to the gridding parameters and the first defect coordinate determination method, a plurality of defect coordinates corresponding to the plurality of two-dimensional feature tensors are respectively calculated, so as to obtain a plurality of defect points of the first detection image according to the plurality of defect coordinates; The method of respectively calculating the plurality of defect coordinates corresponding to the plurality of two-dimensional feature tensors according to the gridding parameters and the first defect coordinate determination method, so as to obtain the plurality of defect points of the first detection image according to the plurality of defect coordinates, specifically includes: arbitrarily selecting a two-dimensional feature tensor as the current two-dimensional feature tensor, and calculating a single defect coordinate corresponding to the current two-dimensional feature tensor according to the gridding parameter and the first defect coordinate determination method, until the multiple two-dimensional feature tensors are selected; Outputting a plurality of defect coordinates corresponding to the plurality of two-dimensional feature tensors, so as to obtain a plurality of defect points of the first detection image according to the plurality of defect coordinates; The calculating, according to the gridding parameter and the first defect coordinate determination method, a single defect coordinate corresponding to the current two-dimensional feature tensor specifically includes: Based on the gridding parameter, obtaining a first feature column vector according to the current two-dimensional feature tensor; According to the first defect coordinate determination method, the first defect feature of each element in the first feature column vector is calculated, and the elements whose first defect features in the first feature column vector are greater than a preset threshold are eliminated to obtain a second feature column vector; The mean of the abscissa and the mean of the ordinate of all elements in the second characteristic column vector are used as the abscissa and the ordinate of the first defect coordinate, and the first defect coordinate is output.

2. A method for detecting defects in an overhead power transmission line according to claim 1, characterized in that: The step of acquiring a first detection image of the overhead power transmission line to be detected according to the preset gridding parameters specifically includes: Acquire a real-life image of an overhead power transmission line to be inspected; The real scene image is gridded according to the gridding parameters to obtain a first detection image.

3. A method for detecting defects in an overhead power transmission line according to claim 1, characterized in that: The performing multiple depth separation convolutions on the first detection image to obtain a first three-dimensional feature tensor specifically includes: According to a preset feature conversion method, the first detection image is converted into a first feature vector; Inputting the first feature vector into a plurality of preset convolution detection blocks, and obtaining a first three-dimensional feature tensor through depth separation convolution; Among them, multiple convolution detection blocks are connected end to end, and the output of the previous convolution detection block is used as the input of the next convolution detection block; the input of the starting convolution detection block is the first feature vector, and the output of the ending convolution detection block is the first three-dimensional feature tensor; in each convolution detection block, the input features are first grouped according to a preset number of channels to obtain multiple groups of channel features, and the multiple groups of channel features are subjected to deep separation convolution to obtain multiple groups of channel feature maps corresponding to the multiple groups of channel features, and then the multiple groups of channel feature maps are rearranged in sequence according to a preset method and the aggregated results are used as the output result of the current convolution detection block.

4. A method for detecting defects in an overhead power transmission line according to claim 1, characterized in that: The obtaining, based on the gridding parameter and according to the current two-dimensional feature tensor, a first feature column vector specifically includes: According to the gridding parameter, the current two-dimensional feature tensor is divided into a plurality of first feature row vectors; Normalizing the plurality of first characteristic row vectors respectively, and applying a preset characteristic coordinate determination method to the plurality of normalized first characteristic row vectors respectively, to obtain a plurality of characteristic coordinates corresponding to the plurality of first characteristic row vectors; The characteristic coordinate determination method is specifically as follows: calculating a plurality of first desired features corresponding to all elements in the current first characteristic row vector; taking the coordinates of the element with the largest first desired feature as the characteristic coordinates of the current first characteristic row vector; The multiple feature coordinates are combined to obtain a first column vector of the current two-dimensional feature tensor.

5. A defect detection device for an overhead power transmission line, characterized in that: It includes an image acquisition module, an image convolution module and a defect determination module; The image acquisition module is used to acquire a first detection image of the overhead power transmission line to be detected according to preset grid parameters; The image convolution module is used to perform multiple depth separation convolutions on the first detection image to obtain a first three-dimensional feature tensor; The defect determination module is used to calculate a plurality of defect coordinates of the first three-dimensional feature tensor according to the gridding parameters and a preset first defect coordinate determination method, so as to obtain a plurality of defect points of the first detection image according to the plurality of defect coordinates; The defect determination module includes a three-dimensional division submodule and a defect determination submodule; The three-dimensional division submodule is used to divide the first three-dimensional feature tensor according to a preset first dimension division method to obtain a plurality of two-dimensional feature tensors; The defect determination submodule is used to calculate the multiple defect coordinates corresponding to the multiple two-dimensional feature tensors according to the gridding parameters and the first defect coordinate determination method, so as to obtain the multiple defect points of the first detection image according to the multiple defect coordinates; The defect determination submodule includes a defect calculation unit and a coordinate output unit; The defect calculation unit is used to arbitrarily select a two-dimensional feature tensor as the current two-dimensional feature tensor, and calculate a single defect coordinate corresponding to the current two-dimensional feature tensor according to the gridding parameter and the first defect coordinate determination method, until the multiple two-dimensional feature tensors are selected; The coordinate output unit is used to output a plurality of defect coordinates corresponding to the plurality of two-dimensional feature tensors, so as to obtain a plurality of defect points of the first detection image according to the plurality of defect coordinates; The defect calculation unit includes a first column vector acquisition subunit, a second column vector acquisition subunit and a coordinate calculation output subunit; The first column vector acquisition subunit is used to obtain a first feature column vector according to the current two-dimensional feature tensor based on the gridding parameter; The second column vector acquisition subunit is used to calculate the first defect feature of each element in the first feature column vector according to the first defect coordinate determination method, and remove the elements in the first feature column vector whose first defect feature is greater than a preset threshold, so as to obtain a second feature column vector; The coordinate calculation output subunit is used to use the mean of the horizontal coordinates and the mean of the vertical coordinates of all elements in the second characteristic column vector as the horizontal coordinate and the vertical coordinate of the first defect coordinate, and output the first defect coordinate.

6. The defect detection device for overhead power transmission lines according to claim 5, characterized in that: The image acquisition module includes a real scene acquisition submodule and an image gridding submodule; The real scene acquisition submodule is used to acquire a real scene image of the overhead power transmission line to be detected; The image gridding submodule is used to grid the real scene image according to the gridding parameters to obtain a first detection image.

7. The defect detection device for overhead power transmission lines according to claim 5, characterized in that: The image convolution module includes a feature conversion submodule and a depth convolution submodule; The feature conversion submodule is used to convert the first detection image into a first feature vector according to a preset feature conversion method; The depth convolution submodule is used to input the first feature vector into a plurality of preset convolution detection blocks, and obtain a first three-dimensional feature tensor through depth separation convolution; Among them, multiple convolution detection blocks are connected end to end, and the output of the previous convolution detection block is used as the input of the next convolution detection block; the input of the starting convolution detection block is the first feature vector, and the output of the ending convolution detection block is the first three-dimensional feature tensor; in each convolution detection block, the input features are first grouped according to a preset number of channels to obtain multiple groups of channel features, and the multiple groups of channel features are subjected to deep separation convolution to obtain multiple groups of channel feature maps corresponding to the multiple groups of channel features, and then the multiple groups of channel feature maps are rearranged in sequence according to a preset method and the aggregated results are used as the output result of the current convolution detection block.

8. The defect detection device for overhead power transmission lines according to claim 5, characterized in that: The first column vector acquisition subunit includes a two-dimensional tensor division component, a feature coordinate calculation component and a feature coordinate combination component; The two-dimensional tensor division component is used to divide the current two-dimensional feature tensor into a plurality of first feature row vectors according to the gridding parameter; The feature coordinate calculation component is used to normalize the multiple first feature row vectors respectively, and apply a preset feature coordinate determination method to the multiple normalized first feature row vectors respectively to obtain multiple feature coordinates corresponding to the multiple first feature row vectors; The characteristic coordinate determination method is specifically as follows: calculating a plurality of first desired features corresponding to all elements in the current first characteristic row vector; taking the coordinates of the element with the largest first desired feature as the characteristic coordinates of the current first characteristic row vector; The feature coordinate combination component is used to combine the multiple feature coordinates to obtain the first column vector of the current two-dimensional feature tensor.