Intelligent survey method and electronic equipment for photovoltaic resources on roofs of building complexes

Through multi-modal data fusion of digital orthophotos and surface models and depth map normal map processing, the target plane of the building is accurately extracted, which solves the problem of inaccurate survey of photovoltaic resources on the roof of the building complex and achieves high-precision photovoltaic Resource calculation.

CN116645605BActive Publication Date: 2024-08-27BEIJING DEEPERCEPTION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310586877.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-24
Publication Date
2024-08-27
Estimated Expiration
2043-05-24

AI Technical Summary

Technical Problem

The existing methods for surveying photovoltaic resources on rooftops of building complexes are inaccurate, resulting in inaccurate photovoltaic resource calculations.

Method used

By obtaining the digital orthophoto map and digital surface model of the building complex, calculating the edge matrix and performing multi-modal data fusion, extracting the target plane of the building, combining the depth map and normal map for plane fitting and division, and accurately calculating the roof Photovoltaic resources.

Benefits of technology

It achieves accurate calculation of photovoltaic resources on the roofs of building groups, solves the problem of inaccurate resource determination in the existing technology, and is suitable for photovoltaic resource surveying in large-scale areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116645605B
    Figure CN116645605B
Patent Text Reader

Abstract

The present invention provides an intelligent survey method and electronic equipment for photovoltaic resources on roofs of building complexes, the method comprising: obtaining a digital orthophoto map and a digital surface model of the building complex; calculating an edge matrix of the digital orthophoto map; fusing the edge matrix, the digital orthophoto map matrix and the digital surface model matrix to obtain multimodal data of the building complex; obtaining a target plane of each building in the building complex based on the multimodal data; and determining the photovoltaic resources on the roofs of the building complex based on the target plane of each building. The method solves the technical problem of inaccurate determination of photovoltaic resources on roofs of building complexes in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of distributed photovoltaic intelligent surveying, and in particular to an intelligent surveying method and electronic equipment for photovoltaic resources on roofs of building complexes. Background Art

[0002] Large-scale industrial parks have a large area of ​​idle roof space. With the development of clean energy technology, companies often install solar photovoltaic panels on the roof area. At this time, the availability of photovoltaic resources on the roof is an issue that companies must accurately calculate.

[0003] The existing building detection method mainly consists of visible light rough inspection + radar correction. The idea is to first use visible light to segment the image, and then use radar point cloud to correct the edge. This method usually enlarges the visible light rough inspection result and then uses the radar point cloud height threshold to perform edge cutting. Since the visible light rough inspection result alone is usually of poor quality and uncontrollable, even if the radar point cloud is used to judge by height later, it cannot guarantee that the complete roof will be obtained, resulting in inaccurate calculation of rooftop photovoltaic resources.

[0004] In view of this, the present invention is proposed. Summary of the invention

[0005] The present invention provides an intelligent survey method and electronic equipment for photovoltaic resources on the roofs of building complexes, so as to solve the technical problem of inaccurate determination of photovoltaic resources on the roofs of building complexes in the prior art.

[0006] According to a first aspect of the present invention, there is provided an intelligent survey method for rooftop photovoltaic resources of a building complex, comprising: acquiring a digital orthophoto map and a digital surface model of the building complex; calculating an edge matrix of the digital orthophoto map; fusing the edge matrix, the digital orthophoto map matrix and the digital surface model matrix to obtain multimodal data of the building complex; obtaining a target plane of each building of the building complex based on the multimodal data; and determining the rooftop photovoltaic resources of the building complex based on the target plane of each building.

[0007] Furthermore, a target plane of each building in the building complex is obtained based on the multimodal data, including: performing pixel classification on the multimodal data to obtain the outline of the building complex; extracting a raster image of each building in the building complex from the digital surface model based on the outline of the building complex; performing coarse extraction on the raster image based on the edge of the depth map of the raster image to obtain multiple initial planes of each building; fitting the spatial points in the multiple initial planes to obtain a reference plane; and determining the target plane of each building based on the average distance from the spatial points in each of the multiple initial planes to the reference plane.

[0008] Furthermore, the target plane of each building is determined based on the average distance from the spatial point in each initial plane to the reference plane, including: when the average distance is less than or equal to a preset distance, determining the multiple initial planes as the target planes; when the average distance is greater than the preset distance, dividing the multiple initial planes, and determining the divided multiple planes as the target planes.

