Solar panel adjustment method and adjustment device, sun tracking system and storage device

Through edge computing-based methods, grayscale processing and k-means clustering technology are used to automatically adjust the spatial position of solar panels, solving the problem of low power generation efficiency of solar panels in the existing technology and achieving efficient utilization of solar resources.

CN113160311BActive Publication Date: 2024-09-17BEIJING CYBERLINK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010015450.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-07
Publication Date
2024-09-17
Estimated Expiration
2040-01-07

AI Technical Summary

Technical Problem

Existing solar panels are difficult to intelligently adjust to fully utilize solar resources, resulting in low power generation efficiency.

Method used

Using an edge computing-based method, the image of the pole is collected by receiving light information, performing grayscale processing, filtering and k-means clustering, calculating the sun shadow area, and automatically adjusting the spatial position of the solar panel to reduce the sun shadow area, achieving The optimal incident angle of sunlight to solar panels.

Benefits of technology

It improves the power generation efficiency of solar panels and realizes intelligent regulation and maximum utilization of solar resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113160311B
    Figure CN113160311B
Patent Text Reader

Abstract

The present invention belongs to the field of photovoltaic power generation, and relates to a solar panel adjustment method, an adjustment device, a sun tracking adjustment system and a storage device based on edge computing. The method includes: receiving an image including an image of a light information collection rod, and obtaining the spatial position of a solar panel; performing at least grayscale processing and filtering processing on the image; performing k-means clustering on the image after grayscale processing and filtering processing, and determining the cluster with the smallest grayscale value at the cluster center as the sun shadow area of ​​the light information collection rod; calculating the sun shadow area of ​​the light information collection rod according to the determined sun shadow area of ​​the light information collection rod; according to the sun shadow area of ​​the light information collection rod and the current spatial position of the solar panel, instructing the solar panel to adjust the spatial position to reduce the sun shadow area of ​​the light information collection rod until the shadow area is less than the set area threshold. It can realize the intelligent adjustment of the spatial position of the solar panel and improve the power generation efficiency of the solar panel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of photovoltaic power generation, and specifically relates to a solar panel adjustment method based on edge computing, a solar panel adjustment device based on edge computing, a solar panel sun tracking adjustment system and a storage device. Background Art

[0002] Whether from the perspective of the world or China, conventional energy is very limited. Solar energy is an inexhaustible renewable energy source for mankind. It has the advantages of being clean, safe, long-lived, sufficient, and economical. It plays an important role in long-term energy strategies and has become a new energy source that countries around the world are actively paying attention to and vigorously developing. Solar energy is abundant on the earth and its distribution is relatively balanced. In addition, the use of solar energy does not produce waste and has little pollution to the environment. It is a truly green energy.

[0003] On the one hand, solar energy has the problems of low density, intermittency, and the direction and intensity of light changing over time, which puts higher requirements on the collection and utilization of solar energy. The orientation and tilt angle of the sun relative to the solar panels of the photovoltaic power station change in real time in different seasons or within a day. Only when the light-receiving surface of the solar panel receives the sunlight vertically can it maximize the reception of solar energy and exert the maximum power generation in real time. At present, many solar panels are fixedly installed, or although they are equipped with bracket adjustment structures, they can only be adjusted according to simple rules such as the law of solar radiation. It is actually difficult to adjust the solar panel to the direction perpendicular to the sunlight, and the solar energy resources cannot be fully utilized, resulting in low power generation efficiency.

[0004] How to achieve intelligent adjustment of the spatial position of solar panels and improve power generation efficiency is a problem that urgently needs to be solved in photovoltaic power generation. Summary of the invention

[0005] The technical problem to be solved by the present invention is to address the above-mentioned deficiencies in the prior art. In order to make full use of the abundant solar energy resources, a solar panel adjustment method based on edge computing, a solar panel adjustment device based on edge computing, a solar panel sun tracking adjustment system and a storage device are provided to realize intelligent adjustment of the spatial position of the solar panel and improve the power generation efficiency of the solar panel.

[0006] The technical solution adopted to solve the technical problem of the present invention is the solar panel adjustment method based on edge computing, which is used to adjust the spatial position of the solar panel located in the photovoltaic power generation area, and comprises the steps of:

[0007] Receiving an image including an image of a light information collection rod located in the photovoltaic power generation area, and acquiring a current spatial position of a solar cell panel;

[0008] Performing at least grayscale processing and filtering processing on the image including the image of the light information collection rod;

[0009] Performing k-means clustering on the image including the light information collection rod image after grayscale processing and filtering processing, and determining the cluster with the smallest grayscale value at the cluster center as the sun shadow area of ​​the light information collection rod;

[0010] Calculating the shadow area of ​​the light information collection rod according to the determined shadow area of ​​the light information collection rod;

[0011] According to the shadow area of ​​the light information collection rod and the current spatial position of the solar panel, an instruction is given to adjust the solar panel to a spatial position that reduces the shadow area of ​​the light information collection rod until the shadow area of ​​the light information collection rod is smaller than a set area threshold.

[0012] Preferably, the image including the light information acquisition rod image is subjected to at least grayscale processing and filtering processing, including:

[0013] According to a grayscale conversion formula, the image including the light information collection rod image is converted into a grayscale image;

[0014] Perform median filtering on the grayscale image.

[0015] Preferably, before performing at least grayscale processing and filtering processing on the image including the light information collecting rod image, the method further comprises: cutting the image including the light information collecting rod image with a set pixel size as a decision image, and performing grayscale processing and filtering processing on the decision image to obtain the grayscale image;

[0016] Alternatively, after at least grayscale processing and filtering processing are performed on the image including the light information collection rod image, the method further includes: cutting the grayscale image with a set pixel size as a decision image, and performing k-means clustering processing on the decision image.

[0017] Preferably, k-means clustering is performed on the image including the light information collection rod image after grayscale processing and filtering, and the cluster with the smallest grayscale value at the cluster center is determined as the sun shadow area of ​​the light information collection rod, including:

[0018] Constructing a pixel grayscale distribution map, and partitioning the grayscale map according to the pixel grayscale distribution map;

[0019] According to the image partitions corresponding to the pixel grayscale distribution map, the peak value of each partition is set as the initial clustering center of the corresponding partition;

[0020] Calculating the grayscale difference between each pixel in the grayscale image and the initial cluster center pixel of each partition, and clustering each pixel according to the grayscale difference;

[0021] Calculate the grayscale average value of each pixel in each cluster after clustering, and update the cluster center with the grayscale average value;

[0022] The clustering area is determined based on the intra-class distance criterion function, and the cluster with the smallest gray value is set as the sun shadow area of ​​the light information collection rod.

[0023] Preferably, in the step of calculating the shadow area of ​​the light information collection rod according to the determined shadow area of ​​the light information collection rod, the pixel points in the shadow area of ​​the light information collection rod are counted, and the total number of pixel points is the shadow area;

[0024] Alternatively, before calculating the shadow area of ​​the light information collection rod, the method further includes: calculating the distance between the cluster center of the determined shadow area of ​​the light information collection rod and other pixel points in the cluster, and re-determining the shadow area of ​​the light information collection rod according to the consistency of adjacent pixels;

[0025] Alternatively, after calculating the shadow area of ​​the light information collection rod, the method further includes: correcting the shadow area of ​​the light information collection rod according to the solar incident angle in different months; the correction method includes: multiplying the shadow area of ​​the light information collection rod by a correction coefficient.

[0026] Preferably, the image including the image of the light information collection rod and the current spatial position of the solar cell panel located in the photovoltaic power generation area is received at a set time interval, and the set time range is 5-10 minutes.

