Power transmission line inspection distance measurement method and system for monocular vision unmanned aerial vehicle

Through implicit 3D scene reconstruction technology and depth estimation model, the problems of low efficiency and inaccurate ranging of traditional power transmission line inspections are solved, and high-reliability and high-precision distance detection between transmission lines and trees and bamboos are achieved, improving the efficiency of The effect of drone power inspection.

CN118840407APending Publication Date: 2024-10-25STATE GRID HUNAN ELECTRIC POWER COMPANY LIMITED +2

Patent Information

Application Number
CN202410908111.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

The traditional power transmission line inspection method has low efficiency, poor safety and reliability. When a single 2D picture is used for depth information detection, it is greatly affected by occlusion, lack of texture, and changes in illumination, which affects the reliability and accuracy of ranging results.

Method used

A depth estimation model is constructed based on implicit 3D scene reconstruction technology. Video images are collected through a drone equipped with a monocular camera, depth estimation is performed, transmission lines and trees and bamboos are identified and positioned, the real distance is calculated, and the distance between the transmission lines and trees and bamboos is realized. distance detection.

Benefits of technology

It improves the reliability and accuracy of monocular vision drones in power transmission line inspections, enables more accurate distance detection in complex environments, and enhances the usability and reliability of drone power inspections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118840407A_ABST
    Figure CN118840407A_ABST
Patent Text Reader

Abstract

The invention discloses a power transmission line inspection distance measurement method for a monocular vision unmanned aerial vehicle. The method comprises the following steps: constructing and training based on an implicit 3D scene reconstruction technology to obtain a depth estimation model; carrying out video image acquisition on the power transmission line area by adopting a monocular camera carried by an unmanned aerial vehicle; performing depth estimation on the acquired image by adopting a depth estimation model to obtain a corresponding depth map; identifying and positioning power transmission lines and trees and bamboos in the obtained image and depth map; the real distance between the power transmission line and the unmanned aerial vehicle and the real distance between the tree bamboo and the unmanned aerial vehicle are calculated; and calculating the distance between the power transmission line and the tree bamboo, and completing routing inspection distance measurement of the power transmission line for the monocular vision unmanned aerial vehicle. The invention also discloses a system for realizing the power transmission line inspection distance measurement method for the monocular vision unmanned aerial vehicle. According to the invention, power transmission line inspection distance measurement for the monocular vision unmanned aerial vehicle can be realized, and the reliability and the accuracy are higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of electrical automation, and in particular relates to a transmission line patrol and ranging method and system for a monocular vision unmanned aerial vehicle. Background Art

[0002] With the development of economy and technology and the improvement of people's living standards, electric energy has become an indispensable secondary energy source in people's production and life, bringing endless convenience to people's production and life. Therefore, ensuring the stable and reliable supply of electric energy has become one of the most important tasks of the power system. Transmission lines undertake the task of electric energy transmission and are also an important part of the power system. Therefore, transmission line inspection is of great significance to the power system.

[0003] The traditional inspection method of power transmission lines is generally manual inspection, that is, the power system inspectors inspect the power system transmission lines by manual inspection; however, this inspection method is not only time-consuming and labor-intensive, inefficient, but also has poor safety and reliability. With the rapid development of drone technology, drone inspection has been widely carried out in the power system. At present, the drone inspection method of the power system is generally carried out by drones equipped with distance measurement tools such as laser radar and infrared rangefinders to measure the distance between the transmission line and the bamboo trees; however, this type of distance measurement tool is large in size and heavy in weight, which consumes more energy of the drone; therefore, the efficiency of this type of solution is not high. With the rapid development of deep learning technology, some researchers have proposed a solution to detect the distance between the transmission line and the bamboo trees based on the pictures taken by the camera carried by the drone and the deep learning algorithm; however, this type of solution generally predicts the depth information of the scene through a single 2D picture, and the objects in the single 2D image are blocked, texture is missing, and the illumination changes, which greatly affect the reliability and accuracy of the distance measurement results. Summary of the invention

[0004] One of the purposes of the present invention is to provide a transmission line patrol and ranging method for a monocular vision UAV with high reliability and good accuracy.

[0005] The second object of the present invention is to provide a system for implementing the transmission line patrol and ranging method for monocular vision drones.

[0006] The transmission line inspection and ranging method for a monocular vision UAV provided by the present invention comprises the following steps:

[0007] S1. Based on implicit 3D scene reconstruction technology, a depth estimation model is constructed and trained;

[0008] S2. Use a drone equipped with a monocular camera to collect video images of the transmission line area;

[0009] S3. Using the depth estimation model, perform depth estimation on the image obtained in step S2 to obtain a corresponding depth map;

[0010] S4. Identify and locate the power transmission lines and bamboo trees in the image obtained in step S2 and the depth map obtained in step S3;

