Roof geometric structure intelligent extraction method and system, terminal and storage medium

Automatically extract roof structure information through aerial photography and three-dimensional reconstruction technology, solving the problem of manual measurement time and improving the design efficiency of photovoltaic engineering.

CN118898640APending Publication Date: 2024-11-05ZHUHAI SHANGFANG CLEAN ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410861447.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

Manually measuring roof structure information takes a long time, resulting in limited photovoltaic engineering construction speed.

Method used

Images are acquired through aerial photography, and the three-dimensional reconstruction algorithm is used to generate orthophotos, digital surface models and house solid models. Combined with the roof profile extraction algorithm, the roof structure information is automatically extracted, including the coordinate values ​​and plane equations of the roof profile, reducing manual intervention.

Benefits of technology

It realizes the rapid and automatic extraction of roof structure information, improves the efficiency of photovoltaic engineering design, and shortens construction time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118898640A_ABST
    Figure CN118898640A_ABST
Patent Text Reader

Abstract

The invention relates to a roof geometric structure intelligent extraction method and system, a terminal and a storage medium, and relates to the field of new energy engineering application, and the method comprises the steps: obtaining an aerial image of a target roof; respectively generating an orthoimage, a digital surface model and a house entity model of the target roof according to the aerial image of the target roof; obtaining coordinate values of the roof contour according to the orthoimage and the digital surface model; after the coordinate value of the roof contour is matched with a house entity model, roof contour information is obtained through a roof contour extraction algorithm; and obtaining roof structure information based on a preset calculation model according to the roof contour information. The method has the advantages that the roof structure information is automatically and accurately obtained, and therefore the photovoltaic engineering design efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of new energy engineering application technology, and in particular to a method, system, terminal and storage medium for intelligent extraction of roof geometry. Background Art

[0002] Photovoltaic power generation projects use solar cells to directly convert sunlight into electrical energy based on the photovoltaic effect. Theoretically, photovoltaic power generation technology can be used in any occasion that requires power, from spacecraft to household power supplies, from megawatt-level power stations to toys. Photovoltaic power can be everywhere.

[0003] In the field of photovoltaic engineering automation applications at the household power level, it is necessary to first extract the user's roof structure information upstream, and then plan the downstream construction of the photovoltaic project. In related technologies, it is usually necessary to manually measure the specific structural information of the house roof, and then send it to the downstream design program. However, manual measurement of the specific structural information of the roof consumes a lot of measurement time, which delays the construction speed of the photovoltaic project. Summary of the invention

[0004] In order to solve the problem that manual measurement of specific structural information of a roof requires a lot of measurement time, the present application provides a method, system, terminal and storage medium for intelligent extraction of roof geometric structure.

[0005] In a first aspect of the present application, a method for intelligently extracting a roof geometry structure is provided, comprising: Acquire aerial images of the target roof; According to the aerial image of the target roof, an orthophoto, a digital surface model and a house entity model of the target roof are respectively generated; Obtaining coordinate values ​​of the roof outline according to the orthophoto and the digital surface model; After matching the coordinate value of the roof outline with the house entity model, the roof outline information is obtained through a roof outline extraction algorithm; According to the roof profile information, based on a preset calculation model, roof structure information is obtained.

[0006] By adopting the above technical solution, by taking multiple house pictures and using the 3D reconstruction algorithm to obtain the digital orthophoto, digital surface model, and obj house entity model of the house to be tested, these intermediate results can be used to automatically and intelligently extract its roof structure information. This reduces the time for manual extraction of roof structures and improves the efficiency of photovoltaic engineering design.

[0007] In a possible implementation, the roof structure information includes the spatial intersection lines of each roof surface, and the roof structure information is obtained according to the roof contour information based on a preset calculation model, including: According to the roof outline information, a directional bounding box is used to obtain a roof point cloud; Segment the roof point cloud by using the region growing algorithm to obtain at least one independent roof information; Generate a plane equation of each independent roof according to the independent roof information; According to the plane equation, the spatial intersection lines of each roof are obtained.

[0008] In a possible implementation, before segmenting the roof point cloud by a region growing algorithm to obtain at least one independent roof information, the method further includes: Outlier points in the roof point cloud obtained by the directional bounding box are deleted.

[0009] In a possible implementation, generating a plane equation of each independent roof according to the independent roof information includes: According to the independent roof information, based on the least squares plane fitting algorithm, a plane equation of the corresponding roof is obtained; With n points, (x i ,y i , z i ), i=0,1,...,n-1, fitting plane equation, the plane equation is: Where a0, a1, a2 are the plane equation parameters.