[0027] A solar panel adjustment device based on edge computing is used to adjust the spatial position of a solar panel located in a photovoltaic power generation area, which includes a receiving module, a processing module, a determination module, a calculation module and a command generation module, wherein:

[0028] The receiving module is used to receive images including images of light information collection rods located in the photovoltaic power generation area, and obtain the spatial position of the current solar panel, and transmit the received image information to the processing module, and transmit the position information to the command generation module;

[0029] The processing module is used to perform at least grayscale processing and filtering processing on the image including the image of the light information collection rod, and transmit the processed image information to the determination module;

[0030] The determination module is used to perform k-means clustering on the image including the light information collection rod image after grayscale processing and filtering processing, determine the cluster with the smallest grayscale value at the cluster center as the sun shadow area of ​​the light information collection rod, and transmit the determined area information to the calculation module;

[0031] The calculation module is used to calculate the shadow area of ​​the light information collection rod according to the determined shadow area of ​​the light information collection rod, and transmit the shadow area information to the command generation module;

[0032] The command generation module is used to generate a command for adjusting the solar panel to a spatial position that reduces the shadow area of ​​the light information collection rod according to the shadow area of ​​the light information collection rod and the current spatial position of the solar panel, and send the command to all the solar panels in the corresponding photovoltaic power generation area to adjust the solar panels until the shadow area of ​​the light information collection rod is less than a set area threshold.

[0033] Preferably, the processing module includes a grayscale conversion unit and a filtering unit, wherein:

[0034] The grayscale conversion unit is used to convert the image including the light information collection rod image into a grayscale image according to a grayscale conversion formula;

[0035] The filtering unit is used to perform median filtering on the grayscale image.

[0036] Preferably, the processing module further comprises a cutting unit, and the cutting unit is used for:

[0037] Before performing at least grayscale processing and filtering processing on the image including the light information collecting rod image, setting the image including the light information collecting rod image with a pixel size as a decision image, and performing grayscale processing and filtering processing on the decision image to obtain the grayscale image;

[0038] Alternatively, after at least grayscale processing and filtering processing are performed on the image including the light information collection rod image, the grayscale image with a set pixel size is cut as a decision image, and the decision image is processed using the k-means clustering method.

[0039] Preferably, the determination module comprises a construction unit, a centering unit, a clustering unit, an updating unit and a setting unit, wherein:

[0040] The construction unit is used to construct a pixel grayscale distribution map, and partition the grayscale map according to the pixel grayscale distribution map;

[0041] The centering unit is used to set the peak value of each partition as the initial clustering center of the corresponding partition according to the image partition corresponding to the pixel grayscale distribution map;

[0042] The clustering unit is used to calculate the grayscale difference between each pixel in the grayscale image and the initial cluster center pixel of each partition, and cluster each pixel according to the grayscale difference;

[0043] The updating unit is used to calculate the grayscale average value of each pixel in each cluster after clustering, and update the cluster center with the grayscale average value;

[0044] The setting unit is used to determine the clustering area based on the intra-class distance criterion function, and set the cluster with the smallest gray value as the sun shadow area of ​​the light information collection rod.

[0045] Preferably, the calculation module includes a statistical unit, and the statistical unit is used to count the pixel points in the sun shadow area, and the total number of pixel points in the sun shadow area is the sun shadow area;

[0046] Alternatively, the calculation module further includes a reconfirmation unit, which is used to calculate the distance between the cluster center of the determined sun shadow area of ​​the light information collection rod and other pixel points in the sun shadow area, and reconfirm the sun shadow area of ​​the light information collection rod according to the consistency of adjacent pixels;

[0047] Alternatively, the calculation module further includes a correction unit, which is used to correct the shadow area of ​​the light information collection rod according to the solar incident angle in different months; the correction method includes: multiplying the shadow area of ​​the light information collection rod by a correction coefficient.

[0048] A storage device stores a plurality of instructions for adjusting the spatial position of a solar cell panel located in a photovoltaic power generation area, wherein the instruction functions include:

[0049] Receiving an image including an image of a light information collection rod located in the photovoltaic power generation area, and acquiring a current spatial position of a solar cell panel;

[0050] Performing at least grayscale processing and filtering processing on the image including the image of the light information collection rod;

[0051] Performing k-means clustering on the image including the light information collection rod image after grayscale processing and filtering processing, and determining the cluster with the smallest grayscale value at the cluster center as the sun shadow area of ​​the light information collection rod;

[0052] Calculating the shadow area of ​​the light information collection rod according to the determined shadow area of ​​the light information collection rod;

[0053] According to the shadow area of ​​the light information collection rod, the solar panel is instructed to be adjusted to a spatial position that reduces the shadow area of ​​the light information collection rod until the shadow area of ​​the light information collection rod is smaller than a set area threshold.

[0054] A solar panel sun tracking adjustment system includes a spatial position adjustment device, and is characterized in that it also includes a sunlight detection device, a spatial position detection device and the above-mentioned solar panel adjustment device based on edge computing.

[0055] Preferably, the sunlight detection device comprises a light information collection rod and an image collection device, wherein:

[0056] The light information collection rod is vertically arranged above any solar cell panel in the photovoltaic power generation area, and the light information collection rod is light-colored;

[0057] Alternatively, the sunlight detection device further comprises a reference plate, the light information collection rod is vertically arranged above the reference plate in the same spatial position state as the solar cell panels in the photovoltaic power generation area, and the surface of the reference plate is light-colored;

[0058] The image acquisition device comprises a camera or a camera, and the camera or the camera has a fixed relative position with the light information acquisition rod.

[0059] Preferably, the spatial position detection device comprises an angle sensor, and the angle sensor is mounted on a bracket of the solar panel.

[0060] The beneficial effects of the present invention are:

[0061] The solar panel adjustment method based on edge computing and the corresponding solar panel adjustment device based on edge computing perform intensive calculations such as grayscale conversion, median filtering, cluster analysis, and solar shadow area calculation close to the scene through edge computing, and only transmit the direction and range of the final adjustment of the solar panel to the spatial position adjustment device of each solar panel, so as to complete the setting of the optimal incident angle of the solar panel in the photovoltaic power generation area at the current time point, and realize the upgrade of smart Internet of Things;

[0062] The solar panel sun tracking and adjustment system processes the images collected in real time by the daylight detection device through an artificial intelligence algorithm, automatically identifies the length of the shadow of the light information collection rod, and obtains the corresponding relationship between the current sunlight and the solar panel; on the other hand, the spatial position of the solar panel in the photovoltaic power generation area is obtained through the spatial position detection device; the two aspects of information are combined, and the spatial position (azimuth and inclination angle) between the current sunlight and the solar panel is adjusted by the spatial position adjustment device to minimize the length of the shadow, and the spatial position adjustment is realized through the automatic feedback principle, so that the sunlight is incident on the solar panel as vertically as possible, so that the solar panels in a certain photovoltaic power generation area can obtain the maximum power generation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 This is a flow chart of a solar panel adjustment method based on edge computing in Embodiment 1 of the present invention;

[0064] Figure 2 The image including the image of the light information collection rod in Embodiment 1 of the present invention;

[0065] Figure 3 This is a schematic diagram of setting a light information collection rod and a camera in the solar panel adjustment method based on edge computing in Example 1 of the present invention;

[0066] Figure 4 Schematic diagram of median filtering processing in Embodiment 1 of the present invention;

[0067] Figure 5 is a schematic diagram of an extreme case of image cropping in Embodiment 1 of the present invention;

[0068] Figure 6 Schematic diagram of a pixel grayscale distribution diagram in Example 1 of the present invention;

[0069] Figure 7 Schematic diagram of sun shadow movement simulation in Embodiment 1 of the present invention;