[0009] Furthermore, dividing the multiple initial planes includes: generating a normal map of the raster image; and dividing the multiple initial planes using an edge map of the normal map of the raster image.

[0010] Furthermore, after obtaining the digital orthophoto image and the digital surface model of the building complex, the method also includes: grid-aligning the digital orthophoto image and the digital surface model, wherein the grid-aligning the digital orthophoto image and the digital surface model includes: determining the lower right corner coordinates of the digital orthophoto image and the digital surface model based on their respective upper left corner coordinates, grid resolution, and grid width and height; determining the intersection area between the digital orthophoto image and the digital surface model based on their respective upper left corner coordinates and lower right corner coordinates; determining the coordinates of the aligned grid in the intersection area according to the upper left corner coordinates and lower right corner coordinates of the intersection area, wherein the coordinates of the aligned grid include the coordinates of the same grid under the digital orthophoto image and the digital surface model, respectively.

[0011] Furthermore, the method also includes: dividing the digital orthophoto matrix and the digital surface model matrix into multiple matrices, wherein when the digital orthophoto matrix and the digital surface model matrix need to be read, the multiple matrices are read simultaneously through multiple processes.

[0012] Furthermore, the normal map of the raster image is a grayscale normal map.

[0013] Furthermore, there are multiple target planes, wherein the rooftop photovoltaic resources of the building complex are determined based on the target plane of each building, including: calculating the circumscribed rectangle of each target plane; determining the long side direction of the circumscribed rectangle as the main direction; filling each target plane according to the main direction according to a preset solar panel size to obtain a fillable number; and determining the rooftop photovoltaic resources of the building complex based on the fillable number and basic parameters of the solar panels.

[0014] According to a second aspect of the present invention, there is provided an electronic device, comprising a memory and a processor, wherein the memory stores computer instructions, and when the computer instructions are executed by the processor, any one of the above methods is executed.

[0015] The present invention provides an intelligent survey method and electronic equipment for photovoltaic resources on roofs of building complexes, the method comprising: obtaining a digital orthophoto map and a digital surface model of the building complex; calculating an edge matrix of the digital orthophoto map; fusing the edge matrix, the digital orthophoto map matrix and the digital surface model matrix to obtain multimodal data of the building complex; obtaining a target plane of each building in the building complex based on the multimodal data; and determining the photovoltaic resources on roofs of the building complex based on the target plane of each building. The method solves the technical problem of inaccurate determination of photovoltaic resources on roofs of building complexes in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 is a schematic diagram of an intelligent survey method for photovoltaic resources on rooftops of building complexes provided by an embodiment of the present invention;

[0018] Figure 2 is a schematic diagram of a digital orthophoto map dom of a building complex provided by an embodiment of the present invention;

[0019] Figure 3 is a schematic diagram of a digital surface model DSM of a building complex provided by an embodiment of the present invention;

[0020] Figure 4 is a schematic diagram of the outline of a building complex provided by an embodiment of the present invention;

[0021] Figure 5 is a schematic diagram of a grid image of a complete building provided by an embodiment of the present invention;

[0022] Figure 6 is a schematic diagram of multiple initial planes of each building obtained based on the edge of the depth map provided by an embodiment of the present invention;

[0023] Figure 7 is a schematic diagram of a normal map of a raster image provided by an embodiment of the present invention;

[0024] Figure 8is a schematic diagram of a normal map edge map provided by an embodiment of the present invention;

[0025] Fig. 9 is a schematic diagram of a roof plane provided by an embodiment of the present invention;

[0026] Fig.10 is a schematic diagram of an intersection area provided by an embodiment of the present invention;

[0027] Fig.11 It is a schematic diagram of a target plane filled according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to make the above and other features and advantages of the present invention more clear, the present invention is further described below in conjunction with the accompanying drawings. It should be understood that the specific embodiments given herein are for the purpose of explaining to those skilled in the art and are only exemplary and not restrictive.

[0029] In the following description, many specific details are set forth to provide a thorough understanding of the present invention. However, it is apparent to one of ordinary skill in the art that specific details need not be adopted to practice the present invention. In other cases, well-known steps or operations are not described in detail to avoid obscuring the present invention.

