Photovoltaic module accurate positioning method based on unmanned aerial vehicle inspection
Through drone inspection and deep learning technology, the electronic map logical mapping relationship of photovoltaic arrays is established, which solves the problem of low positioning accuracy of faulty components in photovoltaic power stations and achieves precise positioning and efficient maintenance of photovoltaic components.
Patent Information
- Application Number
- CN202410616345.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-08-23
AI Technical Summary
Existing technology cannot quickly and accurately locate faulty photovoltaic modules in photovoltaic power plants, resulting in low maintenance efficiency.
The drone inspection method is used to segment and match the photovoltaic panels through infrared image collection and photovoltaic panel segmentation network model based on deep learning, establish the electronic map logical mapping relationship of the photovoltaic array, and accurately locate faulty components.
It achieves precise positioning of photovoltaic modules with zero distance error, improves inspection efficiency and feasibility, helps operation and maintenance personnel quickly discover and handle abnormalities, and is suitable for a variety of photovoltaic scenarios.
Smart Images

Figure CN118537520A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of unmanned aerial vehicle photovoltaic inspection, and specifically relates to a method for accurately positioning photovoltaic components based on unmanned aerial vehicle inspection. Background Art
[0002] As the core power generation component of a photovoltaic power station, the normal operation of photovoltaic modules will directly affect the power generation and revenue of the entire photovoltaic power station, and even affect the safety of the entire photovoltaic power station. However, due to various environmental factors, photovoltaic modules in each photovoltaic power station will have various problems, and it is necessary to quickly locate the faulty modules and eliminate them in time. However, conventional GPS positioning has accuracy errors and cannot pinpoint the specific module locations of the photovoltaic array. Workers need to continue searching, which affects maintenance efficiency. Therefore, how to quickly and accurately locate the abnormal photovoltaic module locations in a photovoltaic power station is particularly important for the efficient operation and maintenance of photovoltaic power stations. Summary of the invention
[0003] The purpose of the present invention is to overcome the deficiencies of the above-mentioned prior art and provide a method for accurately positioning photovoltaic components based on drone inspection.
[0004] In order to solve the technical problem, the technical solution of the present invention is: a photovoltaic module precise positioning method based on drone inspection, comprising the following steps: Step 1: Obtaining the location and number of the photovoltaic array: Obtain the GPS coordinates and row and column numbers of the four vertices of each photovoltaic array from the constructed photovoltaic power station electronic map database; Step 2: Photovoltaic panel image segmentation: The drone collects infrared images along the photovoltaic array, and uses the photovoltaic panel segmentation network model based on deep learning to segment and post-process the photovoltaic panels in the infrared image to obtain all the photovoltaic panel areas in the infrared image; Step 3: Photovoltaic array matching: Calculate the GPS coordinates of the effective vertices of the photovoltaic panel area according to the drone attitude and camera internal parameters, and perform distance matching with the photovoltaic array on the electronic map in step 1 to obtain all the information of the corresponding photovoltaic array, including the GPS coordinates and row and column number information of the photovoltaic array on the electronic map; Step 4: Photovoltaic module mapping: by performing straight line detection on the horizontal direction of the photovoltaic panel area in step 2, and then calculating the GPS coordinates of the center point of the quadrilateral area of each photovoltaic module in the photovoltaic panel area according to the GPS coordinates and row and column number information of the photovoltaic array on the electronic map matched in step 3, a logical mapping relationship with the electronic map is established; Step 5: According to the pixel position of the detected faulty PV module on the infrared image, the nearest PV module is calculated by pixel distance, and the logical number and corresponding specific physical position of the PV module on the electronic map can be obtained to achieve accurate positioning of the faulty PV module.
[0005] Preferably, the step 1 comprises: Step 1-1: Construct an electronic map database of a photovoltaic power station: collect a set of visible light images that can cover the entire photovoltaic power station through drones, use jigsaw software to generate orthophotos, compare the actual positions and numbers of the photovoltaic arrays in the construction design drawings of the photovoltaic power station, and mark each photovoltaic array (PVA_0, PVA_1, ..., PVA_x) with a quadrilateral on the overall orthophoto of the photovoltaic power station loaded by the numbering software, and obtain the logical position and number corresponding to the actual position one by one, and store them in the database; Step 1-2: Obtain the GPS coordinates and row and column numbers of the four vertices of each photovoltaic array from the photovoltaic power station electronic map database.
[0006] Preferably, the GPS coordinates of the four vertices of the photovoltaic array are ([Lon_0, Lat_0], [Lon_1, Lat_1], [Lon_2, Lat_2], [Lon_3, Lat_3]), and the row and column numbers of the photovoltaic array are (Row_Num, Col_Num).
[0007] Preferably, the step 2 comprises: Step 2-1: Collect a large number of infrared images through drones multiple times, and use the labeling tool Labelme to label the photovoltaic panel area segmentation samples; Step 2-2: Use the photovoltaic panel segmentation network model based on deep learning for training, use the trained segmentation network model to segment and binarize the infrared image, and extract the photovoltaic panel area; Step 2-3: Perform contour detection and contour quadrilateral fitting on the binarized infrared image to obtain the quadrilateral contours of all photovoltaic panels in the infrared image and the pixel positions of the four vertices ([X_0, Y_0], [X_1, Y_1], [X_2, Y_2], [X_3, Y_3]); Step 2-4: Perform mask operations on the binarized infrared image and the original infrared image to divide them into multiple photovoltaic panel areas (PVP_0, PVP_1, …, PVP_x).
[0008] Preferably, steps 2-4 also include: photovoltaic panel areas that do not meet the requirements need to be eliminated, and one of two methods is selected. One method is to calculate the pixel area of the photovoltaic panel area and eliminate the photovoltaic panel areas that are less than 2000; the other method is to count the widths of all photovoltaic panel areas and eliminate the photovoltaic panel areas with abnormal widths.
[0009] Preferably, step 3 comprises: Step 3-1: By calling the exiv2 interface to parse the exif data of the current infrared image, the drone attitude and GPS coordinates of the image are obtained, and then the image coordinates of the valid vertices of each photovoltaic panel area are converted into GPS coordinates according to the camera internal parameters; Step 3-2: According to the GPS coordinates of the four vertices of each photovoltaic array in the database obtained in step 1, match the photovoltaic array closest to it by shortest distance search, map each photovoltaic panel area to the electronic map of the photovoltaic power station, and obtain the GPS coordinates of the four vertices and row and column number information of the corresponding photovoltaic array accordingly.
[0010] Preferably, the drone attitude includes pitch angle, yaw angle and roll angle; GPS coordinates are longitude and latitude based on the WGS-84 coordinate system; camera intrinsic parameters are obtained by using a checkerboard image for camera calibration, including camera focal length (Fx, Fy), principal point coordinates (Cx, Cy) and distortion parameters (K1, K2, K3); the effective vertices of the photovoltaic panel area refer to the vertices of the photovoltaic array of the photovoltaic power station electronic map seen from the infrared image, and are also the vertices that are greater than 10 pixels away from the image boundary.
[0011] Preferably, the image coordinates of the effective vertices of the photovoltaic panel area are converted into GPS coordinates as follows: first, the pixel coordinate system is converted into normalized coordinates in the camera coordinate system through the camera intrinsic parameters and the drone attitude; then, the normalized coordinates are converted into coordinates in the camera coordinate system using the camera's projection model; finally, the coordinates in the camera coordinate system are converted into coordinates in the world coordinate system through the camera's position and attitude information in the world coordinate system, which are the GPS coordinates of the effective vertices of the photovoltaic panel area.
[0012] Preferably, step 4 comprises: Step 4-1: Perform straight line detection on each photovoltaic panel area on the infrared image to obtain the number of rows and pixel positions of the photovoltaic panel area; Step 4-2: Obtain the row and column numbers of the photovoltaic panel area according to the photovoltaic array of the matched photovoltaic power station electronic map, and calculate the quadrilateral area of each photovoltaic module on the photovoltaic panel area; Step 4-3: Calculate the GPS coordinates of the center point of each photovoltaic module area on the photovoltaic panel area based on the matched valid vertex GPS coordinates; Step 4-4: Establish a one-to-one logical mapping relationship between each photovoltaic component in each photovoltaic panel area on the infrared image and the photovoltaic component on the electronic map of the photovoltaic power station.
[0013] Preferably, step 5 comprises: Step 5-1: According to the pixel position of the faulty component on the infrared image, match the nearest photovoltaic component by pixel distance; Step 5-2: According to the logical mapping relationship between the matched photovoltaic components and the photovoltaic components on the electronic map, the logical number of the faulty component on the electronic map and the corresponding specific physical location can be obtained, thereby ensuring the accurate positioning of the faulty photovoltaic component; Step 5-3: Output the fault type and logical location of the faulty component in a report for inspection personnel to eliminate the fault, thus completing the entire photovoltaic inspection process.
[0014] Compared with the prior art, the advantages of the present invention are: (1) The present invention proposes a method for accurately locating photovoltaic components based on drone inspection. By performing regional segmentation of photovoltaic panels and fine extraction of photovoltaic components on each infrared image collected by the drone inspection, a one-to-one logical mapping relationship between photovoltaic array components and electronic map photovoltaic components is established, and finally the faulty components in the infrared image are accurately located, thereby improving the feasibility and efficiency of drone photovoltaic inspection and helping inspection personnel to quickly and accurately discover and handle abnormalities on photovoltaic components. (2) The present invention includes five key modules: a photovoltaic array database acquisition module, a photovoltaic panel area extraction module, a photovoltaic panel area matching module, a photovoltaic component mapping module, and a photovoltaic component positioning module. These five key modules, combined with another target detection module, can obtain the precise location of the faulty photovoltaic component and accurately locate the specific photovoltaic component to achieve zero distance error; (3) Based on the positioning data of the faulty photovoltaic components obtained by the present invention, the operation and maintenance personnel can quickly locate and maintain the faulty components. At the same time, the system can also be connected with the photovoltaic power station management platform, integrated with other operation and maintenance data for analysis, conduct in-depth data mining, and comprehensively and scientifically evaluate the operation and maintenance results of the power station; (4) The present invention can be applied to various types of photovoltaic panels, such as flat single-axis and fixed-axis, and can also be applied to various photovoltaic scenes, such as deserts, water surfaces, and mountains. It has the advantages of high flexibility, high robustness, and high accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 , a flow chart of a method for accurately positioning photovoltaic components based on drone inspection of the present invention; Figure 2 , a schematic diagram of a photovoltaic panel segmentation binary image and contour extraction results in Example 7 of the present invention; Figure 3 , a schematic diagram of the results of the horizontal straight line detection of a single photovoltaic panel and the entire photovoltaic panel in Example 7 of the present invention; Figure 4 , a schematic diagram of the marking results of the center coordinates of each photovoltaic module on the infrared image calculated in Example 7 of the present invention. DETAILED DESCRIPTION
[0016] The specific implementation mode of the present invention is described below in conjunction with embodiments: It should be noted that the structures, proportions, sizes, etc. shown in this specification are only used to match the contents disclosed in the specification so that people familiar with this technology can understand and read them, and are not used to limit the conditions under which the present invention can be implemented. Any structural modification, change in proportional relationship or adjustment of size should still fall within the scope of the technical content disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.
[0017] Example 1 like Figure 1 As shown, the present invention discloses a method for accurately positioning photovoltaic components based on drone inspection, comprising the following steps: Step 1: Obtaining the location and number of the photovoltaic array: Obtain the GPS coordinates and row and column numbers of the four vertices of each photovoltaic array from the constructed photovoltaic power station electronic map database (photovoltaic array database); Step 2: Photovoltaic panel image segmentation: The drone collects infrared images (original infrared images) along the photovoltaic array, and uses the photovoltaic panel segmentation network model based on deep learning to segment the photovoltaic panels in the infrared image (photovoltaic panel area segmentation) and post-process them to obtain all photovoltaic panel areas in the infrared image; Step 3: Photovoltaic array matching: Calculate the GPS coordinates of the effective vertices of the photovoltaic panel area according to the drone attitude and camera internal parameters, and perform distance matching with the photovoltaic array on the electronic map in step 1 (the photovoltaic panel area and the photovoltaic array on the electronic map perform the closest distance matching), and obtain all the information of the corresponding photovoltaic array, including the GPS coordinates and row and column number information of the photovoltaic array on the electronic map; Step 4: Photovoltaic component mapping: Perform straight line detection on the horizontal direction of the photovoltaic panel area in step 2, and then calculate the GPS coordinates of the center point of the quadrilateral area of each photovoltaic component in the photovoltaic panel area according to the GPS coordinates and row and column number information of the photovoltaic array on the electronic map matched in step 3 (the quadrilateral area of each component is divided by the matched row and column numbers) (the GPS coordinates of the center point of each component are calculated from the matched valid vertex GPS coordinates), and establish a logical mapping relationship with the electronic map (logical mapping of the faulty components detected on the image with the photovoltaic components on the electronic map); Step 5: Based on the pixel position of the detected faulty PV module on the infrared image, the nearest PV module is calculated by pixel distance, and the logical number and corresponding specific physical position of the PV module on the electronic map can be obtained to accurately locate the faulty PV module, and output the fault type and logical position information of the faulty module for troubleshooting.
[0018] The present invention includes five key modules: a photovoltaic array database acquisition module (acquisition of the location and number of the photovoltaic array), a photovoltaic panel area extraction module (photovoltaic panel image segmentation), a photovoltaic panel area matching module (photovoltaic array matching), a photovoltaic component mapping module (photovoltaic component mapping) and a photovoltaic component positioning module (according to the pixel position of the detected faulty photovoltaic component on the infrared image, the nearest photovoltaic component is calculated by pixel distance, so that the logical number and the corresponding specific physical position of the photovoltaic component in the electronic map can be obtained, thereby realizing the precise positioning of the faulty photovoltaic component). These five key modules, combined with another target detection module, can obtain the precise position of the faulty photovoltaic component, accurately locate the specific photovoltaic component, and realize zero distance error.
[0019] Example 2 Preferably, the step 1 comprises: Step 1-1: Construct an electronic map database of a photovoltaic power station: collect a set of visible light images that can cover the entire photovoltaic power station through drones, use jigsaw software to generate orthophotos, compare the actual positions and numbers of the photovoltaic arrays in the construction design drawings of the photovoltaic power station, and mark each photovoltaic array (PVA_0, PVA_1, ..., PVA_x) with a quadrilateral on the overall orthophoto of the photovoltaic power station loaded by the numbering software, and obtain the logical position and number corresponding to the actual position one by one, and store them in the database; Step 1-2: Obtain the GPS coordinates and row and column numbers of the four vertices of each photovoltaic array from the photovoltaic power station electronic map database.
[0020] Preferably, the GPS coordinates of the four vertices of the photovoltaic array are ([Lon_0, Lat_0], [Lon_1, Lat_1], [Lon_2, Lat_2], [Lon_3, Lat_3]), and the row and column numbers of the photovoltaic array are (Row_Num, Col_Num).
[0021] Example 3 Preferably, the step 2 comprises: Step 2-1: Collect a large number of infrared images through drones multiple times, and use the labeling tool Labelme to label the photovoltaic panel area segmentation samples; Step 2-2: Use the photovoltaic panel segmentation network model based on deep learning for training, use the trained segmentation network model to segment and binarize the infrared image, and extract the photovoltaic panel area; The photovoltaic panel segmentation network model based on deep learning is a prior art and will not be described in detail in the present invention.
[0022] Step 2-3: Perform contour detection and contour quadrilateral fitting on the binarized infrared image to obtain the quadrilateral contours of all photovoltaic panels in the infrared image and the pixel positions of the four vertices ([X_0, Y_0], [X_1, Y_1], [X_2, Y_2], [X_3, Y_3]); Step 2-4: Perform mask operations on the binarized infrared image and the original infrared image to divide them into multiple photovoltaic panel areas (PVP_0, PVP_1, …, PVP_x).
[0023] Preferably, steps 2-4 also include: photovoltaic panel areas that do not meet the requirements need to be eliminated, and one of two methods is selected. One method is to calculate the pixel area of the photovoltaic panel area and eliminate the photovoltaic panel areas that are less than 2000; the other method is to count the widths of all photovoltaic panel areas and eliminate the photovoltaic panel areas with abnormal widths.
[0024] The pixel area of the photovoltaic panel region is calculated by the existing conventional method, which will not be described in detail in the present invention.
[0025] Example 4 Preferably, step 3 comprises: Step 3-1: By calling the exiv2 interface to parse the exif data of the current infrared image, the drone attitude and GPS coordinates of the image are obtained, and then the image coordinates of the valid vertices of each photovoltaic panel area are converted into GPS coordinates according to the camera internal parameters; Step 3-2: According to the GPS coordinates of the four vertices of each photovoltaic array in the database obtained in step 1, match the photovoltaic array closest to it by shortest distance search, map each photovoltaic panel area to the electronic map of the photovoltaic power station, and obtain the GPS coordinates of the four vertices and row and column number information of the corresponding photovoltaic array accordingly.
[0026] Preferably, the drone attitude includes pitch angle, yaw angle and roll angle; GPS coordinates are longitude and latitude based on the WGS-84 coordinate system; camera intrinsic parameters are obtained by using a checkerboard image for camera calibration, including camera focal length (Fx, Fy), principal point coordinates (Cx, Cy) and distortion parameters (K1, K2, K3); the effective vertices of the photovoltaic panel area refer to the vertices of the photovoltaic array of the photovoltaic power station electronic map seen from the infrared image, and are also the vertices that are greater than 10 pixels away from the image boundary.
[0027] Preferably, the image coordinates of the effective vertices of the photovoltaic panel area are converted into GPS coordinates as follows: first, the pixel coordinate system is converted into normalized coordinates in the camera coordinate system through the camera intrinsic parameters and the drone attitude; then, the normalized coordinates are converted into coordinates in the camera coordinate system using the camera's projection model; finally, the coordinates in the camera coordinate system are converted into coordinates in the world coordinate system through the camera's position and attitude information in the world coordinate system, which are the GPS coordinates of the effective vertices of the photovoltaic panel area.
[0028] Example 5 Preferably, step 4 comprises: Step 4-1: Perform straight line detection on each photovoltaic panel area on the infrared image to obtain the number of rows and pixel positions of the photovoltaic panel area; Step 4-2: Obtain the row and column numbers of the photovoltaic panel area according to the photovoltaic array of the matched photovoltaic power station electronic map, and calculate the quadrilateral area of each photovoltaic module on the photovoltaic panel area; The quadrilateral area of each photovoltaic component on the photovoltaic panel area is calculated by the existing conventional method, which will not be described in detail in the present invention.
[0029] Step 4-3: Calculate the GPS coordinates of the center point of each photovoltaic module area on the photovoltaic panel area based on the matched valid vertex GPS coordinates; The GPS coordinates of the center point of each photovoltaic module area on the photovoltaic panel area are calculated by the existing conventional method, which will not be repeated in the present invention.
[0030] Step 4-4: Establish a one-to-one logical mapping relationship between each photovoltaic component in each photovoltaic panel area on the infrared image and the photovoltaic component on the electronic map of the photovoltaic power station.
[0031] Example 6 Preferably, step 5 comprises: Step 5-1: According to the pixel position of the faulty component on the infrared image, match the nearest photovoltaic component by pixel distance; Step 5-2: According to the logical mapping relationship between the matched photovoltaic components and the photovoltaic components on the electronic map, the logical number of the faulty component on the electronic map and the corresponding specific physical location can be obtained, thereby ensuring the accurate positioning of the faulty photovoltaic component; Step 5-3: Output the fault type and logical location of the faulty component in a report for inspection personnel to eliminate the fault, thus completing the entire photovoltaic inspection process.
[0032] Example 7 This embodiment describes in detail a method for accurately positioning photovoltaic modules based on drone inspection: Step 1: The specific steps for making an electronic map are: The drone collects a set of visible light images that can cover the entire PV power station, and uses puzzle software to generate orthophotos. The actual positions and numbers of the PV arrays in the construction design drawings of the PV power station are compared, and each PV array (PVA_0, PVA_1, …, PVA_x) is marked with a quadrilateral on the overall orthophoto of the PV power station loaded by the numbering software to obtain the logical positions and numbers corresponding to the actual positions, which are then stored in the database.
[0033] This embodiment needs to extract the GPS coordinates of the four vertices ([Lon_0, Lat_0], [Lon_1, Lat_1], [Lon_2, Lat_2], [Lon_3, Lat_3]) and row and column numbers (Row_Num, Col_Num) of each photovoltaic array from the database for subsequent steps.
[0034] Step 2: In the training part, the drone collected a large amount of photovoltaic data multiple times, used the labeling tool Labelme to annotate the photovoltaic panel segmentation samples, and adopted the photovoltaic panel segmentation network model based on deep learning for training.
[0035] In the reasoning part, first, the photovoltaic infrared image is segmented and binarized using the trained photovoltaic panel segmentation model to extract the photovoltaic panel area; then, the binary image is subjected to contour detection and contour quadrilateral fitting to obtain the quadrilateral contours of all photovoltaic panels in the image and the pixel positions of the four vertices ([X_0, Y_0], [X_1, Y_1], [X_2, Y_2], [X_3, Y_3]); finally, the binary image and the original infrared image are masked and divided into multiple photovoltaic panel areas (PVP_0, PVP_1, …, PVP_x), which is conducive to subsequent processing of each photovoltaic panel area separately.
[0036] In particular, it is necessary to remove the photovoltaic panel areas that do not meet the requirements. There are two situations: one is to calculate the pixel area of the photovoltaic panel area and remove the photovoltaic panel areas with less than 2000; the other is to count the width of all photovoltaic panel areas and remove the photovoltaic panel areas with abnormal width. The photovoltaic panel areas in these two situations are not conducive to the subsequent component division.
[0037] The results of photovoltaic panel segmentation are as follows Figure 2 As shown in the figure, a is an original infrared image taken by a drone, b is a binary image of a for photovoltaic panel segmentation, and c is the contour detection of b, the fitting of quadrilaterals, and the marking of the four vertex positions of the photovoltaic panel.
[0038] Step 3: First, the exif data of the current infrared image is parsed by calling the exiv2 interface to obtain the current drone attitude and GPS coordinates, and the image coordinates of the effective vertices of each photovoltaic panel area are converted into GPS coordinates based on the camera internal parameters. Then, according to the four vertex GPS coordinates of each photovoltaic array in the database obtained in step 1, the photovoltaic array closest to it is matched by the shortest distance search method, and each photovoltaic panel area can be mapped to the electronic map, and the four vertex GPS coordinates and row and column number information of the corresponding photovoltaic array can be obtained accordingly.
[0039] Among them, the drone attitude includes pitch angle, yaw angle and roll angle; GPS coordinates are longitude and latitude based on the WGS-84 coordinate system; camera intrinsic parameters are obtained by using checkerboard images for camera calibration, including camera focal length (Fx, Fy), principal point coordinates (Cx, Cy) and distortion parameters (K1, K2, K3).
[0040] The valid vertices of the photovoltaic panel area refer to the vertices that belong to the photovoltaic array of the electronic map and can be seen from the image, and are also vertices that are a certain distance (greater than 10 pixels) from the image boundary. Only based on these vertices can the closest distance matching with the photovoltaic array of the electronic map be performed.
[0041] The process of converting the image coordinates of the effective vertices of the photovoltaic panel area into GPS coordinates involves the conversion between multiple coordinate systems, namely the pixel coordinate system, the image coordinate system, the camera coordinate system, and the world coordinate system. The steps of converting pixel coordinates to world coordinates are as follows: First, the pixel coordinates are converted to normalized coordinates in the camera coordinate system through the internal parameters (focal length, principal point coordinates) and external parameters (drone attitude information) of the camera. Then, the normalized coordinates are converted to coordinates in the camera coordinate system using the camera's projection model. Finally, the coordinates in the camera coordinate system are converted to coordinates in the world coordinate system through the position and attitude information of the camera in the world coordinate system, which is the real GPS position of the effective vertices of the photovoltaic panel area.
[0042] Step 4: First, a straight line detection is performed on each photovoltaic panel area on the infrared image to obtain the number of rows and pixel positions of the photovoltaic panel area; then, the row and column numbers of the photovoltaic panel are obtained according to the photovoltaic array on the matched electronic map, and the quadrilateral area of each component on the photovoltaic panel is calculated; then, the GPS coordinates of the center point of each component area on the photovoltaic panel are calculated according to the matched valid vertex GPS coordinates; finally, a one-to-one logical mapping relationship is established between each photovoltaic component in each photovoltaic panel area on the infrared image and the photovoltaic component on the electronic map.
[0043] like Figure 3 As shown, a is the quadrilateral outline of the attached Figure 2A photovoltaic panel area is extracted by performing a mask operation on image a, b is the straight line detection result obtained by counting the gradient peak value in the vertical direction of a, and c is to perform straight line detection on each photovoltaic panel area and display the result on the original infrared image.
[0044] Figure 4 The pixel position at the center of the quadrilateral area of each component is marked.
[0045] Step 5: First, according to the pixel position of the faulty component on the infrared image, the nearest PV component is matched by pixel distance; then, according to the logical mapping relationship between the matched PV component and the PV component on the electronic map, the logical number of the faulty component on the electronic map and the corresponding specific physical position can be obtained, thereby ensuring the accurate positioning of the faulty PV component; finally, the fault type and logical position of the faulty component are output in a report for inspection personnel to eliminate the fault, thereby completing the entire PV inspection process.
[0046] In a specific embodiment, the present invention includes five key modules: a photovoltaic array database acquisition module, which obtains the GPS coordinates and row and column numbers of the four vertices of each photovoltaic array from the constructed photovoltaic power station electronic map database; a photovoltaic panel area extraction module, which segments and post-processes the photovoltaic panels in the image through a photovoltaic panel segmentation network model based on deep learning, and obtains all photovoltaic panel areas in the infrared image; a photovoltaic panel area matching module, which calculates the GPS coordinates of the effective vertices of the photovoltaic panel area according to the drone posture and the camera internal parameters, and performs distance matching with the photovoltaic array on the existing electronic map to obtain all information of the corresponding photovoltaic array; a photovoltaic component mapping module, which performs straight line detection on the horizontal direction of the photovoltaic panel area, and then calculates the GPS coordinates of the center point of the quadrilateral area of each component in the photovoltaic panel area according to the GPS coordinates and row and column number information of the photovoltaic array on the matched electronic map, and establishes a logical mapping relationship with the electronic map; a photovoltaic component positioning module, which calculates the nearest photovoltaic component according to the pixel position of the detected faulty component on the infrared image through the pixel distance, and obtains the logical number and corresponding specific physical position of the component in the electronic map. These five key modules combined with other target detection modules can obtain the precise position of the faulty photovoltaic component.
[0047] After testing and verification, the existing photovoltaic fault location method is based on GPS positioning, which has a certain distance error, which is related to the accuracy of the GPS device. The error of the existing technology is generally greater than 1 meter. The present invention can accurately locate a specific photovoltaic component and achieve zero distance error.
[0048] The present invention proposes a method for accurately locating photovoltaic components based on drone inspection. By performing regional segmentation of photovoltaic panels and fine extraction of photovoltaic components for each infrared image collected by the drone inspection, a one-to-one logical mapping relationship with the photovoltaic components of the photovoltaic array on the electronic map is established, and finally the faulty components in the infrared image are accurately located, thereby improving the feasibility and efficiency of drone photovoltaic inspection and helping inspection personnel to quickly and accurately discover and deal with anomalies on photovoltaic components.
[0049] The present invention includes five key modules: a photovoltaic array database acquisition module, a photovoltaic panel area extraction module, a photovoltaic panel area matching module, a photovoltaic component mapping module and a photovoltaic component positioning module. These five key modules, combined with another target detection module, can obtain the precise position of the faulty photovoltaic component, accurately locate the specific photovoltaic component, and achieve zero distance error.
[0050] Based on the positioning data of the faulty photovoltaic components provided by the present invention, the operation and maintenance personnel can quickly locate and maintain the faulty components. Meanwhile, the system can also be connected with the photovoltaic power station management platform, integrated and analyzed with other operation and maintenance data, conduct in-depth data mining, and comprehensively and scientifically evaluate the operation and maintenance results of the power station.
[0051] The present invention can be applied to various photovoltaic panel types such as flat single-axis and fixed-axis, and can also be applied to various photovoltaic scenes such as deserts, water surfaces, and mountains. It has the advantages of high flexibility, high robustness, and high accuracy.
[0052] The preferred embodiments of the present invention are described in detail above, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.
[0053] Many other changes and modifications may be made without departing from the concept and scope of the present invention.It should be understood that the present invention is not limited to the specific embodiments, and the scope of the present invention is defined by the appended claims.
Claims
1. A method for accurate positioning of photovoltaic modules based on drone inspection. It is characterized in that The following steps are involved: Step 1: Obtaining the location and number of the photovoltaic array: Obtain the GPS coordinates and row and column numbers of the four vertices of each photovoltaic array from the constructed photovoltaic power station electronic map database; Step 2: Photovoltaic panel image segmentation: The drone collects infrared images along the photovoltaic array, and uses the photovoltaic panel segmentation network model based on deep learning to segment and post-process the photovoltaic panels in the infrared image to obtain all the photovoltaic panel areas in the infrared image; Step 3: Photovoltaic array matching: Calculate the GPS coordinates of the effective vertices of the photovoltaic panel area according to the drone attitude and camera internal parameters, and perform distance matching with the photovoltaic array on the electronic map in step 1 to obtain all the information of the corresponding photovoltaic array, including the GPS coordinates and row and column number information of the photovoltaic array on the electronic map; Step 4: Photovoltaic module mapping: by performing straight line detection on the horizontal direction of the photovoltaic panel area in step 2, and then calculating the GPS coordinates of the center point of the quadrilateral area of each photovoltaic module in the photovoltaic panel area according to the GPS coordinates and row and column number information of the photovoltaic array on the electronic map matched in step 3, a logical mapping relationship with the electronic map is established; Step 5: According to the pixel position of the detected faulty PV module on the infrared image, the nearest PV module is calculated by pixel distance, and the logical number and corresponding specific physical position of the PV module on the electronic map can be obtained to achieve accurate positioning of the faulty PV module.
2. According to claim 1, a method for accurately positioning photovoltaic components based on drone inspection, It is characterized in that The step 1 comprises: Step 1-1: Construct an electronic map database of a photovoltaic power station: collect a set of visible light images that can cover the entire photovoltaic power station through drones, use jigsaw software to generate orthophotos, compare the actual positions and numbers of the photovoltaic arrays in the construction design drawings of the photovoltaic power station, and mark each photovoltaic array (PVA_0, PVA_1, ..., PVA_x) with a quadrilateral on the overall orthophoto of the photovoltaic power station loaded by the numbering software, and obtain the logical position and number corresponding to the actual position one by one, and store them in the database; Step 1-2: Obtain the GPS coordinates and row and column numbers of the four vertices of each photovoltaic array from the photovoltaic power station electronic map database.
3. According to claim 1, a method for accurately positioning photovoltaic components based on drone inspection, It is characterized in that The GPS coordinates of the four vertices of the photovoltaic array are ([Lon_0, Lat_0], [Lon_1, Lat_1], [Lon_2, Lat_2], [Lon_3, Lat_3]), and the row and column numbers of the photovoltaic array are (Row_Num, Col_Num).
4. According to claim 1, a photovoltaic module precise positioning method based on drone inspection, It is characterized in that The step 2 comprises: Step 2-1: Collect a large number of infrared images through drones multiple times, and use the labeling tool Labelme to label the photovoltaic panel area segmentation samples; Step 2-2: Use the photovoltaic panel segmentation network model based on deep learning for training, use the trained segmentation network model to segment and binarize the infrared image, and extract the photovoltaic panel area; Step 2-3: Perform contour detection and contour quadrilateral fitting on the binarized infrared image to obtain the quadrilateral contours of all photovoltaic panels in the infrared image and the pixel positions of the four vertices ([X_0, Y_0], [X_1, Y_1], [X_2, Y_2], [X_3, Y_3]); Step 2-4: Perform mask operations on the binarized infrared image and the original infrared image to divide them into multiple photovoltaic panel areas (PVP_0, PVP_1, …, PVP_x).
5. According to claim 4, a method for accurately positioning photovoltaic components based on drone inspection, It is characterized in that The steps 2-4 also include: it is necessary to eliminate the photovoltaic panel areas that do not meet the requirements, and one of two methods is selected. One method is to calculate the pixel area of the photovoltaic panel area and eliminate the photovoltaic panel areas that are less than 2000; the other method is to count the widths of all photovoltaic panel areas and eliminate the photovoltaic panel areas with abnormal widths.
6. According to claim 1, a method for accurately positioning photovoltaic components based on drone inspection, It is characterized in that The step 3 comprises: Step 3-1: By calling the exiv2 interface to parse the exif data of the current infrared image, the drone attitude and GPS coordinates of the image are obtained, and then the image coordinates of the valid vertices of each photovoltaic panel area are converted into GPS coordinates according to the camera internal parameters; Step 3-2: According to the GPS coordinates of the four vertices of each photovoltaic array in the database obtained in step 1, match the photovoltaic array closest to it by shortest distance search, map each photovoltaic panel area to the electronic map of the photovoltaic power station, and obtain the GPS coordinates of the four vertices and row and column number information of the corresponding photovoltaic array accordingly.
7. A photovoltaic module precise positioning method based on drone inspection according to claim 6, It is characterized in that The drone attitude includes pitch angle, yaw angle and roll angle; GPS coordinates are longitude and latitude based on the WGS-84 coordinate system; camera intrinsic parameters are obtained by using a checkerboard image for camera calibration, including camera focal length (Fx, Fy), principal point coordinates (Cx, Cy) and distortion parameters (K1, K2, K3); the effective vertices of the photovoltaic panel area refer to the vertices of the photovoltaic array of the photovoltaic power station electronic map seen from the infrared image, which are also the vertices that are greater than 10 pixels away from the image boundary.
8. A photovoltaic module precise positioning method based on drone inspection according to claim 6, It is characterized in that The image coordinates of the effective vertices of the photovoltaic panel area are converted into GPS coordinates as follows: first, the pixel coordinate system is converted into normalized coordinates in the camera coordinate system through the camera intrinsic parameters and the drone attitude; then, the normalized coordinates are converted into coordinates in the camera coordinate system using the camera's projection model; finally, the coordinates in the camera coordinate system are converted into coordinates in the world coordinate system through the camera's position and attitude information in the world coordinate system, which are the GPS coordinates of the effective vertices of the photovoltaic panel area.
9. The method for accurately positioning photovoltaic modules based on drone inspection according to claim 1, It is characterized in that The step 4 comprises: Step 4-1: Perform straight line detection on each photovoltaic panel area on the infrared image to obtain the number of rows and pixel positions of the photovoltaic panel area; Step 4-2: Obtain the row and column numbers of the photovoltaic panel area according to the photovoltaic array of the matched photovoltaic power station electronic map, and calculate the quadrilateral area of each photovoltaic module on the photovoltaic panel area; Step 4-3: Calculate the GPS coordinates of the center point of each photovoltaic module area on the photovoltaic panel area based on the matched valid vertex GPS coordinates; Step 4-4: Establish a one-to-one logical mapping relationship between each photovoltaic component in each photovoltaic panel area on the infrared image and the photovoltaic component on the electronic map of the photovoltaic power station.
10. The method for accurately positioning photovoltaic components based on drone inspection according to claim 1, It is characterized in that The step 5 comprises: Step 5-1: According to the pixel position of the faulty component on the infrared image, match the nearest photovoltaic component by pixel distance; Step 5-2: According to the logical mapping relationship between the matched photovoltaic components and the photovoltaic components on the electronic map, the logical number of the faulty component on the electronic map and the corresponding specific physical location can be obtained, thereby ensuring the accurate positioning of the faulty photovoltaic component; Step 5-3: Output the fault type and logical location of the faulty component in a report for inspection personnel to eliminate the fault, thus completing the entire photovoltaic inspection process.
Citation Information
Patent Citations
Method for detecting and positioning hot spots of photovoltaic module based on infrared videos
CN108923749A
Inspection target positioning method and device for photovoltaic scene and readable storage medium
CN111062991A
Inspection method and system for photovoltaic power station
CN113286129A
Digital method for unmanned aerial vehicle to automatically inspect and position photovoltaic panel defects
CN116773598A
Unmanned aerial vehicle photovoltaic inspection positioning method, device and equipment and storage medium
CN117557494A
Cited By
Navigation map generation method and system and inspection robot
CN118730081A
Photovoltaic station photovoltaic panel partition positioning method, terminal and storage medium
CN119006552A
Efficient unmanned aerial vehicle photovoltaic inspection result positioning method
CN120411223A
