Building height determination method and device, electronic equipment and storage medium
Through the combination of vector data and oblique image data, the building height is determined, which solves the problems of human error and data inaccuracy in traditional methods, and achieves high-precision, low-cost building height calculations.
Patent Information
- Application Number
- CN202310983796.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-04
- Publication Date
- 2024-10-18
AI Technical Summary
Traditional methods have problems with human errors, incomplete shadow extraction, and inaccurate satellite stereoscopic data when determining building heights, resulting in measurement errors and inability to accurately determine building heights.
By obtaining the vector data and tilt image data of the building, the centroid point of the building is determined, and the ground points and vertices are obtained in the tilt image data. The height of the building is calculated using affine transformation and image matching technology, which reduces manual intervention and improves calculations. Accuracy and efficiency.
It achieves accurate calculation of building height, reduces data costs, improves calculation efficiency and automation, and avoids error problems in traditional methods.
Smart Images

Figure CN118794402A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of surveying and mapping technology, and specifically relates to a method, device, electronic device and storage medium for determining the height of a building. Background Art
[0002] With the development of remote sensing and telemetry technology, remote sensing satellite image shooting and processing technology has gradually matured, and high-resolution remote sensing satellite images are becoming easier to obtain. At the same time, with the development of geographic information technology, people's demand for the expression of geographic information has gradually expanded from two-dimensional to three-dimensional, especially in the fields of urban planning, smart cities, digital twins, etc., and people's requirements for building height information are becoming more and more accurate. The traditional methods of determining building height data are mainly: manually measuring the length of the building facade, using the building shadow information to calculate the building height, and using satellite stereo images to extract the building height.
[0003] However, manually measuring the length of building facades will introduce human errors, using building shadow information to calculate building height will have the problem of incomplete shadow extraction, and using satellite stereo images to extract building height will have the problem of inaccurate digital surface model data of the area extracted using satellite stereo images, which will lead to errors in building height measurement and the inability to accurately determine the building height. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device and storage medium for determining the height of a building, which can solve the problem that errors exist in measuring the height of a building and the height of the building cannot be accurately determined.
[0005] In a first aspect, an embodiment of the present application provides a method for determining the height of a building, the method comprising: obtaining vector data and oblique image data of a building; determining a centroid point of the building according to the vector data; obtaining a ground point of the building corresponding to the centroid point in the oblique image data;
[0006] The vertex of the building corresponding to the centroid point in the oblique image data is obtained; and the height of the building is determined according to the vertex of the building and the ground point of the building.
[0007] In a second aspect, an embodiment of the present application provides a device for determining the height of a building, the device comprising: a first acquisition module, for acquiring vector data and oblique image data of a building; a first determination module, for determining the centroid point of the building based on the vector data; a second acquisition module, for acquiring the ground point of the building corresponding to the centroid point in the oblique image data; a third acquisition module, for acquiring the vertex of the building corresponding to the centroid point in the oblique image data; and a second determination module, for determining the height of the building based on the building vertex and the building ground point.
[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0010] In an embodiment of the present application, by acquiring vector data and oblique image data of a building; determining the center of mass of the building based on the vector data; acquiring the ground point of the building corresponding to the center of mass point in the oblique image data; acquiring the vertex of the building corresponding to the center of mass point in the oblique image data; and determining the height of the building based on the building vertex and the ground point of the building, the height of the building can be calculated based on the vector data and the oblique image data, the calculation accuracy is accurate and reliable, the calculation process involves less data, the data cost is low, and the efficiency of the building height is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 It is a flowchart of a method for determining the height of a building provided in an embodiment of the present application;
[0012] Figure 2 It is a structural schematic diagram of a device for determining the height of a building provided in an embodiment of the present application;
[0013] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0014] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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.
[0015] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0016] In conjunction with the accompanying drawings, the method, device, electronic device and storage medium for determining the building height provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.
[0017] Figure 1 A method for determining the height of a building provided by an embodiment of the present invention is shown. The method can be executed by an electronic device, and the electronic device may include: a server and / or a terminal device. In other words, the method can be executed by software or hardware installed in the electronic device, and the method includes the following steps:
[0018] Step 102: Obtain vector data and oblique image data of the building.
[0019] Specifically, before calculating the height of a building, it is necessary to first obtain the vector data and oblique image data of the building. The vector data is the geographic information data of the building represented in vector form. The vector data uses geometric elements such as points, lines, and surfaces to describe the geometric shape of the building, and can also contain attribute information, etc. The oblique image data is the image data of the building taken from an oblique perspective, focusing on capturing the three-dimensional appearance and details of the building.
[0020] Step 104: Determine the centroid of the building based on the vector data.
[0021] Specifically, the centroid of the building can be calculated based on the building layer in the vector data. After the calculation is completed, the row and column numbers of the centroid can be recorded to obtain the centroid of the building.
[0022] Step 106: Obtain the ground point of the building corresponding to the centroid point in the oblique image data.
[0023] Specifically, after obtaining the centroid point, it is necessary to find the ground point of the building corresponding to the centroid point in the oblique image data.
[0024] In one implementation, the step of obtaining the ground point of the building corresponding to the centroid point in the oblique image data includes:
[0025] Acquire digital orthophoto data of the building; determine the ground homonymous points of the ground position of the building in the digital orthophoto data and the oblique image data; acquire a first triangular area where the point corresponding to the centroid point in the digital orthophoto data is located, the vertices of the first triangular area are the ground homonymous points in the digital orthophoto data; acquire a second triangular area corresponding to the first triangular area in the oblique image data, the vertices of the second triangular area are the ground homonymous points in the oblique image data; determine an affine transformation coefficient based on the vertices of the second triangular area; transform the centroid point based on the affine transformation coefficient to obtain the ground point of the building corresponding to the centroid point in the oblique image data.
[0026] Specifically, before obtaining the ground point of the building corresponding to the centroid point in the oblique image data, it is necessary to first obtain the digital orthophoto data (Digital Orthophoto Map, DMO) of the building, which is a geographic information product. By using digital photography technology and ground control points, the oblique image is corrected to present a geometrically corrected image corresponding to the geometric shape of the earth's surface. For digital orthophoto data and oblique image data, the SIFT feature extraction method can be used to obtain the ground homonymous point data of the two images. The ground homonymous points of the digital orthophoto data and the oblique image data can form homonymous point pairs as the basis for matching the two image data.
[0027] When determining the ground point of the building corresponding to the centroid point in the oblique image data, the small facet correction method can be used according to the centroid position of the building to calculate the corresponding position of the point on the oblique image data. The main steps are:
[0028] Step 1: Construct TIN from points of the same name
[0029] For the same-name points on the ground of DOM and oblique images, irregular triangulated network (TIN) data of the survey area are constructed respectively. Here, the point set of DOM can be used for construction. After completion, the oblique image data point set is organized in the order of DOM. Here, the original same-name point pairs become triangular areas (small facets) divided by triangulated networks.
[0030] Step 2: Calculate the position of the oblique image
[0031] According to the current building centroid position, and the DOM triangulation network position judgment, find the first triangular area containing the centroid, find the second triangular area (small facet) corresponding to the first triangular area in the TIN of the oblique image data, and use the triangular correspondence to establish the affine transformation relationship. The formula is as follows:
[0032]
[0033] Bring the three vertices of the second triangular area (small face element) into the model, sort them out, and transform them into the following form.
[0034]
[0035] The solution of the above equations is calculated by using the least squares method, and the affine transformation coefficients of the affine transformation parameters a0, a1, a2, b0, b1, and b2 are obtained. An affine transformation model is established based on the affine transformation coefficients to transform the centroid point and find the position of the point on the oblique image data. This position is the position of the ground point corresponding to the roof on the oblique image data, that is, the ground point of the building corresponding to the above centroid point in the oblique image data.
[0036] Step 108: Obtain the vertex of the building corresponding to the centroid point in the oblique image data.
[0037] In the embodiment of the present application, it is also necessary to obtain the vertex of the building corresponding to the centroid point in the oblique image data.
[0038] Specifically, in one implementation, obtaining the vertex of the building corresponding to the centroid point in the oblique image data includes:
[0039] The centroid point is projected into the oblique image data; an area to be searched is determined in the oblique image data according to the centroid point; a position point in the area to be searched that matches the building vertex data is determined as the vertex of the building corresponding to the centroid point in the oblique image data, and the building vertex data is obtained by windowing in the digital orthophoto data according to the centroid point.
[0040] Specifically, to obtain the vertices of the building corresponding to the centroid point in the oblique image data, image data matching is required. First, the centroid point position is projected onto the oblique image data to obtain the row and column numbers corresponding to the image. The oblique image is selected by expanding the preset pixels around the row and column number as the center. The preset pixels can be set, for example, 200 pixels. The building vertex data is used as input to perform a sliding window search and match in the search area, wherein the building vertex data is windowed on the digital orthophoto according to the centroid point position, and the size is preset pixels. The windowed building vertex data will be used as the building vertex data for subsequent image matching to accurately find the corresponding vertex position in the oblique image. The matching method selects the Normalized Correlation Coefficient (NCC), and the specific formula is as follows:
[0041]
[0042] Where: ρ(x,y) represents the correlation coefficient between the two images, and its value range is -1 to 1, -1 means the two vectors are uncorrelated, and 1 means the two vectors are correlated. m and n are the size of the image, the number of pixels in rows and columns. x,y (i,j) represents the pixel value of the S image at position (i,j). Represents the average pixel value of the S image. g(i,j) represents the pixel value of the g image at position (i,j). Indicates the pixel average value of the g image. According to the above method, find the location point that matches the building vertex data on the oblique image, and determine the location point as the vertex of the building.
[0043] Step 110: Determine the height of the building according to the building vertex and the building ground point.
[0044] Specifically, after obtaining the building vertices and the building ground points, the height of the building can be determined according to the building vertices and the building ground points.
[0045] The method for determining the height of a building provided by an embodiment of the present invention, in the embodiment of the present application, obtains vector data and oblique image data of the building; determines the center of mass of the building based on the vector data; obtains the ground point of the building corresponding to the center of mass point in the oblique image data; obtains the vertex of the building corresponding to the center of mass point in the oblique image data; determines the height of the building based on the building vertex and the ground point of the building, and can calculate the height of the building based on the vector data and the oblique image data, with accurate and reliable calculation accuracy, without the need for human intervention, and can realize the automation of building extraction. The calculation process involves less data, which is beneficial to reducing costs and increasing efficiency in production. Compared with traditional methods, it has the advantages of high efficiency, high accuracy, and high degree of automation.
[0046] In one implementation, the determining of the ground homonymous points of the ground position of the building in the digital orthophoto data and the oblique image data comprises:
[0047] Obtain pairs of homonymous points in the digital orthophoto data and the oblique image data; superimpose the vector data with the digital orthophoto data to obtain homonymous points inside the building; delete the homonymous points inside the building from the pairs of homonymous points to obtain ground homonymous points at the ground position of the building.
[0048] Specifically, for DOM data and oblique image data, the SIFT feature extraction method is used to obtain the same-name point pair data of the two images as the basis for matching the two image data. The building layer in the vector data is used to overlay the DOM and the same-name points, calculate all the same-name points inside the building, and delete these same-name points from the same-name point pairs, retaining the same-name point pairs at the ground position, and then the ground same-name points at the ground position of the building in the oblique image data can be obtained, ensuring that the error caused by the building tilt on the matching calculation is reduced in subsequent use.
[0049] In one implementation, determining the height of the building according to the building vertex and the building ground point includes:
[0050] According to the vertices and the ground points, a real coordinate equation group is established through a rational polynomial coefficient model; according to the real coordinate equation group, the real coordinates corresponding to the vertices and the ground points are calculated; and the height of the building is determined from the real coordinates.
[0051] Specifically, according to the above steps, the building vertex and its corresponding ground point are found. Assuming that the coordinates of the ground point are (b, l, h), the coordinates of the point on the top of the building are (b, l, h + h'). Therefore, according to the RPC propagation model of the oblique image, the equation group is established as follows:
[0052]
[0053] Transforming the above formula, we get the following equation:
[0054]
[0055] (S1, L1) is the row and column number of the ground point corresponding to the centroid point on the oblique image data. (S2, L2) is the row and column number of the vertex corresponding to the centroid point on the oblique image data. DENS, NUMS, DENL, NUML: are the RPC parameter information of the oblique image data. They are all in the form of rational polynomials, in the format of
[0056] P(B,L,H)=a0+a1*B+a2*L+a3*H+a4*BL+a5*BH+a6*LH+a7*B 2 +a8*L 2
[0057] +a9*H 2 +a 10 *BLH+a 11 *B 2 L+a 12 *B 2 H+a 13 *BL 2 +a 14 *L 2 H+a 15
[0058] *BH 2 +a 16 *LH 3 +a 17 *B 3 +a 18 *L 3 +a 19 *H 3
[0059] And B, L, H are the values after the latitude and longitude coordinates are standardized. The standardization formula is as follows:
[0060]
[0061] At this point, the association relationship between the two coordinates of the centroid and the real coordinates has been established. It only needs to be solved to calculate the value of the real coordinates (b, l, h, h') according to the association relationship.
[0062] Step 2: Solve the system of equations
[0063] In order to calculate the real coordinates, the above equations need to be linearized.
[0064] f(b,l,h,h′)=S1*DENS1(b,l,h+h′)-NUMS1(b,l,h+h′)
[0065] According to Taylor's formula, f(b,l,h) can be expanded as
[0066] f(b,l,h,h′)=f(b0,l0,h0,h′0)+f b ′(b0,l0,h0,h′0)b+f l ′(b0,l0,h0,h′0)l+f h ′(b0,l0,h0,h′0)h
[0067] +f h ' ′ (b0,l0,h0,h′0)h′
[0068] and:
[0069]
[0070]
[0071]
[0072]
[0073] in:
[0074] f(b0,l0,h0,h′0) is the value of the equation at the expansion point (b0,l0,h0,0), where (b0,l0,h0) can be set to the average of the ground coordinates corresponding to the two images of the same point, and h′0 is 0.
[0075] It is the derivative of the coordinate normalization equations with respect to the four elements of the real coordinates. The specific results are:
[0076]
[0077]
[0078]
[0079]
[0080] is the partial derivative of the rational polynomial with respect to B, L, and H, For example, the partial derivative equation is as follows:
[0081]
[0082] Step 3: Iterate and solve the system of equations
[0083] According to step 2, the original system of equations is linearized to obtain the following system of equations:
[0084]
[0085] Where: express , which is the formula The value at (b0,l0,h0,h′0).
[0086] For the above equation group, the least square method is used to calculate the coordinate value (b0, l0, h0, h′0), and the result is (b1, l1, h1, h′1). It is judged whether the relationship between the result and the previous expansion point meets the set conditions. The conditions can be set as follows:
[0087] b n -b n-1 <0.0000001&&l n -l n-1 <0.0000001&&h n -h n-1 <0.001&&h′0-h′1<0.001
[0088] If the set conditions are met, the calculation ends and (b1, l1, h1, h′1) is the real ground coordinate corresponding to the same name point. Otherwise, repeat steps 2 and 3 of the above equation group at (b1, l1, h1, h′1) until the set conditions are met. At this time, h n is the elevation of the building ground point, h′ n It is the building height information.
[0089] In one implementation, after determining the height of the building from the real coordinates, the method further includes:
[0090] Acquire the elevation information of the building; determine the height confidence according to the elevation information and the height of the building, wherein the height confidence is used to indicate the calculation accuracy of the height of the building.
[0091] Specifically, by obtaining the height h of the building ground point n , and through the longitude and latitude (b n ,l n ) is matched with DEM to obtain the elevation information h of the point, and the elevation h is calculated in combination with the ground point of the building n , calculate the confidence level of the building height, the specific public announcement is:
[0092]
[0093] CL is the building height confidence. The higher the confidence, the more accurate the building height calculation. In the process of using the building height, the building height confidence data can be combined for comprehensive judgment. After the above calculation, the calculation of the height of a single building is completed, and all the building data of the vector layer are traversed, that is, the calculation of the height of all buildings is completed.
[0094] It should be noted that the method for determining the building height provided in the embodiment of the present application can be executed by a device for determining the building height, or a control module in the device for determining the building height for executing the method for determining the building height. In the embodiment of the present application, the device for determining the building height provided in the embodiment of the present application is described by taking the method for determining the building height executed by the device for determining the building height as an example.
[0095] Figure 2 Schematic diagram of the structure of a device for determining building height according to an embodiment of the present invention. Figure 2 As shown, the apparatus 200 for determining the building height includes: a first acquisition module 210 , a first determination module 220 , a second acquisition module 230 , a third acquisition module 240 and a second determination module 250 .
[0096] The first acquisition module 210 is used to acquire the vector data and oblique image data of the building; the first determination module 220 is used to determine the centroid point of the building based on the vector data; the second acquisition module 230 is used to acquire the ground point of the building corresponding to the centroid point in the oblique image data; the third acquisition module 240 is used to acquire the vertex of the building corresponding to the centroid point in the oblique image data; the second determination module 250 is used to determine the height of the building based on the vertex of the building and the ground point of the building.
[0097] In one implementation, the second acquisition module 230 is used to acquire the digital orthophoto data of the building; determine the ground homonymous points of the ground position of the building in the digital orthophoto data and the oblique image data; acquire the first triangular area where the point corresponding to the centroid point in the digital orthophoto data is located, and the vertices of the first triangular area are the ground homonymous points in the digital orthophoto data; acquire the second triangular area corresponding to the first triangular area in the oblique image data, and the vertices of the second triangular area are the ground homonymous points in the oblique image data; determine the affine transformation coefficient based on the vertices of the second triangular area; transform the centroid point according to the affine transformation coefficient to obtain the ground point of the building corresponding to the centroid point in the oblique image data.
[0098] In one implementation, the third acquisition module 240 is used to project the centroid point into the oblique image data; determine the area to be searched in the oblique image data based on the centroid point; determine the position point in the area to be searched that matches the building vertex data as the vertex of the building corresponding to the centroid point in the oblique image data, and the building vertex data is obtained by windowing in the digital orthophoto data based on the centroid point.
[0099] In one implementation, the second acquisition module 230 is used to obtain pairs of homonymous points in the digital orthophoto data and the oblique image data; superimpose the vector data with the digital orthophoto data to obtain homonymous points inside the building; delete the homonymous points inside the building from the pairs of homonymous points to obtain ground homonymous points at the ground position of the building.
[0100] In one implementation, the second determination module 250 is used to establish a real coordinate equation group based on the vertices and the ground points through a rational polynomial coefficient model; calculate the real coordinates corresponding to the vertices and the ground points based on the real coordinate equation group; and determine the height of the building from the real coordinates.
[0101] In one implementation, the second determination module 250 is further used to obtain the elevation information of the building; determine the height confidence according to the elevation information and the height of the building, and the height confidence is used to represent the calculation accuracy of the height of the building.
[0102] The building height determination device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0103] The building height determination device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0104] The building height determination device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0105] Alternatively, if Figure 3As shown, an embodiment of the present application further provides an electronic device 300, including a processor 301 and a memory 302, wherein the memory 302 stores a program or instruction that can be run on the processor 301, and the program or instruction, when executed by the processor 301, implements: obtaining vector data and oblique image data of a building; determining the centroid point of the building based on the vector data; obtaining the ground point of the building corresponding to the centroid point in the oblique image data; obtaining the vertex of the building corresponding to the centroid point in the oblique image data; and determining the height of the building based on the building vertex and the building ground point.
[0106] In one implementation, digital orthophoto data of the building is obtained; ground homonymous points of the ground position of the building are determined in the digital orthophoto data and the oblique image data; a first triangular area where the point corresponding to the centroid point in the digital orthophoto data is located is obtained, and the vertices of the first triangular area are the ground homonymous points in the digital orthophoto data; a second triangular area corresponding to the first triangular area in the oblique image data is obtained, and the vertices of the second triangular area are the ground homonymous points in the oblique image data; an affine transformation coefficient is determined based on the vertices of the second triangular area; and the centroid point is transformed based on the affine transformation coefficient to obtain the ground point of the building corresponding to the centroid point in the oblique image data.
[0107] In one implementation, the centroid point is projected into the oblique image data; an area to be searched is determined in the oblique image data based on the centroid point; and a position point in the area to be searched that matches the building vertex data is determined as the vertex of the building corresponding to the centroid point in the oblique image data, the building vertex data being obtained by windowing in the digital orthophoto data based on the centroid point.
[0108] In one implementation, obtain the same-name point pairs in the digital orthophoto data and the oblique image data; superimpose the vector data with the digital orthophoto data to obtain the same-name points inside the building; delete the same-name points inside the building from the same-name point pairs to obtain the ground same-name points at the ground position of the building.
[0109] In one implementation, a real coordinate equation group is established based on the vertices and the ground points through a rational polynomial coefficient model; the real coordinates corresponding to the vertices and the ground points are calculated based on the real coordinate equation group; and the height of the building is determined from the real coordinates.
[0110] In one implementation, after determining the height of the building from the real coordinates, the elevation information of the building is obtained; and the height confidence is determined according to the elevation information and the height of the building, wherein the height confidence is used to represent the calculation accuracy of the height of the building.
[0111] The specific execution steps can refer to the various steps of the above-mentioned building height determination method embodiment, and can achieve the same technical effect. To avoid repetition, they will not be repeated here.
[0112] It should be noted that the electronic devices in the embodiments of the present application include: servers, terminals, or other devices except terminals.
[0113] The above electronic device structure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the input unit may include a graphics processing unit (GPU) and a microphone, and the display unit may be configured with a display panel in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit includes a touch panel and at least one of other input devices. The touch panel is also called a touch screen. Other input devices may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0114] The memory can be used to store software programs and various data. The memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DRRAM).
[0115] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor.
[0116] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned method for determining the height of a building is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0117] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as ROM, RAM, magnetic disk or optical disk.
[0118] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0119] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0120] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for determining the height of a building, It is characterized in that include: Obtain vector data and oblique image data of buildings; Determine the centroid of the building according to the vector data; Obtaining the ground point of the building corresponding to the centroid point in the oblique image data; Obtaining the vertex of the building corresponding to the centroid point in the oblique image data; The height of the building is determined according to the building vertex and the building ground point.
2. The determination method according to claim 1, It is characterized in that The obtaining the ground point of the building corresponding to the centroid point in the oblique image data comprises: Obtaining digital orthophoto data of the building; Determining ground homonymous points of the ground position of the building in the digital orthophoto data and the oblique image data; Acquire a first triangular area where a point corresponding to the centroid point in the digital orthophoto data is located, wherein the vertices of the first triangular area are ground points of the same name in the digital orthophoto data; Acquire a second triangular area corresponding to the first triangular area in the oblique image data, wherein the vertices of the second triangular area are the ground points of the same name in the oblique image data; Determining affine transformation coefficients according to the vertices of the second triangular area; The centroid point is transformed according to the affine transformation coefficient to obtain the ground point of the building corresponding to the centroid point in the oblique image data.
3. The determination method according to claim 2, It is characterized in that The obtaining the vertex of the building corresponding to the centroid point in the oblique image data comprises: Projecting the centroid point into the oblique image data; Determine a to-be-searched area in the oblique image data according to the centroid point; The position point in the search area that matches the building vertex data is determined as the vertex of the building corresponding to the centroid point in the oblique image data, and the building vertex data is obtained by windowing the digital orthophoto data according to the centroid point.
4. The determination method according to claim 2, It is characterized in that The determining of the ground homonymous points of the ground position of the building in the digital orthophoto data and the oblique image data comprises: Acquire the same-name point pairs in the digital orthophoto data and the oblique image data; Overlaying the vector data with the digital orthophoto data to obtain the same-name points inside the building; The points with the same name inside the building are deleted from the points with the same name pair to obtain the ground points with the same name at the ground position of the building.
5. The determination method according to claim 1, It is characterized in that Determining the height of the building according to the building vertex and the building ground point includes: According to the vertices and the ground points, a real coordinate equation group is established through a rational polynomial coefficient model; According to the real coordinate equation group, the real coordinates corresponding to the vertex and the ground point are calculated; The height of the building is determined from the real coordinates.
6. The determination method according to claim 5, It is characterized in that After determining the height of the building from the real coordinates, the method further comprises: Obtaining elevation information of the building; A height confidence level is determined according to the elevation information and the height of the building, and the height confidence level is used to indicate the calculation accuracy of the height of the building.
7. A device for determining the height of a building, It is characterized in that include: The first acquisition module is used to acquire vector data and oblique image data of buildings; A first determination module is used to determine the centroid point of the building according to the vector data; A second acquisition module is used to acquire the ground point of the building corresponding to the centroid point in the oblique image data; A third acquisition module is used to acquire the vertex of the building corresponding to the centroid point in the oblique image data; The second determination module is used to determine the height of the building according to the building vertex and the building ground point.
8. The device according to claim 7, It is characterized in that The second acquisition module is used to: Obtaining digital orthophoto data of the building; Determining ground homonymous points of the ground position of the building in the digital orthophoto data and the oblique image data; Acquire a first triangular area where a point corresponding to the centroid point in the digital orthophoto data is located, wherein the vertices of the first triangular area are ground points of the same name in the digital orthophoto data; Acquire a second triangular area corresponding to the first triangular area in the oblique image data, wherein the vertices of the second triangular area are the ground points of the same name in the oblique image data; Determining affine transformation coefficients according to the vertices of the second triangular area; The centroid point is transformed according to the affine transformation coefficient to obtain the ground point of the building corresponding to the centroid point in the oblique image data.
9. An electronic device, It is characterized in that The method comprises a processor, a memory and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method for determining the building height as described in any one of claims 1 to 6.
10. A readable storage medium, It is characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the method for determining the building height as described in any one of claims 1-6 are implemented.