[0010] In a possible implementation, the spatial intersection lines of each roof are obtained according to the plane equation, including: Calculating the plane equation parameters; Calculate the intersection direction vector: (a,b,c) is a point on the intersection line, and (d,e,f) is the direction vector of the intersection line.

[0011] In a possible implementation, obtaining the coordinate value of the roof outline according to the orthophoto and the digital surface model includes: According to the orthophoto, the pixel coordinates of the roof outline of the target roof are obtained; According to the digital surface model, obtaining a channel array of the digital surface model; The pixel coordinates of the roof outline are matched with the channel array of the digital surface model to obtain the coordinate values ​​of the roof outline.

[0012] In a possible implementation, after matching the coordinate value of the roof outline with the house entity model, the roof outline information is obtained by using a roof outline extraction algorithm, including: Determining whether the coordinate value of the roof outline is in the house entity model; If it is determined that the roof is not present, scaling the house entity model according to the coordinate values ​​of the roof outline; The roof outline extraction algorithm is used on the scaled house entity model to obtain the roof outline information.

[0013] In a second aspect of the present application, a roof geometry intelligent extraction system is provided, comprising: An image acquisition module is used to acquire an aerial image of the target roof; A coordinate calculation module is used to generate an orthophoto, a digital surface model and a house entity model of the target roof according to the aerial image of the target roof; and obtain the coordinate value of the roof outline according to the orthophoto and the digital surface model; A model matching module is used to match the coordinate value of the roof outline with the house entity model, and then obtain the roof outline information through a roof outline extraction algorithm; The contour calculation module is used to obtain roof structure information according to the roof contour information based on a preset calculation model.

[0014] In a third aspect of the present application, a terminal is provided, which has the characteristics of improving the extraction efficiency of the roof geometry.

[0015] The third application objective of this application is achieved through the following technical solutions: A terminal comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and execute the above-mentioned intelligent extraction method of roof geometric structure.

[0016] In a fourth aspect of the present application, a computer storage medium is provided, which is capable of storing corresponding programs and has the characteristic of facilitating improving the efficiency of roof geometry extraction.

[0017] The fourth application objective of this application is achieved through the following technical solutions: A computer-readable storage medium stores a computer program that can be loaded by a processor and execute any of the above-mentioned intelligent extraction methods for roof geometry structures.

[0018] In summary, the present application includes the following beneficial technical effects: by taking multiple house pictures and using a 3D reconstruction algorithm to obtain a digital orthophoto, a digital surface model, and an obj house entity model of the house to be tested, these intermediate results can be used to automatically and intelligently extract its roof structure information. This reduces the time for manual extraction of the roof structure, thereby improving the efficiency of photovoltaic engineering design. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flowchart of a method for intelligently extracting roof geometry structure according to one embodiment of the present application.

[0020] Figure 2 It is a schematic diagram of a roof geometry intelligent extraction system according to one embodiment of the present application.

[0021] Figure 3 It is a structural diagram of a terminal according to an embodiment of the present application.

[0022] Explanation of the accompanying drawings: 201, image acquisition module; 202, coordinate calculation module; 203, model matching module; 204, contour calculation module; 301, CPU; 302, ROM; 303, RAM; 304, bus; 305, I / O interface; 306, input part; 307, output part; 308, storage part; 309, communication part; 310, drive; 311, removable medium. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0024] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0025] The following is combined with Figures 1 to 3 This application is described in further detail.

[0026] In the field of photovoltaic engineering automation applications, if the upstream can automatically extract roof structure information, the downstream design efficiency will be improved. When using general two-dimensional house images, it is impossible to accurately obtain the specific structural information of the house roof. In order to accurately obtain the geometric structure information of the roof, the method proposed in the present invention can accurately obtain the roof structure information, which can improve the efficiency of downstream design tasks and other tasks required in the application field of new energy engineering.

[0027] In order to improve the design efficiency of photovoltaic projects, this application provides a method for intelligent extraction of roof geometry.

[0028] Reference Figure 1 , a method for intelligently extracting roof geometry, comprising the following steps: S101: Acquire an aerial image of a target roof, and establish a three-dimensional model of the house entity according to the aerial image.

[0029] Specifically, in the embodiment of the present application, a drone with a camera takes multiple house pictures above the house to be measured, and a physical three-dimensional model of the house to be measured is obtained through a three-dimensional reconstruction algorithm. The three-dimensional reconstruction algorithm estimates the camera pose of the collected data through multi-view images, and then extracts features from the images and performs comparison and splicing to complete the conversion from two-dimensional images to three-dimensional models.

[0030] S102: Generate an orthophoto, a digital surface model and a house entity model of the target roof respectively according to the entity three-dimensional model of the target roof.

