CN114998372A - Photovoltaic module displacement judging method and device, storage medium and electronic equipment - Google Patents

Photovoltaic module displacement judging method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114998372A
CN114998372A CN202210669640.6A CN202210669640A CN114998372A CN 114998372 A CN114998372 A CN 114998372A CN 202210669640 A CN202210669640 A CN 202210669640A CN 114998372 A CN114998372 A CN 114998372A
Authority
CN
China
Prior art keywords
target
area
image
photovoltaic module
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210669640.6A
Other languages
Chinese (zh)
Inventor
唐红强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sungrow Power Supply Co Ltd
Original Assignee
Sungrow Power Supply Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sungrow Power Supply Co Ltd filed Critical Sungrow Power Supply Co Ltd
Priority to CN202210669640.6A priority Critical patent/CN114998372A/en
Publication of CN114998372A publication Critical patent/CN114998372A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/10Terrestrial scenes
    • G06V20/17Terrestrial scenes taken from planes or by drones
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30181Earth observation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E10/00Energy generation through renewable energy sources
    • Y02E10/50Photovoltaic [PV] energy

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Remote Sensing (AREA)
  • Image Analysis (AREA)

Abstract

The application discloses a method and a device for judging displacement of a photovoltaic module, a storage medium and electronic equipment. Wherein, the method comprises the following steps: acquiring a ground elevation model and an electronic map corresponding to a predetermined area; determining first position information corresponding to a target area where a photovoltaic array is located in a preset area according to a ground elevation model; obtaining a target image corresponding to the target area from the electronic map according to the first position information; identifying each subarea corresponding to each photovoltaic module in the target image, and determining second position information corresponding to each subarea and an elevation image corresponding to each subarea; and determining whether each photovoltaic module in the target area has a displacement phenomenon according to the second position information and the elevation image. The method and the device solve the technical problems of large data processing amount, long time consumption and inaccurate identification result caused by the fact that the displacement phenomenon of the photovoltaic module is identified based on a machine learning algorithm in the related technology.

Description