[0030] The English abbreviations in this plan are explained as follows:

[0031] dom: digital orthophoto map, digital orthophoto map;

[0032] dsm: digital surface model, digital surface model.

[0033] The present invention provides an intelligent survey method for photovoltaic resources on rooftops of building complexes. Figure 1 is a schematic diagram of an intelligent survey method for photovoltaic resources on rooftops of building complexes provided by an embodiment of the present invention, such as Figure 1 Said method comprises:

[0034] Step S11, obtaining a digital orthophoto dom and a digital surface model dsm of the building complex.

[0035] Specifically, this solution can be implemented by a server or other equipment with data processing functions as the executor of the method steps. The above-mentioned digital orthophoto map DOM and digital surface model DSM can be obtained by using a drone to take aerial photos of the building complex within the area to be detected. It should be noted that the building complex can include multiple buildings, such as buildings, bungalows, etc. Figure 2 is a schematic diagram of a digital orthophoto map dom of a building complex provided by an embodiment of the present invention, Figure 3It is a schematic diagram of a digital surface model DSM of a building complex provided by an embodiment of the present invention.

[0036] Step S13, calculating and obtaining the edge matrix of the digital orthophoto image.

[0037] Step S15, fusing the edge matrix, the digital orthophoto matrix and the digital surface model matrix to obtain multimodal data of the building complex.

[0038] Specifically, since both dom and dsm can be regarded as images, dom is a three-channel image, and dsm is a single-channel image, they can be regarded as two matrices. The dom data is three-channel 8-bit unsigned data, and the dsm data is single-channel floating-point data. The dom and dsm matrices can be (3*h*w) and (1*h*w). This solution calculates the edge of the above dom to obtain the edge matrix (1*h*w). Then this solution combines the dom and dsm matrices and the edge matrix into (5*h*w) data to obtain multimodal data. It should be noted that multimodal data contains visible light, visible light edge, and elevation information, and the information is relatively rich.

[0039] Step S17, obtaining a target plane of each building in the building complex based on the multimodal data.

[0040] Step S19, determining the rooftop photovoltaic resources of the building complex based on the target plane of each building.

[0041] It should be noted that, since multimodal data contains visible light, visible light edge, and elevation information, this solution uses information-rich multimodal data to accurately obtain the target plane of each building in the building complex, thereby obtaining the precise rooftop photovoltaic resources of the building complex based on the precise target plane.

[0042] Therefore, this solution solves the technical problem of inaccurate determination of rooftop photovoltaic resources of building complexes in the prior art.

[0043] It should also be noted that this solution is based on the digital orthophoto map DOM and the digital surface model DSM to obtain the rooftop photovoltaic resources of the building complex, which can realize the photovoltaic resource survey in large-scale areas.

[0044] Optionally, step S17, obtaining a target plane of each building of the building complex based on the multimodal data, includes:

[0045] Step S171, performing pixel classification on the multimodal data to obtain the outline of the building complex.

[0046] Specifically, this solution can classify the multimodal data into pixels through a high-resolution fully convolutional neural network to obtain the precise outline of the building complex. Figure 4 It is a schematic diagram of the outline of the building complex provided in this embodiment.

[0047] It should be noted that the depth map and visible light image are fused into multimodal data, and convolutional neural network is used for region segmentation to achieve accurate building extraction.

[0048] Step S172: extracting a raster image of each building in the building complex from the digital surface model based on the outline of the building complex.

[0049] Specifically, this solution can extract a complete building raster image in DSM based on the geographic coordinates of the corner points of the rectangular circumscribed by the building complex's outline, so as to be used for the roof plane analysis in the next stage. Figure 5 It is a schematic diagram of a raster image of a complete building provided by an embodiment of the present invention.

[0050] Step S173 , performing coarse extraction on the raster image based on the edge of the depth map of the raster image to obtain a plurality of initial planes of each building.

[0051] Specifically, the present solution can perform a rough extraction on the raster image based on the edge of the depth map of the raster image to divide the above-mentioned complete building into several blocks, and then remove the area below the average height to obtain the above-mentioned multiple initial planes. Figure 6 It is a schematic diagram of multiple initial planes of each building obtained based on the edge of the depth map provided by an embodiment of the present invention.

