Photovoltaic module topology coding method based on photovoltaic string point cloud local coordinate unification

By using principal component analysis and two-dimensional topological raster processing, the problem of inconsistent component boundary detection in the point cloud of photovoltaic strings in mountainous areas was solved, realizing automated segmentation and standardized numbering of photovoltaic components, and improving the stability and efficiency of component-level data processing.

CN122903663BActive Publication Date: 2026-11-24SHANDONG UNIV OF SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611384048.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-08
Publication Date
2026-11-24
Estimated Expiration
2046-09-08

AI Technical Summary

Technical Problem

Existing technologies struggle to achieve automatic parsing at the photovoltaic module level when processing point clouds of photovoltaic strings in mountainous areas. Module boundary detection accuracy is low, and the topological relationships between different strings are inconsistent, affecting the uniformity of module numbering and the degree of automation.

Method used

Principal component analysis is used to establish a local coordinate system for photovoltaic strings. By constructing a two-dimensional topological grid and processing color information, standardized photovoltaic module numbers are generated, enabling automatic segmentation and topological coding at the module level.

Benefits of technology

It enables a unified representation of photovoltaic strings with different installation directions and tilt angles, improves the accuracy of component boundary detection and the consistency of numbering, enhances the data organization efficiency of photovoltaic modules, and provides a standardized data organization method for the digital management of photovoltaic power plants.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122903663B_ABST
    Figure CN122903663B_ABST
Patent Text Reader

Abstract

This invention discloses a photovoltaic module topology coding method based on the local coordinate consistency of photovoltaic string point clouds, belonging to the field of topology coding technology. It is used for photovoltaic module topology coding, including: calculating the principal direction of a pure photovoltaic string 3D point cloud using principal component analysis to establish a string local coordinate system; unifying the direction of the photovoltaic string 3D point cloud in the string local coordinate system to construct a photovoltaic module 2D topology grid; establishing the correspondence between the 2D topology grid and the string local coordinate system; generating instantiated independent photovoltaic module point clouds; establishing standardized photovoltaic module numbers based on the row and column numbers of each photovoltaic module point cloud in the string local coordinate system; forming a photovoltaic module topology code; and establishing photovoltaic module index information. This invention provides a standardized data organization method for the digital management, digital twin modeling, operation and maintenance, and asset management of photovoltaic power plants, and has good engineering application value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention discloses a photovoltaic module topology coding method based on the local coordinate consistency of photovoltaic string point cloud, belonging to the field of topology coding technology. Background Technology

[0002] Currently, research on point cloud processing for mountainous photovoltaic (PV) strings, particularly the automatic segmentation and unified topology coding of individual PV modules within a string, is relatively limited. Existing methods typically process the PV string point cloud directly in the world coordinate system, using fixed-direction projection, geometric feature analysis, or plane fitting to identify module boundaries. However, due to the varying installation orientations and tilt angles of different strings, the same algorithm struggles to maintain a consistent topological representation across different strings. When the installation posture of a PV string changes, its two-dimensional projection direction also changes, leading to inconsistent module boundary detection results and issues such as disordered module order, inconsistent numbering, and low automation. On the other hand, while principal component analysis (PCA) can automatically establish a local coordinate system and unify the coordinates of strings with different postures, the non-uniqueness of the eigenvector direction means that the same string may flip horizontally or vertically in different calculation processes, further causing random changes in module numbering direction and affecting the consistency of batch processing results. Currently available technologies generally do not offer effective solutions to this problem, making it difficult to establish a unified module topology relationship between different strings within the same PV site. Furthermore, existing photovoltaic module boundary detection methods mostly rely on direct analysis of 3D point cloud geometric features, which is computationally complex, highly dependent on point cloud density, and fails to fully utilize the distinct color information of the photovoltaic module frame. Especially in photogrammetric point clouds, which possess RGB color attributes, current technologies have not fully utilized color information to construct 2D topological images, thus limiting the accuracy and efficiency of automatic module boundary detection. Summary of the Invention

[0003] The purpose of this invention is to provide a photovoltaic module topology coding method based on the local coordinate consistency of photovoltaic string point cloud, so as to solve the problem in the prior art that only photovoltaic string point cloud can be obtained in mountain photovoltaic scenarios and automatic parsing at the photovoltaic module level cannot be achieved.

[0004] A photovoltaic module topology coding method based on the local coordinate unification of photovoltaic string point cloud is used to calculate the principal direction of the pure photovoltaic string 3D point cloud and establish the string local coordinate system. The orientation of the 3D point cloud of the photovoltaic string in the local coordinate system of the string is made consistent, a 2D topological grid of the photovoltaic module is constructed, the correspondence between the 2D topological grid and the local coordinate system of the string is established, an instantiated independent photovoltaic module point cloud is generated, a standardized photovoltaic module number is established according to the row number and column number of each photovoltaic module point cloud in the local coordinate system of the string, a photovoltaic module topological code is formed, and photovoltaic module index information is established.

[0005] Before principal component analysis, a pure 3D point cloud of photovoltaic strings is obtained in the original spatial coordinate system. The pure 3D point cloud of photovoltaic strings is an instantiated photovoltaic string point cloud extracted from the string point cloud. The instantiated photovoltaic string point cloud includes the 3D point cloud and color information corresponding to the photovoltaic modules, but does not include ground, vegetation, support and background interference point clouds. For the 3D point cloud of a pure photovoltaic string Point cloud information for: ; In the formula, It is the first One point, , and yes The three coordinate components in the original spatial coordinate system , and It is a point The corresponding red, green, and blue color components, It represents the number of point clouds in the three-dimensional point cloud of a pure photovoltaic string.

[0006] The calculation of the main direction includes constructing a point cloud covariance matrix, performing eigenvalue decomposition on the point cloud covariance matrix to obtain three mutually orthogonal main directions, wherein the three mutually orthogonal main directions include a first main direction as the length direction of the pure photovoltaic string three-dimensional point cloud, a second main direction as the width direction of the pure photovoltaic string three-dimensional point cloud, and a third main direction as the normal direction of the pure photovoltaic string three-dimensional point cloud, and constructing a string local coordinate system with the three mutually orthogonal main directions; The construction of the point cloud covariance matrix includes calculating the centroid of the point cloud: ; In the formula, yes The centroid of the point cloud; Constructing the covariance matrix of point clouds : ; right Perform eigenvalue decomposition to obtain three mutually orthogonal unit eigenvectors. , In the direction of string length, In the width direction of the string, For the string normal direction, a coordinate transformation matrix is ​​constructed from the original spatial coordinate system to the string local coordinate system using three unit eigenvectors. : ; In the formula, These are the components of the first principal direction unit vector on the three coordinate axes of the original spatial coordinate system. These are the components of the second principal direction unit vector on the three coordinate axes of the original spatial coordinate system. These are the components of the third principal direction unit vector on the three coordinate axes of the original spatial coordinate system; Projecting the pure 3D point cloud of the photovoltaic string in the original spatial coordinate system onto the string's local coordinate system: ; In the formula, These are the coordinates of the 3D point cloud of the pure photovoltaic string in the horizontal and vertical directions of the string's local coordinate system. It is the normal coordinate of the three-dimensional point cloud of the pure photovoltaic string in the string's local coordinate system.

[0007] Orientation consistency includes determining the top and bottom point sets of the photovoltaic string based on the statistical distribution of the vertical coordinates in the string's local coordinate system. ; ; In the formula, This represents the point set of the top region of the photovoltaic string. This represents the point set of the bottom region of the photovoltaic string. and These correspond to the low and high quantiles of the statistical distribution of the vertical coordinates in the local coordinate system of the string, respectively. It is the first vertical coordinate in the local coordinate system of the string. One point; The left region point set is determined based on the statistical distribution of the horizontal coordinates in the local coordinate system of the string. and the right-side region point set : ; ; In the formula, and These correspond to the low and high quantiles of the statistical distribution of the horizontal coordinates in the local coordinate system of the string, respectively. It is the first horizontal coordinate in the local coordinate system of the string. One point.

[0008] Orientation unification includes calculating the average coordinates of the top region point set in the original spatial coordinate system. The average coordinates of the bottom region point set in the original spatial coordinate system The average coordinates of the left region point set in the original spatial coordinate system and the average coordinates of the point cloud corresponding to the point set in the right region in the original spatial coordinate system. ; when At that time, Flip it over and take The new value is the opposite of its old value; when At that time, Flip it over and take The new value is the opposite of its old value.

[0009] Establishing the correspondence between the two-dimensional topological grid and the string local coordinate system includes: ; ; In the formula, for Corresponding column index in a two-dimensional topological grid. for Corresponding to the row index in a two-dimensional topological grid, and They are respectively and The minimum coordinates, For two-dimensional topological raster resolution, This indicates the floor operation, which maps continuous string local coordinates to discrete raster indices. Collect color information of all point clouds within each raster and calculate the cell color value. : ; In the formula, This indicates the number of point clouds in the current raster. These are the current grid cells. The red, green, and blue color components of each point.

[0010] Establishing the correspondence between the two-dimensional topological grid and the string local coordinate system includes performing photovoltaic module boundary detection, which involves converting RGB color vectors to grayscale values ​​to obtain a grayscale topological image. ; ; In the formula, It refers to the pixel grayscale values ​​of a grayscale topological image. They are pixels The average red, green, and blue color components; Grayscale conversion coefficients for the red, green, and blue color channels respectively; Border enhancement processing is applied to grayscale topological images: ; In the formula, It is a pixel The corresponding coordinates in the local coordinate system of the string. This is the result of border enhancement processing. As a structural element, Represents morphological opening operation; Perform image longitudinal gradient calculation: ; In the formula, It is the Sobel gradient operator. It is a two-dimensional convolution operation. This is the result of calculating the vertical gradient of the image; Establish gradient projection along the column direction: ; In the formula, It is the result of gradient projection; Gaussian filtering is used to obtain smooth projection curves: ; In the formula, The standard deviation is Gaussian filter kernel, It is a smooth projection curve.

[0011] Establishing the correspondence between the two-dimensional topological grid and the string local coordinate system includes Local maxima detection is performed, and the longitudinal boundary of the photovoltaic module is determined based on the detected local maxima locations, resulting in a set of longitudinal boundary locations for the photovoltaic module. : ; In the formula, Indicates the first The boundary location of each photovoltaic module, adjacent boundaries Corresponding to one photovoltaic module column area; Obtaining the lateral boundary of photovoltaic modules using grayscale topological images: ; In the formula, It is the location of the horizontal dividing line between the upper and lower rows of photovoltaic modules.

[0012] A two-dimensional topological grid for the photovoltaic module is constructed based on the longitudinal boundary and the lateral dividing position of the photovoltaic module. In the two-dimensional topological grid of photovoltaic modules, photovoltaic module column areas are formed between adjacent vertical boundaries, and the horizontal dividing line divides the photovoltaic string into upper and lower photovoltaic module areas. The photovoltaic module series number meets the following requirements: ; In the formula, and They represent the first The longitudinal boundary positions on the left and right sides of the photovoltaic module; Determine the row number of the photovoltaic module based on the vertical axis: ; In the formula, express The serial number of the photovoltaic module in question. B indicates the top row of photovoltaic modules, and B indicates the bottom row of photovoltaic modules; Determine the number based on the row number and column number. The photovoltaic module number associated with each point : ; ; In the formula, It is the column number of the photovoltaic module; Points with the same photovoltaic module number are assigned to the same photovoltaic module point cloud, forming the first... Point cloud of individual photovoltaic modules: ; In the formula, It is the first Point cloud of an individual photovoltaic module.

[0013] Establish standardized photovoltaic module numbering based on the row and column number of the photovoltaic module: ; In the formula, It is the first Each standardized photovoltaic module number It is the first of the top row of photovoltaic modules Each photovoltaic module number It is the first of the bottom row of photovoltaic modules Individual photovoltaic module numbering; establishing photovoltaic module index information. : ; In the formula, This refers to the serial number of the photovoltaic module. The column number of the photovoltaic module. The number of point clouds for photovoltaic modules.

[0014] Compared with existing technologies, this invention has the following advantages: it achieves a unified spatial representation of photovoltaic strings with different installation directions and tilt angles, eliminating the influence of complex installation postures on component identification results and improving the adaptability of the algorithm; it effectively solves the problem of left-right and up-down flipping caused by the random direction of the feature vector in principal component analysis, achieving consistency in component numbering direction and improving the stability of batch processing; it realizes automatic extraction of photovoltaic module boundaries, reducing the computational complexity of direct analysis of 3D point clouds and improving the accuracy of component boundary detection; it accurately extracts the point cloud of a single photovoltaic module, improving the efficiency of component-level data organization; and it establishes a unified component topology coding system, realizing standardized numbering of photovoltaic modules and automatic generation of component indexes, providing a standardized data organization method for digital management, digital twin modeling, operation and maintenance, and asset management of photovoltaic power plants, and has good engineering application value. Attached Figure Description

[0015] Figure 1 To input the histogram of the elevation difference between the two ends of the photovoltaic string; Figure 2 To input the histogram of the elevation difference between the two ends of the photovoltaic string; Figure 3 A schematic diagram of the local coordinate system before orientation standardization; Figure 4 This is a diagram illustrating the determination of the top and bottom directions; Figure 5 This is a diagram illustrating the determination of left and right directions; Figure 6 This is a schematic diagram of the standardized local coordinates; Figure 7 This is a schematic diagram of the longitudinal boundary detection of photovoltaic modules; Figure 8 This is a schematic diagram of the lateral boundary detection of photovoltaic modules; Figure 9 This is a schematic diagram of the two-dimensional topology mesh of a photovoltaic module; Figure 10 The first schematic diagram illustrates the final segmentation effect of the instantiated photovoltaic module; Figure 11 The second schematic diagram illustrates the final segmentation effect of the instantiated photovoltaic module; Figure 12 The third schematic diagram illustrates the final segmentation effect of the instantiated photovoltaic module. Detailed Implementation

[0016] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention are described clearly and completely below. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0017] A photovoltaic module topology coding method based on the local coordinate unification of photovoltaic string point cloud is used to calculate the principal direction of the pure photovoltaic string 3D point cloud and establish the string local coordinate system. The orientation of the 3D point cloud of the photovoltaic string in the local coordinate system of the string is made consistent, a 2D topological grid of the photovoltaic module is constructed, the correspondence between the 2D topological grid and the local coordinate system of the string is established, an instantiated independent photovoltaic module point cloud is generated, a standardized photovoltaic module number is established according to the row number and column number of each photovoltaic module point cloud in the local coordinate system of the string, a photovoltaic module topological code is formed, and photovoltaic module index information is established.

[0018] Before principal component analysis, a pure 3D point cloud of photovoltaic strings is obtained in the original spatial coordinate system. The pure 3D point cloud of photovoltaic strings is an instantiated photovoltaic string point cloud extracted from the string point cloud. The instantiated photovoltaic string point cloud includes the 3D point cloud and color information corresponding to the photovoltaic modules, but does not include ground, vegetation, support and background interference point clouds. For the 3D point cloud of a pure photovoltaic string Point cloud information for: ; In the formula, It is the first One point, , and yes The three coordinate components in the original spatial coordinate system , and It is a point The corresponding red, green, and blue color components, It represents the number of point clouds in the three-dimensional point cloud of a pure photovoltaic string.

[0019] The calculation of the main direction includes constructing a point cloud covariance matrix, performing eigenvalue decomposition on the point cloud covariance matrix to obtain three mutually orthogonal main directions, wherein the three mutually orthogonal main directions include a first main direction as the length direction of the pure photovoltaic string three-dimensional point cloud, a second main direction as the width direction of the pure photovoltaic string three-dimensional point cloud, and a third main direction as the normal direction of the pure photovoltaic string three-dimensional point cloud, and constructing a string local coordinate system with the three mutually orthogonal main directions; The construction of the point cloud covariance matrix includes calculating the centroid of the point cloud: ; In the formula, yes The centroid of the point cloud; Constructing the covariance matrix of point clouds : ; right Perform eigenvalue decomposition to obtain three mutually orthogonal unit eigenvectors. , In the direction of string length, In the width direction of the string, For the string normal direction, a coordinate transformation matrix is ​​constructed from the original spatial coordinate system to the string local coordinate system using three unit eigenvectors. : ; In the formula, These are the components of the first principal direction unit vector on the three coordinate axes of the original spatial coordinate system. These are the components of the second principal direction unit vector on the three coordinate axes of the original spatial coordinate system. These are the components of the third principal direction unit vector on the three coordinate axes of the original spatial coordinate system; Projecting the pure 3D point cloud of the photovoltaic string in the original spatial coordinate system onto the string's local coordinate system: ; In the formula, These are the coordinates of the 3D point cloud of the pure photovoltaic string in the horizontal and vertical directions of the string's local coordinate system. It is the normal coordinate of the three-dimensional point cloud of the pure photovoltaic string in the string's local coordinate system.

[0020] Orientation consistency includes determining the top and bottom point sets of the photovoltaic string based on the statistical distribution of the vertical coordinates in the string's local coordinate system. ; ; In the formula, This represents the point set of the top region of the photovoltaic string. This represents the point set of the bottom region of the photovoltaic string. and These correspond to the low and high quantiles of the statistical distribution of the vertical coordinates in the local coordinate system of the string, respectively. It is the first vertical coordinate in the local coordinate system of the string. One point; The left region point set is determined based on the statistical distribution of the horizontal coordinates in the local coordinate system of the string. and the right-side region point set : ; ; In the formula, and These correspond to the low and high quantiles of the statistical distribution of the horizontal coordinates in the local coordinate system of the string, respectively. It is the first horizontal coordinate in the local coordinate system of the string. One point.

[0021] Orientation unification includes calculating the average coordinates of the top region point set in the original spatial coordinate system. The average coordinates of the bottom region point set in the original spatial coordinate system The average coordinates of the left region point set in the original spatial coordinate system and the average coordinates of the point cloud corresponding to the point set in the right region in the original spatial coordinate system. ; when At that time, Flip it over and take The new value is the opposite of its old value; when At that time, Flip it over and take The new value is the opposite of its old value.

[0022] Establishing the correspondence between the two-dimensional topological grid and the string local coordinate system includes: ; ; In the formula, for Corresponding column index in a two-dimensional topological grid. for Corresponding to the row index in a two-dimensional topological grid, and They are respectively and The minimum coordinates, For two-dimensional topological raster resolution, This indicates the floor operation, which maps continuous string local coordinates to discrete raster indices. Collect color information of all point clouds within each raster and calculate the cell color value. : ; In the formula, This indicates the number of point clouds in the current raster. These are the current grid cells. The red, green, and blue color components of each point.

[0023] Establishing the correspondence between the two-dimensional topological grid and the string local coordinate system includes performing photovoltaic module boundary detection, which involves converting RGB color vectors to grayscale values ​​to obtain a grayscale topological image. ; ; In the formula, It refers to the pixel grayscale values ​​of a grayscale topological image. They are pixels The average red, green, and blue color components; Grayscale conversion coefficients for the red, green, and blue color channels respectively; Border enhancement processing is applied to grayscale topological images: ; In the formula, It is a pixel The corresponding coordinates in the local coordinate system of the string. This is the result of border enhancement processing. As a structural element, Represents morphological opening operation; Perform image longitudinal gradient calculation: ; In the formula, It is the Sobel gradient operator. It is a two-dimensional convolution operation. This is the result of calculating the vertical gradient of the image; Establish gradient projection along the column direction: ; In the formula, It is the result of gradient projection; Gaussian filtering is used to obtain smooth projection curves: ; In the formula, The standard deviation is Gaussian filter kernel, It is a smooth projection curve.

[0024] Establishing the correspondence between the two-dimensional topological grid and the string local coordinate system includes Local maxima detection is performed, and the longitudinal boundary of the photovoltaic module is determined based on the detected local maxima locations, resulting in a set of longitudinal boundary locations for the photovoltaic module. : ; In the formula, Indicates the first The boundary location of each photovoltaic module, adjacent boundaries Corresponding to one photovoltaic module column area; Obtaining the lateral boundary of photovoltaic modules using grayscale topological images: ; In the formula, It is the location of the horizontal dividing line between the upper and lower rows of photovoltaic modules.