Photovoltaic module displacement judging method and device, storage medium and electronic equipment
Technical Field
The application relates to the field of photovoltaic application, in particular to a method and a device for judging displacement of a photovoltaic module, a storage medium and electronic equipment.
Background
Domestic photovoltaic power stations are generally built on large hillsides, gobi, plains, swamps, water areas, plant tops, residential roofs and the like, and different photovoltaic power stations have large differences in scale, form, distribution and the like, so that inconvenience is caused in the later operation and maintenance inspection process. Particularly, the larger the scale of a photovoltaic power generation project is, the higher the complexity of power station inspection work is, and when the inspection work is carried out on the power station project, on one hand, a large amount of labor and time cost is consumed in a conventional manual inspection mode, so that power station equipment is not inspected timely, and the economic benefit of a power plant is influenced; on the other hand, the work of inspection personnel also has certain danger.
At present, a photovoltaic module can be patrolled and examined through a camera device carried by an unmanned aerial vehicle, a detection task of a fault module is realized by utilizing a machine learning and other related algorithms based on an image analysis and detection method, and module faults generally comprise hot spots, module displacement, module falling and the like. However, the fault of the photovoltaic module is identified through algorithms such as machine learning, a large amount of sample data needs to be obtained for model training, the data processing process is complex, the consumed time is long, and the technical problems that the deviation of an identification result from an actual situation is large and the accuracy of the identification result is poor due to the fact that the amount of the sample data is small are often caused.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a method and a device for judging photovoltaic module displacement, a storage medium and electronic equipment, and aims to at least solve the technical problems of large data processing amount, long time consumption and inaccurate identification result caused by identifying the displacement phenomenon of a photovoltaic module based on a machine learning algorithm in the related technology.
According to an aspect of the embodiments of the present application, there is provided a method for determining displacement of a photovoltaic module, including: acquiring a ground elevation model and an electronic map corresponding to a predetermined area, wherein the ground elevation model is used for indicating elevation information of each object on the earth surface in the predetermined area, and the electronic map is used for indicating map information of the predetermined area; determining first position information corresponding to a target area where a photovoltaic array is located in a preset area according to a ground elevation model, wherein the photovoltaic array comprises a plurality of photovoltaic modules; obtaining a target image corresponding to the target area from the electronic map according to the first position information; identifying each sub-area corresponding to each photovoltaic module in the target image, and determining second position information corresponding to each sub-area and an elevation image corresponding to each sub-area; and determining whether each photovoltaic module in the target area has a displacement phenomenon according to the second position information and the elevation image.
Optionally, determining whether a displacement phenomenon exists in each photovoltaic module in the target area according to the second position information and the elevation image includes: determining coordinates of each target point corresponding to each sub-area according to the second position information; fitting coordinates of each target point to obtain a target reference line; determining the distance between the coordinates of each target point and a target reference line, and determining the photovoltaic module with the distance greater than a preset threshold value as a suspected displacement photovoltaic module; and acquiring a target elevation image corresponding to the suspected displacement photovoltaic module, and determining whether the suspected displacement photovoltaic module has a displacement phenomenon according to the target elevation image.
Optionally, determining whether a suspected displacement photovoltaic module has a displacement phenomenon according to the target elevation image includes: acquiring the number of first pixel points smaller than the preset assembly height in the target elevation image; under the condition that the number of the first pixel points is larger than a first preset threshold value, determining that the suspected displacement photovoltaic module has displaced; and under the condition that the number of the first pixel points is smaller than a first preset threshold value, determining that the suspected displacement photovoltaic module is not displaced.
Optionally, determining whether a displacement phenomenon exists in the suspected displaced photovoltaic module according to the target elevation image includes: acquiring the number of first pixel points smaller than the preset assembly height in the target elevation image; acquiring the number of second pixel points corresponding to the target elevation image, wherein the number of the second pixel points is the number of all pixel points of the target elevation image obtained according to the height information and the width information of the target elevation image; determining the ratio of the number of the first pixel points to the number of the second pixel points, and determining that the suspected displacement photovoltaic module has displaced when the ratio is greater than a second preset threshold value; and under the condition that the ratio is smaller than a second preset threshold value, determining that the suspected displacement photovoltaic module does not displace.
Optionally, the target point coordinates include: the central point coordinate is used for fitting the coordinates of all the target points to obtain a target reference line, and the method comprises the following steps: and calling a least square method, and fitting the coordinates of each central point based on the least square method to obtain a target reference line.
Optionally, identifying each sub-region corresponding to each photovoltaic module in the target image, and determining second position information corresponding to each sub-region includes: converting the target image into a gray image, and calling an edge detection algorithm to obtain an edge image corresponding to the gray image, wherein the edge image at least comprises: an edge line; calling a Hough transform algorithm to search all straight lines in the edge image; obtaining four grid boundary lines corresponding to each photovoltaic module according to the distance between the straight lines; obtaining each sub-region according to the four grid boundary lines; and determining the coordinates of the intersection points of the four grid boundary lines as second position information.
Optionally, obtaining a target image corresponding to the target area from the electronic map according to the first location information includes: obtaining a map image corresponding to a predetermined area according to the electronic map; and acquiring a target image corresponding to the target area from the map image according to the first position information.
Optionally, determining, according to the ground elevation model, first position information corresponding to a target area where the photovoltaic array is located in the predetermined area, includes: acquiring an elevation threshold value, and cutting out each continuous area of which the elevation information is greater than the elevation threshold value in the map image; acquiring the shape characteristics of each continuous area, and determining the continuous area with the shape characteristics meeting the preset characteristics as a target area; and calling a preset image recognition algorithm to recognize the target area to obtain first position information.
According to another aspect of the embodiments of the present application, there is also provided a method for determining displacement of a photovoltaic module, including: acquiring first position information corresponding to a target area where a photovoltaic array is located in a preset area, and determining a target image corresponding to the target area according to the first position information, wherein the photovoltaic array comprises a plurality of photovoltaic components; identifying each sub-area corresponding to each photovoltaic assembly in the target image, and determining second position information corresponding to each sub-area; and determining whether each photovoltaic module in the target area has a displacement phenomenon or not according to the second position information and the elevation image.
According to another aspect of the embodiments of the present application, there is also provided a device for determining displacement of a photovoltaic module, including: the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a ground elevation model and an electronic map corresponding to a preset area, the ground elevation model is used for indicating elevation information of each object on the earth surface in the preset area, and the electronic map is used for indicating map information of the preset area; the device comprises a first determination module, a second determination module and a control module, wherein the first determination module is used for determining first position information corresponding to a target area where a photovoltaic array is located in a preset area according to a ground elevation model, and the photovoltaic array comprises a plurality of photovoltaic assemblies; the second acquisition module is used for acquiring a target image corresponding to the target area from the electronic map according to the first position information; the identification module is used for identifying each sub-area corresponding to each photovoltaic module in the target image, and determining second position information corresponding to each sub-area and an elevation image corresponding to each sub-area; and the second determining module is used for determining whether each photovoltaic assembly in the target area has a displacement phenomenon according to the second position information and the elevation image.
According to another aspect of the embodiments of the present application, a non-volatile storage medium is further provided, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute any one of the methods for determining displacement of a photovoltaic module.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including: a processor; a memory for storing processor-executable instructions; the processor is configured to execute instructions to realize any one of the methods for judging the displacement of the photovoltaic assembly.
In the embodiment of the application, a mode that whether the photovoltaic modules shift is determined by adopting the position information and the elevation image of each sub-area corresponding to each photovoltaic module is adopted, a ground elevation model and an electronic map corresponding to a preset area are obtained, then, first position information of a target area where a photovoltaic array is located in the preset area is determined according to the ground elevation model, a target image of the target area is extracted from the electronic map through the first position information, and the target image is identified to obtain second position information and the elevation image of each sub-area corresponding to each photovoltaic module, so that the purpose of determining whether each photovoltaic module shifts or not based on the second position information and the elevation image of each sub-area is achieved, the technical effect of rapidly and accurately identifying the shifting phenomenon of the photovoltaic modules is achieved, and the problem that data processing quantity is large when the shifting phenomenon of the photovoltaic modules is identified based on a machine learning algorithm in the related technology is solved, long time consumption and inaccurate identification result.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of an alternative method for determining displacement of a photovoltaic module according to an embodiment of the present disclosure;
fig. 2 is a flowchart of an optional method for determining displacement of a photovoltaic module according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an alternative panoramic electronic map of a power station according to an embodiment of the present application;
FIG. 4 is a schematic illustration of an alternative ground elevation model DSM in accordance with an embodiment of the application;
FIG. 5 is a schematic diagram of an alternative embodiment of the present application illustrating an elevation threshold segmentation to obtain a predetermined area in which a photovoltaic array is located;
fig. 6 is a schematic diagram of an optional target area where a photovoltaic module is located obtained after connected domain screening according to an embodiment of the present application;
FIG. 7 is an alternative embodiment of the present application, in which a visible light picture of the component area is cut out from the power station panoramic electronic map A;
FIG. 8 is a schematic diagram illustrating an alternative component area visible light image segmentation effect according to an embodiment of the present disclosure;
FIG. 9 is a schematic diagram of a line according to a least squares fit of an embodiment of the present application;
the left half of fig. 10 is a visible light picture of the components in the panoramic electronic map of the power station, and the right half is a component elevation map in the ground elevation model DSM;
FIG. 11 is a schematic illustration of component shifting in an example embodiment of the present application;
fig. 12 is a schematic flowchart of another method for determining displacement of a photovoltaic module according to an embodiment of the present disclosure;
fig. 13 is a schematic structural diagram of a device for judging displacement of a photovoltaic module according to an embodiment of the present application;
FIG. 14 shows a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For the convenience of better understanding of the embodiments related to the present application, technical terms or partial terms that may be referred to in the present application are now explained:
a Digital Surface Model (DSM) is a ground elevation Model that includes the height of Surface buildings, bridges, trees, etc.
Connected Component (Connected Component) refers to an image area in an image that is adjacent and has the same pixel value. Connected Component Analysis (Connected Component Labeling) refers to finding and Labeling each Connected Component in an image.
Grayscale image: in the RGB model, if R ═ G ═ B, the color represents a gray scale color, where the value of R ═ G ═ B is called the gray scale value, so that each pixel of the gray scale image only needs one byte to store the gray scale value (also called the intensity value, luminance value), and the gray scale range is 0-255.
The elevation refers to the height of a certain point relative to a datum plane, and the currently commonly used elevation systems have 4 types of positive height, normal height, high force and ground elevation, and the elevation datum has different definitions in different countries.
Photovoltaic module, monomer solar cell can not directly be used as the power. Several cells must be connected in series, parallel and tightly packaged into an assembly as a power supply. The solar cell module (also called solar panel) is a core part in a solar power generation system and is also the most important part in the solar power generation system. The solar energy is converted into electric energy, or the electric energy is sent to a storage battery for storage, or a load is pushed to work.
The Canny edge detection operator is a multi-level detection algorithm. In 1986, John f.canny proposed three major criteria for edge detection: 1. edge detection with low error rate: the detection algorithm should accurately find as many edges in the image as possible, reducing missed and false detections as possible. 2. Optimal positioning: the detected edge point should be located exactly at the center of the edge. 3. Any edge in the image should be marked only once, while image noise should not create a false edge. To meet these requirements Canny uses variational methods. The optimal function in the Canny detector is described using the sum of four exponential terms, which can be approximated by the first derivative of a gaussian function. Among the currently used edge detection methods, the Canny edge detection algorithm is a well-defined one that can provide good and reliable detection. It is one of the most popular algorithms for edge detection because it has the advantages of satisfying three criteria for edge detection and simple implementation process.
According to an embodiment of the present application, there is provided an embodiment of a method for determining photovoltaic module shift, where the steps illustrated in the flowchart of the drawings may be executed in a computer system such as a set of computer executable instructions, and although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be executed in an order different from that shown.
Fig. 1 is a method for judging displacement of a photovoltaic module according to an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step S102, a ground elevation model and an electronic map corresponding to a preset area are obtained, wherein the ground elevation model is used for indicating elevation information of each object on the earth surface in the preset area, and the electronic map is used for indicating map information of the preset area;
in the technical solution of step S102 in the present application, the elevation information and the map information of each object in the predetermined area may be obtained by obtaining a ground elevation model and an electronic map corresponding to the predetermined area.
Optionally, the ground elevation model and the electronic map corresponding to the predetermined area may be obtained by acquiring image data of the predetermined area, and then processing the image data by using related software.
For example, the photovoltaic module can be patrolled and examined by the unmanned aerial vehicle according to a planned path, image data of a preset area is collected, GPS geographic coordinates of the position of a collection point are recorded, and then an electronic map and a ground elevation model are generated by using software such as pix4 dMapper.
Step S104, determining first position information corresponding to a target area where a photovoltaic array is located in a preset area according to a ground elevation model, wherein the photovoltaic array comprises a plurality of photovoltaic assemblies;
in the technical solution of step S104 in the present application, first location information corresponding to a target area where a photovoltaic array is located in a predetermined area may be determined according to a ground elevation model, where it should be noted that the first location information is a location of the photovoltaic array formed by all photovoltaic modules, and the first location information may be a GPS coordinate.
For example, the target area where the photovoltaic array is located is a rectangle, and the first position information may be a GPS coordinate corresponding to an upper left vertex and a GPS coordinate corresponding to a lower right vertex of the rectangle.
Step S106, obtaining a target image corresponding to the target area from the electronic map according to the first position information;
in the technical scheme of step S106 in the present application, after the first position information of the photovoltaic array is obtained, the target image corresponding to the target area where the photovoltaic array is located can be obtained from the electronic map, and thus, the area where the photovoltaic array is located can be partitioned from the predetermined area through this step, and the influence of the erroneously detected target such as other objects besides the photovoltaic module, buildings, and the like is eliminated.
Step S108, identifying each subarea corresponding to each photovoltaic assembly in the target image, and determining second position information corresponding to each subarea and an elevation image corresponding to each subarea;
in the technical solution of step S108 in the present application, each sub-area corresponding to each photovoltaic module may be identified, so as to obtain second position information and an elevation image corresponding to each sub-area.
Optionally, the process of identifying each sub-region corresponding to each photovoltaic module in the target image may be implemented by the following algorithm: YOLOv4 target detection algorithm, YOLOv5 target detection algorithm, Faster RCNN target detection algorithm, SSD target detection algorithm, etc.
For example, the target image may be identified by a YOLOv4 target detection algorithm, so as to obtain each sub-region corresponding to each photovoltaic module. Similarly, the sub-region where the photovoltaic module is located is a rectangle, and the second position information may be a GPS coordinate corresponding to an upper left vertex of the rectangle and a GPS coordinate corresponding to a lower right vertex of the rectangle.
And step S110, determining whether each photovoltaic assembly in the target area has a displacement phenomenon according to the second position information and the elevation image.
In the technical solutions of steps S102 to S110, a manner of determining whether the photovoltaic module is shifted or not is performed by using the position information and the elevation image of each sub-area corresponding to each photovoltaic module, obtaining a ground elevation model and an electronic map corresponding to a predetermined area, then determining first position information of a target area in which the photovoltaic array is located in the predetermined area according to the ground elevation model, extracting a target image of the target area from the electronic map through the first position information, and identifying the target image to obtain second position information and the elevation image of each sub-area corresponding to each photovoltaic module, so as to achieve a purpose of determining whether each photovoltaic module is shifted or not based on the second position information and the elevation image of each sub-area, thereby achieving a technical effect of rapidly and accurately identifying a shift phenomenon of the photovoltaic module, and further solving a problem that data processing amount is large due to identification of the shift phenomenon of the photovoltaic module based on a machine learning algorithm in a related technology The time consumption is long and the identification result is inaccurate.
As an optional implementation manner, determining whether the displacement phenomenon exists in each photovoltaic module in the target area according to the second position information and the elevation image includes: determining coordinates of each target point corresponding to each sub-area according to the second position information; fitting the coordinates of each target point to obtain a target reference line; determining the distance between the coordinates of each target point and a target reference line, and determining the photovoltaic module with the distance greater than a preset threshold value as a suspected displacement photovoltaic module; and acquiring a target elevation image corresponding to the suspected displacement photovoltaic module, and determining whether the suspected displacement photovoltaic module has a displacement phenomenon according to the target elevation image.
Optionally, the target point coordinates include: and the coordinates of the central point are fitted to the coordinates of each target point to obtain a target reference line, and the coordinates of each central point are fitted to obtain the target reference line based on a least square method by calling the least square method.
In some embodiments of the present application, determining whether a suspected displacement photovoltaic module has a displacement phenomenon according to a target elevation image may be implemented in the following manner, specifically:
the number of first pixel points smaller than the preset assembly height in the target elevation image can be obtained; under the condition that the number of the first pixel points is larger than a first preset threshold value, determining that the suspected displacement photovoltaic module has displaced; and under the condition that the number of the first pixel points is smaller than a first preset threshold value, determining that the suspected displacement photovoltaic module is not displaced.
It can be understood that most of the displacement of the photovoltaic module is slipping, and after the displacement of the photovoltaic module occurs, the height of the partial displaced module is lower than that of the normal module, so that the displacement of the photovoltaic module is determined by judging the number of first pixel points smaller than the preset module height in the target elevation image and under the condition that the first pixel points are larger than a first preset threshold value.
In other optional embodiments of the present application, determining whether a suspected displacement photovoltaic module has a displacement phenomenon according to the target elevation image may also be implemented in the following manner:
the number of first pixel points smaller than the preset assembly height in the target elevation image can be acquired; acquiring the number of second pixel points corresponding to the target elevation image, wherein the number of the second pixel points is the number of all pixel points of the target elevation image obtained according to the height information and the width information of the target elevation image; determining the ratio of the number of the first pixel points to the number of the second pixel points, and determining that the suspected displacement photovoltaic module has displaced under the condition that the ratio is greater than a second preset threshold value; and under the condition that the ratio is smaller than a second preset threshold value, determining that the suspected displacement photovoltaic module does not displace.
It can be understood that, because the displacement of the photovoltaic module is mostly caused by slipping, when the photovoltaic module is displaced, the number of first pixel points in a target elevation image corresponding to the photovoltaic module, which are smaller than the preset module height, is increased, and therefore, whether the photovoltaic module is displaced can be determined by the ratio of the first pixel points to all the pixel points corresponding to the target elevation image, and the photovoltaic module is determined to be displaced when the ratio is greater than a second preset threshold value. It should be noted that the preset component height may be an average height of all components in the region where the photovoltaic component is located, and it should be noted that the preset component height may also be set to other values, for example, the preset component height may be a product of the average height and a preset coefficient.
In an exemplary embodiment of the present application, identifying each sub-region corresponding to each photovoltaic module in a target image, and determining second position information corresponding to each sub-region may be implemented by the following steps: converting the target image into a gray image, and calling an edge detection algorithm to obtain an edge image corresponding to the gray image, wherein the edge image at least comprises: an edge line; calling a Hough transform algorithm to search all straight lines in the edge image; obtaining four grid boundary lines corresponding to each photovoltaic module according to the distance between the straight lines; obtaining each sub-region according to the four grid boundary lines; and determining the coordinates of the intersection points of the four grid boundary lines as second position information.
Optionally, obtaining a target image corresponding to the target area from the electronic map according to the first location information includes: obtaining a map image corresponding to a predetermined area according to the electronic map; and acquiring a target image corresponding to the target area from the map image according to the first position information.
It should be noted that first position information corresponding to a target area where a photovoltaic array is located in a predetermined area can be determined according to a ground elevation model, specifically, an elevation threshold value can be obtained, and each continuous area where the elevation information is greater than the elevation threshold value in a map image is cut out; acquiring the shape characteristics of each continuous area, and determining the continuous area with the shape characteristics meeting the preset characteristics as a target area; and calling a preset image recognition algorithm to recognize the target area to obtain first position information.
Fig. 2 is a flowchart of a method for determining displacement of a photovoltaic module according to an embodiment of the present application, and as shown in fig. 2, the flowchart mainly includes:
according to the collected visible light pictures of the assemblies, software such as pix4dMapper is utilized to generate a power station panoramic electronic map and a ground elevation model DSM, then, the areas where the assemblies are located are divided through the ground elevation model DSM, wrong detection targets appearing in the areas outside the assemblies are eliminated, and coordinates of the areas where the assemblies are located are obtained. And according to the coordinates of the area where the components are located, carrying out component segmentation on each component area in the power station panoramic electronic map by an image processing correlation method to obtain the coordinates of rectangular frames of all the components, and fitting the coordinates of the center points of each component in the area where the components are located into a straight line by a least square method, thereby determining the suspected displacement components of which the coordinates of the center points of the components and the distances between the straight lines exceed a threshold value. And finally, according to the coordinates of the suspected displacement assembly, cutting out an elevation map of the suspected displacement assembly from the ground elevation model DSM, and analyzing and calculating the elevation map to achieve the displacement judgment of the assembly.
The above steps are described in detail below in connection with an exemplary embodiment.
1. The unmanned aerial vehicle collects the visible light picture, the photovoltaic module is patrolled and examined through the unmanned aerial vehicle according to the planned path, the visible light picture is collected, the GPS geographic coordinate of the position where the collection point is located is recorded, and the GPS coordinate corresponds to the central point of the visible light picture.
2. According to the collected visible light pictures of the components, a power station panoramic electronic map (electronic map) and a ground elevation model (ground elevation model) DSM (digital video camera) can be generated by using related software such as pix4dMapper, as shown in the figure, FIG. 3 is a schematic diagram of the power station panoramic electronic map, and FIG. 4 is a schematic diagram of the ground elevation model DSM.
3. The area where the assembly is located is divided through a ground elevation model (DSM), error detection targets appearing in the area outside the assembly are eliminated, and GPS coordinates (first position information) of the area where all photovoltaic assemblies (namely photovoltaic arrays) are located are obtained.
(1) Setting an elevation threshold according to elevation information in a ground elevation model (DSM), and dividing an area where a photovoltaic array is located in the DSM-A diagram according to the elevation threshold, wherein FIG. 5 is a schematic diagram of obtaining a rough area (namely a preset area) where all photovoltaic assemblies (namely photovoltaic arrays) are located through elevation threshold division.
(2) And (4) segmenting the region where the component is located by combining image processing.
Analyzing the characteristics of each continuous area according to all the divided continuous areas, reserving the areas which accord with the rectangular characteristics, deleting the irregular areas of which the peripheries do not accord with the rectangular characteristics to obtain a target area where the photovoltaic module is located in the power station, and obtaining a schematic diagram of the target area where the photovoltaic module is located after screening through a connected domain in fig. 6. In addition, the average height of all the components within the area of the component can be calculated, High.
4. According to the GPS coordinates (first position information) of the target area where the photovoltaic array is located, carrying out component segmentation on each component area in the power station panoramic electronic map A through an image processing algorithm to obtain rectangular frame GPS coordinates (second position information) corresponding to each photovoltaic component.
(1) According to the GPS coordinates of the target area where the photovoltaic array is located, visible light pictures of the assembly area can be cut out from the power station panoramic electronic map A, as shown in figure 7.
(2) The method comprises the following steps of utilizing an image processing algorithm to segment each component in a visible light picture in a component area, and specifically comprising the following steps:
(a) and carrying out graying treatment on the visible light picture in the component area, and then carrying out Canny edge treatment to obtain an edge image.
(b) All possible straight lines are searched in the edge image by HoughLines hough line transform.
(c) After all possible straight lines are found, the boundary line of each component grid in the visible light picture of the component area is determined.
(d) Four grid boundary lines for each assembly are determined based on the spacing between the lines.
(e) And calculating four intersection point coordinates of the four intersected grid boundary lines of each component, thereby achieving the purpose of segmenting all components in the visible light picture of the component area. Fig. 8 is a schematic diagram of a splitting effect of a component region visible light picture, where a thick straight line represents a splitting line, and as shown in fig. 8, splitting of all components in the component region visible light picture is achieved through four intersection coordinates where four grid boundary lines of each component intersect.
5. And fitting the coordinates of the center point of each component in the area where the component is positioned into a straight line by a least square method, thereby determining the suspected displacement component of which the distance between the coordinates of the center point of the component and the straight line exceeds a threshold value.
(1) Principle of least squares
The least squares formulation is as follows:
objective function ═ sigma (observed-theoretical) 2
The observed values are our sets of samples, the theoretical values are our hypothesis fit functions, the objective function is a loss function commonly known in machine learning, and the objective is to obtain the fit function when minimizing the objective function.
For example, assume that there are m samples with only one feature:
(x i ,y i )(i=1,2,3...,m);
the sample is taken as general h θ (x) A polynomial fit of degree n;
h θ (x)=θ 01 x+θ 2 x 2 +...θ n x n ,θ(θ 0 ,θ 1 ,θ 2 ,...,θ n )
the least square method is to find a set of parameters theta (theta) 0 ,θ 1 ,θ 2 ,...,θ n )
So that
Figure BDA0003694341990000111
(2) The coordinates of the center points of the components in the region where the components are located are fitted into a straight line by a least square method, and fig. 9 is a straight line obtained by fitting according to the least square method, as shown in fig. 9, wherein a long straight line along the length direction and a short straight line along the width direction are both straight lines obtained by fitting.
(3) Those components for which the center point coordinates and straight line distance of the component exceeds a threshold are determined to be suspect displaced components, as shown in FIG. 9, where the components within the circle represent suspect displaced components.
6. According to the coordinates of the suspected displacement assembly, a suspected displacement assembly elevation map is cut out from the ground elevation model DSM, and the assembly displacement judgment is achieved by analyzing and calculating the elevation map.
(1) According to the coordinates of the suspected displacement assemblies, an elevation map of the suspected displacement assemblies is cut out from the ground elevation model DSM, the left half part of the diagram 10 is a visible light picture of the assemblies in the panoramic electronic map of the power station, and the right half part of the diagram is an elevation map of the assemblies in the ground elevation model DSM.
(2) Calculating the number of pixel points less than 0.7 multiplied by High (namely the height of the preset assembly) in the suspected displacement assembly elevation map, and recording the number as N
Figure BDA0003694341990000112
Wherein, the average height High of all the components in the area of the components (calculated from (2) in 3).
Figure BDA0003694341990000113
Wherein, rate represents the ratio of low elevation in the elevation map of the suspected displacement assembly, M, N represents the height and width of the elevation map of the assembly, H i,j Represents the elevation at the position of the (I, j) coordinate point in the elevation map of the assembly, I {. said. } represents if H i,j If < 0.7 × High is established, the result is 1, otherwise it is 0.
(3) And judging the displacement of the assembly according to the ratio rate of the low elevations in the elevation map of the suspected displacement assembly and the threshold value thre which is 0.2 (namely a second preset threshold value), wherein if the rate is larger than thre, the assembly is indicated to be displaced. FIG. 11 is a schematic diagram of the component shift in this embodiment, and as shown in FIG. 11, the part indicated by the circle indicates that the component shift is present.
(4) It can be understood that the steps are repeated, a suspected displacement assembly elevation map is cut out from the ground elevation model DSM according to the coordinates of the suspected displacement assembly, and displacement judgment of all photovoltaic assemblies in the electronic map can be achieved through analyzing and calculating the elevation map.
Fig. 12 is another method for determining displacement of a photovoltaic module according to an embodiment of the present application, and as shown in fig. 12, the method includes:
s202, acquiring first position information corresponding to a target area where a photovoltaic array is located in a preset area, and determining a target image corresponding to the target area according to the first position information, wherein the photovoltaic array comprises a plurality of photovoltaic components;
s204, identifying each sub-region corresponding to each photovoltaic module in the target image, and determining second position information corresponding to each sub-region;
and S206, determining whether each photovoltaic assembly in the target area has a displacement phenomenon according to the second position information and the elevation image.
In the method for judging the displacement of the photovoltaic module, a target image corresponding to a target area is determined according to first position information by acquiring the first position information corresponding to the target area where a photovoltaic array is located in a preset area, wherein the photovoltaic array comprises a plurality of photovoltaic modules; then, identifying each sub-region corresponding to each photovoltaic module in the target image, and determining second position information corresponding to each sub-region; finally, whether each photovoltaic module in the target area has a displacement phenomenon or not is determined according to the second position information and the elevation image, so that the purpose of determining whether each photovoltaic module is displaced or not based on the second position information and the elevation image of each sub-area is achieved, the technical effect of rapidly and accurately identifying the displacement phenomenon of the photovoltaic module is achieved, and the technical problems that in the related technology, the data processing amount is large, the time consumption is long and the identification result is inaccurate when the displacement phenomenon of the photovoltaic module is identified based on a machine learning algorithm are solved.
Fig. 13 is a device for judging the displacement of a photovoltaic module according to an embodiment of the present application, and as shown in fig. 13, the device includes:
the first obtaining module 40 is configured to obtain a ground elevation model and an electronic map corresponding to a predetermined area, where the ground elevation model is used to indicate elevation information of each object on the earth surface in the predetermined area, and the electronic map is used to indicate map information of the predetermined area;
the first determining module 42 is configured to determine, according to the ground elevation model, first position information corresponding to a target area where a photovoltaic array is located in a predetermined area, where the photovoltaic array includes a plurality of photovoltaic modules;
the second obtaining module 44 is configured to obtain a target image corresponding to the target area from the electronic map according to the first location information;
the identification module 46 is configured to identify each sub-region corresponding to each photovoltaic module in the target image, and determine second position information corresponding to each sub-region and an elevation image corresponding to each sub-region;
and a second determining module 48, configured to determine whether a displacement phenomenon exists in each photovoltaic module in the target area according to the second position information and the elevation image.
In the device for judging the displacement of the photovoltaic module, a first acquisition module 40 is used for acquiring a ground elevation model and an electronic map corresponding to a preset area, wherein the ground elevation model is used for indicating the elevation information of each object on the earth surface in the preset area, and the electronic map is used for indicating the map information of the preset area; the first determining module 42 is configured to determine, according to the ground elevation model, first position information corresponding to a target area where a photovoltaic array is located in a predetermined area, where the photovoltaic array includes a plurality of photovoltaic modules; the second obtaining module 44 is configured to obtain a target image corresponding to the target area from the electronic map according to the first location information; the identification module 46 is configured to identify each sub-area corresponding to each photovoltaic module in the target image and an elevation image corresponding to each sub-area, and determine second position information corresponding to each sub-area; the second determining module 48 is configured to determine whether each photovoltaic module in the target area has a displacement phenomenon according to the second position information and the elevation image, so as to achieve a purpose of determining whether each photovoltaic module is displaced based on the second position information and the elevation image of each sub-area, thereby achieving a technical effect of quickly and accurately identifying the displacement phenomenon of the photovoltaic module, and further solving technical problems of large data processing amount, long time consumption and inaccurate identification result in the related art that the displacement phenomenon of the photovoltaic module is identified based on a machine learning algorithm.
According to another aspect of the embodiments of the present application, a non-volatile storage medium is further provided, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute any one of the methods for determining displacement of a photovoltaic module.
Specifically, the storage medium is used for storing program instructions of the following functions, and the following functions are realized:
acquiring a ground elevation model and an electronic map corresponding to a predetermined area, wherein the ground elevation model is used for indicating elevation information of each object on the earth surface in the predetermined area, and the electronic map is used for indicating map information of the predetermined area; determining first position information corresponding to a target area where a photovoltaic array is located in a preset area according to a ground elevation model, wherein the photovoltaic array comprises a plurality of photovoltaic modules; obtaining a target image corresponding to the target area from the electronic map according to the first position information; identifying each sub-area corresponding to each photovoltaic module in the target image, and determining second position information corresponding to each sub-area and an elevation image corresponding to each sub-area; and determining whether each photovoltaic module in the target area has a displacement phenomenon according to the second position information and the elevation image.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the aforementioned storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the aforementioned.
In an exemplary embodiment of the present application, there is also provided a computer program product, including a computer program, which when executed by a processor, implements the method for determining a shift of a photovoltaic module according to any one of the above.
Optionally, the computer program may, when executed by a processor, implement the steps of:
acquiring a ground elevation model and an electronic map corresponding to a predetermined area, wherein the ground elevation model is used for indicating elevation information of each object on the earth surface in the predetermined area, and the electronic map is used for indicating map information of the predetermined area; determining first position information corresponding to a target area where a photovoltaic array is located in a preset area according to a ground elevation model, wherein the photovoltaic array comprises a plurality of photovoltaic modules; obtaining a target image corresponding to the target area from the electronic map according to the first position information; identifying each sub-area corresponding to each photovoltaic module in the target image, and determining second position information corresponding to each sub-area and an elevation image corresponding to each sub-area; and determining whether each photovoltaic module in the target area has a displacement phenomenon according to the second position information and the elevation image.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including: a processor; a memory for storing processor-executable instructions; the processor is configured to execute the instructions to realize any one of the methods for judging the displacement of the photovoltaic module.
Optionally, the electronic device may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
FIG. 14 shows a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 14, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data required for the operation of the device 800 can also be stored. The calculation unit 801, the ROM802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
A number of components in the device 800 are connected to the I/O interface 805, including: an input unit 806, such as a keyboard, a mouse, or the like; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, or the like; and a communication unit 809 such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 801 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The calculation unit 801 executes the respective methods and processes described above, such as the determination method of the photovoltaic module shift. For example, in some embodiments, the method of determining photovoltaic assembly displacement may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and/or installed onto device 800 via ROM802 and/or communications unit 809. When the computer program is loaded into the RAM803 and executed by the computing unit 801, one or more steps of the above described method of determining a shift in a photovoltaic module may be performed. Alternatively, in other embodiments, the calculation unit 801 may be configured to perform the determination method of the photovoltaic module displacement by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present application may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server combining a blockchain.
In the related embodiment of the application, a mode that whether the photovoltaic module shifts or not is determined by adopting the position information and the elevation image of each subregion of the photovoltaic module is adopted, a ground elevation model and an electronic map corresponding to a preset area are obtained, then, first position information of a target area where a photovoltaic array is located in the preset area is determined according to the ground elevation model, a target image of the target area is extracted from the electronic map through the first position information, and the target image is identified to obtain second position information and the elevation image of each subregion corresponding to each photovoltaic module, so that the purpose of determining whether each photovoltaic module shifts or not based on the second position information and the elevation image of each subregion is achieved, the technical effect of rapidly and accurately identifying the shifting phenomenon of the photovoltaic module is achieved, and the problem that data processing quantity is large when the shifting phenomenon of the photovoltaic module is identified based on a machine learning algorithm in the related technology is solved, long time consumption and inaccurate identification result.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that, as will be apparent to those skilled in the art, numerous modifications and adaptations can be made without departing from the principles of the present application and such modifications and adaptations are intended to be considered within the scope of the present application.