[0052] Step S174, fitting the spatial points in the multiple initial planes to obtain a reference plane.

[0053] Step S175, determining the target plane of each building based on the average distance from the spatial point in each of the multiple initial planes to the reference plane.

[0054] Specifically, this solution can count the spatial points corresponding to multiple initial planes, and use the least squares method to fit the planes to obtain a reference plane, and then calculate the average distance from the spatial points in each initial plane to the reference plane, and then determine the target plane of each building based on the above average distance. It should be noted here that there are many types of roof buildings, such as ordinary types or complex types. It should be noted that the ordinary type of roof is a flat roof, and the complex type of roof has a slope roof, including a single slope, a double slope, a four-slope roof, and a multi-wave folding plate roof. Merely performing a rough extraction of the raster image can only roughly extract the building, and it is impossible to make a more detailed division of the planes on the complex type of building. After obtaining multiple initial planes for each building, this solution determines the target plane based on the above average distance, which can be applicable to various types of roof structures.

[0055] Optionally, step S175 determines the target plane of each building based on the average distance from the spatial point in each initial plane to the reference plane, including:

[0056] Step S1751: when the average distance is less than or equal to a preset distance, determine the multiple initial planes as the target planes.

[0057] Specifically, when the average distance is less than or equal to the preset distance, it means that the roof type of the building is ordinary, and the heights of the multiple initial planes are relatively close. In this solution, the multiple initial planes are determined as the target planes.

[0058] Step S1752: when the average distance is greater than the preset distance, the multiple initial planes are divided, and the multiple divided planes are determined as the target planes.

[0059] Specifically, when the average distance is greater than the preset distance, it means that the roof type of the building is a complex type. For example, there is a ridge on the roof of the building, and there are two planes on both sides of the ridge, but the height change at the intersection of the two sides of the ridge is continuous rather than sudden. It is impossible to accurately determine how many planes there are on the roof of the building through rough extraction. Therefore, this solution continues to divide the multiple initial planes and determines the multiple planes after division as the target planes.

[0060] Optionally, step S1752 divides the multiple initial planes, including:

[0061] Step S17521, generating a normal map of the raster image.

[0062] Specifically, some details on the edges of the raster image are difficult to distinguish, such as the roof ridge. The two sides of the ridge are two planes, but the height change at the intersection of the two sides of the ridge is continuous rather than abrupt, and no obvious edge can be produced. However, using normals, the normal directions of the two faces are different, and color distinction will be produced in the normal map. This color change makes it possible to distinguish the two planes of the ridge. Figure 7 It is a schematic diagram of a normal map of a raster image provided by an embodiment of the present invention.

[0063] It should be noted that, in this embodiment, the edge of the depth map is used to perform rough plane extraction, and then the rough extracted plane is finely segmented using normal information, which can solve the problem of detecting ridge lines and gentle slope obstacles.

[0064] The following is a description of the calculation process of the normal map:

[0065] The normal map is a three-channel sequence that calculates the normal vector of the plane for each pixel of the raster image, maps the three-dimensional value of the normal vector to RGB color, and finally generates a three-channel color normal map for the entire depth map.

[0066] Normal Figure 3 The color vector of a channel is calculated as follows:

[0067] For the coordinates (x i ,y j ) pixel, whose normal direction passes through (x i+1 ,y j ), (x i ,y j+1 ) point and (x i ,y j ) points, the three points together with the depth information form three 3D points (x i ,y j , z i,j ), (x i+1 ,y j , z i+1,j ), (x i ,y j+1 , z i,j+1 ), the two vectors are:

[0068]

[0069]

[0070] (x i ,y j )The normal vector of the point is:

[0071]

[0072] Normalization of normal vector:

[0073]

[0074] Normalization of normal vectors:

[0075]

[0076] A three-channel color vector:

[0077]

[0078] Step S17522: Use the edge map of the normal map to divide the multiple initial planes.

[0079] Specifically, this solution can smooth and reduce noise on the above normal map, and perform edge lifting to obtain an edge map of the normal map. Figure 8 Schematic diagram of the normal map edge map provided by an embodiment of the present invention. This solution uses the edge map of the normal map to divide the multiple initial planes and then performs image filtering and plane polygon simplification processing to obtain a target plane, which is the roof plane. Fig. 9 It is a schematic diagram of a roof plane provided by an embodiment of the present invention.