[0031] Specifically, the obtained solid 3D model is outputted with intermediate digital orthophotos, digital surface models, and obj 3D models, and these intermediate results can be used to realize automatic intelligent extraction of its roof structure information. The technology of outputting digital orthophotos, digital surface models, and obj 3D models from solid 3D models is an existing technology and will not be elaborated here.

[0032] S103: Obtaining the coordinate value of the roof outline according to the orthophoto and the digital surface model.

[0033] Specifically, after obtaining the orthophoto of the roof, the orthophoto is loaded into the computer and the pixel coordinates of the roof outline in the orthophoto are extracted. At the same time, after obtaining the digital surface model, the digital surface model is loaded and the pixel coordinates of the roof outline are corrected. After pixel correction, the coordinate value of the roof outline is calculated based on the corrected pixel coordinates and the digital orthophoto. Among them, the coordinate value of the roof outline is the WGS-84 coordinate (World Geodetic System-1984 Coordinate System, WGS-84), and the method for calculating the coordinate value of the roof outline is a prior art, which will not be elaborated here.

[0034] The pixel correction method is as follows: the channel array in the digital surface model includes width and height, and if the pixel coordinate exceeds the corresponding width and height, it is unreasonable, that is, the pixel coordinate needs to be corrected.

[0035] S104: After matching the coordinate value of the roof outline with the house entity model, the roof outline information is obtained through a roof outline extraction algorithm.

[0036] Specifically, after obtaining the coordinate value of the roof outline, the coordinate value needs to be brought into the house physical model to determine whether the coordinate value of the roof outline is in the house physical model. If it is determined not to be in the house physical model, the house physical model is scaled according to the coordinate value of the roof outline. Finally, the roof outline extraction algorithm is used on the scaled house physical model to obtain the roof outline information.

[0037] In the implementation of this application, maskrcnn is used to complete the extraction of roof contour information. The method of using maskrcnn to extract roof contour information is a commonly used technical means in the field and will not be elaborated here.

[0038] The extraction formula is:

[0039] S105: Obtaining roof structure information according to the roof outline information based on a preset calculation model.

[0040] The roof structure information includes the spatial intersection lines of each roof surface and the vertices of each roof surface.

[0041] In the embodiment of the present application, obtaining roof structure information according to roof outline information includes the following steps: first, obtaining a roof point cloud according to the roof outline information using a directional bounding box. Then, the roof point cloud is segmented by a region growing algorithm to obtain at least one independent roof information. Further, based on the independent roof information, a plane equation of each independent roof is generated. Finally, based on the plane equation, the spatial intersection lines of each roof are obtained, and the roof vertices are extracted by a vertex extraction algorithm.

[0042] In the first step, according to the roof outline information, the Oriented Bounding Box (OBB) is solved to obtain the point cloud data of the roof, and then the outliers in the roof point cloud are deleted.

[0043] The second step is to segment the roof point cloud using a region growing algorithm. The region growing algorithm is used to segment faces with different normal vectors, and at least one independent roof information can be obtained.

[0044] The third step is to generate a plane equation based on the independent roof information. Specifically, based on the least squares plane fitting algorithm, the plane equation of the corresponding roof is obtained.i ,y i , z i ), i=0,1,...,n-1, fitting plane equation, the plane equation is: Where a0, a1, a2 are the plane equation parameters.

[0045] By solving the system of equations: Get the plane equation parameters a0, a1, a2.

[0046] The fourth step is to obtain the spatial intersection lines of each roof based on the plane equation. Specifically, calculate the intersection direction vector: (a,b,c) is a point on the intersection line, and (d,e,f) is the direction vector of the intersection line.

[0047] The fifth step is to extract the vertices of each independent roof information through the vertex extraction algorithm. The vertex extraction algorithm usually uses a point cloud key point extraction algorithm based on curvature.

[0048] This application provides a roof geometry intelligent extraction system, which adopts the following technical solutions: Reference Figure 2 , a roof geometry intelligent extraction system, comprising: An image acquisition module 201 is used to acquire an aerial image of a target roof; The coordinate calculation module 202 is used to generate an orthophoto, a digital surface model and a house entity model of the target roof according to the aerial image of the target roof, and obtain the coordinate value of the roof outline according to the orthophoto and the digital surface model.

[0049] The model matching module 203 is used to match the coordinate value of the roof outline with the house entity model, and then obtain the roof outline information through the roof outline extraction algorithm.

[0050] The profile calculation module 204 is used to obtain roof structure information according to the roof profile information based on a preset calculation model.

[0051] Figure 3 A schematic diagram of the structure of a terminal suitable for implementing an embodiment of the present application is shown.