[0070] Figure 8 This is a structural block diagram of a solar panel adjustment device based on edge computing in Example 1 of the present invention;

[0071] Fig. 9 This is a schematic diagram of the structure of the solar panel sun tracking adjustment system in Example 3 of the present invention;

[0072] In the accompanying drawings:

[0073] 11-light information collection rod; 12-reference board; 13-image collection device; 14-sun shadow area of ​​the light information collection rod; 15-image including the image of the light information collection rod;

[0074] 21-receiving module; 22-processing module; 23-determining module; 24-calculating module; 25-command generating module;

[0075] 31- Solar panel adjustment device based on edge computing; 32- Sunlight detection device; 33- Solar panel; 34- Spatial position detection device; 35- Spatial position adjustment device. DETAILED DESCRIPTION

[0076] In order to enable those skilled in the art to better understand the technical solution of the present invention, the solar panel adjustment method based on edge computing, the solar panel adjustment device based on edge computing, the solar panel tracking adjustment system and the storage device of the present invention are further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to illustrate and explain the technical solution of the present invention, and are not used to limit the present invention.

[0077] The technical concept of the present invention is: on the one hand, the real-time collected images are processed by an artificial intelligence algorithm, the length of the shadow of the reference object is automatically identified, and the corresponding relationship between the current sunlight and the solar panel is obtained; on the other hand, the spatial position of the solar panel in the photovoltaic power generation area is obtained; the two aspects of information are integrated to adjust the spatial angle (azimuth and inclination angle) between the current sunlight and the solar panel to minimize the length of the shadow, and the spatial position adjustment is realized through the automatic feedback principle, so that the sunlight is incident on the solar panel as vertically as possible, so that the solar panel can obtain the maximum power generation efficiency.

[0078] Based on the above technical concept, the present invention provides a solar panel adjustment method based on edge computing, a solar panel adjustment device based on edge computing, a solar panel sun tracking adjustment system and a storage device. By performing image processing on the image of the light information collection rod located in the photovoltaic power generation area, the spatial position of the solar panel is adjusted according to the length of the light information collection rod, so as to maximize the annual power generation of the solar panel.

[0079] Embodiment 1:

[0080] As one aspect of the present invention, this embodiment will combine a solar panel adjustment method based on edge computing and a solar panel adjustment device based on edge computing to describe in detail a method for performing image processing on an image of a light information collection rod located in a photovoltaic power generation area to adjust the spatial position of a solar panel.

[0081] like Figure 1 As shown, the solar panel adjustment method based on edge computing includes the steps of:

[0082] Step S1): receiving an image including an image of a light information collection rod located in a photovoltaic power generation area, and acquiring the spatial position of a current solar cell panel.

[0083] The solar panel adjustment method based on edge computing is applied to the solar panel tracking adjustment system, so it will be described in detail in conjunction with some hardware devices in the solar panel tracking adjustment system. Figure 2 In this step, the image 15 including the image of the light information collection rod is collected in real time, and the current spatial position of the solar panel is obtained, so that the image 15 including the image of the light information collection rod can be processed in the next step to obtain the relationship between the current solar panel and the incident light of the sun, and the spatial position of the solar panel in the photovoltaic power generation area can be adjusted based on the spatial position of the current solar panel. Figure 2 as shown in the lower part of .

[0084] The light information collection rod 11 can be a cylindrical object with a certain length and a certain width in a light tone. For example, the light information collection rod 11 is a slender rod with a white surface, a length range of 20-30 cm, and a diameter range of 2-2.5 cm. Setting the surface of the light information collection rod 11 to a light tone makes it easy to distinguish the length of the shadow (or identify its shadow area) by the tone in the subsequent image processing process; and setting the length and width of the light information collection rod 11 to a ratio of about 10-15:1 makes it easy to cut the image including the image of the light information collection rod 11 and calculate the length of the shadow in the subsequent image processing process.

[0085] The image acquisition device 13 for real-time acquisition of the image 15 including the image of the light information acquisition rod can be a camera or a camera, which has a fixed relative position with the light information acquisition rod 11. In the current application of cameras increasingly entering the security system, the camera in the system can be directly used as a device for acquiring the image 15 including the image of the light information acquisition rod, without the need to add a dedicated camera, which increases its flexibility and reduces the equipment cost.

[0086] like Figure 3The figure shows a schematic diagram of setting a light information collection rod and a camera in a solar panel adjustment method based on edge computing. When receiving an image 15 including an image of a light information collection rod located in a photovoltaic power generation area, in one implementation example, the light information collection rod 11 can be vertically set above any solar panel 33 in the photovoltaic power generation area; in one implementation example, the light information collection rod 11 can be vertically set above a reference plate 12 having the same spatial position state as the solar panel 33 in the photovoltaic power generation area, and the surface of the reference plate 12 is light-colored, for example, white. In comparison, the image on the surface of the light-colored reference plate 12 in the latter implementation example is usually gray or close to gray, so the image 15 including the image of the light information collection rod has a relatively simple image background color close to white, which can obtain a faster image processing speed, a better image recognition effect, and a more accurate image recognition degree.

[0087] Step S2): performing at least grayscale processing and filtering processing on the image including the light information collection rod image.

[0088] In this step, processing the image 15 including the image of the light information collection rod includes the following sub-steps:

[0089] Sub-step S21): grayscale processing is performed on the image 15 including the image of the light information collecting rod, and the image 15 including the image of the light information collecting rod is converted into a grayscale image.

[0090] The usual image is an RGB color image. The basic unit of an RGB color image is a pixel represented by three color blocks, namely R, G, and B. The color of a pixel in an RGB color image is a mixture of the three primary colors R (red), G (green), and B (blue) in proportion, while a grayscale image uses black of different saturations to represent each pixel. The colors in nature are very easily affected by light, and RGB varies greatly. When the image 15 including the light information acquisition rod image is converted into a grayscale image, the grayscale information therein can provide more essential information. Moreover, after the three-channel data of RGB information is converted into one-channel data of grayscale information, the amount of calculation is greatly reduced, which is more convenient for subsequent further image processing. For example, an 8-bit 0-255 number is used to represent the degree of "gray", and each pixel only needs an 8-bit grayscale value. Such a 3×3 grayscale image only needs 9 bytes to be saved.

[0091] In this sub-step, the formula for converting the RGB of the image 15 including the light information collection rod image into grayscale is:

[0092] Gray=R×0.299+G×0.587+B×0.114 formula (1)

[0093] According to formula (1), read the R, G, and B values ​​of each pixel in turn, calculate the corresponding grayscale value (converted to an integer), and assign the grayscale value to the corresponding pixel position of the grayscale image. After all pixels are traversed once, the conversion is completed. R, G, and B are in the range of 0-255, so the converted grayscale value will also be normalized to the range of 0-255.

[0094] Sub-step S22): performing median filtering on the grayscale image of the light information collection rod.

[0095] The grayscale image of the light information collection rod is filtered to remove the noise caused by dirt, wherein: the filtering method includes a median filter method. Median filter is a nonlinear smoothing technology that sets the grayscale value of each pixel to the median of the grayscale values ​​of all pixels in a certain neighborhood window of the pixel. In this embodiment, it is used to process salt and pepper noise in the grayscale image and can maintain the boundary.

[0096] In a series of numbers {1, 4, 6, 8, 9}, the number 6 is the median of the series of numbers. Figure 4 For the pixel points shown, first select a 3×3 matrix in the image matrix by formula (2), and the 3×3 matrix includes 9 pixel points; then sort the grayscales of these 9 pixel points by formula (3), and assign the center point of this 3×3 matrix to the middle value of the grayscales of these 9 pixel points, that is, Figure 4 The pixel point at the 2nd row and 2nd column is 1→23.

[0097]