[0080] It should also be noted here that the reason why this scheme does not directly use the normal map to divide the raster image is because the normal map is too sensitive to the depth map noise. Therefore, it is necessary to first roughly divide the plane through the coarse extraction of the depth map. If the divided plane has obvious ups and downs, the normal line is used for further division. This is a two-stage plane extraction method with more accurate results.

[0081] Optionally, after obtaining the digital orthophoto map and the digital surface model of the building complex, the method further includes:

[0082] Step S121, grid-aligning the digital orthophoto image and the digital surface model, wherein grid-aligning the digital orthophoto image and the digital surface model comprises:

[0083] Step S122, determining the lower right corner coordinates of the digital orthophoto image and the digital surface model based on the upper left corner coordinates, grid resolution, and grid width and height of the digital orthophoto image and the digital surface model.

[0084] Specifically, since both dom and dsm can be regarded as images, dom is a three-channel image, and dsm is a single-channel image, they can be regarded as two matrices. The matrix elements are called grids, and each grid corresponds to a distance in the actual space, which is called the resolution of dsm / dom. They are all obtained by manual cropping. It is impossible to guarantee that the grid resolutions of the two are the same and the boundaries can completely overlap. Therefore, the first thing to do is to align the dsm / dom grids. First, perform range alignment, obtain the geographic coordinates of the upper left corner of the grid according to the dom and dsm files, and obtain the geographic coordinates of the lower right corner according to the grid resolutions of the two and the width and height of the two grid data. The coordinates of the upper left corner of Dsm are (X 11 , Y 11 ), the coordinate of the lower right corner is (X 21 , Y 21 ), the coordinates of the upper left corner of DOM are (X 12 , Y 12 ), the coordinate of the lower right corner is (X 22 , Y 22 ).

[0085] Step S123: determining an intersection area between the digital orthophoto image and the digital surface model based on the upper left corner coordinates and the lower right corner coordinates of the digital orthophoto image and the digital surface model, respectively.

[0086] Specifically, the coordinates of the upper left corner of the Dom / dsm grid intersection area are (max(X 11 , X 12 ), max(Y 11 , Y 12 )), the coordinates of the lower right corner are (min(X 21 , X 22 ), min(Y 21 , Y 22 )),

[0087] The schematic diagram of the above intersection area is as follows Fig.10 shown.

[0088] Step S124, determining the coordinates of the aligned grid in the intersection area according to the upper left corner coordinates and the lower right corner coordinates of the intersection area, wherein the coordinates of the aligned grid include the coordinates of the same grid in the digital orthophoto map and the digital surface model respectively.

[0089] Specifically, this solution can determine the DOM / DSM grid coordinates of the intersection area after alignment based on the upper left corner and lower right corner coordinates of the intersection area. The upper left and lower right coordinates of the grid in DSM after alignment are (x 11 ,y 11 ), (x 21 ,y 21 ), the coordinates of the upper left and lower right corners of the grid after alignment are (x 12 ,y 12 ), (X 22 ,y 22 ). By intercepting the matrices of dsm and dom within this range, a strictly aligned orthogonal elevation matrix can be obtained. The two grid resolutions are different, and the horizontal and vertical coordinate offsets differ by a multiplication coefficient k1, k2. k1, k2 can be calculated based on the width and height ratio of the two matrices.

[0090] It should be noted that the above DOM / DSM grid alignment method can solve the problem of matching DOM / DSM regional data with different resolutions and different reference coordinate points.

[0091] Optionally, the method further includes:

[0092] The digital orthophoto matrix and the digital surface model matrix are divided into multiple matrices. When the digital orthophoto matrix and the digital surface model matrix need to be read, the multiple matrices are read simultaneously through multiple processes.