[0011] S5. Calculate the actual distance between the power transmission line and the UAV, and the actual distance between the bamboo tree and the UAV according to the depth information corresponding to the depth map;

[0012] S6. According to the real distance obtained in step S5, the distance between the power transmission line and the tree is calculated, and the patrol distance detection of the power transmission line for the monocular vision UAV is completed.

[0013] The step S1 described in which the depth estimation model is constructed and trained based on the implicit 3D scene reconstruction technology includes the following steps:

[0014] The constructed depth estimation model includes a depth prior network and an implicit 3D scene reconstruction network;

[0015] A deep prior network is constructed based on convolution blocks; the deep prior network is used to obtain deep prior feature information of the input image;

[0016] An implicit 3D scene reconstruction network is constructed based on implicit 3D scene reconstruction technology; the implicit 3D scene reconstruction network is used to reconstruct the 3D scene according to the input camera parameters, image and the obtained image depth prior feature information, and preliminarily obtain the rendered image and the corresponding rendering depth corresponding to the input image;

[0017] Finally, the input original image and the sparse feature map output by the deep prior network are used to calculate the residuals of the rendered image and the corresponding rendered depth output by the implicit 3D scene reconstruction network, and the residuals are back-propagated to the implicit 3D scene reconstruction network for iterative training to obtain the input image or the corresponding 2D image and the corresponding depth image at any perspective.

[0018] The construction of a deep priori network based on convolutional blocks specifically includes the following steps:

[0019] The deep prior network includes an encoder and a decoder;

[0020] The encoder comprises a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer and a fifth feature extraction layer connected in series in sequence; the first feature extraction layer, the second feature extraction layer, the third feature extraction layer, the fourth feature extraction layer and the fifth feature extraction layer are all composed of sequential convolution blocks; the first feature extraction layer, the second feature extraction layer, the third feature extraction layer, the fourth feature extraction layer and the fifth feature extraction layer are all used to extract feature information of an input image;

[0021] The decoder includes a first upsampling layer, a second upsampling layer, a third upsampling layer, a fourth upsampling layer, a fifth upsampling layer and a convolution layer; the output of the fifth feature extraction layer is used as the input of the first upsampling layer; the output of the first upsampling layer and the output of the fourth feature extraction layer are cascaded and used as the input of the second upsampling layer; the output of the second upsampling layer and the output of the third feature extraction layer are cascaded and used as the input of the third upsampling layer; the output of the third upsampling layer and the output of the second feature extraction layer are cascaded and used as the input of the fourth upsampling layer; the output of the fourth upsampling layer and the output of the first feature extraction layer are cascaded and used as the input of the fifth upsampling layer; the output of the fifth upsampling layer is processed by a convolution layer to obtain a sparse depth map, which is used as the output of the deep prior network; the convolution layer is a 1*1 convolution.

[0022] The implicit 3D scene reconstruction network is constructed based on the implicit 3D scene reconstruction technology, and specifically includes the following steps:

[0023] The constructed implicit 3D scene reconstruction network includes a coarse network layer, a fine network layer and a volume rendering layer connected in series;

[0024] The coarse network layer includes 8 fully connected neural network layers and 7 ReLU activation function layers, each of which is 258-dimensional; the output of the first fully connected neural network layer is used as the input of the first ReLU activation function layer; the output of the first ReLU activation function layer is used as the input of the first fully connected neural network layer; the output of the second fully connected neural network layer is used as the input of the second ReLU activation function layer; the output of the second ReLU activation function layer is used as the input of the third fully connected neural network layer; the output of the third fully connected neural network layer is used as the input of the third ReLU activation function layer; the output of the third ReLU activation function layer is used as the input of the fourth fully connected neural network layer; the output of the fourth fully connected neural network layer is used as the input of the fourth ReLU activation function layer The output of the fourth ReLU activation function layer is used as the input of the fifth fully connected neural network layer; the output of the fifth fully connected neural network layer is used as the input of the fifth ReLU activation function layer; the output of the fifth ReLU activation function layer is used as the input of the sixth fully connected neural network layer; the output of the sixth fully connected neural network layer is used as the input of the sixth ReLU activation function layer; the output of the sixth ReLU activation function layer is used as the input of the seventh fully connected neural network layer; the output of the seventh fully connected neural network layer is used as the input of the seventh ReLU activation function layer; the output of the seventh ReLU activation function layer is used as the input of the eighth fully connected neural network layer; the output of the eighth fully connected neural network layer is the output of the coarse network layer;

[0025] The fine network layer includes 8 fully connected neural network layers and 7 ReLU activation function layers, each of which is 258-dimensional; the output of the first fully connected neural network layer is used as the input of the first ReLU activation function layer; the output of the first ReLU activation function layer is used as the input of the first fully connected neural network layer; the output of the second fully connected neural network layer is used as the input of the second ReLU activation function layer; the output of the second ReLU activation function layer is used as the input of the third fully connected neural network layer; the output of the third fully connected neural network layer is used as the input of the third ReLU activation function layer; the output of the third ReLU activation function layer is used as the input of the fourth fully connected neural network layer; the output of the fourth fully connected neural network layer is used as the input of the fourth ReLU activation function layer The output of the fourth ReLU activation function layer is used as the input of the fifth fully connected neural network layer; the output of the fifth fully connected neural network layer is used as the input of the fifth ReLU activation function layer; the output of the fifth ReLU activation function layer is used as the input of the sixth fully connected neural network layer; the output of the sixth fully connected neural network layer is used as the input of the sixth ReLU activation function layer; the output of the sixth ReLU activation function layer is used as the input of the seventh fully connected neural network layer; the output of the seventh fully connected neural network layer is used as the input of the seventh ReLU activation function layer; the output of the seventh ReLU activation function layer is used as the input of the eighth fully connected neural network layer; the output of the eighth fully connected neural network layer is the output of the fine network layer;

[0026] The volume rendering layer uses the following formula to get the final color value C of each pixel in the image:

[0027]

[0028] in,

[0029]

[0030] Where T i is the cumulative transmittance on the ray, and c i and σ j are the color and volume density of a sampling point on the ray; N is the number of sampling points on the ray; δ i is the distance between two adjacent sampling points on the ray; t i+1 and t i are two adjacent sampling points on the ray;

[0031] At the same time, the volume rendering layer uses the following formula to calculate the depth value of each pixel as the distance d from the pixel center to the camera:

[0032]

[0033] The input image of the depth estimation model and the corresponding camera parameters are processed through coarse and fine network layers to obtain RGB color information and volume density, and then the rendered image and the corresponding rendering depth are output through the volume rendering layer.

[0034] The training described in step S1 specifically includes the following steps:

[0035] During training, the RGB residuals of the rendered image and the input image are calculated, the depth residuals of the rendered depth and the sparse feature map output by the depth prior network are calculated, and the obtained RGB residuals and depth residuals are back-propagated to the depth estimation model to train the depth estimation model.

[0036] Step S4 of identifying and locating the power transmission lines and trees in the image obtained in step S2 and the depth map obtained in step S3 specifically includes the following steps:

[0037] The pre-trained YOLO network model is used to identify and locate the power transmission lines and trees in the image obtained in step S2 and the depth map obtained in step S3, and the corresponding pixel coordinate information is obtained.

[0038] The step S5 of calculating the real distance between the power transmission line and the UAV, and the real distance between the tree and the UAV according to the depth information corresponding to the depth map, specifically includes the following steps:

[0039] The actual distance between the transmission line and the drone, and the actual distance between the tree and the drone, are calculated using the following single-point distance calculation method:

[0040] Combine the pixel coordinates of the detected target with the corresponding depth information, and use the following formula to establish the corresponding relationship between the pixel value and the depth value of the pixel point:

[0041]

[0042] In the formula is the depth value; P is the pixel value of the pixel; k is the estimation coefficient;

[0043] Then, the corresponding relationship between the depth value and the actual distance is established using the following formula:

[0044]

[0045] Where D is the real distance; k0~k5 are the calculated weight coefficients.

[0046] The step S6 of calculating the distance between the power transmission line and the tree and bamboo according to the real distance obtained in step S5 specifically includes the following steps:

[0047] According to the actual distance between the power transmission line and the UAV and the actual distance between the bamboo and the UAV obtained in step S5, the distance between the power transmission line and the bamboo is calculated by using the triangle cosine theorem in combination with the coordinates of the target pixel point, the pixel size and the focal length of the camera:

[0048] The angle θ between the transmission line and the tree is calculated using the following formula:

[0049]

[0050] Where n is the number of pixels between the transmission line and the tree; Z is the pixel size; f is the focal length of the camera;

[0051] The distance c between the transmission line and the tree is calculated using the following formula:

[0052]

[0053] Where a is the actual distance between the tree and the UAV; b is the actual distance between the power line and the UAV.

[0054] The present invention also provides a system for implementing the transmission line patrol and ranging method for monocular vision unmanned aerial vehicles, comprising a model construction module, an image acquisition module, a depth estimation module, an identification and positioning module, a distance calculation module and a patrol and ranging module; the model construction module, the image acquisition module, the depth estimation module, the identification and positioning module, the distance calculation module and the patrol and ranging module are connected in series in sequence; the model construction module is used to construct and train a depth estimation model based on implicit 3D scene reconstruction technology, and upload data information to the image acquisition module; the image acquisition module is used to use a monocular camera equipped with an unmanned aerial vehicle to collect video images of the transmission line area according to the received data, and upload the data information to the depth estimation module; the depth estimation module is used to collect video images of the transmission line area according to the received data According to the received data, a depth estimation model is used to perform depth estimation on the acquired image to obtain a corresponding depth map, and the data information is uploaded to the identification and positioning module; the identification and positioning module is used to identify and locate the power lines and bamboo trees in the image and depth map obtained in step 1 according to the received data, and upload the data information to the distance calculation module; the distance calculation module is used to calculate the actual distance between the power line and the UAV, as well as the actual distance between the bamboo trees and the UAV according to the received data and the depth information corresponding to the depth map, and upload the data information to the patrol distance detection module; the patrol distance detection module is used to calculate the distance between the power line and the bamboo trees according to the received data and the actual distance obtained, and complete the patrol distance detection of the power line for the monocular vision UAV.