[0098] g=median[f(x-1,y-1)f(x,y-1)f(x+1,y-1);f(x-1,y)

[0099] f(x,y)f(x+1,y); f(x-1,y+1)f(x,y+1)f(x+1,y+1)]

[0100] Formula (3)

[0101] Where: Formula (2) is a value matrix, which is used to traverse the image matrix and take out a total of 9 pixels of the 3×3 matrix each time;

[0102] In formula (3), g is the gray value gray of the center point of the 3×3 matrix, f(x,y) is the gray value at the xth row and yth column in the 3×3 matrix, and median[] is the function of Matlab to find the median of the matrix.

[0103] In order to avoid the image 15 including the light information collection rod image having a large number of pixels and affecting the subsequent processing speed, it is preferred that the method further includes a sub-step S23): cutting the grayscale image of the set pixel size after the median filter processing as the judgment image, and using the judgment image to replace the image 15 including the light information collection rod image for k-means clustering processing. Wherein: the length or width of the pixel size is set to be in the range of 300-500, and the length and width are equal, or the length and width are not equal. Only processing the grayscale image of the set pixel size can greatly reduce unnecessary data processing of the image background, thereby improving the processing speed.

[0104] It should be understood that sub-step S23) is not necessary, and if the cut grayscale image including the image of the light information collection rod 11 appears as follows Figure 5 In the extreme case where the shadow area of ​​the light information collection rod is partially removed, since the shadow area of ​​the light information collection rod is already the largest for the judgment image, it does not affect the next step of obtaining the shadow area 14 of the light information collection rod and calculating the influence of the shadow area of ​​the light information collection rod on triggering the solar panel to adjust. In practical applications, the selection can be made according to the application and the processing power of the processor, and is not limited here.

[0105] Step S3): Perform k-means clustering on the image including the light information collection rod image after grayscale processing and filtering processing, and determine the cluster with the smallest grayscale value at the cluster center as the sun shadow area of ​​the light information collection rod.

[0106] The shadow of the sun is generally referred to as the shadow of an object. It is a darker area formed on the side of the object away from the sun after the sunlight is blocked by the object. During the day, the shadow of an object is related to the height of the sun. The higher the height of the sun, the shorter the shadow; the lower the height of the sun, the longer the shadow. On a certain day, when the sun is directly overhead, the shadow is the shortest and even shrinks to a point. For example, every year at the summer solstice (June 21 or June 22), in the Tropic of Cancer Landmark Park in Mojiang, Yunnan Province, there will be a magical astronomical spectacle of "no shadow on the pole" (under the sun of the summer solstice, you will find that your shadow can actually disappear).

[0107] For the earth, sunlight is parallel light, and the length of the shadow is determined by the angle of sunlight and the length of the object itself. In this way, the same object moves toward or away from the sunlight at the same time, and the size of the shadow (that is, the shadow area) remains unchanged, and the width of the shadow of the object (the size in another direction perpendicular to the length of the shadow) is also unchanged. Therefore, by obtaining the shadow area 14 of the light information collection rod, the size of the shadow area of ​​the light information collection rod can be obtained, which is equivalent to obtaining the shadow length of the light information collection rod 11. In this step, the k-means clustering method is used to obtain the shadow area 14 of the current light information collection rod (that is, the object) in a day, so that the shadow length of the solar panel and the relative position to the sunlight are obtained by the area size of the shadow area 14 of the light information collection rod, thereby realizing the adjustment of the solar panel vertically facing the sunlight.

[0108] K-means clustering (k-means) is a clustering technique used to identify which pixels in an image have the most similar properties (such as color, brightness, position, etc.). In this embodiment, it is used to identify the grayscale value of objects in the image (such as the light information collection rod 11, the shadow area 14 of the light information collection rod, and the image background). K-means clustering divides objects into clusters based on the proximity of the objects to the cluster center under the premise of a given k value. K represents the number of clusters, and the cluster center is the arithmetic mean of the n-dimensional attribute vectors of the objects in each cluster.

[0109] In the solar panel adjustment method based on edge computing in this embodiment, the image objects in the image include the image area of ​​the light information collection rod 11, the shadow area 14 of the light information collection rod, and the image background (i.e., the solar panel or reference panel 12 other than the above two parts), so k=3. Clustering based on the grayscale feature index of the image can be used to locate the classification of the light information collection rod 11, the shadow area 14 of the light information collection rod, and the image background, thereby obtaining the shadow area 14 of the light information collection rod. In addition, the image 15 or the judgment image including the image of the light information collection rod is a one-dimensional scene with only one attribute (n=1, grayscale attribute). Therefore, the specific calculation steps of the k-means clustering method include:

[0110] Sub-step S31): construct a pixel grayscale distribution map and partition the image according to the pixel grayscale values.

[0111] In this sub-step, the number of pixels included in the grayscale image and the grayscale value of each pixel are counted, and each pixel is classified according to the grayscale value, that is, the pixel grayscale distribution diagram of the grayscale image is obtained, such as Figure 6As shown. In the pixel grayscale distribution diagram, the horizontal axis x represents the grayscale values ​​0-255 of all pixels in the grayscale image, 0 is black, 255 is white, and the intermediate value between 0→255 is the transition from black to white; the vertical axis y represents the total number of pixels of the specified grayscale in the grayscale image. From the pixel grayscale distribution diagram, it can be seen that there are three relatively obvious partitions and the peak values ​​corresponding to each partition. The first partition is an area with a larger grayscale value and a larger area, with a peak value of Peak1. This area contains the largest number of pixels and is visually bright. It is inferred that it corresponds to the image of the solar panel 33 or the light-colored reference panel 12; the second partition is an area with a medium grayscale value and a small area, with a peak value of Peak2, which is inferred to correspond to the image of the light information collection rod 11; the third partition is an area with a larger grayscale value and a medium area (in actual measurements, the area of ​​this part has a larger range of variation and may be smaller than the area of ​​the second partition), with a peak value of Peak3, which is visually dark, and it is inferred that it corresponds to the image of the sun shadow area 14 of the light information collection rod. From Figure 6 It can be seen that the bright peak Peak1 of the solar panel or the light-colored reference panel 12 is significantly larger than the other two peaks, that is, the area of ​​the solar panel or the light-colored reference panel 12 is the largest in the entire image, which is consistent with the actual setting.

[0112] Sub-step S32): according to the image partitions corresponding to the pixel grayscale distribution map, the peak value of each partition is set as the initial clustering center of the corresponding partition.

[0113] In this sub-step, the initial cluster center of each partition is set according to the image partition corresponding to the pixel grayscale distribution map. Figure 6 In the pixel grayscale distribution diagram shown in FIG. 1 , the peak points of the three partitions in the pixel grayscale distribution diagram, that is, the grayscale values ​​corresponding to the initial values ​​of the three cluster centers (Peak1, Peak2, Peak3) are set as the initial cluster centers.

[0114] Sub-step S33): Calculate the grayscale difference between each pixel in the grayscale image and the initial cluster center pixel of each partition, and cluster each pixel according to the grayscale difference.

[0115] In this sub-step, the grayscale difference between the grayscale value of each pixel in the grayscale image and the grayscale value of the initial cluster center pixel of each partition is calculated, and the pixel is classified into the cluster where the cluster center with the smallest grayscale difference is located. In other words, for each pixel except the pixel as the cluster center, the grayscale difference between the pixel and the grayscale value of the cluster center pixel of each partition is calculated using formula (4), and the sizes of the grayscale differences are compared:

[0116] g=|x i -X k | Formula (4)

[0117] In formula (4), g refers to the grayscale difference between two pixels, xi is the grayscale value of each pixel, and Xk is the grayscale value of the cluster center pixel of each partition (k = 1, 2, 3), that is, the grayscale value of the pixel corresponding to the three points Peak1, Peak2, and Peak3 selected previously.