[0093] Specifically, since the amount of data of dom and dsm grid matrices is extremely large, and may even exceed the computer memory, and the single-threaded data reading speed is limited, it is necessary to calculate in batches and read data from the file in batches, while ensuring the calculation speed. This embodiment proposes a multi-process parallel data processing method. First, the dom and dsm matrices are divided into N blocks by rows and columns in a certain ratio, and each block has a separate index value. The way of segmentation and indexing is the same as the storage method of dom / dsm grid data in a storage device. Then, according to the number of computer CPU cores K, the above index sequence is divided into K index sequences, and the indexes in each copy are continuous. Then, K processes are started, and each process opens a dom / dsm file stream separately, and the file pointer points to the beginning position of its corresponding index sequence. K processes are carried out in parallel, and the indexes allocated to each are traversed. Each process uses an independent file pointer. In this way, the data reading speed can be accelerated several times, and the pipeline is used to manage the data between the main process and the child process. Each process reads a block of data in the sequence each time, that is, it processes a small part of the huge data at a time, avoiding the problem of memory overflow. Each process reads a block of DSM and DOM data each time.

[0094] It should be noted that in step S171, the multimodal data is pixel-classified to obtain the outline of the building complex. This solution can read a block of data each time in each process, each process generates a result separately, and then integrate multiple results to obtain the outline of the building complex.

[0095] It should also be noted that the regional photovoltaic resource survey method proposed in the present invention is designed with a multi-process data processing method based on the characteristics of DSM / DOM file storage and reading, which can process photovoltaic resource survey work within an area of ​​more than one square kilometer within one minute.

[0096] Optionally, the normal map of the raster image is a grayscale normal map.

[0097] In an optional embodiment, after generating the color normal map, the color normal map is converted into a grayscale normal map, that is, in the above step S17522, the grayscale normal map is used to divide the multiple initial planes, so as to distinguish the boundary lines between slopes without height mutations and complex planes.

[0098] Optionally, there are multiple target planes, wherein step S19 determines the rooftop photovoltaic resources of the building complex based on the target plane of each building, including:

[0099] Step S191, calculating the circumscribed rectangle of each target plane.

[0100] Step S192: determining the long side direction of the circumscribed rectangle as the main direction.

[0101] Step S193, filling each target plane according to the preset solar panel size and the main direction to obtain the fillable quantity.

[0102] Specifically, Fig.11 It is a schematic diagram of a target plane filled according to an embodiment of the present invention.

[0103] Step S194, determining the rooftop photovoltaic resources of the building complex based on the fillable quantity and basic parameters of the solar panels.

[0104] Specifically, the basic parameters of the solar panel may be the energy that a single solar panel can generate, such as wattage. The planar solar panel filling strategy can realize the solar panel installation planning function for a large area.

[0105] It should be understood that the specific features, operations and details described hereinabove about the method of the present invention may also be similarly applied to the device and system of the present invention, or, vice versa. In addition, each step of the method of the present invention described above may be performed by the corresponding parts or units of the device or system of the present invention.

[0106] It should be understood that each module / unit of the device of the present invention can be implemented in whole or in part by software, hardware, firmware or a combination thereof. Each of the modules / units can be embedded in the processor of the computer device in the form of hardware or firmware or independent of the processor, or can be stored in the memory of the computer device in the form of software for the processor to call to perform the operation of each module / unit. Each of the modules / units can be implemented as an independent component or module, or two or more modules / units can be implemented as a single component or module.

[0107] In one embodiment, a computer device is provided, which includes a memory and a processor, wherein the memory stores computer instructions executable by the processor, and the computer instructions instruct the processor to perform each step of the method of the embodiment of the present invention when executed by the processor. The computer device can be a server, a terminal, or any other electronic device with necessary computing and / or processing capabilities in a broad sense. In one embodiment, the computer device may include a processor, a memory, a network interface, a communication interface, etc. connected through a system bus. The processor of the computer device can be used to provide necessary computing, processing and / or control capabilities. The memory of the computer device may include a non-volatile storage medium and an internal memory. An operating system, a computer program, etc. may be stored in or on the non-volatile storage medium. The internal memory can provide an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface and the communication interface of the computer device can be used to connect and communicate with external devices through a network. The steps of the method of the present invention are executed by the processor.

[0108] The present invention may be implemented as a computer-readable storage medium having a computer program stored thereon, which causes the steps of the method of an embodiment of the present invention to be executed when executed by a processor. In one embodiment, the computer program is distributed on a plurality of computer devices or processors coupled to a network so that the computer program is stored, accessed and executed in a distributed manner by one or more computer devices or processors. A single method step / operation, or two or more method steps / operations, may be performed by a single computer device or processor or by two or more computer devices or processors. One or more method steps / operations may be performed by one or more computer devices or processors, and one or more other method steps / operations may be performed by one or more other computer devices or processors. One or more computer devices or processors may perform a single method step / operation, or perform two or more method steps / operations.