[0055] The power transmission line patrol and ranging method and system for monocular vision UAVs provided by the present invention realizes depth information estimation of the power transmission circuit image based on implicit 3D scene reconstruction technology, and performs distance detection between the power transmission line and trees and bamboos according to the estimation result; therefore, the present invention can not only realize power transmission line patrol and ranging for monocular vision UAVs, but also has higher reliability and better accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 The figure is a schematic diagram of the method flow of the present invention.

[0057] Figure 2 Schematic diagram of the functional modules of the system of the present invention. DETAILED DESCRIPTION

[0058] like Figure 1 The method flow diagram of the method of the present invention is shown as follows: The transmission line patrol and ranging method for a monocular vision UAV disclosed in the present invention comprises the following steps:

[0059] S1. Based on implicit 3D scene reconstruction technology, a depth estimation model is constructed and trained; the steps include:

[0060] The constructed depth estimation model includes a depth prior network and an implicit 3D scene reconstruction network;

[0061] A deep prior network is constructed based on convolution blocks; the deep prior network is used to obtain deep prior feature information of the input image;

[0062] An implicit 3D scene reconstruction network is constructed based on implicit 3D scene reconstruction technology; the implicit 3D scene reconstruction network is used to reconstruct the 3D scene according to the input camera parameters, image and the obtained image depth prior feature information, and preliminarily obtain the rendered image and the corresponding rendering depth corresponding to the input image;

[0063] Finally, the input original image and the sparse feature map output by the deep prior network are used to calculate the residuals of the rendered image and the corresponding rendered depth output by the implicit 3D scene reconstruction network, and the residuals are back-propagated to the implicit 3D scene reconstruction network for iterative training to obtain the input image or the corresponding 2D image and the corresponding depth image at any viewing angle.

[0064] When implementing:

[0065] The deep prior network includes an encoder and a decoder;

[0066] The encoder comprises a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer and a fifth feature extraction layer connected in series in sequence; the first feature extraction layer, the second feature extraction layer, the third feature extraction layer, the fourth feature extraction layer and the fifth feature extraction layer are all composed of sequential convolution blocks; the first feature extraction layer, the second feature extraction layer, the third feature extraction layer, the fourth feature extraction layer and the fifth feature extraction layer are all used to extract feature information of an input image;

[0067] The decoder includes a first upsampling layer, a second upsampling layer, a third upsampling layer, a fourth upsampling layer, a fifth upsampling layer and a convolution layer; the output of the fifth feature extraction layer is used as the input of the first upsampling layer; the output of the first upsampling layer is cascaded with the output of the fourth feature extraction layer and used as the input of the second upsampling layer; the output of the second upsampling layer is cascaded with the output of the third feature extraction layer and used as the input of the third upsampling layer; the output of the third upsampling layer is cascaded with the output of the second feature extraction layer and used as the input of the fourth upsampling layer; the output of the fourth upsampling layer is cascaded with the output of the first feature extraction layer and used as the input of the fifth upsampling layer; the output of the fifth upsampling layer is processed by a convolution layer to obtain a sparse depth map, which is used as the output of the deep prior network; the convolution layer is a 1*1 convolution;

[0068] The implicit 3D scene reconstruction network includes a coarse network layer, a fine network layer and a volume rendering layer connected in series;

[0069] The coarse network layer includes 8 fully connected neural network layers and 7 ReLU activation function layers, each of which is 258-dimensional; the output of the first fully connected neural network layer is used as the input of the first ReLU activation function layer; the output of the first ReLU activation function layer is used as the input of the first fully connected neural network layer; the output of the second fully connected neural network layer is used as the input of the second ReLU activation function layer; the output of the second ReLU activation function layer is used as the input of the third fully connected neural network layer; the output of the third fully connected neural network layer is used as the input of the third ReLU activation function layer; the output of the third ReLU activation function layer is used as the input of the fourth fully connected neural network layer; the output of the fourth fully connected neural network layer is used as the input of the fourth ReLU activation function layer The output of the fourth ReLU activation function layer is used as the input of the fifth fully connected neural network layer; the output of the fifth fully connected neural network layer is used as the input of the fifth ReLU activation function layer; the output of the fifth ReLU activation function layer is used as the input of the sixth fully connected neural network layer; the output of the sixth fully connected neural network layer is used as the input of the sixth ReLU activation function layer; the output of the sixth ReLU activation function layer is used as the input of the seventh fully connected neural network layer; the output of the seventh fully connected neural network layer is used as the input of the seventh ReLU activation function layer; the output of the seventh ReLU activation function layer is used as the input of the eighth fully connected neural network layer; the output of the eighth fully connected neural network layer is the output of the coarse network layer;

