An envelope generation method, apparatus, device, and storage medium
By determining the scattered point blocks and the real position set in the photovoltaic array and mapping them to the preset grid, the envelope of the photovoltaic array is generated using the concave hull algorithm, which solves the problem of low boundary accuracy of the photovoltaic array and improves the boundary surrounding accuracy of the envelope.
Patent Information
- Application Number
- CN202210850977.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-19
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2042-07-19
AI Technical Summary
When processing photovoltaic arrays, the existing concave hull algorithm has the problem of reduced envelope boundary accuracy due to large-span brackets or irregular concave areas.
By obtaining a set of scattered points of the photovoltaic array, determining the scattered point block based on the distance between the scattered points, and mapping the real position set to the preset grid, the concave hull algorithm is used to generate the boundary point set of the scattered point block envelope, and finally determining the envelope of the photovoltaic array.
The boundary accuracy of the envelope line is improved, the problem of low boundary accuracy caused by uneven distance between photovoltaic string locations is solved, and the process of manual parameter adjustment is eliminated.
Smart Images

Figure CN115238489B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of photovoltaic power station design, and in particular to an envelope generation method, device, equipment and storage medium. Background Art
[0002] During the design phase of a photovoltaic power station, it is necessary to determine the envelope of an array formed by multiple photovoltaic strings in the photovoltaic power station, wherein a photovoltaic array generally includes multiple photovoltaic strings.
[0003] At present, in the design stage of photovoltaic power stations, the boundaries of the photovoltaic array need to be manually selected, which involves the use of concave hull algorithms. Existing concave hull algorithms include alpha shape, Delaunay triangulation, and rolling ball method (rolling edge method). (1) The alpha shape algorithm can be understood as adding a parameter α that can be set on the basis of the convex hull. In the process of alpha shape reconstruction, vertices that are too far apart will not be connected like the convex hull. If the parameter α tends to infinity, the shape reconstructed by alpha shape will be infinitely close to the convex hull. If the parameter α is small, the shape reconstructed by alpha shape will be concave at the corresponding position to better fit the shape of the array surrounded by the envelope. (2) The Delaunay triangulation algorithm can be understood as forming a subset of the Delaunay triangulation network and continuously deleting edges that exceed the length limit starting from the outermost edge of the Delaunay triangulation network, so as to obtain the expected envelope. (3) The rolling ball method can be understood as setting a starting point for the point set composed of the photovoltaic array and using a circle with a preset radius to approach the point set from the boundary. The circle is used to roll on the boundary of the data point set to form a closed figure, which is the envelope.
[0004] However, if there are uneven distances between the location points of the photovoltaic strings within the photovoltaic array, such as large-span brackets or irregular concave areas, the accuracy of identifying the boundaries of the photovoltaic array based on the envelope processed by the conventional concave hull algorithm based on the actual location point distances will be reduced. Summary of the Invention
[0005] The present invention provides an envelope generation method, device, equipment and storage medium to solve the problem of low precision of the generated envelope.
[0006] In a first aspect, an embodiment of the present invention provides a method for generating an envelope, comprising:
[0007] Obtaining a set of scattered points of a photovoltaic array, and determining a scattered point block based on distances between scattered points in the set, wherein the scattered points are determined based on center coordinates of photovoltaic strings in the photovoltaic array;
[0008] Determining a set of real positions of scattered points in the scattered point block;
[0009] Mapping the real position set into a preset grid to obtain a mapping relationship set, and determining a boundary point set of an envelope of a scatter point block according to the mapping relationship set, wherein the scatter point blocks correspond to respective preset grids;
[0010] Based on the boundary point set of the scattered point block envelope, the scattered point envelope of the photovoltaic array is determined.
[0011] In a second aspect, an embodiment of the present invention provides an envelope generating device, comprising:
[0012] a scattered point block determination module, configured to obtain a set of scattered points of a photovoltaic array and determine a scattered point block based on distances between scattered points in the set, wherein the scattered points are determined based on the center coordinates of photovoltaic strings in the photovoltaic array;
[0013] A real position set determining module, configured to determine a real position set of scattered points in the scattered point block;
[0014] a boundary point set determination module, configured to map the real position set into a preset grid to obtain a mapping relationship set, and determine a boundary point set of an envelope of a scatter point block according to the mapping relationship set, wherein the scatter point blocks correspond to respective preset grids;
[0015] An envelope determination module is configured to determine the envelope of the scattered points of the photovoltaic array based on a set of boundary points of the scattered point block envelope.
[0016] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:
[0017] at least one processor;
[0018] and a memory communicatively coupled to the at least one processor;
[0019] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the envelope generation method of the first aspect.
[0020] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a processor to implement the envelope generation method of the first aspect when executed.
[0021] The envelope generation scheme provided by an embodiment of the present invention obtains a set of scattered points of a photovoltaic array, determines a scattered point block based on the distance between the scattered points in the set, wherein the scattered points are determined based on the center coordinates of the photovoltaic strings in the photovoltaic array, determines the real position set of the scattered points in the scattered point block, maps the real position set to a preset grid, obtains a mapping relationship set, and determines the boundary point set of the scatter point block envelope based on the mapping relationship set, wherein the scattered point blocks correspond to respective preset grids, and determines the envelope of the scattered points of the photovoltaic array based on the boundary point set of the scatter point block envelope. By adopting the above technical scheme, the scattered point block and the real position set are determined based on the distance between the scattered points in the scattered point set of the photovoltaic array, and the real position set is mapped to the preset grid to obtain the boundary point set of the scatter point block envelope, thereby determining the envelope of the scattered points of the photovoltaic array, solving the problem of low boundary accuracy of the generated envelope due to uneven distance between the location points of the photovoltaic strings in the photovoltaic array, improving the boundary surrounding accuracy of the envelope, and eliminating the process of manual parameter adjustment.
[0022] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 This is a flow chart of a method for generating an envelope according to the first embodiment of the present invention;
[0025] Figure 2 This is a flow chart of a method for generating an envelope provided in accordance with a second embodiment of the present invention;
[0026] Figure 3 This is a structural diagram of an envelope generating device provided according to a third embodiment of the present invention;
[0027] Figure 4 It is a structural diagram of an electronic device provided according to the fourth embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first," "second," and the like in the specification and claims of the present invention and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than that illustrated or described herein. In the description of the present invention, unless otherwise specified, "plurality" refers to two or more. "And / or" describes an association relationship between associated objects, indicating that three relationships can exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship. In addition, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or device.
[0030] Example 1
[0031] Figure 1 A flowchart of an envelope line generation method is provided for the first embodiment of the present invention. This embodiment is applicable to the case of generating the envelope line of a photovoltaic array. The method can be executed by an envelope line generation device. The envelope line generation device can be implemented in the form of hardware and / or software. The envelope line generation device can be configured in an electronic device. The electronic device can be composed of two or more physical entities or one physical entity.
[0032] like Figure 1 As shown, the envelope generation method provided in the first embodiment of the present invention specifically includes the following steps:
[0033] S101: Obtain a set of scattered points of a photovoltaic array, and determine a scattered point block based on the distances between the scattered points in the set.
[0034] The scattered points are determined based on the center coordinates of the photovoltaic strings in the photovoltaic array.
[0035] In the embodiment, the center coordinates of each photovoltaic string in the photovoltaic array can be regarded as a scatter point, so that a set of scatter points of the photovoltaic array can be obtained, and then the scatter point blocks can be divided according to the distances between the scatter points in the set. The scatter points of the photovoltaic array are generally characterized in that the distribution of the scatter points can form a surface, that is, neither a single point nor a straight line can constitute a complete envelope line of the scatter points of the photovoltaic array, and the manner of dividing the scatter point blocks includes dividing according to the median value of the distances between the scatter points or dividing according to the mean value of the distances between the scatter points, etc. For example, the scatter points with a distance between them lower than the median value can be divided into a scatter point block, or the scatter points with a distance between them lower than the mean value can be divided into a scatter point block.
[0036] S102, determining a real position set of the scatter points in the scatter point block.
[0037] In the embodiment, since the positions of the scatter points are probably distributed in a random manner, the real position set of the scatter points in the scatter point block can be determined by traversing each scatter point position. The real position set can be understood as a set reflecting the actual position relationship between the scatter points, for example, [(1 row, 1 column):(x1, y1); (1 row, 2 column):(x2, y2)] can represent that the point (x1, y1) and the point (x2, y2) belong to the same row and are adjacent, where (x1, y1) and (x2, y2) are the position coordinates of the two points.
[0038] S103, mapping the real position set to a preset grid to obtain a mapping relationship set, so as to determine a boundary point set of the envelope line of the scatter point block according to the mapping relationship set.
[0039] The scatter point block corresponds to a respective preset grid.
[0040] In the embodiment, the scatter points in the real position set of each scatter point block are mapped to the respective preset grid, that is, the scatter point in the A row and the B column in the real position set is mapped to the preset grid in the A row and the B column, so that a mapping relationship set is obtained, and then according to the mapping relationship set, the concave hull algorithm can be used to generate the scatter point envelope line in the preset grid and the scatter point block envelope line, respectively, so that the boundary point set corresponding to the envelope line can be obtained. For example, if the real position set is [(1 row, 1 column):(x1, y1); (1 row, 2 column):(x2, y2)], the mapping relationship set can be [(1, 1):(x1, y1); (1, 2):(x2, y2)]. The preset grid can be understood as a fixed relative distance between the scatter points, and the self-defined grid can be a 1x1 grid, that is, a 1 row 1 column grid, so that one scatter point can be mapped to one preset grid.
[0041] S104, determining the envelope line of the scatter points of the photovoltaic array based on the boundary point set of the scatter point block envelope line.
[0042] In this embodiment, according to the positions of the midpoints of the boundary point set of each scattered point block envelope, the envelope of each scattered point block can be integrated to form a complete closed curve, thereby obtaining the envelope of the scattered points of the photovoltaic array.
[0043] The envelope generation method provided by the embodiment of the present invention obtains a set of scattered points of a photovoltaic array, determines a scattered point block based on the distance between the scattered points in the set, wherein the scattered points are determined based on the center coordinates of the photovoltaic strings in the photovoltaic array, determines the real position set of the scattered points in the scattered point block, maps the real position set to a preset grid, obtains a mapping relationship set, and determines the boundary point set of the scatter point block envelope based on the mapping relationship set, wherein the scattered point blocks correspond to respective preset grids, and determines the envelope of the scattered points of the photovoltaic array based on the boundary point set of the scatter point block envelope. The technical solution of the embodiment of the present invention determines the scattered point block and the real position set based on the distance between the scattered points in the scattered point set of the photovoltaic array, and maps the real position set to the preset grid to obtain the boundary point set of the scatter point block envelope, thereby determining the envelope of the scattered points of the photovoltaic array, solving the problem of low boundary accuracy of the generated envelope due to uneven distance between the location points of the photovoltaic strings in the photovoltaic array, improving the boundary surrounding accuracy of the envelope, and eliminating the process of manual parameter adjustment.
[0044] Example 2
[0045] Figure 2 This is a flow chart of a method for generating an envelope provided in the second embodiment of the present invention. The technical solution of the embodiment of the present invention is further optimized on the basis of the above optional technical solutions, and provides a specific method for generating the envelope of a photovoltaic array.
[0046] Optionally, determining the set of true positions of scattered points in the scattered point block includes: traversing the scattered point block in a preset manner to determine the closest scattered point in the scattered point block in a preset orientation to obtain an orientation relationship of the scattered points; and integrating the orientation relationships to determine the row and column position of each scattered point in the scattered point block to obtain the set of true positions. This arrangement has the advantage of accurately determining the set of true positions of scattered points based on the actual orientation relationships between the traversed scattered points, thereby ensuring the accuracy of the subsequent generation of the envelope of the scattered points of the photovoltaic array.
[0047] Optionally, mapping the real position set to a preset grid to obtain a mapping relationship set, and determining the boundary point set of the scatter point block envelope based on the mapping relationship set, includes: mapping the real position set to a preset grid to obtain a mapping relationship set to fix the relative distances between scattered points within the real position set, wherein the mapping relationship set includes the position coordinates of the scattered points within the preset grid; and determining the boundary point set of the scatter point block envelope based on the mapping relationship set using a preset concave hull algorithm and a preset distance as an input distance. This arrangement has the advantage of reducing the deviation in the real distance between scattered points by mapping the scattered points to the preset grid, converting the real distance into a relative distance, and improving the accuracy of envelope generation.
[0048] Optionally, determining the envelope of the scattered points of the photovoltaic array based on the boundary point set of the scattered point block envelope includes: traversing the scattered point blocks and determining the positional relationship between the corresponding scattered point blocks based on two scattered points from different scattered point blocks that are closest to each other; and determining the envelope of the scattered points of the photovoltaic array based on the positional relationship and the boundary point set of the scattered point block envelope. This arrangement has the advantage of merging the envelopes of multiple scattered point blocks in a certain order into a complete and closed scattered point envelope of the photovoltaic array.
[0049] like Figure 2 As shown, a method for generating an envelope provided by the second embodiment of the present invention specifically includes the following steps:
[0050] S201: Obtain a set of scattered points of a photovoltaic array, and determine a scattered point block based on the distances between the scattered points in the set.
[0051] Optionally, obtaining a set of scattered points of the photovoltaic array and determining a scattered point block based on distances between scattered points in the set includes:
[0052] 1) Obtain a set of scattered points of the photovoltaic array, and determine the distance between a scattered point and the nearest scattered point based on the distance and position relationship between the scattered points in the set.
[0053] Specifically, each scattered point in the set of scattered points of the photovoltaic array may be traversed to determine the distance between each scattered point and the nearest scattered point.
[0054] 2) Calculate the mean of the distance to obtain the cluster distance.
[0055] Specifically, the mean of the distance between each scattered point and its nearest scattered point is calculated, and the mean is used as the cluster distance.
[0056] Exemplarily, the calculation formula of the cluster distance can be X=(x1+x2+…+xn) / n, where X is the cluster distance, xi is the distance between each scattered point and its nearest scattered point, i=1, 2,…n, and n is the number of scattered points.
[0057] 3) Determine the scattered point blocks according to the preset algorithm and clustering distance.
[0058] For example, a density clustering algorithm can be used to classify the set of scattered points of the photovoltaic array according to cluster distance to obtain scattered point blocks. The number of scattered point blocks can be one or more depending on the actual situation.
[0059] The advantage of the above steps 1), 2) and 3) is that they eliminate the influence of some distantly scattered points on the accuracy of the envelope generated by the concave hull algorithm.
[0060] S202: traverse the scattered point block in a preset manner, determine the scattered points in the scattered point block that are closest to the preset orientation of the scattered points, and obtain the orientation relationship of the scattered points.
[0061] Exemplarily, the position coordinates of the scattered points in each scatter point block can be obtained, and the scattered points can be assigned to rows and columns. For each scatter point block, each scattered point in the block is traversed in a loop until the row position and column position of each scatter point in the up, down, left, and right directions are determined. The scattered point closest to the left horizontal axis around the currently traversed scattered point can be determined as the left point of the currently traversed scatter point, and the scattered point closest to the right horizontal axis can be determined as the right point of the currently traversed scatter point, and so on, the up point and down point can be determined respectively, and finally the orientation relationship of all scattered points in each scatter point block is obtained, which is expressed in the form of a set: [(xi, yi): "up": (xa, ya), "down": (xb, yb), "left": (xc, yc), "right": (xd, yd)], where (xi, yi) is the position coordinate of the i-th scattered point obtained in the order of traversal, i∈(1…n), n is the number of scattered points in the current scatter point block, (xa, ya) is the position coordinate of the a-th scatter point, and so on, a, b, c and d∈(1…n).
[0062] S203: Integrate the orientation relationship, determine the row and column position of each scattered point in the scattered point block, and obtain a real position set.
[0063] For example, if the orientation relationship of all scattered points in each scattered point block is expressed as a set in the form of: [(xi, yi): "up": (xa, ya), "down": (xb, yb), "left": (xc, yc), "right": (xd, yd)], (xi, yi) is the position coordinate of the i-th scattered point, i∈(1…n), n is the number of scattered points in the current scattered point block, (xa, ya) is the position coordinate of the a-th scattered point , and so on, a, b, c, and d ∈ (1…n). Based on this orientation relationship, the corresponding real position set is: [(1 row, 1 column): (X1, Y1); (1 row, 2 columns): (X2, Y2); …; (n rows, n columns): (Xn, Yn)], where (Xi, Yi) is the order of the scattered points determined by the orientation relationship, and the position coordinates of the i-th scattered point determined according to this order, i ∈ (1…n). Usually, the order of the scattered points determined by the traversal order is different from the order of the scattered points determined by the orientation relationship. That is, the scattered points corresponding to (Xi, Yi) are usually different from the scattered points corresponding to (Xi, Yi).
[0064] S204: Map the real position set to a preset grid to obtain a mapping relationship set to fix the relative distances between scattered points in the real position set.
[0065] The mapping relationship set includes the position coordinates of scattered points in the preset grid.
[0066] For example, the above-mentioned real position set can be mapped to a 1X1 preset grid according to the row-column relationship to fix the relative distance. If the real position set is [(1 row, 1 column): (X1, Y1); (1 row, 2 columns): (X2, Y2); ...; (n rows, n columns): (Xn, Yn)], then the mapping relationship set is [(1, 1): (X1, Y1); (1, 2): (X2, Y2); ...; (j, k): (Xn, Yn)], where j and k are the position coordinates corresponding to the preset grid. For example, (1, 2) represents the position coordinates of the preset grid in the first row and second column.
[0067] S205 : Based on the mapping relationship set, using a preset concave hull algorithm and taking a preset distance as an input distance, determine a set of boundary points of the scatter point block envelope.
[0068] Optionally, based on the mapping relationship set, a preset concave hull algorithm is used, with a preset distance as the input distance, to determine a set of boundary points of the scatter block envelope, including:
[0069] 1) Based on the mapping relationship set, a preset concave hull algorithm is used, with a preset distance as the input distance, to obtain a set of boundary points of the envelope of the preset grid.
[0070] For example, the preset distance can be set as the unit distance of the preset grid, that is, the input distance is the unit distance. The concave hull algorithm is used to generate the envelope of the 1x1 preset grid, thereby obtaining the boundary point set of the envelope of the preset grid. Since the intervals between the scattered points mapped within the preset grid are all unit distances, the unit distance can be selected as the input distance of the concave hull algorithm, that is, the input distance, to generate the envelope of the scattered points within the preset grid.
[0071] 2) Determine the boundary point set of the scatter block envelope according to the mapping relationship set and the boundary point set of the envelope of the preset grid.
[0072] For example, if the concave hull algorithm is used, the output envelope boundary point set is [(x1, y1), ..., (xk, yk)], where (xk, yk) is the corresponding position coordinate of the kth boundary point in the coordinate system of the preset grid, k∈(1…m), and m is the number of boundary points. If the mapping relationship set is [(1, 1): (X1, Y1); (1, 2): (X2, Y2); ...; (j, k): (Xn, Yn)], then based on the mapping relationship set and the boundary point set of the envelope of the preset grid, the mapped positions of the boundary points in the boundary point set can be reversed and mapped back to the actual positions to obtain the boundary point set of the scatter block envelope.
[0073] S206 , traversing the scattered point blocks, and determining the positional relationship between corresponding scattered point blocks based on two scattered points from different scattered point blocks that are closest to each other.
[0074] Specifically, the positions of the scattered points at the edge positions in the scatter point blocks can be traversed, the distances between the scattered points at the edge positions of different scatter point blocks can be calculated, and two scattered points from different scatter point blocks with the closest distances can be screened out. The positional relationship of the scatter point blocks corresponding to the two scatter points can be determined as adjacent, that is, the positional relationship between the scatter point blocks can be determined.
[0075] S207 : Determine the envelope of the scattered points of the photovoltaic array according to the positional relationship and the boundary point set of the scattered point block envelope.
[0076] Specifically, the boundary points of the envelope lines of adjacent scattered point blocks may be integrated to form a boundary point set of the envelope line of the scattered points of the photovoltaic array, thereby generating the envelope line of the scattered points of the photovoltaic array.
[0077] Optionally, determining the envelope of the scattered points of the photovoltaic array according to the positional relationship and the boundary point set of the scattered point block envelope includes:
[0078] 1) According to the positional relationship, multiple sets of boundary point sets of the scatter point block envelopes with the shortest distance between them are determined, wherein the boundary point sets of the scatter point block envelopes corresponding to every two scatter points with the shortest distance between them are a group.
[0079] Specifically, based on the positional relationship between the scattered point blocks, the scattered point blocks can be divided into groups of two. The boundary points of the scatter point block envelope corresponding to the two scatter points with the closest distance between them are grouped together. When grouping the scattered point blocks, the same scatter point block can belong to two groups at the same time. For example, if the adjacent scatter point blocks are ABCD, they can be grouped into AB, BC, and CD.
[0080] 2) Based on multiple sets of boundary point sets of the scattered point block envelope lines that are closest to each other, the boundary point sets of the scattered point block envelope lines are reorganized according to a preset reorganization method to determine the scattered point envelope lines of the photovoltaic array.
[0081] For example, if the boundary point sets of the envelope lines of adjacent scattered point blocks A and B are: A = [a1, a2, ... an, a1], B = [b1, b2, ..., bm, b1], where an is the nth point in set A and n is the number of boundary points in set A. The same is true for set B. Next, the closest boundary points ak (k∈1…n) and bp (p∈1…m) in the two boundary point sets A and B are selected. Set B is reordered starting from bp, and the sorting result is B1 = [bp, ... b1, b2… bp]. The boundary point sets of A and B are then reorganized to obtain the boundary point set of the envelope line of the scattered points of the photovoltaic array: [a1, a2, ..., ak, bp, ..., b1, b2, ..., bp, ak, ..., an, a1], thereby determining the envelope line of the scattered points of the photovoltaic array.
[0082] The envelope generation method provided by the embodiment of the present invention determines a scattered point block according to the distance between the scattered points of the photovoltaic array, then traverses the scattered point block in a preset manner to determine a real position set, and maps the real position set to a preset grid to obtain a mapping relationship set, and then uses a preset concave hull algorithm to generate a boundary point set of the scatter point block envelope. Finally, based on the mapping relationship set, the boundary point set of the scatter point block envelope is determined. After integrating the set, the envelope of the scattered points of the photovoltaic array can be generated. By dividing the scattered points into blocks, the problem of reduced boundary encirclement accuracy of the envelope due to the existence of scattered points that are too far apart is solved. The scattered point block is mapped to the preset grid, and the absolute distance between the scattered points is converted into a relative distance, which weakens the deviation of the distance between the scattered points and improves the boundary encirclement accuracy of the envelope.
[0083] Example 3
[0084] Figure 3 This is a schematic diagram of the structure of an envelope generating device provided by the third embodiment of the present invention. Figure 3 As shown, the device includes: a scattered point block determination module 301, a real position set determination module 302, a boundary point set determination module 303 and an envelope determination module 304, wherein:
[0085] a scattered point block determination module, configured to obtain a set of scattered points of a photovoltaic array and determine a scattered point block based on distances between scattered points in the set, wherein the scattered points are determined based on the center coordinates of photovoltaic strings in the photovoltaic array;
[0086] A real position set determining module, configured to determine a real position set of scattered points in the scattered point block;
[0087] a boundary point set determination module, configured to map the real position set into a preset grid to obtain a mapping relationship set, and determine a boundary point set of an envelope of a scatter point block according to the mapping relationship set, wherein the scatter point blocks correspond to respective preset grids;
[0088] An envelope determination module is configured to determine the envelope of the scattered points of the photovoltaic array based on a set of boundary points of the scattered point block envelope.
[0089] The envelope generation device provided by the embodiment of the present invention determines the scattered point block and the real position set according to the distance between the scattered points in the scattered point set of the photovoltaic array, and maps the real position set to a preset grid to obtain the boundary point set of the scattered point block envelope, thereby determining the envelope of the scattered points of the photovoltaic array, solving the problem of low accuracy of the generated envelope boundary caused by uneven distances between the position points of the photovoltaic strings in the photovoltaic array, improving the boundary surrounding accuracy of the envelope, and eliminating the process of manual parameter adjustment.
[0090] Optionally, a scatter block determination module includes:
[0091] a distance determination unit, configured to obtain the distance and position relationship between scattered points of the photovoltaic array, and determine the distance between the scattered point and the nearest scattered point;
[0092] a distance determination unit, configured to calculate a mean of the distances to obtain a cluster distance;
[0093] The scattered point block determining unit is used to determine the scattered point block according to a preset algorithm and the clustering distance.
[0094] Optionally, a real location set determination module includes:
[0095] a positional relationship determining unit, configured to traverse the scattered point block in a preset manner, determine the closest scattered points in the scattered point block in a preset orientation, and obtain the positional relationship of the scattered points;
[0096] The real position set determining unit is used to integrate the position relationship, determine the row and column position of each scattered point in the scattered point block, and obtain a real position set.
[0097] Optionally, a boundary point set determination module includes:
[0098] a mapping relationship set determining unit, configured to map the real position set to a preset grid to obtain a mapping relationship set, so as to fix the relative distances between scattered points in the real position set, wherein the mapping relationship set includes the position coordinates of the scattered points in the preset grid;
[0099] The boundary point set determining unit is used to determine the boundary point set of the scatter point block envelope based on the mapping relationship set, using a preset concave hull algorithm and taking a preset distance as an input distance.
[0100] Furthermore, based on the mapping relationship set, a preset concave hull algorithm is used, and a preset distance is used as the input distance to determine the boundary point set of the envelope line of the scatter block, including: based on the mapping relationship set, a preset concave hull algorithm is used, and a preset distance is used as the input distance to obtain the boundary point set of the envelope line of the preset grid; according to the mapping relationship set and the boundary point set of the envelope line of the preset grid, the boundary point set of the scatter block envelope line is determined.
[0101] Optionally, an envelope determination module includes:
[0102] a positional relationship determining unit, configured to traverse the scattered point blocks and determine the positional relationship between corresponding scattered point blocks based on two scattered points from different scattered point blocks that are closest to each other;
[0103] An envelope determining unit is configured to determine the envelope of the scattered points of the photovoltaic array according to the positional relationship and the boundary point set of the scattered point block envelope.
[0104] Optionally, determining the envelope of the scattered points of the photovoltaic array based on the positional relationship and the boundary point set of the scatter point block envelope includes: determining multiple groups of boundary point sets of the scatter point block envelopes that are closest to each other based on the positional relationship, wherein the boundary point sets of the scatter point block envelopes corresponding to each two scatter points that are closest to each other are a group; based on the multiple groups of boundary point sets of the scatter point block envelopes that are closest to each other, reorganizing the boundary point sets of the scatter point block envelopes according to a preset reorganization method to determine the envelope of the scattered points of the photovoltaic array.
[0105] The envelope curve generating device provided in the embodiment of the present invention can execute the envelope curve generating method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0106] Example 4
[0107] Figure 4A schematic diagram of the structure of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0108] like Figure 4 As shown, the electronic device 40 includes at least one processor 41 and a memory, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., which is communicatively connected to the at least one processor 41. The memory stores a computer program that can be executed by the at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 into the random access memory (RAM) 43. Various programs and data required for the operation of the electronic device 40 can also be stored in the RAM 43. The processor 41, ROM 42, and RAM 43 are connected to each other via a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0109] Multiple components in the electronic device 40 are connected to the I / O interface 45, including an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a magnetic disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0110] The processor 41 may be any general-purpose and / or specialized processing component with processing and computing capabilities. Examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors for running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 41 executes the various methods and processes described above, such as the envelope generation method.
[0111] In some embodiments, the envelope generation method can be implemented as a computer program that is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the envelope generation method described above can be performed. Alternatively, in other embodiments, the processor 41 can be configured to execute the envelope generation method in any other appropriate manner (e.g., by means of firmware).
[0112] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0113] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0114] The computer device provided above can be used to execute the envelope generation method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0115] Example 5
[0116] In the context of the present invention, a computer-readable storage medium may be a tangible medium having computer-executable instructions for executing, when executed by a computer processor, an envelope generation method comprising:
[0117] Obtaining a set of scattered points of a photovoltaic array, and determining a scattered point block based on distances between scattered points in the set, wherein the scattered points are determined based on center coordinates of photovoltaic strings in the photovoltaic array;
[0118] Determining a set of real positions of scattered points in the scattered point block;
[0119] Mapping the real position set into a preset grid to obtain a mapping relationship set, and determining a boundary point set of an envelope of a scatter point block according to the mapping relationship set, wherein the scatter point blocks correspond to respective preset grids;
[0120] Based on the boundary point set of the scattered point block envelope, the scattered point envelope of the photovoltaic array is determined.
[0121] In the context of the present invention, computer-readable storage medium can be a tangible medium that can contain or store a computer program for use with an instruction execution system, device or equipment or used in conjunction with an instruction execution system, device or equipment. Computer-readable storage medium can include but is not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage medium can be a machine-readable signal medium. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0122] The computer device provided above can be used to execute the envelope generation method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0123] It is worth noting that in the embodiment of the above-mentioned envelope generating device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0124] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for generating an envelope, characterized in that: include: Obtaining a set of scattered points of a photovoltaic array, and determining a scattered point block based on distances between scattered points in the set, wherein the scattered points are determined based on center coordinates of photovoltaic strings in the photovoltaic array; Determining a set of real positions of scattered points in the scattered point block; Mapping the real position set into a preset grid to obtain a mapping relationship set, and determining a boundary point set of an envelope of a scatter point block based on the mapping relationship set, wherein the scatter point blocks correspond to respective preset grids, and the preset grids are grids customized to fix the relative distances between scatter points so that one scatter point can be mapped into one preset grid; Based on the boundary point set of the scattered point block envelope, the scattered point envelope of the photovoltaic array is determined.
2. The method according to claim 1, characterized in that The step of obtaining a set of scattered points of the photovoltaic array and determining a scattered point block based on distances between scattered points in the set includes: Obtaining a set of scattered points of a photovoltaic array, and determining a distance between the scattered point and a nearest scattered point based on the distance and position relationship between the scattered points in the set; Calculating the mean of the distances to obtain the cluster distance; Determine the scattered point blocks according to a preset algorithm and the clustering distance.
3. The method according to claim 1, characterized in that Determining the real position set of scattered points in the scattered point block includes: According to a preset method, the scattered point block is traversed to determine the scattered points in the scattered point block that are closest to the preset orientation, and the orientation relationship of the scattered points is obtained; The orientation relationship is integrated to determine the row and column position of each scattered point in the scattered point block, thereby obtaining a real position set.
4. The method according to claim 1, wherein Mapping the real position set into a preset grid to obtain a mapping relationship set, and determining a boundary point set of a scatter point block envelope according to the mapping relationship set, includes: Mapping the real position set to a preset grid to obtain a mapping relationship set to fix the relative distances between scattered points in the real position set, wherein the mapping relationship set includes the position coordinates of the scattered points in the preset grid; Based on the mapping relationship set, a preset concave hull algorithm is used to determine a boundary point set of the scatter block envelope with a preset distance as an input distance.
5. The method according to claim 4, characterized in that The method of determining a boundary point set of a scatter block envelope line based on the mapping relationship set and using a preset concave hull algorithm with a preset distance as an input distance includes: Based on the mapping relationship set, using a preset concave hull algorithm and taking a preset distance as an input distance, a boundary point set of the envelope of the preset grid is obtained; The boundary point set of the scatter point block envelope is determined according to the mapping relationship set and the boundary point set of the envelope of the preset grid.
6. The method according to claim 1, characterized in that The step of determining the envelope of the scattered points of the photovoltaic array based on the boundary point set of the scattered point block envelope includes: Traversing the scattered point blocks, and determining the positional relationship between corresponding scattered point blocks according to two scattered points from different scattered point blocks that are closest to each other; The envelope of the scattered points of the photovoltaic array is determined according to the positional relationship and the boundary point set of the scattered point block envelope.
7. The method according to claim 6, characterized in that Determining the envelope of the scattered points of the photovoltaic array according to the positional relationship and the boundary point set of the scattered point block envelope includes: Determine, based on the positional relationship, a plurality of sets of boundary point sets of the scatter point block envelopes that are closest to each other, wherein the boundary point sets of the scatter point block envelopes corresponding to each two scatter points that are closest to each other constitute a group; Based on the multiple groups of boundary point sets of the scattered point block envelope lines that are closest to each other, the boundary point sets of the scattered point block envelope lines are reorganized according to a preset reorganization method to determine the scattered point envelope line of the photovoltaic array.
8. An envelope generating device, characterized in that: include: a scattered point block determination module, configured to obtain a set of scattered points of a photovoltaic array and determine a scattered point block based on distances between scattered points in the set, wherein the scattered points are determined based on the center coordinates of photovoltaic strings in the photovoltaic array; A real position set determining module, configured to determine a real position set of scattered points in the scattered point block; a boundary point set determination module, configured to map the real position set into a preset grid to obtain a mapping relationship set, and determine a boundary point set of the scatter point block envelope according to the mapping relationship set, wherein the scatter point blocks correspond to respective preset grids, and the preset grids are grids customized to fix the relative distances between scatter points so that a scatter point can be mapped into a preset grid; An envelope determination module is configured to determine the envelope of the scattered points of the photovoltaic array based on a set of boundary points of the scattered point block envelope.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the envelope generating method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the envelope generating method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Position table generating method for scintillation detector
CN102981179A
Automatic completion method of polyline boundary scatter points and related equipment
CN112765304A
Envelope line generation method and device
CN113868724A