[0118] Clustering can be achieved by applying formula (4) to grayscale difference calculation and classification of all pixels in the image 15 including the image of the light information collection rod or the judgment image. Compared with the general k-means clustering method that uses random points as the initial clustering center, this embodiment sets the peak value of each partition as the initial clustering center of the partition, which can speed up the clustering speed and obtain the clustering center faster and more accurately, meeting the application of rapid adjustment of solar panels.

[0119] Sub-step S34): Calculate the grayscale average value for each pixel in each cluster after clustering, and update the cluster center with the grayscale average value.

[0120] In this sub-step, the grayscale average value of each pixel in each cluster is recalculated to obtain a new cluster grayscale average value (X1, X2, X3), and the cluster center of each cluster is updated to facilitate the determination of the cluster area through the subsequent intra-cluster distance criterion function.

[0121] Sub-step S35): Determine the clustering area based on the intra-class distance criterion function, and set the cluster with the smallest gray value as the sun shadow area 14 of the light information collection rod.

[0122] In this sub-step, the intra-class distance criterion function is:

[0123]

[0124] In formula (5), E is the criterion function, k is the number of clustering categories, and in this embodiment, k=3; i is the different cluster to be determined (the i-th cluster), and i is a natural number between 1-k; Ci is the data set of different clusters obtained by previous processing.

[0125] When the criterion function based on the intra-class distance converges (the criterion function value no longer changes), the clustering area result is output, otherwise sub-step S33)-sub-step S35) are repeated until the criterion function converges.

[0126] Formula (5) is the error square sum criterion, and the goal is to minimize E. Of course, the weighted intra-class distance criterion can be used based on the intra-class distance criterion function as appropriate, which is not limited here.

[0127] In this embodiment, each cluster is an image region with the same or similar gray tone. Therefore, the image clustering partitioning can be achieved by the k-means clustering method, and combined with the characteristic that the gray value of the sun shadow region 14 of the light information collection rod in the image is the smallest (the smaller the gray value, the closer to black; regardless of the intensity of sunlight, the shadow region is always darker than the non-shadow region), the sun shadow region 14 of the light information collection rod can be distinguished and determined.

[0128] Step S4): Calculate the shadow area of ​​the light information collection rod according to the determined shadow area of ​​the light information collection rod.

[0129] In this step, the total number of pixels obtained by counting the pixels of the three clusters into which the image 15 including the light information collection rod image is finally divided is the area value of each partitioned image. The cluster with the smallest gray value at the cluster center is taken as the sun shadow area 14 of the light information collection rod, and the pixel points in the sun shadow area 14 of the light information collection rod are counted. The total number of pixel points is the sun shadow area.

[0130] In order to prevent misjudgment of the calculation of the shadow area 14 of the light information collection rod due to the inclusion of other scattered debris in addition to the image area and image background of the light information collection rod 11, before calculating the shadow area of ​​the light information collection rod, it is preferably included in sub-step S41): based on the distance between the determined cluster center of the shadow area 14 of the light information collection rod and other pixel points in the cluster, the shadow area 14 of the light information collection rod is re-confirmed according to the consistency of adjacent pixels.

[0131] In this sub-step, the sun shadow area 14 of the light information collection rod is pixel-identified, and the pixel points whose grayscale values ​​are close to the cluster center but are physically separated outside the cluster are eliminated. Specifically, on the basis of the aforementioned cluster classification by the grayscale difference between each pixel point and the cluster center, each cluster partition is confirmed by distance: the distance between the pixel point position of the cluster center and its adjacent pixels in the cluster is calculated; when the distance is only 1 pixel spacing, the pixel point is merged with the starting point to form a cluster center set; the distance of other pixel points in the cluster is calculated with the new cluster center set as the starting point. If the distance between other pixel points in the cluster and any pixel point in the new cluster center set is 1 pixel spacing, the pixel point is counted into the new cluster center set, ... By analogy, a cluster center set is formed, which gradually spreads outward from the cluster center pixel point as the starting point, until the remaining pixel points in the cluster cannot be merged with it because of the long distance. Then these remaining pixel points are removed from the cluster, and the pixel points in the cluster center set are retained as the final cluster, thereby realizing the accurate calculation of the sun shadow area 14 of the light information collection rod.

[0132] Specifically, the cluster corresponding to the sun shadow area 14 of the aforementioned light information collection rod is used as the target inspection data set C, and the cluster center set R and the growth data set A are constructed. The growth data set A is used as an intermediate transition set to transfer the pixel points in the target inspection data set C to the cluster center set R in stages to ensure the simplicity of the pixel points in the cluster center set R.

[0133] The cluster center set R initially includes only the cluster center of the cluster with the smallest gray value, and gradually expands the distance from each pixel point in the cluster with the smallest gray value except the cluster center to the cluster center by calculating the distance formula between two points. The distance formula between two points is as follows:

[0134]

[0135] In formula (6), |AB| is the distance between the cluster center pixel and other pixels in the cluster; (x1, y1) is the image coordinate value of a pixel in the cluster center set R; (x2, y2) is the image coordinate value of a pixel in the target inspection data set C.

[0136] Traverse all the pixels in the target survey data set C. When the distance between any pixel and any pixel in the cluster center set R is 1 (indicated as an adjacent pixel), move the pixel from the target survey data set C into the growth data set A. After completing a traversal of all the pixels, if the growth data set A is not empty, merge the pixels in the growth data set A into the cluster center set R, thereby obtaining a circle of pixel sets that gradually expand outward from the cluster center set R, and realize the outward spread of the cluster center set, thus forming a new cluster center set R. Repeat the traversal of all the pixels in the target survey data set C for multiple rounds until the growth data set A is empty after completing the traversal of all the pixels, that is, no pixel in the target survey data set C is adjacent to any pixel in the cluster center set R. At this time, the cluster center set R obtained is the pixel formed by eliminating other small shadows and impurities away from the sun shadow area 14 of the light information collection rod, and obtaining a pure sun shadow area 14 of the light information collection rod.

[0137] The different lengths of the shadow in different seasons or months of the year are mainly reflected in the length of the shadow at noon, which is directly related to the altitude of the sun at noon. From the perspective of one location, when the altitude of the sun at noon increases during the year, the shadow gradually shortens. The greater the altitude of the sun at noon, the shorter the shadow; when the altitude of the sun at noon reaches the maximum, the shadow is the shortest, even shrinking to a point. The smaller the altitude of the sun at noon, the longer the shadow; when the altitude of the sun at noon is the minimum, the shadow is the longest. The minimum length of the shadow is also different in different seasons or months of the year. Preferably, after the step of calculating the shadow area of ​​the light information collection rod, it also includes a sub-step S42): according to the geographical location of different months and the photovoltaic power generation area, correct the shadow area of ​​the light information collection rod. A simple correction method includes: multiplying the shadow area of ​​the light information collection rod by a correction coefficient. For example, the correction coefficient for March-September is greater than or equal to 1 and less than 1.5, and the correction coefficient for October-next year is less than 1.

[0138] Step S5): According to the shadow area of ​​the light information collection rod and the current spatial position of the solar panel, the solar panel is adjusted in the direction of reducing the shadow area of ​​the light information collection rod until the shadow area of ​​the light information collection rod is smaller than the set area threshold.

[0139] The solar panel is supported by a bracket, and a spatial position adjustment device can be set on the bracket to adjust the azimuth and tilt angle of the solar panel. In different seasons or months, and at different times of the day, the angle of sunlight incident on the solar panel is different, which is reflected in the different positions and areas / lengths of the shadows of the light information collection rod 11 on the solar panel or the reference board 12. Therefore, by adjusting the positions and areas / lengths of the shadows of the light information collection rod 11 on the solar panel or the reference board 12, the incident relationship between sunlight and the solar panel can be adjusted.