[0070] The fine network layer includes 8 fully connected neural network layers and 7 ReLU activation function layers, each of which is 258-dimensional; the output of the first fully connected neural network layer is used as the input of the first ReLU activation function layer; the output of the first ReLU activation function layer is used as the input of the first fully connected neural network layer; the output of the second fully connected neural network layer is used as the input of the second ReLU activation function layer; the output of the second ReLU activation function layer is used as the input of the third fully connected neural network layer; the output of the third fully connected neural network layer is used as the input of the third ReLU activation function layer; the output of the third ReLU activation function layer is used as the input of the fourth fully connected neural network layer; the output of the fourth fully connected neural network layer is used as the input of the fourth ReLU activation function layer The output of the fourth ReLU activation function layer is used as the input of the fifth fully connected neural network layer; the output of the fifth fully connected neural network layer is used as the input of the fifth ReLU activation function layer; the output of the fifth ReLU activation function layer is used as the input of the sixth fully connected neural network layer; the output of the sixth fully connected neural network layer is used as the input of the sixth ReLU activation function layer; the output of the sixth ReLU activation function layer is used as the input of the seventh fully connected neural network layer; the output of the seventh fully connected neural network layer is used as the input of the seventh ReLU activation function layer; the output of the seventh ReLU activation function layer is used as the input of the eighth fully connected neural network layer; the output of the eighth fully connected neural network layer is the output of the fine network layer;

[0071] The volume rendering layer uses the following formula to get the final color value C of each pixel in the image:

[0072]

[0073] in,

[0074]

[0075] Where T i is the cumulative transmittance on the ray, and c i and σ j are the color and volume density of a sampling point on the ray; N is the number of sampling points on the ray; δ i is the distance between two adjacent sampling points on the ray; t i+1 and t i are two adjacent sampling points on the ray;

[0076] At the same time, the volume rendering layer uses the following formula to calculate the depth value of each pixel as the distance d from the pixel center to the camera:

[0077]

[0078] The input image and corresponding camera parameters of the depth estimation model are processed through the coarse network layer and the fine network layer to obtain RGB color information and volume density, and then the rendered image and the corresponding rendered depth are output through the volume rendering layer;

[0079] During the training process, the RGB residuals of the rendered image and the input image are calculated, the depth residuals of the rendered depth and the sparse feature map output by the depth prior network are calculated, and the obtained RGB residuals and depth residuals are back-propagated to the depth estimation model to train the depth estimation model;

[0080] The implicit 3D scene reconstruction technology is used to enhance the adaptability of depth ranging in outdoor environments: the scene reconstruction technology in the present invention can use a small amount of 2D images to synthesize a 3D scene of the target area, can handle complex lighting and reflection effects, and can convert the observation angle and observation distance in the 3D scene, avoiding factors that are not conducive to depth estimation, such as strong light, obstructions, and complex backgrounds, so as to output the desired view and the corresponding depth map from the reconstructed 3D scene;

[0081] Incorporating a deep prior network to improve the accuracy of depth estimation: In order to more realistically restore scene information, a deep prior network is incorporated into the scene reconstruction model; the deep prior network provides a sparse depth prior for the scene reconstruction model, which accelerates the scene reconstruction process on the one hand, and achieves high-quality new perspective synthesis effects and high-precision depth prediction capabilities on the other hand;

[0082] The method of the present invention can make the depth ranging more generalized and more accurate in dealing with the UAV line-tree ranging problem in complex environments, thereby improving the availability and reliability of UAV power inspection.

[0083] S2. Use a drone equipped with a monocular camera to collect video images of the transmission line area;

[0084] S3. Using the depth estimation model, perform depth estimation on the image obtained in step S2 to obtain a corresponding depth map;

[0085] S4. Identify and locate the power transmission lines and bamboo trees in the image obtained in step S2 and the depth map obtained in step S3; specifically comprising the following steps:

[0086] Using the pre-trained YOLO network model, the power transmission lines and trees in the image obtained in step S2 and the depth map obtained in step S3 are identified and located, and the corresponding pixel coordinate information is obtained;

[0087] S5. Calculate the real distance between the power transmission line and the UAV, and the real distance between the bamboo tree and the UAV according to the depth information corresponding to the depth map; specifically, the steps include:

[0088] The actual distance between the transmission line and the drone, and the actual distance between the tree and the drone, are calculated using the following single-point distance calculation method:

[0089] Combine the pixel coordinates of the detected target with the corresponding depth information, and use the following formula to establish the corresponding relationship between the pixel value and the depth value of the pixel point:

[0090]

[0091] In the formula is the depth value; P is the pixel value of the pixel; k is the estimation coefficient;

[0092] Then, the corresponding relationship between the depth value and the actual distance is established using the following formula:

[0093]

[0094] Where D is the real distance; k0~k5 are the calculated weight coefficients, which can be obtained by least squares calculation using multiple points (at least 6 points) in specific implementation;

[0095] S6. According to the actual distance obtained in step S5, the distance between the power transmission line and the bamboo tree is calculated, and the inspection distance of the power transmission line for the monocular vision drone is completed; specifically, the steps include:

[0096] According to the actual distance between the power transmission line and the UAV and the actual distance between the bamboo and the UAV obtained in step S5, the distance between the power transmission line and the bamboo is calculated by using the triangle cosine theorem in combination with the coordinates of the target pixel point, the pixel size and the focal length of the camera:

[0097] The angle θ between the transmission line and the tree is calculated using the following formula:

[0098]

[0099] Where n is the number of pixels between the transmission line and the tree; Z is the pixel size; f is the focal length of the camera;

[0100] The distance c between the transmission line and the tree is calculated using the following formula:

[0101]

[0102] Where a is the actual distance between the tree and the UAV; b is the actual distance between the power line and the UAV.

[0103] like Figure 2The functional module schematic diagram of the system of the present invention is shown as follows: the system disclosed in the present invention for realizing the transmission line patrol and distance detection method for monocular vision drones comprises a model construction module, an image acquisition module, a depth estimation module, an identification and positioning module, a distance calculation module and a patrol and distance detection module; the model construction module, the image acquisition module, the depth estimation module, the identification and positioning module, the distance calculation module and the patrol and distance detection module are connected in series in sequence; the model construction module is used to construct and train a depth estimation model based on implicit 3D scene reconstruction technology, and upload data information to the image acquisition module; the image acquisition module is used to use a drone equipped with a monocular camera to collect video images of the transmission line area according to the received data, and upload the data information to the depth estimation module; the depth estimation module is used to According to the received data, a depth estimation model is used to perform depth estimation on the acquired image to obtain a corresponding depth map, and the data information is uploaded to the identification and positioning module; the identification and positioning module is used to identify and locate the transmission line and the bamboo trees in the image and the depth map obtained according to the received data, and upload the data information to the distance calculation module; the distance calculation module is used to calculate the actual distance between the transmission line and the UAV, as well as the actual distance between the bamboo trees and the UAV according to the received data and the depth information corresponding to the depth map, and upload the data information to the patrol distance module; the patrol distance module is used to calculate the distance between the transmission line and the bamboo trees according to the received data and the actual distance obtained, and complete the patrol distance of the transmission line for the monocular vision UAV.

Claims

1. A transmission line inspection and ranging method for a monocular vision drone, comprising the following steps: S1. Based on implicit 3D scene reconstruction technology, a depth estimation model is constructed and trained; S2. Use a drone equipped with a monocular camera to collect video images of the transmission line area; S3. Using the depth estimation model, perform depth estimation on the image obtained in step S2 to obtain a corresponding depth map; S4. Identify and locate the power transmission lines and bamboo trees in the image obtained in step S2 and the depth map obtained in step S3; S5. Calculate the actual distance between the power transmission line and the UAV, and the actual distance between the bamboo tree and the UAV according to the depth information corresponding to the depth map; S6. According to the real distance obtained in step S5, the distance between the power transmission line and the tree is calculated, and the patrol distance detection of the power transmission line for the monocular vision UAV is completed.

2. The transmission line inspection and ranging method for monocular vision UAV according to claim 1 is characterized in that The step S1 described in which the depth estimation model is constructed and trained based on the implicit 3D scene reconstruction technology includes the following steps: The constructed depth estimation model includes a depth prior network and an implicit 3D scene reconstruction network; A deep prior network is constructed based on convolution blocks; the deep prior network is used to obtain deep prior feature information of the input image; An implicit 3D scene reconstruction network is constructed based on implicit 3D scene reconstruction technology; the implicit 3D scene reconstruction network is used to reconstruct the 3D scene according to the input camera parameters, image and the obtained image depth prior feature information, and preliminarily obtain the rendered image and the corresponding rendering depth corresponding to the input image; Finally, the input original image and the sparse feature map output by the deep prior network are used to calculate the residuals of the rendered image and the corresponding rendered depth output by the implicit 3D scene reconstruction network, and the residuals are back-propagated to the implicit 3D scene reconstruction network for iterative training to obtain the input image or the corresponding 2D image and the corresponding depth image at any perspective.