[0025] A two-dimensional topological grid for the photovoltaic module is constructed based on the longitudinal boundary and the lateral dividing position of the photovoltaic module. In the two-dimensional topological grid of photovoltaic modules, photovoltaic module column areas are formed between adjacent vertical boundaries, and the horizontal dividing line divides the photovoltaic string into upper and lower photovoltaic module areas. The photovoltaic module series number meets the following requirements: ; In the formula, and They represent the first The longitudinal boundary positions on the left and right sides of the photovoltaic module; Determine the row number of the photovoltaic module based on the vertical axis: ; In the formula, express The serial number of the photovoltaic module in question. B indicates the top row of photovoltaic modules, and B indicates the bottom row of photovoltaic modules; Determine the number based on the row number and column number. The photovoltaic module number associated with each point : ; ; In the formula, It is the column number of the photovoltaic module; Points with the same photovoltaic module number are assigned to the same photovoltaic module point cloud, forming the first... Point cloud of individual photovoltaic modules: ; In the formula, It is the first Point cloud of an individual photovoltaic module.

[0026] Establish standardized photovoltaic module numbering based on the row and column number of the photovoltaic module: ; In the formula, It is the first Each standardized photovoltaic module number It is the first of the top row of photovoltaic modules Each photovoltaic module number It is the first of the bottom row of photovoltaic modules Individual photovoltaic module numbering; establishing photovoltaic module index information. : ; In the formula, This refers to the serial number of the photovoltaic module. The column number of the photovoltaic module. The number of point clouds for photovoltaic modules.

[0027] In this invention, Figure 1 To input the string orientation-tilt scatter plot, statistical analysis was performed on the spatial attitude of each string in the demonstration area. The distribution of different strings in terms of installation orientation and tilt angle can reflect the overall installation pattern of the photovoltaic array and the attitude differences between strings. By pre-statistically analyzing the spatial attitude of the strings, it can be determined whether there are significant changes in orientation and tilt angles among the photovoltaic strings in the study area. Figure 2 The input string is a histogram of elevation differences between the two ends. The histogram shows the elevation difference between the two ends of each photovoltaic string along its length. An elevation difference threshold of 0.3m is set to determine whether the two ends of the string are at approximately the same elevation level. When the elevation difference between the two ends of the string is large, it indicates that there may be obvious terrain undulations or spatial tilt characteristics in its installation area. Figure 3 This is a schematic diagram of the local coordinate system of the input string before orientation standardization, where the U-axis represents the length direction of the string, the V-axis represents the component arrangement direction (i.e., the width direction), and the N-axis represents the normal direction of the point cloud. Since different strings have different installation orientations in the original space, the local coordinate axes established by PCA may have inconsistent positive and negative directions, thus requiring further orientation standardization processing.

[0028] Figure 4This diagram illustrates the determination of the top and bottom orientations of a photovoltaic (PV) string. Based on the spatial distribution of the second principal direction in the PCA local coordinate system, the point cloud is divided into top and bottom regions, and the positional characteristics of each region in the original coordinate system are calculated. By comparing the spatial relationship between the top and bottom regions, it is determined whether the current local V-axis direction is consistent with the preset "up→down" direction. When the detection result is opposite to the unified direction requirement, the V-axis is flipped, thereby eliminating the problem of inconsistent local coordinate directions between different strings. Figure 5 This diagram illustrates the determination of the left and right directions of a photovoltaic (PV) string. After unifying the vertical direction, the string's point cloud is further divided into left and right regions using the first principal direction. The U-axis direction is determined by comparing the spatial positions of the left and right regions in the original coordinate system. When the current U-axis direction differs from the preset "left → right" direction, the U-axis is flipped. Through the sequential determination of the vertical and left / right directions, the orientation of the local coordinate systems of different PV strings is made consistent. Figure 6 This is a schematic diagram of the local coordinates of a photovoltaic string after orientation standardization. The diagram shows that the example string needs to undergo vertical and horizontal coordinate flipping. After the U-axis and V-axis orientation determination and necessary coordinate flipping, each string is transformed into a local coordinate system with a unified spatial orientation. By standardizing the local coordinate orientation, photovoltaic strings with different spatial orientations can be transformed into a coordinate system with a unified orientation, thereby reducing the impact of the original installation orientation differences on subsequent component segmentation and topology coding.

[0029] Figure 7 This diagram illustrates the detection of the longitudinal boundary of a photovoltaic module. The gradient in the column direction is projected and smoothed. Candidate longitudinal boundary positions between modules are obtained through peak detection and supplemented by the left and right outer boundaries of the string to finally determine the complete longitudinal boundary of the module. Figure 8 This is a schematic diagram of the lateral boundary detection of photovoltaic modules. By analyzing the gradient response changes in the upper and lower regions of the string, the lateral boundary position between the upper and lower rows of modules is determined within a preset search range, thereby forming a two-dimensional module topology mesh composed of the longitudinal and lateral boundaries. Figure 9 This is a schematic diagram of a two-dimensional topological mesh for photovoltaic modules. Based on the detected vertical boundaries and horizontal dividing lines, the entire photovoltaic string is divided into regular two-dimensional topological units, and a module spatial index is established according to its row and column position. Figure 10 The diagram shows the final segmentation result of the instantiated photovoltaic module, illustrating the results obtained by the aforementioned local coordinate standardization and two-dimensional topological boundary detection method. Different colors are used to represent different instance modules, demonstrating that the method can maintain a clear topological relationship between modules in the three-dimensional point cloud space, achieving automatic segmentation from string-level point cloud to module-level point cloud. Figure 11 This is a side view diagram illustrating the final segmentation effect of an instantiated photovoltaic module. Figure 12This is a schematic diagram of the segmentation results of a single component, illustrating the extraction effect of the single component.