[0140] In this step, the solar panel is adjusted in the direction of reducing the shadow area of ​​the light information collection rod, which is a process of making the plane of the solar panel perpendicular to the incident sunlight. During the adjustment process, the spatial position of the solar panel can be adjusted in the direction of reducing the shadow area (that is, shortening the shadow length) with the set area threshold as a reference. The set area threshold can be the shadow area or the average shadow area calculated in the current time period in the recent period (for example, one month). When the shadow area of ​​the light information collection rod is less than the set area threshold, it is considered that the shadow length of the light information collection rod 11 has been reduced to the minimum value of the current time period, and the solar panel can be regarded as being perpendicular to the incident direction of sunlight.

[0141] In actual operation, based on the calculated shadow area of ​​the light information collection rod, the fixed points of the shadow area obtained at different time intervals and the cluster center movement of the shadow area 14 of the light information collection rod at different time intervals are compared to obtain the shadow movement direction of the light information collection rod 11. The space adjustment device on the bracket of the solar panel is operated to adjust in the opposite direction relative to the movement trend of the shadow increase, so as to achieve the adjustment of the solar panel perpendicular to the incident sunlight.

[0142] For example, Figure 7 The shadow movement simulation shown is shown, the disk represents the time dial, the columnar figure in the middle of the disk represents the light information collection rod 11, and the bar-shaped arrow represents the shadow of the light information collection rod 11. When the sun moves to different times, you can see the direction and position of the shadow of the light information collection rod 11 at that time. When operating the bracket of the solar panel, adjust it in the opposite direction of the shadow and in the direction of the shadow area decreasing. Alternatively, a simulation calculation can be performed based on the current shadow area of ​​the light information collection rod to obtain the spatial position of the minimum shadow area or the angle or orientation to be adjusted, and then generate an adjustment command. Even more, the autonomous deep learning of the adjustment method can be achieved by accumulating the shadow area of ​​the light information collection rod in units of years. The specific adjustment method can be operated in combination with the azimuth and tilt angle of the solar panel. In the prior art, there is already an operation method for the azimuth and tilt angle of the solar panel through a motor and a rotating mechanism, which will not be described in detail here.

[0143] After the spatial position adjustment of the solar panel is completed, the spatial position record of the solar panel is updated. When the next round of spatial position adjustment of the solar panel is performed, the spatial position of the current solar panel can be obtained through the spatial position detection device (angle sensor), or the spatial position record of the updated solar panel can be directly read. To some extent, comparing the spatial position obtained by the angle sensor with the spatial position record of the updated solar panel is also a way to verify the execution results of different steps of the method, which will not be described in detail here.

[0144] The power generation of the photovoltaic power generation system is little affected by temperature. The factors that directly affect the power generation are the irradiation intensity and the duration of sunshine. The irradiation intensity is related to the spatial position of the solar panel. The installation of solar cells is clustered. The solar panel arrays within a certain area are basically subject to the same sunshine conditions and environmental conditions. Therefore, the solar panel arrays within the same area can adopt the same adjustment strategy; moreover, even at noon, within a short period of time, the spatial position of the solar panel array changes, but it will only change significantly after a certain time interval. Therefore, there is no need to adjust the solar panel array all the time, but it can be adjusted at intervals. In this embodiment, the image 15 including the image of the light information collection rod and the current spatial position of the solar panel located in the photovoltaic power generation area is received at a set time interval, and the set time range is 5-10 minutes.

[0145] In the solar panel adjustment method based on edge computing, spatial position adjustment is achieved by minimizing the shadow area of ​​the light information collection rod, so that the solar panel can obtain the greatest possible irradiation intensity. The solar panel adjustment device based on edge computing implemented by the solar panel adjustment method based on edge computing uses daylight detection information and spatial position detection information as information interfaces to control the spatial positions of all solar panels located in the same photovoltaic power generation area.

[0146] Based on the above-mentioned solar panel adjustment method based on edge computing, this embodiment also constructs a solar panel adjustment device based on edge computing. Through edge computing, intensive calculations such as grayscale conversion, median filtering, cluster analysis, and area calculation are performed close to the scene. Only the direction and range of the final adjustment of the solar panel are transmitted to the spatial position adjustment device of each solar panel. The optimal incident angle setting of the solar panel in the photovoltaic power generation area at the current time point can be completed, and the upgrade of smart Internet of Things can be realized.

[0147] like Figure 8 As shown, the solar panel adjustment device based on edge computing corresponding to the solar panel adjustment method based on edge computing is used to adjust the spatial position of the solar panel located in the photovoltaic power generation area, which includes a receiving module 21, a processing module 22, a determination module 23, a calculation module 24 and a command generation module 25, wherein:

[0148] The receiving module 21 is used to receive the image 15 including the image of the light information collection rod located in the photovoltaic power generation area, and obtain the spatial position of the current solar panel, and transmit the received image information to the processing module 22, and transmit the position information to the command generation module 25;

[0149] A processing module 22, for performing at least grayscale processing and filtering processing on the image 15 including the image of the light information collection rod, and transmitting the processed image information to the value determination module 23;

[0150] The determination module 23 is used to perform k-means clustering on the image 15 including the image of the light information collection rod after grayscale processing and filtering, determine the cluster with the smallest grayscale value at the cluster center as the sun shadow area 14 of the light information collection rod, and transmit the determined area information to the calculation module 24;

[0151] The calculation module 24 is used to calculate the shadow area of ​​the light information collection rod according to the determined shadow area 14 of the light information collection rod, and transmit the shadow area information to the command generation module 25;

[0152] The command generating module 25 is used to generate a command for adjusting the solar panel to a spatial position that reduces the shadow area of ​​the light information collecting rod according to the shadow area of ​​the light information collecting rod and the current spatial position of the solar panel, and send the command to all solar panels in the corresponding photovoltaic power generation area to adjust the solar panel until the shadow area of ​​the light information collecting rod is less than the set area threshold.

[0153] The processing module 22 includes a grayscale conversion unit and a filtering unit, wherein:

[0154] A grayscale conversion unit, used for converting the image 15 including the image of the light information collection rod into a grayscale image according to a grayscale conversion formula;

[0155] The filtering unit is used to perform median filtering on the grayscale image.

[0156] In order to avoid that the number of pixels of the image 15 including the light information collection rod image captured is large and affects the subsequent processing speed, preferably, the processing module 22 also includes a cutting unit, which is used to:

[0157] Before performing at least grayscale processing and filtering processing on the image 15 including the light information collecting rod image, the image 15 including the light information collecting rod image of the pixel size is set as a decision image, and grayscale processing and filtering processing are performed on the decision image to obtain a grayscale image;

[0158] Alternatively, after performing at least grayscale processing and filtering processing on the image 15 including the image of the light information collecting rod, the grayscale image of a set pixel size is cut as a decision image, and the decision image is processed by the k-means clustering method.

[0159] The determination module 23 includes a construction unit, a centering unit, a clustering unit, an updating unit and a setting unit, wherein:

[0160] A construction unit, used for constructing a pixel grayscale distribution map, and partitioning the grayscale map according to the pixel grayscale distribution map;

[0161] A centering unit, used for setting the peak value of each partition as the initial clustering center of the corresponding partition according to the image partition corresponding to the pixel grayscale distribution map;

[0162] A clustering unit is used to calculate the grayscale difference between each pixel in the grayscale image and the initial cluster center pixel of each partition, and cluster each pixel according to the grayscale difference;