[0052] like Figure 3As shown, the terminal includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage part to the random access memory (RAM) 303. In the RAM 303, various programs and data required for system operation are also stored. The CPU 301, the ROM 302 and the RAM 303 are connected to each other through a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0053] The following components are connected to the I / O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.

[0054] In particular, according to the embodiments of the present application, the above reference process Figure 1 The described process can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program contains program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 309, and / or installed from the removable medium 311. When the computer program is executed by the central processing unit (CPU) 301, the above-mentioned functions defined in the system of the present application are executed.

[0055] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, register file (RF), etc., or any suitable combination of the above.

[0056] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the aforementioned module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0057] The units or modules involved in the embodiments described in the present application may be implemented by software or hardware. The units or modules described may also be set in a processor, for example, it may be described as: a processor includes an image acquisition module 201, a coordinate calculation module 202, a model matching module 203, and a contour calculation module 204. The names of these units or modules do not constitute limitations on the units or modules themselves in some cases.

[0058] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the terminal described in the above embodiment; or may exist independently and not be assembled into the terminal. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the roof geometry intelligent extraction method described in the present application.

[0059] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A method for intelligent extraction of roof geometry, characterized in that: include: Acquire aerial images of the target roof; According to the aerial image of the target roof, an orthophoto, a digital surface model and a house entity model of the target roof are respectively generated; Obtaining coordinate values ​​of the roof outline according to the orthophoto and the digital surface model; After matching the coordinate value of the roof outline with the house entity model, the roof outline information is obtained through a roof outline extraction algorithm; According to the roof profile information, based on a preset calculation model, roof structure information is obtained.

2. The intelligent extraction method of roof geometry according to claim 1 is characterized in that: The roof structure information includes the spatial intersection lines of each roof surface. According to the roof outline information, based on a preset calculation model, the roof structure information is obtained, including: According to the roof outline information, a directional bounding box is used to obtain a roof point cloud; Segment the roof point cloud by using the region growing algorithm to obtain at least one independent roof information; Generate a plane equation of each independent roof according to the independent roof information; According to the plane equation, the spatial intersection lines of each roof are obtained.

3. The intelligent extraction method of roof geometry structure according to claim 2 is characterized in that: Before segmenting the roof point cloud by the region growing algorithm to obtain at least one independent roof information, the following steps are also included: Outlier points in the roof point cloud obtained by the directional bounding box are deleted.

4. The intelligent extraction method of roof geometry structure according to claim 2 is characterized in that: According to the independent roof information, a plane equation of each independent roof is generated, including: According to the independent roof information, based on the least squares plane fitting algorithm, a plane equation of the corresponding roof is obtained; With n points, (x i ,y i , z i ), i=0,1,...,n-1, fitting plane equation, the plane equation is: Where a0, a1, a2 are the plane equation parameters.

5. The method for intelligent extraction of roof geometry according to claim 4, characterized in that: According to the plane equation, the spatial intersection lines of each roof are obtained, including: Calculating the plane equation parameters; Calculate the intersection direction vector: (a,b,c) is a point on the intersection line, and (d,e,f) is the direction vector of the intersection line.

6. The intelligent extraction method of roof geometry structure according to claim 1, characterized in that: According to the orthophoto and the digital surface model, the coordinate values ​​of the roof outline are obtained, including: According to the orthophoto, the pixel coordinates of the roof outline of the target roof are obtained; According to the digital surface model, obtaining a channel array of the digital surface model; The pixel coordinates of the roof outline are matched with the channel array of the digital surface model to obtain the coordinate values ​​of the roof outline.

7. The intelligent extraction method of roof geometry structure according to claim 1, characterized in that: After matching the coordinate values ​​of the roof outline with the house entity model, the roof outline information is obtained through the roof outline extraction algorithm, including: Determining whether the coordinate value of the roof outline is in the house entity model; If it is determined that the roof is not present, scaling the house entity model according to the coordinate values ​​of the roof outline; The roof outline extraction algorithm is used on the scaled house entity model to obtain the roof outline information.

8. An intelligent extraction system for roof geometry, characterized in that: include: An image acquisition module (201) is used to acquire an aerial image of a target roof; A coordinate calculation module (202) is used to generate an orthophoto image, a digital surface model and a house entity model of the target roof according to the aerial image of the target roof; and obtain the coordinate value of the roof outline according to the orthophoto image and the digital surface model; a model matching module (203) is used to match the coordinate value of the roof outline with the house entity model, and then obtain the roof outline information through a roof outline extraction algorithm; The profile calculation module (204) is used to obtain roof structure information according to the roof profile information based on a preset calculation model.

9. A terminal comprising a memory and a processor, wherein a computer program is stored in the memory, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.