[0030] The example uses a small area of ​​a centralized photovoltaic power station in a mountainous region as an application scenario. This area is primarily characterized by gentle slopes of 10°-40°, with some steep slopes concentrated at 50°-55° and a few extremely steep slopes exceeding 60°. The photovoltaic strings are deployed along the mountainous terrain, and a large number of strings have an elevation difference exceeding the 0.3m threshold for determining contour lines. Due to the undulating mountainous terrain, such as… Figure 1 and Figure 2 As shown, the multiple array strings have a spatial form with inconsistent elevations at both ends. They exhibit typical characteristics such as a relatively uniform overall installation posture, but the local spatial erection state is significantly affected by the mountainous terrain.

[0031] The raw data of the 3D point cloud of the photovoltaic string is obtained by photogrammetric 3D reconstruction of multi-view images acquired by an UAV oblique photogrammetry system. The raw data of the clean 3D point cloud of the photovoltaic string to be processed is used as input. The raw data of the 3D point cloud of the photovoltaic string is obtained by photogrammetric 3D reconstruction of multi-view images acquired by an UAV oblique photogrammetry system, and then processed by a pre-processing method to obtain independent string point cloud instances. These instances only retain point cloud data belonging to the target photovoltaic string. The input point cloud uses independent photovoltaic strings as the basic processing unit; that is, each extracted clean photovoltaic string point cloud is processed individually to avoid the impact of spatial attitude differences between different strings on component identification. Since different strings in an actual photovoltaic power station may have different installation directions and tilt angles, if the original engineering coordinate system is directly used to segment the components, the same set of component boundary detection rules is difficult to apply to strings with different spatial attitudes. Therefore, principal component analysis is first used to calculate the main spatial distribution direction of the current photovoltaic string point cloud, and a local coordinate system for the string is established accordingly.

[0032] Since subsequent component boundary detection primarily relies on the two-dimensional topological structure of the photovoltaic strings within their own plane, the three-dimensional photovoltaic strings, which originally exhibited different spatial orientations, are transformed into local two-dimensional topological representations with unified structural features. Because the eigenvectors obtained from principal component analysis (PCA) are directionally ambiguous—that is, both eigenvectors e and -e can be considered the same principal direction—the local coordinates of different photovoltaic strings may be flipped horizontally or vertically after PCA processing. If this issue is not addressed, the component numbering direction of the same string structure may change in different samples; for example, one string might be numbered from left to right, while another is numbered from right to left, thus affecting the consistency of batch component coding. Therefore, the top and bottom regions of the photovoltaic strings are determined based on the statistical distribution of the vertical coordinates in the local coordinate system. In this example, the 90th and 10th percentiles of the local vertical coordinates are used to determine the top and bottom regions, respectively.

[0033] The 2D grid resolution is set to 0.01m. A 1cm grid resolution effectively preserves the local structural features of the photovoltaic module frame and the components, while avoiding excessively large 2D topological images and increased computational load due to excessively small grid resolution. This achieves a balance between boundary detection accuracy and computational efficiency. The 2D topological image is not a simple top-down projection of the original 3D space, but rather an unfolding based on the local coordinate system of the photovoltaic string itself, thus preserving the true local topological relationships between the photovoltaic modules. For strings with different installation orientations and tilt angles, the unfolded 2D topological structure exhibits high consistency. Since photovoltaic modules typically have metal frames, there is a significant brightness variation between the frame area and the module surface. Therefore, morphological top-hat transformation is used to enhance the frame features in the 2D topological image. The embodiment uses a rectangular structural element with a size of 15×15 pixels. With a 2D grid resolution of 0.01m, this structural element corresponds to a local spatial scale of approximately 0.15m×0.15m. This parameter enhances local bright structures such as the photovoltaic module frame while suppressing large-scale background brightness variations, which is beneficial for improving the stability of subsequent boundary detection. The embodiment employs a 3×3 Sobel operator and calculates the gradient along the x-direction, i.e., setting dx=1 and dy=0. Using a 3×3 gradient operator can extract local brightness variations generated by component boundaries while maintaining low computational complexity. The embodiment uses a 101×1 Gaussian filter window to smooth the column-direction projection curve. Since the resolution of the 2D raster is 0.01m, this window corresponds to a local spatial scale of approximately 1.01m. Using this smoothing scale can reduce high-frequency fluctuations caused by point cloud sparsity, color variations, and local noise, resulting in a more stable peak response at continuous component boundaries.