Claims (12)

1. A method for judging the displacement of a photovoltaic module is characterized by comprising the following steps:
acquiring a ground elevation model and an electronic map corresponding to a predetermined area, wherein the ground elevation model is used for indicating elevation information of each object on the earth surface in the predetermined area, and the electronic map is used for indicating map information of the predetermined area;
determining first position information corresponding to a target area where a photovoltaic array is located in the preset area according to the ground elevation model, wherein the photovoltaic array comprises a plurality of photovoltaic assemblies;
obtaining a target image corresponding to the target area from the electronic map according to the first position information;
identifying each subarea corresponding to each photovoltaic assembly in the target image, and determining second position information corresponding to each subarea and an elevation image corresponding to each subarea;
and determining whether each photovoltaic assembly in the target area has a displacement phenomenon according to the second position information and the elevation image.
2. The method according to claim 1, wherein determining whether there is a displacement phenomenon of each photovoltaic module in the target area according to the second position information and the elevation image comprises:
determining coordinates of each target point corresponding to each sub-area according to the second position information;
fitting the coordinates of the target points to obtain a target reference line;
determining the distance between the coordinates of each target point and the target reference line, and determining the photovoltaic module with the distance larger than a preset threshold value as a suspected displacement photovoltaic module;
and acquiring a target elevation image corresponding to the suspected displacement photovoltaic module, and determining whether the suspected displacement photovoltaic module has a displacement phenomenon according to the target elevation image.
3. The method of claim 2, wherein determining whether the suspected displaced photovoltaic module is displaced from the target elevation image comprises:
acquiring the number of first pixel points smaller than the preset assembly height in the target elevation image;
under the condition that the number of the first pixel points is larger than a first preset threshold value, determining that the suspected displacement photovoltaic module has displaced;
and under the condition that the number of the first pixel points is smaller than a first preset threshold value, determining that the suspected displacement photovoltaic module is not displaced.
4. The method of claim 2, wherein determining whether the suspected displaced photovoltaic module is displaced from the target elevation image comprises:
acquiring the number of first pixel points smaller than the preset assembly height in the target elevation image;
acquiring the number of second pixel points corresponding to the target elevation image, wherein the number of the second pixel points is the number of all pixel points of the target elevation image obtained according to the height information and the width information of the target elevation image;
determining the ratio of the number of the first pixel points to the number of the second pixel points, and determining that the suspected displacement photovoltaic module has displaced when the ratio is larger than a second preset threshold value;
and under the condition that the ratio is smaller than a second preset threshold value, determining that the suspected displacement photovoltaic module does not displace.
5. The method of claim 2, wherein the target point coordinates comprise: the central point coordinates are fitted to the coordinates of the target points to obtain a target reference line, and the method comprises the following steps:
and calling a least square method, and fitting the coordinates of the central points based on the least square method to obtain a target reference line.
6. The method according to claim 1, wherein identifying each sub-region corresponding to each photovoltaic module in the target image and determining second position information corresponding to each sub-region comprises:
converting the target image into a gray image, and calling an edge detection algorithm to obtain an edge image corresponding to the gray image, wherein the edge image at least comprises: an edge line;
calling a Hough transform algorithm to search all straight lines in the edge image;
obtaining four grid boundary lines corresponding to each photovoltaic module according to the distance between the straight lines;
obtaining each sub-region according to the four grid boundary lines; and determining the coordinates of the intersection points of the four grid boundary lines as the second position information.
7. The method of claim 1, wherein obtaining the target image corresponding to the target area from the electronic map according to the first position information comprises:
obtaining a map image corresponding to the preset area according to the electronic map; and acquiring a target image corresponding to the target area from the map image according to the first position information.
8. The method of claim 7, wherein determining first location information corresponding to a target area in which the photovoltaic array is located within the predetermined area based on the ground elevation model comprises:
acquiring an elevation threshold value, and cutting out each continuous area of which the elevation information is greater than the elevation threshold value in the map image;
acquiring the shape characteristics of each continuous area, and determining the continuous area with the shape characteristics meeting the preset characteristics as the target area; and calling a preset image recognition algorithm to recognize the target area to obtain the first position information.
9. A method for judging the displacement of a photovoltaic module is characterized by comprising the following steps:
acquiring first position information corresponding to a target area where a photovoltaic array is located in a preset area, and determining a target image corresponding to the target area according to the first position information, wherein the photovoltaic array comprises a plurality of photovoltaic components;
identifying each sub-area corresponding to each photovoltaic module in the target image, and determining second position information corresponding to each sub-area;
and determining whether each photovoltaic assembly in the target area has a displacement phenomenon according to the second position information and the elevation image.
10. A photovoltaic module shift judgment device is characterized by comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a ground elevation model and an electronic map corresponding to a preset area, the ground elevation model is used for indicating elevation information of each object on the earth surface in the preset area, and the electronic map is used for indicating map information of the preset area;
the first determining module is used for determining first position information corresponding to a target area where a photovoltaic array is located in the preset area according to the ground elevation model, wherein the photovoltaic array comprises a plurality of photovoltaic assemblies;
the second acquisition module is used for acquiring a target image corresponding to the target area from the electronic map according to the first position information;
the identification module is used for identifying each sub-area corresponding to each photovoltaic module in the target image, and determining second position information corresponding to each sub-area and an elevation image corresponding to each sub-area;
and the second determining module is used for determining whether each photovoltaic module in the target area has a displacement phenomenon according to the second position information and the elevation image.
11. A non-volatile storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute the method for judging the displacement of the photovoltaic module according to any one of claims 1 to 9.
12. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of determining a shift in a photovoltaic module according to any of claims 1 to 9.
CN202210669640.6A 2022-06-14 2022-06-14 Photovoltaic module displacement judging method and device, storage medium and electronic equipment Pending CN114998372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210669640.6A CN114998372A (en) 2022-06-14 2022-06-14 Photovoltaic module displacement judging method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210669640.6A CN114998372A (en) 2022-06-14 2022-06-14 Photovoltaic module displacement judging method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114998372A true CN114998372A (en) 2022-09-02