3. The power transmission line inspection and ranging method for monocular vision UAV according to claim 2 is characterized in that The construction of a deep priori network based on convolutional blocks specifically includes the following steps: The deep prior network includes an encoder and a decoder; The encoder comprises a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer and a fifth feature extraction layer connected in series in sequence; the first feature extraction layer, the second feature extraction layer, the third feature extraction layer, the fourth feature extraction layer and the fifth feature extraction layer are all composed of sequential convolution blocks; the first feature extraction layer, the second feature extraction layer, the third feature extraction layer, the fourth feature extraction layer and the fifth feature extraction layer are all used to extract feature information of an input image; The decoder includes a first upsampling layer, a second upsampling layer, a third upsampling layer, a fourth upsampling layer, a fifth upsampling layer and a convolutional layer; The output of the fifth feature extraction layer is used as the input of the first upsampling layer; the output of the first upsampling layer is cascaded with the output of the fourth feature extraction layer and used as the input of the second upsampling layer; the output of the second upsampling layer is cascaded with the output of the third feature extraction layer and used as the input of the third upsampling layer; the output of the third upsampling layer is cascaded with the output of the second feature extraction layer and used as the input of the fourth upsampling layer; the output of the fourth upsampling layer is cascaded with the output of the first feature extraction layer and used as the input of the fifth upsampling layer; the output of the fifth upsampling layer is processed by a convolution layer to obtain a sparse depth map, which is used as the output of the deep prior network; The convolution layer is a 1*1 convolution.

4. The transmission line inspection and ranging method for monocular vision UAV according to claim 3 is characterized in that The implicit 3D scene reconstruction network is constructed based on the implicit 3D scene reconstruction technology, and specifically includes the following steps: The constructed implicit 3D scene reconstruction network includes a coarse network layer, a fine network layer and a volume rendering layer connected in series; The coarse network layer includes 8 fully connected neural network layers and 7 ReLU activation function layers, each of which is 258-dimensional; the output of the first fully connected neural network layer is used as the input of the first ReLU activation function layer; the output of the first ReLU activation function layer is used as the input of the first fully connected neural network layer; the output of the second fully connected neural network layer is used as the input of the second ReLU activation function layer; The output of the second ReLU activation function layer is used as the input of the third fully connected neural network layer; the output of the third fully connected neural network layer is used as the input of the third ReLU activation function layer; The output of the third ReLU activation function layer is used as the input of the fourth fully connected neural network layer; the output of the fourth fully connected neural network layer is used as the input of the fourth ReLU activation function layer; the output of the fourth ReLU activation function layer is used as the input of the fifth fully connected neural network layer; the output of the fifth fully connected neural network layer is used as the input of the fifth ReLU activation function layer; The output of the fifth ReLU activation function layer is used as the input of the sixth fully connected neural network layer; the output of the sixth fully connected neural network layer is used as the input of the sixth ReLU activation function layer; the output of the sixth ReLU activation function layer is used as the input of the seventh fully connected neural network layer; the output of the seventh fully connected neural network layer is used as the input of the seventh ReLU activation function layer; the output of the seventh ReLU activation function layer is used as the input of the eighth fully connected neural network layer; the output of the eighth fully connected neural network layer is the output of the coarse network layer; The fine network layer includes 8 fully connected neural network layers and 7 ReLU activation function layers, each of which is 258-dimensional; the output of the first fully connected neural network layer is used as the input of the first ReLU activation function layer; the output of the first ReLU activation function layer is used as the input of the first fully connected neural network layer; the output of the second fully connected neural network layer is used as the input of the second ReLU activation function layer; The output of the second ReLU activation function layer is used as the input of the third fully connected neural network layer; the output of the third fully connected neural network layer is used as the input of the third ReLU activation function layer; The output of the third ReLU activation function layer is used as the input of the fourth fully connected neural network layer; the output of the fourth fully connected neural network layer is used as the input of the fourth ReLU activation function layer; the output of the fourth ReLU activation function layer is used as the input of the fifth fully connected neural network layer; the output of the fifth fully connected neural network layer is used as the input of the fifth ReLU activation function layer; The output of the fifth ReLU activation function layer is used as the input of the sixth fully connected neural network layer; the output of the sixth fully connected neural network layer is used as the input of the sixth ReLU activation function layer; the output of the sixth ReLU activation function layer is used as the input of the seventh fully connected neural network layer; the output of the seventh fully connected neural network layer is used as the input of the seventh ReLU activation function layer; the output of the seventh ReLU activation function layer is used as the input of the eighth fully connected neural network layer; the output of the eighth fully connected neural network layer is the output of the fine network layer; The volume rendering layer uses the following formula to get the final color value C of each pixel in the image: in, Where T i is the cumulative transmittance on the ray, and c i and σ j are the color and volume density of a sampling point on the ray; N is the number of sampling points on the ray; δ i is the distance between two adjacent sampling points on the ray; t i+1 and t i are two adjacent sampling points on the ray; At the same time, the volume rendering layer uses the following formula to calculate the depth value of each pixel as the distance d from the pixel center to the camera: The input image of the depth estimation model and the corresponding camera parameters are processed through coarse and fine network layers to obtain RGB color information and volume density, and then the rendered image and the corresponding rendering depth are output through the volume rendering layer.