[0034] The minimum distance between adjacent peaks is set to 50 pixels. Since the resolution of the 2D raster is 0.01m, 50 pixels correspond to a spatial distance of approximately 0.5m. By setting peak saliency and the minimum inter-peak distance, local noise and repetitive peaks generated at the edges of the same component can be reduced, improving the stability of vertical component boundary detection. During boundary detection, when the number of detected vertical boundaries is less than 2, the vertical boundary information of the current string is considered insufficient to form a valid component column region, thus terminating the component segmentation of the current string. Simultaneously, based on the detected internal boundaries, the leftmost and rightmost positions of the valid point cloud in the 2D topological image are added to the boundary set as left and right outer boundaries, respectively, ensuring that the component region can cover the entire effective point cloud range. The embodiment first uses a 1×51 Gaussian filter window to smooth the lateral projection curve. Since the resolution of the 2D raster is 0.01m, this window corresponds to a spatial scale of approximately 0.51m, which can reduce the impact of local noise and missing point clouds on lateral boundary detection. To avoid edge responses in the top and bottom regions of the photovoltaic strings interfering with lateral boundary detection, the embodiment limits the lateral boundary search range to 30%–70% of the height H of the two-dimensional topological image, and determines the maximum response position of the smooth projection curve within this range. To avoid false boundary detection, missing local point clouds, and abnormal small regions caused by noise being incorrectly encoded as independent components, the embodiment sets a minimum point count threshold of 100 points for each component. Only when the number of point clouds in the candidate component region is greater than 100 is it considered a valid component. Setting this threshold can eliminate abnormal regions with too few point clouds, while retaining valid component point clouds with basically complete structures. For multiple independent photovoltaic strings, a batch parallel processing method is used. The embodiment sets the number of parallel processing processes to 12, that is, component segmentation and topology encoding operations are performed on the point clouds of 12 strings simultaneously to improve the processing efficiency of large-scale string point clouds. The point clouds of independent photovoltaic modules are saved in one or more of the following formats: LAS, LAZ, PLY, or PCD. The component numbers are encoded according to the topological position of the string, with the top row of components starting with T and the bottom row of components starting with B, and the numbers are generated incrementally in the column direction of the components.

[0035] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A photovoltaic module topology coding method based on photovoltaic string point cloud local coordinate unification, characterized in that, Principal component analysis was used to calculate the principal direction of the three-dimensional point cloud of the pure photovoltaic string and to establish the local coordinate system of the string. The orientation of the 3D point cloud of the photovoltaic string in the local coordinate system of the string is made consistent, a 2D topological grid of the photovoltaic module is constructed, the correspondence between the 2D topological grid and the local coordinate system of the string is established, an instantiated independent photovoltaic module point cloud is generated, a standardized photovoltaic module number is established according to the row number and column number of each photovoltaic module point cloud in the local coordinate system of the string, a photovoltaic module topological code is formed, and photovoltaic module index information is established. Orientation consistency includes determining the top and bottom point sets of the photovoltaic string based on the statistical distribution of the vertical coordinates in the string's local coordinate system. ; ; In the formula, This represents the point set of the top region of the photovoltaic string. This represents the point set of the bottom region of the photovoltaic string. and These correspond to the high and low quantiles of the statistical distribution of the vertical coordinates in the local coordinate system of the string, respectively. It is the first vertical coordinate in the local coordinate system of the string. One point, It is the first One point; The left region point set is determined based on the statistical distribution of the horizontal coordinates in the local coordinate system of the string. and the right-side region point set : ; ; In the formula, and These correspond to the high and low quantiles of the statistical distribution of the horizontal coordinates in the local coordinate system of the string, respectively. It is the first horizontal coordinate in the local coordinate system of the string. One point; Orientation unification includes calculating the average coordinates of the top region point set in the original spatial coordinate system. The average coordinates of the bottom region point set in the original spatial coordinate system The average coordinates of the left region point set in the original spatial coordinate system and the average coordinates of the point cloud corresponding to the point set in the right region in the original spatial coordinate system. ; when At that time, Flip it over and take The new value is the opposite of its old value; when At that time, Flip it over and take The new value is the opposite of its old value; Establishing the correspondence between the two-dimensional topological grid and the string local coordinate system includes: ; ; In the formula, for Corresponding column index in a two-dimensional topological grid. for Corresponding to the row index in a two-dimensional topological grid, and They are respectively and The minimum coordinates, For two-dimensional topological raster resolution, This indicates the floor operation, which maps continuous string local coordinates to discrete raster indices. Collect color information of all point clouds within each raster and calculate the cell color value. : ; In the formula, This indicates the number of point clouds in the current raster. These are the current grid cells. The red, green, and blue color components of each point; Establishing the correspondence between the two-dimensional topological grid and the string local coordinate system includes performing photovoltaic module boundary detection, which involves converting RGB color vectors to grayscale values ​​to obtain a grayscale topological image. ; ; In the formula, It refers to the pixel grayscale values ​​of a grayscale topological image. They are pixels The average red, green, and blue color components; Grayscale conversion coefficients for the red, green, and blue color channels respectively; Border enhancement processing is applied to grayscale topological images: ; In the formula, It is a pixel The corresponding coordinates in the local coordinate system of the string. This is the result of border enhancement processing. As a structural element, Represents morphological opening operation; Perform image longitudinal gradient calculation: ; In the formula, It is the Sobel gradient operator. It is a two-dimensional convolution operation. This is the result of calculating the vertical gradient of the image; Establish gradient projection along the column direction: ; In the formula, It is the result of gradient projection; Gaussian filtering is used to obtain smooth projection curves: ; In the formula, The standard deviation is Gaussian filter kernel, It is a smooth projection curve; Establishing the correspondence between the two-dimensional topological grid and the string local coordinate system includes Local maxima detection is performed, and the longitudinal boundary of the photovoltaic module is determined based on the detected local maxima locations, resulting in a set of longitudinal boundary locations for the photovoltaic module. : ; In the formula, Indicates the first The boundary location of each photovoltaic module, adjacent boundaries Corresponding to one photovoltaic module column area; Obtaining the lateral boundary of photovoltaic modules using grayscale topological images: ; In the formula, It is the location of the horizontal dividing line between the upper and lower rows of photovoltaic modules.