Family

ID=83035099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210669640.6A Pending CN114998372A (en) 2022-06-14 2022-06-14 Photovoltaic module displacement judging method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114998372A (en)

Similar Documents

Publication Publication Date Title
WO2019228063A1 (en) Product inspection terminal, method and system, computer apparatus and readable medium
CN113205063A (en) Visual identification and positioning method for defects of power transmission conductor
CN112989995B (en) Text detection method and device and electronic equipment
CN113538503A (en) Solar panel defect detection method based on infrared image
CN116310903A (en) Method and device for identifying fault type of photovoltaic module and electronic equipment
CN112784732A (en) Method, device, equipment and medium for recognizing ground object type change and training model
CN115139303A (en) Grid well lid detection method, device, equipment and storage medium
CN114332487A (en) Image-based accumulated water early warning method, device, equipment, storage medium and product
CN116091709B (en) Three-dimensional reconstruction method and device for building, electronic equipment and storage medium
CN114998372A (en) Photovoltaic module displacement judging method and device, storage medium and electronic equipment
CN112991308B (en) Image quality determining method and device, electronic equipment and medium
CN114998371A (en) Method and device for judging falling of photovoltaic module, storage medium and electronic equipment
CN112116561B (en) Power grid transmission line detection method and device based on image processing fusion network weight
CN114693776A (en) Cable position information determining method, device, equipment and storage medium
CN114581890B (en) Method and device for determining lane line, electronic equipment and storage medium
CN114694138B (en) Road surface detection method, device and equipment applied to intelligent driving
CN116258714B (en) Defect identification method and device, electronic equipment and storage medium
CN114998284A (en) Panoramic map flower drawing detection method, device, equipment and storage medium
Wang et al. Improved method for positioning crane grab boom corner points using Hough transform and k‐means clustering
CN113139975A (en) Road characteristic-based road surface segmentation method and device
CN115019099A (en) Hot spot category identification method and device, electronic equipment, medium and product
Liu et al. An Environment Adaptive Detection Algorithm for Substation Equipment Inspection
CN117853789A (en) Image detection method and device
CN117576077A (en) Defect detection method, device, equipment and storage medium
CN117274361A (en) Material surface area measurement method and device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination