Method for establishing three-dimensional secure channel of power line based on computer vision
Through computer vision and lidar technology, combined with image segmentation and depth estimation, a three-dimensional safety channel for power lines is established, which solves the detection problem of power lines threatened by tree obstacles, realizes efficient and accurate power line safety inspection, and meets the needs of modern power grids. .
Patent Information
- Application Number
- CN202410836070.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-29
AI Technical Summary
Existing technology cannot effectively detect and prevent power lines from being threatened by external factors such as tree obstructions, resulting in low efficiency and high cost of power line safety inspections, and the inability to accurately obtain the three-dimensional spatial relationship between power lines and the surrounding environment, which cannot meet the needs of the development and safe operation of modern power grids. need.
Using a method based on computer vision, the three-dimensional point cloud of the scene around the power line is obtained through image semantic segmentation algorithm and depth estimation technology, combined with the laser radar to scan the three-dimensional coordinates of the power line, establishing a three-dimensional safe channel for the power line, and setting up a predetermined safety buffer to ensure that the power line safe operation.
It achieves the accurate establishment of three-dimensional safety channels for power lines, improves detection accuracy and anti-interference capabilities, reduces costs, improves inspection efficiency, and is universal and real-time.
Smart Images

Figure CN118864702A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of computer vision, and in particular to a method for detecting tree barriers invading power lines. Background Art
[0002] The establishment of a safe channel for power lines based on computer vision refers to the use of image processing and computer vision technology to utilize the feature information in the input image to establish a three-dimensional point cloud of the environment around the power lines, and to combine the accurate three-dimensional coordinates of the transmission lines obtained by lidar to establish a three-dimensional safe channel for the power lines by setting a predetermined safety buffer zone.
[0003] With the development of urbanization and technology, the density of power lines is increasing, and their safe operation is threatened by external factors such as nearby tree barriers and buildings. The safe and reliable operation of transmission lines is directly related to the stable development of a country's economy and people's livelihood. At present, the inspection of transmission line channels in my country's power grid is mainly based on manual inspection. This inspection method has high labor intensity, difficult working conditions, low inspection efficiency, high cost of use and maintenance, and cannot accurately obtain the three-dimensional spatial relationship between power lines and the surrounding environment. It can no longer meet the development and safe operation needs of modern power grids. With the advancement of computer vision technology and the development of ranging devices such as depth cameras and lidar, image-based power line safe three-dimensional channels have become an effective method. In this method, semantic segmentation technology is first used to process the image to segment different surrounding scenes such as power lines and trees. Combined with the scene depth information obtained by the depth camera, a three-dimensional point cloud of each scene in the image can be established. Then, the laser radar device is used to obtain the three-dimensional coordinate data of the power line. The surrounding scenes and the three-dimensional coordinate information of the power line are used to detect whether the surrounding scenes invade the safe distance of the power line, and a three-dimensional safe channel for the power line is established by setting a safe buffer. The combination of semantic segmentation and LiDAR can provide precise location and shape information of surrounding scenes and power lines, and can accurately detect obstacle intrusions.
[0004] In order to improve the universality and real-time performance of establishing a three-dimensional safe channel for power lines, a feasible method is to obtain images of power lines and surrounding scenes in real time through a camera module, and then segment the area of each scene element through an image segmentation algorithm and estimate the image depth information using a depth estimation network. The segmented scene areas and depth information are combined to obtain a three-dimensional point cloud corresponding to each scene element in the image. Combined with the use of a laser radar to scan the power line, the three-dimensional coordinates of the power line are provided, and the three-dimensional area of the power line and the surrounding scene is obtained more accurately in three-dimensional space. The three-dimensional coordinates of the two are used to detect whether there is a power line intrusion phenomenon. This method can establish a three-dimensional safe channel for power lines in real time through a camera module, which is lower cost and faster. Summary of the invention
[0005] In order to improve the accuracy of establishing a three-dimensional safe channel for power lines and improve anti-interference capabilities, the present invention provides a method for establishing a three-dimensional safe channel for power lines based on computer vision. The scene around the power lines is obtained based on an image segmentation algorithm, and the three-dimensional point cloud area coordinates of the scene are obtained in combination with the image depth information obtained by the depth estimation algorithm. The power lines are then scanned using a laser radar to obtain the three-dimensional coordinates of the power lines. The three-dimensional point cloud coordinates of the surrounding scenes and the three-dimensional coordinates of the power lines are combined to more accurately establish a three-dimensional safe channel for the power lines.
[0006] To achieve the above object, the present invention discloses a method for establishing a three-dimensional safe channel of a power line based on computer vision, the steps comprising:
[0007] Step S10: Based on the image semantic segmentation algorithm, the algorithm is trained through the data collected outdoors to achieve accurate key scene element area segmentation of the transmission line scene;
[0008] Step S101: firstly, the K-Means clustering algorithm is used to process pixels, and by minimizing the objective function, the similarity between pixels in the same cluster is maximized, while the similarity between different clusters is minimized;
[0009] Step S102: In order to solve the noise interference problem that may be encountered during the image segmentation process, a weighted filter is used for processing. This method can effectively suppress the influence of noise on the target image while maintaining the image detail features, thereby achieving a better segmentation effect;
[0010] Step S20: using deep learning based on a convolutional neural network (CNN) to perform depth estimation on the scene around the power lines in the image, obtain depth information of the area around the power lines, combine the segmentation result with the depth information, and form corresponding three-dimensional point clouds for each segmented key scene element, such as tree point clouds, building point clouds, etc.;
[0011] Step S201: First, a large amount of labeled power line scene image data is produced based on a large number of collected power line scene pictures, and a deep convolutional neural network model is trained. The input of this model is the power line scene image, and the output is the disparity value of each pixel point.
[0012] Step S202: During the training process, the loss function is set to the mean absolute error (MAE) between the predicted disparity value and the true disparity value, and the network weights are iteratively optimized using stochastic gradient descent (SGD) and other optimization techniques (such as learning rate decay, weight decay, etc.);
[0013] Step S203: After the CNN model training is completed, the image to be estimated in depth is input into the model. The disparity value output of each pixel is directly obtained, thereby generating a disparity map. Based on the known internal and external parameters of the camera, the disparity map is converted into a depth map of the same size as the original image, indicating the position of each object in the scene in three-dimensional space;
[0014] Step S30: Fusing the result of semantic segmentation in S10 and the depth information of the area around the power lines obtained by depth estimation in S20, extracting the coordinate information of the pixels belonging to the scene around the power lines, using the corresponding depth image pixel coordinates to correspond to the scene coordinates obtained after processing the segmentation map, ensuring that the scale of the depth map and the tree segmentation map pixels are consistent, and according to the coordinate information and depth value of the scene, converting the scene coordinates from the image plane to the three-dimensional space coordinate system to establish a three-dimensional point cloud of the scene;
[0015] Step S40: Use laser radar to scan along the path where the power line is located, and obtain the three-dimensional coordinate point cloud data of the location of the power line by measuring the time and intensity of the laser reflection back. Align the point cloud obtained by the laser radar with the image coordinate system, map the three-dimensional point cloud data to the image pixel coordinate system, and obtain the accurate three-dimensional coordinate information of the power line in the image;
[0016] Step S50: Utilize the three-dimensional point cloud data of the surrounding scene obtained in S30 to count the height, density, volume and other characteristics of the scene around the power line. According to the three-dimensional information of the power line obtained in S40, determine the geometric shape and position of the power line, and obtain the starting point coordinates, end point coordinates and line segment direction of the power line. According to the characteristics and safety requirements of the power line, set a predetermined safety buffer zone, combine the three-dimensional point cloud of the surrounding scene and the setting of the safety buffer zone, and reserve enough space around the power line to ensure that the three-dimensional point cloud of the surrounding scene will not interfere with and threaten the power line, so as to form a three-dimensional safety channel for the power line.
[0017] Beneficial effects: The present invention combines computer vision, digital image processing technology and lidar technology, and establishes a three-dimensional safe channel for power lines by analyzing images captured by the camera. It has the advantages of high universality, low cost and high accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A flow chart of the steps for establishing a three-dimensional safe channel for power lines of the present invention. DETAILED DESCRIPTION
[0019] The following describes the implementation of the present invention through specific examples and in conjunction with the accompanying drawings. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific examples, and the details in this specification can also be modified and changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.
[0020] Step S10: Based on the image semantic segmentation algorithm, the algorithm is trained through the data collected outdoors to achieve accurate key scene element area segmentation of the transmission line scene;
[0021] Step S101: First, use the K-Means clustering algorithm to perform cluster analysis on the pixels of the image. First, randomly select K pixels from the input pixel set as the initial cluster center. Then, for each pixel, calculate its distance to all K cluster centers and assign it to the cluster where the nearest cluster center is located. When all pixels have been assigned to a cluster, calculate the average value of all pixels in each cluster and set this value as the new cluster center. Repeat the above steps until the position of the cluster center no longer changes or changes very little. Its objective function is as follows:
[0022]
[0023] Where SSE is the minimum square error, c i is the cluster division obtained after clustering,
[0024] x is a cluster c i The mean vector of , k is the maximum number of clusters.
[0025] Step S102: In order to solve the interference of noise in the image segmentation problem, weighted filtering is used to process the image, which can effectively suppress the influence of noise on the target image while maintaining the image detail features, thereby achieving a good segmentation effect. The target formula is as follows:
[0026]
[0027] where w ij represents the weight of pixel j centered on i; N i represents the set of neighborhood pixels centered on i; j, g, and f represent the indexes in the neighborhood window, and x j 、x g 、x f Represents the corresponding grayscale value. Formula (3) is used to perform weighted filtering on the central pixel to effectively reduce the impact of noise.
[0028]
[0029] where w ij represents the filter calculation window, x i 、x j Respectively represent the pixel value of point x after filtering and the grayscale value of point x before filtering, N i Represents the set of neighborhood pixels centered on i.
[0030] Step S20: using a depth estimation algorithm to perform depth estimation on the scene around the power lines in the image, obtaining depth information of the area around the power lines, combining the segmentation result with the depth information, and forming corresponding three-dimensional point clouds for each segmented key scene element, such as tree point clouds, building point clouds, etc.;
[0031] Step S201: First, accumulate a large number of power line scene images. What we need to do is to create a labeled power line scene image dataset from these images. These labels should be the "disparity value" of each pixel. This data will be used to train our deep convolutional neural network (CNN), that is, our depth measurement model, which operates by inputting power line scene images and outputting the disparity value of each pixel;
[0032] Step S202: During the training process, we set the loss function to the mean absolute error (MAE) between the predicted disparity value and the true disparity value. This function can quantify the difference between our prediction and the actual value so that we can optimize the performance of the model. We will use optimization algorithms (such as Stochastic Gradient Descent (SGD)) and other optimization strategies such as learning rate decay and weight decay to iteratively adjust the network parameters so that the model's predicted disparity map is as close to the actual disparity map as possible;
[0033] Step S203: When the model training is completed, we can input the power line image that needs to measure the 3D depth. The model can generate the disparity value output of each pixel according to the training and generate a disparity map. This disparity map essentially represents the depth information of each pixel on the image. Then, based on the internal and external parameters of the camera, that is, the physical parameters such as the focal length and field of view of the camera and the position information of the camera, we can convert this disparity map into a depth map through a series of geometric transformations. This depth map can represent the three-dimensional spatial position of each object in the scene. For example, the larger the value of each pixel on the depth map, the farther the power line corresponding to the pixel is from the camera in the real world;
[0034] Step S30: Fuse the result of semantic segmentation in S10 and the depth information of the area around the power lines obtained by depth estimation in S20, extract the coordinate information of the pixels belonging to the scene around the power lines, use the corresponding depth image pixel coordinates to correspond to the scene coordinates obtained after processing the segmentation map, ensure that the scale of the depth map and the tree segmentation map pixels are consistent, and according to the coordinate information and depth value of the scene, convert the scene coordinates from the image plane to the three-dimensional space coordinate system, use the camera's intrinsic parameters and depth value to calculate the three-dimensional coordinates corresponding to each pixel, and finally obtain a three-dimensional point cloud image of the scene in the image, each image contains its spatial position information and corresponding depth value;
[0035] Step S40: Use a laser radar to scan along the path where the power line is located, and obtain the three-dimensional coordinate point cloud data of the location where the power line is located by measuring the time and intensity of the laser reflection back. Use the Euclidean clustering method to denoise the collected point cloud data and filter out noise points that do not conform to the shape of the power line and points with weak signals;
[0036] Align the point cloud obtained by the laser radar with the image coordinate system, determine the relative position and direction relationship between the image and the laser radar, calculate the transformation matrix between the image coordinate system and the point cloud coordinate system, and use the transformation matrix to map the three-dimensional point cloud data to the image pixel coordinate system to obtain the accurate three-dimensional coordinate information of the power lines in the image;
[0037] Step S50: Utilize the three-dimensional point cloud data of the surrounding scene obtained in S30 to count the height, density, volume and other characteristics of the scene around the power line. According to the three-dimensional information of the power line obtained in S40, determine the geometric shape and position of the power line, and obtain the starting point coordinates, end point coordinates and line segment direction of the power line. According to the characteristics and safety requirements of the power line, set a predetermined safety buffer zone, combine the three-dimensional point cloud of the surrounding scene and the setting of the safety buffer zone, and reserve enough space around the power line to ensure that the three-dimensional point cloud of the surrounding scene will not interfere with and threaten the power line, so as to form a three-dimensional safety channel for the power line.
Claims
1. A method for establishing a three-dimensional safe channel for power lines based on computer vision, characterized in that: The following steps are involved: S10: Segment the scene elements such as power lines, trees, and buildings in the input image based on the image semantic segmentation model; S20: Obtaining depth information of the input image based on a depth estimation algorithm; S30: Combining the semantic segmentation result and the depth information of the image to obtain a three-dimensional point cloud of each segmented scene element; S40: Scanning the power lines based on the laser radar to obtain accurate three-dimensional coordinates of the power lines in the input image; S50: Determine a safety buffer zone based on the three-dimensional coordinates of the power line and the three-dimensional point cloud of surrounding obstacles, and establish a three-dimensional safety channel for the power line.
2. The method for extracting scene elements according to semantic segmentation according to claim 1, characterized in that: The image segmentation algorithm is used to accurately segment the tree area.
3. The method for obtaining image depth information using a depth estimation algorithm according to claim 1, characterized in that: Using the depth estimation network, after a certain amount of training, the power lines and their surrounding scenes are learned, so that it can output accurate scene depth information.
4. The method for obtaining three-dimensional coordinates of power lines by scanning power lines with a laser radar according to claim 1, characterized in that: Laser radar scanning can accurately determine the three-dimensional position of power lines and obtain the accurate three-dimensional coordinate area of power lines.
Citation Information
Cited By
Power transmission channel cloud three-dimensional optimization design system fused with laser point cloud
CN121352172A