[0163] An updating unit, used for calculating the grayscale average value of each pixel in each cluster after clustering, and updating the cluster center with the grayscale average value;

[0164] The setting unit is used to determine the clustering area based on the intra-class distance criterion function, and set the cluster with the smallest gray value as the sun shadow area 14 of the light information collection rod.

[0165] The calculation module 24 includes a statistical unit, which is used to count the pixel points in the sun shadow area 14 of the light information collection rod. The total number of pixel points in the sun shadow area 14 of the light information collection rod is the sun shadow area.

[0166] Alternatively, the calculation module 24 further includes a reconfirmation unit, which is used to calculate the distance between the cluster center of the determined sun shadow area 14 of the light information collection rod and other pixel points in the cluster, and reconfirm the sun shadow area 14 of the light information collection rod according to the consistency of adjacent pixels;

[0167] Alternatively, the calculation module 24 further includes a correction unit, which is used to correct the shadow area of ​​the light information collection rod according to the solar incident angle in different months; the correction method includes: multiplying the shadow area of ​​the light information collection rod by a correction coefficient.

[0168] According to an embodiment of the present invention, the above two or more module functions can be embodied in one module. Similarly, the features and functions of one module can also be further divided into multiple modules for embodiment, which is not limited here.

[0169] The solar panel adjustment device based on edge computing forms a mesh-structured micro data center with the solar panels in the photovoltaic power generation area, which can process or store key data locally, perform basic data calculations, and process and analyze data closer to the source of the generated data, such as near-zero latency, reduced image data management costs, and timely processing of image data and real-time response, to achieve intelligent adjustment of the spatial position of solar panels in the photovoltaic power generation area.

[0170] Embodiment 2:

[0171] As one aspect of the present invention, this embodiment provides a storage device, in which a plurality of instructions are stored, and the instructions are used to adjust the spatial position of a solar cell panel located in a photovoltaic power generation area, and the instruction functions include:

[0172] Receiving images including images of light information collection rods located in the photovoltaic power generation area, and obtaining the current spatial position of the solar panel;

[0173] Performing at least grayscale processing and filtering processing on the image including the image of the light information collection rod;

[0174] Performing k-means clustering on the image including the light information collection rod image after grayscale processing and filtering, and determining the cluster with the smallest grayscale value at the cluster center as the sun shadow area of ​​the light information collection rod;

[0175] Calculate the shadow area of ​​the light information collection rod according to the determined shadow area of ​​the light information collection rod;

[0176] According to the shadow area of ​​the light information collection rod, the solar panel is instructed to adjust the spatial position to reduce the shadow area of ​​the light information collection rod until the shadow area of ​​the light information collection rod is less than the set area threshold. Further, the spatial position record data of the solar panel is updated.

[0177] It should be understood here that the storage device of this embodiment may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0178] Embodiment 3:

[0179] As one aspect of the present invention, this embodiment provides a solar panel tracking and regulating system, such as Fig. 9 As shown, it includes a spatial position adjustment device 35, a sunlight detection device 32, a spatial position detection device 34 and the above-mentioned solar panel adjustment device 31 based on edge computing.

[0180] The sunlight detection device 32 includes a light information collection rod 11 and an image collection device 13, wherein:

[0181] The light information collection rod 11 is vertically arranged above any solar cell panel 33 in the photovoltaic power generation area, and the light information collection rod 11 is light-colored;

[0182] Alternatively, the sunlight detection device 32 further includes a reference plate 12, and the light information collection rod 11 is vertically arranged above the reference plate 12 in the same spatial position state as the solar cell panel 33 in the photovoltaic power generation area, and the surface of the reference plate 12 is light-colored;

[0183] The image acquisition device 13 includes a camera or a photo camera, and the camera or the photo camera and the light information acquisition rod 11 have a fixed relative position.

[0184] The spatial position detection device 34 includes an angle sensor, and the angle sensor is installed on a bracket of the solar panel 33 .

[0185] The spatial position adjustment device 35 is installed on the bracket of the solar panel 33, and may include a mechanism for tilting and rotating the solar panel relative to the horizontal plane, and a mechanism for rotating the solar cell in the circumferential direction relative to the support axis of the bracket. The specific method for controlling its rotation / rotation has been used in the installation of solar panels and will not be described in detail here. The instruction for adjusting the spatial position of the solar panel to reduce the shadow area of ​​the light information collection rod obtained by the solar panel adjustment method based on edge computing can be coordinated with the enabling device (such as a programmable controller PLC) that controls its rotation / rotation, and will not be described in detail here.

[0186] The solar panel sun tracking and adjustment system processes the images collected in real time by the daylight detection device through an artificial intelligence algorithm, automatically identifies the length of the shadow of the light information collection rod, and obtains the corresponding relationship between the current sunlight and the solar panel; on the other hand, the spatial position of the solar panel in the photovoltaic power generation area is obtained through the spatial position detection device; the two aspects of information are combined, and the spatial position (azimuth and inclination angle) between the current sunlight and the solar panel is adjusted by the spatial position adjustment device to minimize the length of the shadow, and the spatial position adjustment is realized through the automatic feedback principle, so that the sunlight is incident on the solar panel as vertically as possible, so that the solar panels in a certain photovoltaic power generation area can obtain the maximum power generation efficiency.

[0187] It should be understood that those skilled in the art should understand that the embodiments of the present invention may be provided as methods, devices, systems, or computer program products. Therefore, the present invention may take the form of embodiments that combine software and hardware aspects. The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0188] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0189] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0190] Meanwhile, the term “include / comprises” when used herein refers to the presence of a feature, an integer, a step or a component, but does not exclude the presence or addition of one or more other features, integers, steps or components.

[0191] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.

Claims

1. A solar panel adjustment method based on edge computing, used to adjust the spatial position of a solar panel located in a photovoltaic power generation area, characterized in that: Includes steps: Receiving an image including an image of a light information collection rod located in the photovoltaic power generation area, and acquiring a current spatial position of a solar cell panel; Performing at least grayscale processing and filtering processing on the image including the image of the light information collection rod; The image including the light information collection rod image after grayscale processing and filtering is subjected to k-means clustering, and the cluster with the smallest grayscale value of the cluster center is determined as the sun shadow area of ​​the light information collection rod, specifically comprising: constructing a pixel grayscale distribution map, and partitioning the grayscale map according to the pixel grayscale distribution map; setting the peak value of each partition as the initial cluster center of the corresponding partition according to the image partition corresponding to the pixel grayscale distribution map; calculating the grayscale difference between each pixel point in the grayscale image and the initial cluster center pixel point of each partition, and clustering each pixel point according to the grayscale difference; calculating the grayscale average value of each pixel point in each cluster after clustering, and updating the cluster center with the grayscale average value; determining the cluster area based on the intra-class distance criterion function, and setting the cluster with the smallest grayscale value as the sun shadow area of ​​the light information collection rod; Calculating the shadow area of ​​the light information collection rod according to the determined shadow area of ​​the light information collection rod; According to the shadow area of ​​the light information collection rod and the current spatial position of the solar panel, an instruction is given to adjust the solar panel to a spatial position that reduces the shadow area of ​​the light information collection rod until the shadow area of ​​the light information collection rod is smaller than a set area threshold.

2. The solar panel adjustment method based on edge computing according to claim 1 is characterized in that: The image including the light information collection rod image is subjected to at least grayscale processing and filtering processing, including: According to a grayscale conversion formula, the image including the light information collection rod image is converted into a grayscale image; Perform median filtering on the grayscale image.

