Defect identification method and device of power transmission line, storage medium and electronic device
Through spatial curve fitting of point cloud data and deep learning model recognition of image data, the problem of low fault recognition rate of drones during inspections is solved, and accurate identification of transmission line defects and accurate reconstruction of conductors are achieved. .
Patent Information
- Application Number
- CN202410710437.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-27
AI Technical Summary
When existing drones inspect power transmission lines, the fault identification rate is low and there is a lack of effective solutions.
By performing spatial curve fitting on the point cloud data, converting it into image data, and inputting it into the defect recognition model for identification, it can quickly and accurately identify defects in transmission lines by combining with the deep learning model.
It improves the overall accuracy of inspections, enhances adaptability to complex terrain and geomorphic environments, improves fault identification rate, and ensures accurate reconstruction of conductors and rapid identification of defects.
Smart Images

Figure CN118711050A
Abstract
Description
Technical Field
[0001] The present application relates to the field of image detection, and more specifically, to a method and device for identifying defects in power transmission lines, a storage medium, and an electronic device. Background Art
[0002] Transmission lines usually cross a variety of geographical environments, including mountains, rivers, forests, etc., resulting in complex and changeable inspection routes. Traditional inspection methods mainly rely on manual inspections, which have a series of problems, including low work efficiency, poor personnel safety, and limited coverage.
[0003] At present, drones are widely used for power transmission line inspections. However, power transmission lines involve different regions, climates, and line types, which requires continuous optimization of the generalization ability of artificial intelligence models. New environments may cause model performance to degrade, requiring adaptive adjustments and retraining of the model. Therefore, current drones have a low fault recognition rate during inspections.
[0004] Regarding the problem of low fault recognition rate of current drones during inspections in related technologies, no effective solution has been proposed so far.
[0005] Therefore, it is necessary to improve the related technology to overcome the above-mentioned defects in the related technology. Summary of the invention
[0006] The embodiments of the present application provide a method and device for identifying defects in a power transmission line, a storage medium, and an electronic device, so as to at least solve the problem in the related art that the current drones have a low fault identification rate when performing inspections.
[0007] According to one aspect of an embodiment of the present application, a method for defect identification of a transmission line is provided, comprising: performing spatial curve fitting on point cloud data of the transmission line to obtain a first fitting result, wherein the point cloud data is three-dimensional spatial data, and the spatial curve fitting comprises: horizontal plane straight line fitting, vertical plane curve fitting, and three-dimensional spatial curve fitting; converting the first fitting result into image data; inputting the image data into a defect identification model to perform defect identification, and obtaining a defect identification result of the transmission line, wherein the defect identification result comprises: defect location and defect category.
[0008] In an exemplary embodiment, spatial curve fitting is performed on point cloud data of a transmission line to obtain a first fitting result, including: performing horizontal plane straight line fitting on the point cloud data to obtain a first curve equation of the point cloud data in the horizontal plane; performing vertical plane curve fitting on the point cloud data to obtain a second curve equation of the point cloud data in the vertical plane; performing three-dimensional spatial curve fitting on the point cloud data according to the first curve equation and the second curve equation to obtain the first fitting result.
[0009] In an exemplary embodiment, performing horizontal plane straight line fitting on the point cloud data to obtain a first curve equation of the point cloud data on the horizontal plane includes: performing dimensionality reduction processing on the point cloud data in the horizontal direction to reduce the dimension of the point cloud data from the three-dimensional space data to obtain horizontal plane coordinate information; performing least squares method on the formula Solve the partial derivative to zero and obtain a set of optimal solutions for m and k, where m and k are the parameters of the first curve equation, and x i is the i-th horizontal coordinate in the horizontal plane coordinate information, y i is the i-th ordinate in the horizontal plane coordinate information, where i is a positive integer; and the first curve equation y=mx+k is determined according to a set of optimal solutions of m and k.
[0010] In an exemplary embodiment, the point cloud data is subjected to vertical plane curve fitting to obtain a second curve equation of the point cloud data in the vertical plane, including: performing dimensionality reduction processing on the point cloud data in the vertical direction to reduce the dimension of the point cloud data from the three-dimensional space data to obtain vertical plane coordinate information; and fitting the equation by the least squares method. Solve the partial derivative to zero and obtain a set of optimal solutions of a, b and c, where a, b, c are the parameters of the second curve equation, x i is the i-th horizontal coordinate in the vertical plane coordinate information, z i is the i-th vertical coordinate in the vertical plane coordinate information, i is a positive integer; the second curve equation z=ax is determined according to a set of optimal solutions of a, b and c. 2 +bx+c.
[0011] In an exemplary embodiment, performing three-dimensional space curve fitting on the point cloud data according to the first curve equation and the second curve equation to obtain the first fitting result includes: integrating the first curve equation and the second curve equation to obtain a parameter equation of the three-dimensional space curve corresponding to the point cloud data: Wherein, t is the characteristic parameter of the three-dimensional space curve; the least square method is used to calculate the formula Solving the problem of partial derivatives being zero to obtain a set of optimal solutions for three-dimensional space parameters, wherein the three-dimensional space parameters include: A, B, C, D, E, F, G, H, K, L, M; p i is the point cloud data, t i is a characteristic parameter value corresponding to each data point in the three-dimensional space curve; and the first fitting result is determined according to a set of optimal solutions of the three-dimensional space parameters.
[0012] In an exemplary embodiment, before inputting the image data into a defect recognition model for defect recognition, the method further includes: performing spatial curve fitting on sample point cloud data of other transmission lines to obtain a second fitting result, wherein the sample point cloud data carries defect information of the other transmission lines; converting the second fitting result into sample image data, and mapping the defect information to the sample image data; and training the defect recognition model using the sample image data carrying the defect information.
[0013] In an exemplary embodiment, converting the first fitting result into image data includes: projecting point cloud data corresponding to the first fitting result onto a two-dimensional image plane in three-dimensional space to obtain projected point cloud data; converting the projected point cloud data into pixel values using image processing technology to obtain initial image data; performing post-processing operations on the initial image data to obtain the image data, wherein the post-processing operations include at least one of the following: adjusting brightness, adjusting contrast, and sharpening.
[0014] According to another aspect of an embodiment of the present application, a defect identification device for a transmission line is also provided, including: a fitting module, used to perform spatial curve fitting on point cloud data of the transmission line to obtain a first fitting result, wherein the point cloud data is three-dimensional spatial data, and the spatial curve fitting includes: horizontal plane straight line fitting, vertical plane curve fitting, and three-dimensional spatial curve fitting; a conversion module, used to convert the first fitting result into image data; and an identification module, used to input the image data into a defect identification model for defect identification to obtain a defect identification result of the transmission line, wherein the defect identification result includes: defect location and defect category.
[0015] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned transmission line defect identification method when running.
[0016] According to another aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the power transmission line defect identification method through the computer program.
[0017] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of the method described in each embodiment of the present application are implemented.
[0018] Through the present application, firstly, spatial curve fitting is performed on the point cloud of the transmission line to obtain a first fitting result, the point cloud data is three-dimensional space data, and the process of spatial curve fitting includes: horizontal plane straight line fitting, vertical plane curve fitting, and three-dimensional space curve fitting; then the transmission line described by the first fitting result is converted into image data; the image data is input into a defect recognition model for defect recognition to obtain a defect recognition result of the transmission line, wherein the defect recognition result includes the defect position and defect category contained in the transmission line; by adopting the above scheme, by performing spatial curve fitting on the point cloud data, the deficiencies in laser radar data collection are effectively compensated, the accurate reconstruction of the conductor is guaranteed, and the global accuracy of the inspection is improved; and a defect recognition model based on image deep learning is proposed, which can quickly and accurately identify the defects in the transmission line; thereby solving the problem of low fault recognition rate of current drones during inspections in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0021] Figure 1 It is a hardware structure block diagram of a computer terminal of a method for identifying defects in a power transmission line according to an embodiment of the present application;
[0022] Figure 2 is a flow chart of a method for identifying defects in a power transmission line according to an embodiment of the present application;
[0023] Figure 3 is a structural schematic diagram of a transmission tower model according to an embodiment of the present application;
[0024] Figure 4 It is a structural block diagram of a defect identification device for a power transmission line according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 1 is a hardware structure block diagram of a computer terminal of a method for identifying defects in a power transmission line according to an embodiment of the present application. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor (Central Processing Unit, MCU) or a programmable logic device (Field Programmable Gate Array, FPGA)) and a memory 104 for storing data, wherein the above-mentioned computer terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0028] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for identifying defects in power transmission lines in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0029] A wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
[0030] In this embodiment, a method for identifying defects in a transmission line is provided. Figure 2 is a flow chart of a method for identifying defects in a power transmission line according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps S202-S206:
[0031] Step S202: performing space curve fitting on the point cloud data of the power transmission line to obtain a first fitting result, wherein the point cloud data is three-dimensional space data, and the space curve fitting includes: horizontal plane straight line fitting, vertical plane curve fitting, and three-dimensional space curve fitting;
[0032] Step S204: converting the first fitting result into image data;
[0033] Step S206: inputting the image data into a defect recognition model to perform defect recognition, and obtaining a defect recognition result of the transmission line, wherein the defect recognition result includes: defect location and defect category.
[0034] Through the above steps, firstly, spatial curve fitting is performed on the point cloud of the transmission line to obtain a first fitting result, the point cloud data is three-dimensional space data, and the process of spatial curve fitting includes: horizontal plane straight line fitting, vertical plane curve fitting, and three-dimensional space curve fitting; then the transmission line described by the first fitting result is converted into image data; the image data is input into the defect recognition model for defect recognition to obtain the defect recognition result of the transmission line, wherein the defect recognition result includes the defect position and defect category contained in the transmission line; by adopting the above scheme, by performing spatial curve fitting on the point cloud data, the deficiencies in laser radar data collection are effectively compensated, the accurate reconstruction of the conductor is guaranteed, and the global accuracy of the inspection is improved; and a defect recognition model based on image deep learning is proposed, which can quickly and accurately identify the defects in the transmission line; thereby solving the problem of low fault recognition rate of current drones during inspection in related technologies.
[0035] In an exemplary embodiment, executing the above step S202: performing spatial curve fitting on the point cloud data of the power transmission line to obtain a first fitting result can be achieved by the following steps S11-S13, including:
[0036] Step S11: performing horizontal plane straight line fitting on the point cloud data to obtain a first curve equation of the point cloud data on the horizontal plane;
[0037] Step S12: performing vertical plane curve fitting on the point cloud data to obtain a second curve equation of the point cloud data on the vertical plane;
[0038] Step S13: performing three-dimensional space curve fitting on the point cloud data according to the first curve equation and the second curve equation to obtain the first fitting result.
[0039] The application of spatial curve fitting algorithm in power transmission line inspection is to process the point cloud data obtained by LiDAR, especially in the case of low data density or even wire breakage caused by environmental factors such as terrain and landform, it can be optimized. Optionally, modeling can be carried out based on the point cloud data obtained by the drone, and the transmission tower model can be identified and restored through the point cloud data. The restoration result is as follows: Figure 3 As shown, the transmission line in the model is optimized using a spatial curve fitting algorithm. The spatial curve fitting process includes three steps: horizontal plane straight line fitting, vertical plane curve fitting, and three-dimensional space curve fitting. First, the point cloud data is fitted with a horizontal plane straight line and a vertical plane straight line, and then the three-dimensional space curve is fitted according to the first curve equation of the horizontal plane dimension and the second curve equation of the vertical plane dimension obtained by fitting, to obtain the first fitting result.
[0040] Furthermore, the above step S11 can be implemented by the following steps: performing dimensionality reduction processing on the point cloud data in the horizontal direction to reduce the dimension of the point cloud data from the three-dimensional space data to obtain horizontal plane coordinate information; performing least square method on the formula Solve the partial derivative to zero and obtain a set of optimal solutions for m and k, where m and k are the parameters of the first curve equation, and x i is the i-th horizontal coordinate in the horizontal plane coordinate information, y i is the i-th ordinate in the horizontal plane coordinate information, where i is a positive integer; and the first curve equation y=mx+k is determined according to a set of optimal solutions of m and k.
[0041] The spatial curve fitting algorithm first performs a straight line fitting on the distribution of the conductors on the horizontal plane. Considering that the conductors of the transmission lines are usually distributed in a straight line in the horizontal direction, this fitting process helps to reduce the dimension of the data, and reduces the dimension of the three-dimensional point cloud data in the horizontal direction to form two-dimensional curve information on the horizontal plane. Horizontal plane straight line fitting uses optimization methods such as the least squares method to fit the data. Assuming that there is a set of two-dimensional point data (x_i, y_i) representing the distribution of the transmission line conductors on the horizontal plane, the goal of horizontal plane straight line fitting is to find a straight line equation y=mx+k, where m is the slope and k is the intercept, so that the sum of the residual squares between this straight line and the data points is minimized; thus obtaining the objective function: By solving the objective function S(m, k) with a partial derivative of zero, the least squares optimization equation group is obtained, thereby solving the best set of m and k; and then determining the first curve equation.
[0042] Furthermore, the above step S12 can be implemented by the following steps: performing dimensionality reduction processing on the point cloud data in the vertical direction to reduce the dimension of the point cloud data from the three-dimensional space data to obtain vertical plane coordinate information; performing least square method on the formula Solve the partial derivative to zero and obtain a set of optimal solutions of a, b and c, where a, b, c are the parameters of the second curve equation, x i is the i-th horizontal coordinate in the vertical plane coordinate information, z i is the i-th vertical coordinate in the vertical plane coordinate information, i is a positive integer; the second curve equation z=ax is determined according to a set of optimal solutions of a, b and c. 2 +bx+c.
[0043] Taking into account the parabolic distribution characteristics of the conductors in the vertical and horizontal planes, the algorithm performs two-dimensional curve fitting in the vertical plane. This step further reduces the dimension of the data, making it easier for the system to process and understand the spatial distribution of transmission lines.
[0044] For vertical plane curve fitting, parabola fitting is used, that is, finding a quadratic curve equation z = ax 2 +bx+c, where a, b, c are fitting parameters. The principle is similar to that of horizontal plane straight line fitting, and the objective function is obtained. By solving the objective function with a partial derivative of zero, the least squares optimization equations are obtained, thereby solving the best set of a, b, and c.
[0045] Furthermore, the above step S13 can be implemented by the following steps: integrating the first curve equation and the second curve equation to obtain a parameter equation of the three-dimensional space curve corresponding to the point cloud data: Wherein, t is the characteristic parameter of the three-dimensional space curve; the least square method is used to calculate the formula Solving the problem of partial derivatives being zero to obtain a set of optimal solutions for three-dimensional space parameters, wherein the three-dimensional space parameters include: A, B, C, D, E, F, G, H, K, L, M; p i is the point cloud data, t i is a characteristic parameter value corresponding to each data point in the three-dimensional space curve; and the first fitting result is determined according to a set of optimal solutions of the three-dimensional space parameters.
[0046] By fitting the curves in the horizontal and vertical directions, the algorithm completes the curve fitting of the entire three-dimensional space and obtains the distribution of the conductors in the overall three-dimensional space. This step enables the system to restore the original spatial form of the conductors, thereby more accurately reflecting the true state of the transmission line.
[0047] After completing the horizontal plane fitting and the vertical plane fitting, the relationship between x and y, and the relationship between x and z are obtained, and the equations can be integrated. The specific integration process includes:
[0048] Assume that the parameter of the three-dimensional parabola is t, which represents the position of the point on the curve in the parameterized path. In order to determine the parameter t, it can be defined based on the order and distribution of the point cloud data. Specifically, the cumulative arc length parameterization can be used, that is, the parameter is defined based on the distance between the curve points.
[0049] Let x be a function of t and substitute it into y = mx + k and z = ax^2 + bx + c;
[0050] (1) Determine x(t). Suppose we choose a suitable parameterized form to represent x(t). Suppose x(t) is a linear or quadratic equation: x(t) = p 1 t+q 1 t+r 1 ;
[0051] (2) Determine y(t) and substitute x(t) into y=mx+k to obtain:
[0052] y(t)=mx(t)+k=m(p 1 t 2 +q 1 t+r 1 )+k;
[0053] Expand to get y(t)=mp 1 t 2 +mq 1 t+mr 1 +k;
[0054] Let D = mp 1 , E = mq 1 , F = mr 1 +k;
[0055] Then y(t)=Dt 2 +Et+F;
[0056] (3) Determine z(t) and substitute x(t) into z = ax^2 + bx + c to obtain:
[0057] z(t)=a(x(t)) 2 +bx(t)+c;
[0058] z(t)=a(pt 2 +q 1 t+r 1 ) 2 +b(p 1 t 2 +q 1 t+r)+c;
[0059] Expand it and get:
[0060]
[0061] Simplifying, we get:
[0062]
[0063] Let: A = p 1 , B = q 1 , C=c, H=2ap 1 q 1 , L=2aq 1 r 1 +bq 1 , M = ar 1 2 +br 1 +c;
[0064] Thus, z(t) = Gt 4 +Ht 3 +Kt 2 +Lt+M;
[0065] Therefore, the parametric equation of the three-dimensional curve is finally obtained:
[0066] Here r(t) represents the position of the three-dimensional space curve under parameter t, A, B, C, D, E, F, G, H, K, L, M are the parameters of the curve, and these parameters can be adjusted to achieve the fitting of the given point cloud data. The objective function equation is: Among them, pi is the given 3D point cloud data, t i is the parameter value corresponding to each data point.
[0067] The least square method is used to minimize the objective function S (A, B, C, D, E, F, G, H, K, L, M) by adjusting the values of parameters A, B, C, D, E, F, G, H, K, L, M. The least square method optimization method can improve the accuracy of fitting, better fit the actual shape of the wire, and make the fitting result more in line with the actual scene.
[0068] By using 3D laser point cloud technology, the system can efficiently digitally model the transmission line and accurately control the line structure. This helps to timely discover potential problems such as tower tilt and wire breakage, and take measures in advance to prevent possible accident risks.
[0069] The application of spatial curve fitting algorithm effectively compensates for the deficiencies in lidar data collection and ensures accurate reconstruction of the wire. This enhances the system's adaptability to complex terrain and landform environments and further improves the global accuracy of inspections.
[0070] The optimized spatial curve fitting algorithm in this application can repair the broken points in the point cloud. In actual inspections, due to various reasons, the point cloud data obtained by the laser radar may not be dense enough, or even the fitted wire may be broken. The spatial curve fitting algorithm in this application can repair the broken points, so that the wire can be restored in the point cloud data, maintain its continuity, and improve the recognition of the integrity of the wire.
[0071] Optionally, before inputting the image data into a defect recognition model for defect recognition, the method further includes: performing spatial curve fitting on sample point cloud data of other transmission lines to obtain a second fitting result, wherein the sample point cloud data carries defect information of the other transmission lines; converting the second fitting result into sample image data, and mapping the defect information to the sample image data; and training the defect recognition model using the sample image data carrying the defect information.
[0072] The embodiment of the present application also provides a defect recognition model with higher recognition accuracy, which is combined with the above-mentioned spatial curve fitting algorithm to jointly complete autonomous defect recognition. Before using the image data obtained after spatial curve fitting for defect recognition, the defect recognition model needs to be trained.
[0073] First, the completed corona curve fitting result (ie, the second fitting result mentioned above) is converted into image data, which can be formed by projecting the point cloud in three-dimensional space onto a two-dimensional image plane to form one or more images.
[0074] Generate corresponding labels for the image data, which indicate whether there are defects in the image and the type of defects. This can be done by annotating the defect locations in the point cloud and then mapping the annotation information to the corresponding image. Specifically:
[0075] (1) When performing point cloud curve fitting, the defect locations in the point cloud data may have been annotated, which can be done manually or automatically. Manual annotation may require professionals to perform visual analysis of the point cloud and mark the defects, such as tower tilt, wire breakage, etc.
[0076] (2) Map the defect information in the point cloud to the corresponding image, which can be done by mapping the three-dimensional coordinates of the point cloud to the two-dimensional coordinates of the image, and mapping the type of defect to the corresponding category label. You can consider using a projection method to project the three-dimensional information of the point cloud onto the image to obtain the position of each point on the image.
[0077] (3) After the mapping is completed, a label image of the same size as the image is generated (i.e., sample image data carrying defect information). Each pixel in the label image represents the defect information at the corresponding position in the image. For example, the defect position can be set to a specific value, while other positions are background values.
[0078] (4) Each defect type is mapped to a unique certificate as a class label in the deep learning model. For example, 0 can be used to indicate no defect, 1 to indicate a tilted tower, 2 to indicate a broken conductor, etc.
[0079] (5) Assign the generated labeled images according to the division of training, validation, and test sets to ensure that each image has a corresponding label. This step is to ensure that the performance of the model can be correctly evaluated during the training, validation, and testing process of the deep learning model.
[0080] The trained defect recognition model can identify the corresponding defects in the input image. It can locate the defects in the image and provide the location information of the defects. This helps to accurately locate the problem area, making subsequent repair and maintenance work more efficient. The model can detect multiple defects in the same image at the same time, not just a single defect.
[0081] The image-based deep learning defect recognition algorithm (i.e. the above-mentioned defect recognition model) gives the system intelligent recognition capabilities. After training, the model can quickly and accurately identify defects in the tower foundation, tower body, ground wire, etc., and realize autonomous detection of various problems.
[0082] Optionally, converting the first fitting result into image data includes: projecting point cloud data corresponding to the first fitting result onto a two-dimensional image plane in three-dimensional space to obtain projected point cloud data; converting the projected point cloud data into pixel values using image processing technology to obtain initial image data; performing post-processing operations on the initial image data to obtain the image data, wherein the post-processing operations include at least one of the following: adjusting brightness, adjusting contrast, and sharpening.
[0083] Converting 3D point cloud data into images usually requires the following steps:
[0084] 1. Point cloud data preprocessing: First, the 3D point cloud data needs to be preprocessed, including noise removal, filtering, resampling, deduplication and other operations to ensure the quality and stability of the point cloud data;
[0085] 2. Point cloud projection: Use appropriate projection methods to project the 3D point cloud data onto a 2D plane. Usually, perspective projection or orthogonal projection can be used.
[0086] 3. Image generation: Based on the projected point cloud data, image processing technology can be used to generate the corresponding image. For example, rasterization technology can be used to convert point cloud data into pixel values to generate the final image.
[0087] 4. Image optimization: Post-process the generated image, including adjusting brightness, contrast, sharpening and other operations to obtain clear and accurate image results.
[0088] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0089] In this embodiment, a defect identification device for a power transmission line is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0090] Figure 4 : is a structural block diagram of a defect identification device for a power transmission line according to an embodiment of the present application, the device comprising:
[0091] A fitting module 42 is used to perform spatial curve fitting on the point cloud data of the power transmission line to obtain a first fitting result, wherein the point cloud data is three-dimensional spatial data, and the spatial curve fitting includes: horizontal plane straight line fitting, vertical plane curve fitting, and three-dimensional space curve fitting;
[0092] A conversion module 44, configured to convert the first fitting result into image data;
[0093] The recognition module 46 is used to input the image data into a defect recognition model to perform defect recognition, and obtain a defect recognition result of the transmission line, wherein the defect recognition result includes: defect location and defect category.
[0094] Through the above-mentioned device, firstly, spatial curve fitting is performed on the point cloud of the transmission line to obtain a first fitting result, and the point cloud data is three-dimensional spatial data. The process of spatial curve fitting includes: horizontal plane straight line fitting, vertical plane curve fitting, and three-dimensional spatial curve fitting; then the transmission line described by the first fitting result is converted into image data; the image data is input into the defect recognition model for defect recognition to obtain the defect recognition result of the transmission line, wherein the defect recognition result includes the defect position and defect category contained in the transmission line; by adopting the above-mentioned scheme, by performing spatial curve fitting on the point cloud data, the deficiencies in laser radar data collection are effectively compensated, the accurate reconstruction of the conductor is guaranteed, and the global accuracy of the inspection is improved; and a defect recognition model based on image deep learning is proposed, which can quickly and accurately identify the defects in the transmission line; thereby solving the problem of low fault recognition rate of current drones during inspection in related technologies.
[0095] In an exemplary embodiment, the fitting module 42 is also used to perform horizontal plane straight line fitting on the point cloud data to obtain a first curve equation of the point cloud data in the horizontal plane; to perform vertical plane curve fitting on the point cloud data to obtain a second curve equation of the point cloud data in the vertical plane; and to perform three-dimensional space curve fitting on the point cloud data according to the first curve equation and the second curve equation to obtain the first fitting result.
[0096] In an exemplary embodiment, the fitting module 42 is further used to perform dimensionality reduction processing on the point cloud data in the horizontal direction, so as to reduce the dimension of the point cloud data from the three-dimensional space data to obtain horizontal plane coordinate information; the least square method is used to calculate the formula Solve the partial derivative to zero and obtain a set of optimal solutions for m and k, where m and k are the parameters of the first curve equation, and x i is the i-th horizontal coordinate in the horizontal plane coordinate information, y i is the i-th ordinate in the horizontal plane coordinate information, where i is a positive integer; and the first curve equation y=mx+k is determined according to a set of optimal solutions of m and k.
[0097] In an exemplary embodiment, the fitting module 42 is further used to perform dimensionality reduction processing on the point cloud data in the vertical direction, so as to reduce the dimension of the point cloud data from the three-dimensional space data to obtain vertical plane coordinate information; the least square method is used to calculate the formula Solve the partial derivative to zero and obtain a set of optimal solutions of a, b and c, where a, b, c are the parameters of the second curve equation, x i is the i-th horizontal coordinate in the vertical plane coordinate information, z iis the i-th vertical coordinate in the vertical plane coordinate information, i is a positive integer; the second curve equation z=ax is determined according to a set of optimal solutions of a, b and c. 2 +bx+c.
[0098] In an exemplary embodiment, the fitting module 42 is further used to integrate the first curve equation and the second curve equation to obtain a parameter equation of the three-dimensional space curve corresponding to the point cloud data: Wherein, t is the characteristic parameter of the three-dimensional space curve; the least square method is used to calculate the formula Solving the problem of partial derivatives being zero to obtain a set of optimal solutions for three-dimensional space parameters, wherein the three-dimensional space parameters include: A, B, C, D, E, F, G, H, K, L, M; p i is the point cloud data, t i is a characteristic parameter value corresponding to each data point in the three-dimensional space curve; and the first fitting result is determined according to a set of optimal solutions of the three-dimensional space parameters.
[0099] In an exemplary embodiment, the above-mentioned identification module 46 is also used to perform spatial curve fitting on sample point cloud data of other transmission lines to obtain a second fitting result, wherein the sample point cloud data carries defect information of the other transmission lines; convert the second fitting result into sample image data, and map the defect information to the sample image data; and train the defect recognition model through the sample image data carrying the defect information.
[0100] In an exemplary embodiment, the above-mentioned conversion module 44 is also used to project the point cloud data corresponding to the first fitting result onto a two-dimensional image plane in three-dimensional space to obtain projected point cloud data; use image processing technology to convert the projected point cloud data into pixel values to obtain initial image data; perform post-processing operations on the initial image data to obtain the image data, wherein the post-processing operations include at least one of the following: adjusting brightness, adjusting contrast, and sharpening.
[0101] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0102] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0103] S1, performing space curve fitting on the point cloud data of the transmission line to obtain a first fitting result, wherein the point cloud data is three-dimensional space data, and the space curve fitting includes: horizontal plane straight line fitting, vertical plane curve fitting, and three-dimensional space curve fitting;
[0104] S2, converting the first fitting result into image data;
[0105] S3, inputting the image data into a defect recognition model to perform defect recognition, and obtaining a defect recognition result of the transmission line, wherein the defect recognition result includes: defect location and defect category.
[0106] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0107] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0108] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0109] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0110] S1, performing space curve fitting on the point cloud data of the transmission line to obtain a first fitting result, wherein the point cloud data is three-dimensional space data, and the space curve fitting includes: horizontal plane straight line fitting, vertical plane curve fitting, and three-dimensional space curve fitting;
[0111] S2, converting the first fitting result into image data;
[0112] S3, inputting the image data into a defect recognition model to perform defect recognition, and obtaining a defect recognition result of the transmission line, wherein the defect recognition result includes: defect location and defect category.
[0113] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0114] An embodiment of the present application further provides a computer program product, comprising a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program product, and when the computer program is executed by a processor, the steps of the method described in each embodiment of the present application are implemented.
[0115] Optionally, in this embodiment, the above computer program may be configured to implement the following steps when executed by a processor:
[0116] S1, performing space curve fitting on the point cloud data of the transmission line to obtain a first fitting result, wherein the point cloud data is three-dimensional space data, and the space curve fitting includes: horizontal plane straight line fitting, vertical plane curve fitting, and three-dimensional space curve fitting;
[0117] S2, converting the first fitting result into image data;
[0118] S3, inputting the image data into a defect recognition model to perform defect recognition, and obtaining a defect recognition result of the transmission line, wherein the defect recognition result includes: defect location and defect category.
[0119] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0120] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0121] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for identifying defects in a transmission line, characterized in that: include: Performing spatial curve fitting on the point cloud data of the power transmission line to obtain a first fitting result, wherein the point cloud data is three-dimensional spatial data, and the spatial curve fitting includes: horizontal plane straight line fitting, vertical plane curve fitting, and three-dimensional space curve fitting; converting the first fitting result into image data; The image data is input into a defect recognition model to perform defect recognition, and a defect recognition result of the transmission line is obtained, wherein the defect recognition result includes: defect location and defect category.
2. The method according to claim 1, characterized in that Performing spatial curve fitting on the point cloud data of the transmission line to obtain a first fitting result includes: Performing horizontal plane straight line fitting on the point cloud data to obtain a first curve equation of the point cloud data on the horizontal plane; Performing vertical plane curve fitting on the point cloud data to obtain a second curve equation of the point cloud data in the vertical plane; Perform three-dimensional space curve fitting on the point cloud data according to the first curve equation and the second curve equation to obtain the first fitting result.
3. The method according to claim 2, characterized in that Performing horizontal plane straight line fitting on the point cloud data to obtain a first curve equation of the point cloud data on the horizontal plane includes: Performing dimensionality reduction processing on the point cloud data in the horizontal direction, so as to reduce the dimension of the point cloud data from the three-dimensional space data to obtain horizontal plane coordinate information; By using the least squares method, the formula Solve the partial derivative to zero and obtain a set of optimal solutions for m and k, where m and k are the parameters of the first curve equation, and x i is the i-th horizontal coordinate in the horizontal plane coordinate information, y i is the i-th ordinate in the horizontal plane coordinate information, where i is a positive integer; The first curve equation y=mx+k is determined according to a set of optimal solutions of m and k.
4. The method according to claim 2, characterized in that: Performing vertical plane curve fitting on the point cloud data to obtain a second curve equation of the point cloud data in the vertical plane includes: Performing dimensionality reduction processing on the point cloud data in the vertical direction, so as to reduce the dimension of the point cloud data from the three-dimensional space data to obtain vertical plane coordinate information; By using the least squares method, the formula Solve the partial derivative to zero and obtain a set of optimal solutions of a, b and c, where a, b, c are the parameters of the second curve equation, x i is the i-th horizontal coordinate in the vertical plane coordinate information, z i is the i-th vertical coordinate in the vertical plane coordinate information, where i is a positive integer; Determine the second curve equation z=ax according to a set of optimal solutions of a, b and c 2 +bx+c.
5. The method according to claim 2, characterized in that: Performing three-dimensional space curve fitting on the point cloud data according to the first curve equation and the second curve equation to obtain the first fitting result includes: The first curve equation and the second curve equation are integrated to obtain a parametric equation of the three-dimensional space curve corresponding to the point cloud data: Wherein, t is the characteristic parameter of the three-dimensional space curve; By using the least squares method, the formula Solve the partial derivative to zero to obtain a set of optimal solutions for the three-dimensional space parameters, wherein the three-dimensional space parameters include: A, B, C, D, E, F, G, H, K, L, M; p i is the point cloud data, t i is the characteristic parameter value corresponding to each data point in the three-dimensional space curve; The first fitting result is determined according to a set of optimal solutions of the three-dimensional space parameters.
6. The method according to claim 1, characterized in that Before inputting the image data into a defect recognition model for defect recognition, the method further includes: Performing spatial curve fitting on sample point cloud data of other power transmission lines to obtain a second fitting result, wherein the sample point cloud data carries defect information of the other power transmission lines; converting the second fitting result into sample image data, and mapping the defect information into the sample image data; The defect recognition model is trained using sample image data carrying the defect information.
7. The method according to claim 1, characterized in that Converting the first fitting result into image data comprises: Projecting the point cloud data corresponding to the first fitting result onto a two-dimensional image plane in three-dimensional space to obtain projected point cloud data; Using image processing technology to convert the projected point cloud data into pixel values to obtain initial image data; A post-processing operation is performed on the initial image data to obtain the image data, wherein the post-processing operation includes at least one of the following: adjusting brightness, adjusting contrast, and sharpening.
8. A defect identification device for a power transmission line, characterized in that: include: A fitting module, used for performing spatial curve fitting on the point cloud data of the transmission line to obtain a first fitting result, wherein the point cloud data is three-dimensional space data, and the spatial curve fitting includes: horizontal plane straight line fitting, vertical plane curve fitting, and three-dimensional space curve fitting; A conversion module, used for converting the first fitting result into image data; The recognition module is used to input the image data into a defect recognition model to perform defect recognition, and obtain a defect recognition result of the transmission line, wherein the defect recognition result includes: defect location and defect category.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