5. The transmission line inspection and ranging method for monocular vision UAV according to claim 4 is characterized in that The training described in step S1 specifically includes the following steps: During training, the RGB residuals of the rendered image and the input image are calculated, the depth residuals of the rendered depth and the sparse feature map output by the depth prior network are calculated, and the obtained RGB residuals and depth residuals are back-propagated to the depth estimation model to train the depth estimation model.

6. The transmission line inspection and ranging method for monocular vision UAV according to claim 5 is characterized in that Step S4 of identifying and locating the power transmission lines and trees in the image obtained in step S2 and the depth map obtained in step S3 specifically includes the following steps: The pre-trained YOLO network model is used to identify and locate the power transmission lines and trees in the image obtained in step S2 and the depth map obtained in step S3, and the corresponding pixel coordinate information is obtained.

7. The transmission line inspection and ranging method for monocular vision UAV according to claim 6 is characterized in that The step S5 of calculating the real distance between the power transmission line and the UAV, and the real distance between the tree and the UAV according to the depth information corresponding to the depth map, specifically includes the following steps: The actual distance between the transmission line and the drone, and the actual distance between the tree and the drone, are calculated using the following single-point distance calculation method: Combine the pixel coordinates of the detected target with the corresponding depth information, and use the following formula to establish the corresponding relationship between the pixel value and the depth value of the pixel point: In the formula is the depth value; P is the pixel value of the pixel; k is the estimation coefficient; Then, the corresponding relationship between the depth value and the actual distance is established using the following formula: Where D is the real distance; k0~k5 are the calculated weight coefficients.

8. The transmission line inspection and ranging method for monocular vision UAV according to claim 7 is characterized in that The step S6 of calculating the distance between the power transmission line and the tree and bamboo according to the real distance obtained in step S5 specifically includes the following steps: According to the actual distance between the power transmission line and the UAV and the actual distance between the bamboo and the UAV obtained in step S5, the distance between the power transmission line and the bamboo is calculated by using the triangle cosine theorem in combination with the coordinates of the target pixel point, the pixel size and the focal length of the camera: The angle θ between the transmission line and the tree is calculated using the following formula: Where n is the number of pixels between the transmission line and the tree; Z is the pixel size; f is the focal length of the camera; The distance c between the transmission line and the tree is calculated using the following formula: Where a is the actual distance between the tree and the UAV; b is the actual distance between the power line and the UAV.

9. A system for implementing the transmission line inspection and ranging method for a monocular vision drone as claimed in any one of claims 1 to 8, characterized in that It includes a model building module, an image acquisition module, a depth estimation module, an identification and positioning module, a distance calculation module and a patrol detection distance module; the model building module, the image acquisition module, the depth estimation module, the identification and positioning module, the distance calculation module and the patrol detection distance module are connected in series in sequence; the model building module is used to build and train a depth estimation model based on implicit 3D scene reconstruction technology, and upload data information to the image acquisition module; The image acquisition module is used to collect video images of the power transmission line area using a monocular camera mounted on a drone based on the received data, and upload the data information to the depth estimation module; The depth estimation module is used to perform depth estimation on the acquired image based on the received data using a depth estimation model to obtain a corresponding depth map, and upload the data information to the recognition and positioning module; The identification and positioning module is used to identify and locate the power transmission lines and trees in the image and depth map obtained according to the received data, and upload the data information to the distance calculation module; The distance calculation module is used to calculate the real distance between the transmission line and the UAV, and the real distance between the tree and the UAV according to the received data and the depth information corresponding to the depth map, and upload the data information to the patrol distance module; The patrol and ranging module is used to calculate the distance between the transmission line and the tree and bamboo according to the received data and the actual distance obtained, and complete the patrol and ranging of the transmission line for the monocular vision drone.

Citation Information

Patent Citations

  • Distance measuring method for tree obstacle hidden danger of power transmission line

    CN116091493A

  • Power transmission machinery external damage hidden danger distance measurement method

    CN116091494A

  • Monocular vision ranging method and system for unmanned aerial vehicle power transmission line inspection

    CN117726662A

  • Monocular hidden nerve mapping method based on multi-modal depth estimation guidance

    CN117765187A

Cited By

  • Power transmission channel scene image depth estimation method based on geometric priori of power transmission channel

    CN120431146A