2. The photovoltaic module topology coding method based on the local coordinate consistency of photovoltaic string point cloud as described in claim 1, characterized in that, Before principal component analysis, a pure 3D point cloud of photovoltaic strings is obtained in the original spatial coordinate system. The pure 3D point cloud of photovoltaic strings is an instantiated photovoltaic string point cloud extracted from the string point cloud. The instantiated photovoltaic string point cloud includes the 3D point cloud and color information corresponding to the photovoltaic modules, but does not include ground, vegetation, support and background interference point clouds. For the 3D point cloud of a pure photovoltaic string Point cloud information for: ; In the formula, , and yes The three coordinate components in the original spatial coordinate system , and It is a point The corresponding red, green, and blue color components, It represents the number of point clouds in the three-dimensional point cloud of a pure photovoltaic string.

3. The photovoltaic module topology coding method based on the local coordinate consistency of photovoltaic string point cloud as described in claim 2, characterized in that, The calculation of the main direction includes constructing a point cloud covariance matrix, performing eigenvalue decomposition on the point cloud covariance matrix to obtain three mutually orthogonal main directions, wherein the three mutually orthogonal main directions include a first main direction as the length direction of the pure photovoltaic string three-dimensional point cloud, a second main direction as the width direction of the pure photovoltaic string three-dimensional point cloud, and a third main direction as the normal direction of the pure photovoltaic string three-dimensional point cloud, and constructing a string local coordinate system with the three mutually orthogonal main directions; The construction of the point cloud covariance matrix includes calculating the centroid of the point cloud: ; In the formula, yes The centroid of the point cloud; Constructing the covariance matrix of point clouds : ; right Perform eigenvalue decomposition to obtain three mutually orthogonal unit eigenvectors. , In the direction of string length, In the width direction of the string, For the string normal direction, a coordinate transformation matrix is ​​constructed from the original spatial coordinate system to the string local coordinate system using three unit eigenvectors. : ; In the formula, These are the components of the first principal direction unit vector on the three coordinate axes of the original spatial coordinate system. These are the components of the second principal direction unit vector on the three coordinate axes of the original spatial coordinate system. These are the components of the third principal direction unit vector on the three coordinate axes of the original spatial coordinate system; Projecting the pure 3D point cloud of the photovoltaic string in the original spatial coordinate system onto the string's local coordinate system: ; In the formula, These are the coordinates of the 3D point cloud of the pure photovoltaic string in the horizontal and vertical directions of the string's local coordinate system. It is the normal coordinate of the three-dimensional point cloud of the pure photovoltaic string in the string's local coordinate system.

4. The photovoltaic module topology coding method based on the local coordinate consistency of photovoltaic string point cloud as described in claim 1, characterized in that, A two-dimensional topological grid for the photovoltaic module is constructed based on the longitudinal boundary and the lateral dividing position of the photovoltaic module. In the two-dimensional topological grid of photovoltaic modules, photovoltaic module column areas are formed between adjacent vertical boundaries, and the horizontal dividing line divides the photovoltaic string into upper and lower photovoltaic module areas. The photovoltaic module series number meets the following requirements: ; In the formula, and They represent the first The longitudinal boundary positions on the left and right sides of the photovoltaic module; Determine the row number of the photovoltaic module based on the vertical axis: ; In the formula, express The serial number of the photovoltaic module in question. B indicates the top row of photovoltaic modules, and B indicates the bottom row of photovoltaic modules; Determine the number based on the row number and column number. The photovoltaic module number associated with each point : ; ; In the formula, It is the column number of the photovoltaic module; Points with the same photovoltaic module number are assigned to the same photovoltaic module point cloud, forming the first... Point cloud of individual photovoltaic modules: ; In the formula, It is the first Point cloud of an individual photovoltaic module.

5. The photovoltaic module topology coding method based on the local coordinate consistency of photovoltaic string point cloud according to claim 4, characterized in that, Establish standardized photovoltaic module numbering based on the row and column number of the photovoltaic module: ; In the formula, It is the first Each standardized photovoltaic module number It is the first of the top row of photovoltaic modules Each photovoltaic module number It is the first of the bottom row of photovoltaic modules Individual photovoltaic module numbering; establishing photovoltaic module index information. : ; In the formula, This refers to the serial number of the photovoltaic module. The column number of the photovoltaic module. The number of point clouds for photovoltaic modules.

Citation Information

Patent Citations

  • Transformer substation point cloud data processing method for constructing three-dimensional model

    CN120951609A

  • Photovoltaic panel pose determination method and device, equipment and storage medium

    CN122336000A