3. The solar panel adjustment method based on edge computing according to claim 2 is characterized in that: Before performing at least grayscale processing and filtering processing on the image including the light information collection rod image, the method further includes: cutting the image including the light information collection rod image with a set pixel size as a decision image, and performing grayscale processing and filtering processing on the decision image to obtain the grayscale image; Alternatively, after at least grayscale processing and filtering processing are performed on the image including the light information collection rod image, the method further includes: cutting the grayscale image with a set pixel size as a decision image, and performing k-means clustering processing on the decision image.

4. The solar panel adjustment method based on edge computing according to claim 1 is characterized in that: In the step of calculating the shadow area of ​​the light information collection rod according to the determined shadow area of ​​the light information collection rod, the pixel points in the shadow area of ​​the light information collection rod are counted, and the total number of pixel points is the shadow area; Alternatively, before calculating the shadow area of ​​the light information collection rod, the method further includes: calculating the distance between the cluster center of the determined shadow area of ​​the light information collection rod and other pixel points in the cluster, and re-determining the shadow area of ​​the light information collection rod according to the consistency of adjacent pixels; Alternatively, after calculating the shadow area of ​​the light information collection rod, the method further includes: correcting the shadow area of ​​the light information collection rod according to the solar incident angle in different months; the correction method includes: multiplying the shadow area of ​​the light information collection rod by a correction coefficient.

5. The solar panel adjustment method based on edge computing according to any one of claims 1 to 4, characterized in that: An image including an image of a light information collecting rod and a spatial position of a current solar cell panel located in the photovoltaic power generation area is received at a set time interval, wherein the set time range is 5-10 minutes.

6. A solar panel adjustment device based on edge computing, used to adjust the spatial position of a solar panel located in a photovoltaic power generation area, characterized in that: It includes a receiving module, a processing module, a determining module, a calculating module and a command generating module, wherein: The receiving module is used to receive images including images of light information collection rods located in the photovoltaic power generation area, and obtain the spatial position of the current solar panel, and transmit the received image information to the processing module, and transmit the position information to the command generation module; The processing module is used to perform at least grayscale processing and filtering processing on the image including the image of the light information collection rod, and transmit the processed image information to the determination module; The determination module is used to perform k-means clustering on the image including the light information collection rod image after grayscale processing and filtering processing, determine the cluster with the smallest grayscale value at the cluster center as the sun shadow area of ​​the light information collection rod, and transmit the determined area information to the calculation module; The calculation module is used to calculate the shadow area of ​​the light information collection rod according to the determined shadow area of ​​the light information collection rod, and transmit the shadow area information to the command generation module; The command generation module is used to generate a command for adjusting the solar panel to a spatial position that reduces the shadow area of ​​the light information collection rod according to the shadow area of ​​the light information collection rod and the current spatial position of the solar panel, and send the command to all the solar panels in the corresponding photovoltaic power generation area to adjust the solar panels until the shadow area of ​​the light information collection rod is less than a set area threshold; The determination module includes a construction unit, a centering unit, a clustering unit, an updating unit and a setting unit, wherein: The construction unit is used to construct a pixel grayscale distribution map, and partition the grayscale map according to the pixel grayscale distribution map; The centering unit is used to set the peak value of each partition as the initial clustering center of the corresponding partition according to the image partition corresponding to the pixel grayscale distribution map; The clustering unit is used to calculate the grayscale difference between each pixel in the grayscale image and the initial cluster center pixel of each partition, and cluster each pixel according to the grayscale difference; The updating unit is used to calculate the grayscale average value of each pixel in each cluster after clustering, and update the cluster center with the grayscale average value; The setting unit is used to determine the clustering area based on the intra-class distance criterion function, and set the cluster with the smallest gray value as the sun shadow area of ​​the light information collection rod.

7. The solar panel adjustment device based on edge computing according to claim 6, characterized in that: The processing module includes a grayscale conversion unit and a filtering unit, wherein: The grayscale conversion unit is used to convert the image including the light information collection rod image into a grayscale image according to a grayscale conversion formula; The filtering unit is used to perform median filtering on the grayscale image.

8. The solar panel adjustment device based on edge computing according to claim 7, characterized in that: The processing module further comprises a cutting unit, which is used for: Before performing at least grayscale processing and filtering processing on the image including the light information collecting rod image, setting the image including the light information collecting rod image with a pixel size as a decision image, and performing grayscale processing and filtering processing on the decision image to obtain the grayscale image; Alternatively, after at least grayscale processing and filtering processing are performed on the image including the light information collection rod image, the grayscale image with a set pixel size is cut as a decision image, and the decision image is processed using the k-means clustering method.

9. The solar panel adjustment device based on edge computing according to claim 6, characterized in that: The calculation module includes a statistical unit, which is used to count the pixels in the sun shadow area, and the total number of pixels in the sun shadow area is the sun shadow area; Alternatively, the calculation module further includes a reconfirmation unit, which is used to calculate the distance between the cluster center of the determined sun shadow area of ​​the light information collection rod and other pixel points in the sun shadow area, and reconfirm the sun shadow area of ​​the light information collection rod according to the consistency of adjacent pixels; Alternatively, the calculation module further includes a correction unit, and the correction unit is used to correct the shadow area of ​​the light information collection rod according to the solar incident angle in different months; The correction method comprises: multiplying the shadow area of ​​the light information collection rod by a correction coefficient.

10. A storage device storing a plurality of instructions, characterized in that: The command is used to adjust the spatial position of the solar panels located in the photovoltaic power generation area, and the command functions include: Receiving an image including an image of a light information collection rod located in the photovoltaic power generation area, and acquiring a current spatial position of a solar cell panel; Performing at least grayscale processing and filtering processing on the image including the image of the light information collection rod; The image including the light information collection rod image after grayscale processing and filtering is subjected to k-means clustering, and the cluster with the smallest grayscale value of the cluster center is determined as the sun shadow area of ​​the light information collection rod, specifically comprising: constructing a pixel grayscale distribution map, and partitioning the grayscale map according to the pixel grayscale distribution map; setting the peak value of each partition as the initial cluster center of the corresponding partition according to the image partition corresponding to the pixel grayscale distribution map; calculating the grayscale difference between each pixel point in the grayscale image and the initial cluster center pixel point of each partition, and clustering each pixel point according to the grayscale difference; calculating the grayscale average value of each pixel point in each cluster after clustering, and updating the cluster center with the grayscale average value; determining the cluster area based on the intra-class distance criterion function, and setting the cluster with the smallest grayscale value as the sun shadow area of ​​the light information collection rod; Calculating the shadow area of ​​the light information collection rod according to the determined shadow area of ​​the light information collection rod; According to the shadow area of ​​the light information collection rod, the solar panel is instructed to be adjusted to a spatial position that reduces the shadow area of ​​the light information collection rod until the shadow area of ​​the light information collection rod is smaller than a set area threshold.

11. A solar panel tracking and adjustment system, comprising a spatial position adjustment device, characterized in that: It also includes a sunlight detection device, a spatial position detection device and a solar panel adjustment device based on edge computing as described in any one of claims 6-9.

12. The solar panel sun tracking adjustment system according to claim 11, characterized in that: The sunlight detection device comprises a light information collection rod and an image collection device, wherein: The light information collection rod is vertically arranged above any solar cell panel in the photovoltaic power generation area, and the light information collection rod is light-colored; Alternatively, the sunlight detection device further comprises a reference plate, the light information collection rod is vertically arranged above the reference plate in the same spatial position state as the solar cell panels in the photovoltaic power generation area, and the surface of the reference plate is light-colored; The image acquisition device comprises a camera or a camera, and the camera or the camera has a fixed relative position with the light information acquisition rod.

13. The solar panel sun tracking adjustment system according to claim 11, characterized in that: The spatial position detection device comprises an angle sensor, and the angle sensor is mounted on a bracket of a solar cell panel.