[0109] It will be appreciated by those skilled in the art that the method steps of the present invention may be performed by instructing related hardware such as a computer device or a processor through a computer program, and the computer program may be stored in a non-temporary computer-readable storage medium, which causes the steps of the present invention to be performed when the computer program is executed. Depending on the circumstances, any reference to memory, storage, database, or other media herein may include non-volatile and / or volatile memory. Examples of non-volatile memory include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk, etc. Examples of volatile memory include random access memory (RAM), external cache memory, etc.

[0110] The various technical features described above can be combined arbitrarily. Although all possible combinations of these technical features are not described, any combination of these technical features should be considered to be covered by this specification as long as there is no contradiction in such combination.

[0111] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An intelligent survey method for photovoltaic resources on rooftops of building complexes, characterized in that: include: Obtain digital orthophotos and digital surface models of the building complex; Calculate the edge matrix of the digital orthophoto image; The edge matrix, the digital orthophoto matrix and the digital surface model matrix are fused to obtain multimodal data of the building complex; Obtaining a target plane for each building in the building complex based on the multimodal data, wherein obtaining the target plane for each building in the building complex based on the multimodal data comprises: performing pixel classification on the multimodal data to obtain the outline of the building complex; extracting a raster image of each building in the building complex from the digital surface model based on the outline of the building complex; performing coarse extraction on the raster image based on the edge of the depth map of the raster image to obtain multiple initial planes for each building; fitting the spatial points in the multiple initial planes to obtain a reference plane; determining the target plane for each building based on the average distance from the spatial points in each of the multiple initial planes to the reference plane; The rooftop photovoltaic resources of the building complex are determined based on the target plane of each building, wherein the method of determining the rooftop photovoltaic resources of the building complex based on the target plane of each building includes: calculating a circumscribed rectangle for each target plane; determining the long side direction of the circumscribed rectangle as a main direction; filling each target plane according to the main direction according to a preset solar panel size to obtain a fillable quantity; and determining the rooftop photovoltaic resources of the building complex based on the fillable quantity and basic parameters of the solar panels.

2. The method according to claim 1, characterized in that: Determining a target plane for each building based on an average distance from a spatial point in each initial plane to the reference plane includes: When the average distance is less than or equal to a preset distance, determining the multiple initial planes as the target planes; When the average distance is greater than the preset distance, the multiple initial planes are divided, and the multiple divided planes are determined as the target planes.

3. The method according to claim 2, characterized in that Dividing the multiple initial planes includes: generating a normal map of the raster image; The plurality of initial planes are divided using an edge map of the normal map of the raster image.

4. The method according to claim 1, characterized in that: After obtaining the digital orthophoto map and the digital surface model of the building complex, the method further includes: The digital orthophoto image and the digital surface model are grid-aligned, wherein the digital orthophoto image and the digital surface model are grid-aligned, including: Determine the lower right corner coordinates of the digital orthophoto image and the digital surface model based on the upper left corner coordinates, grid resolution, and grid width and height of the digital orthophoto image and the digital surface model; Determine the intersection area between the digital orthophoto image and the digital surface model based on the upper left corner coordinates and the lower right corner coordinates of the digital orthophoto image and the digital surface model respectively; The coordinates of the aligned grid in the intersection area are determined according to the upper left corner coordinates and the lower right corner coordinates of the intersection area, wherein the coordinates of the aligned grid include the coordinates of the same grid in the digital orthophoto map and the digital surface model respectively.

5. The method according to claim 1, characterized in that The method further comprises: The digital orthophoto matrix and the digital surface model matrix are divided into multiple matrices. When the digital orthophoto matrix and the digital surface model matrix need to be read, the multiple matrices are read simultaneously through multiple processes.

6. The method according to claim 4, characterized in that The normal map of the raster image is a grayscale normal map.

7. An electronic device, comprising a memory and a processor, wherein the memory stores computer instructions, characterized in that: The computer instructions, when executed by the processor, cause the method of any one of claims 1 to 6 to be performed.