Building height determination method, electronic equipment and storage medium

By obtaining the vector data and stereo image pair data of the building, determining the internal position points and top coordinates of the building, and calculating the height of the building based on the ground coordinates, the problem of large errors in traditional methods is solved, and high-precision and efficient buildings are achieved. Height calculation.

CN118799720APending Publication Date: 2024-10-18CHINA MOBILE GROUP SHANDONG +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311117225.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-31
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Traditional methods have problems such as human errors, incomplete shadow extraction, and inaccurate digital surface model data when measuring building heights, resulting in errors in building height measurement and making it impossible to accurately determine building heights.

Method used

By obtaining the vector data and stereo image pair data of the building, the location points and top coordinates inside the building are determined, and the height of the building is calculated based on the ground coordinates. The matching technology of vector data and stereo image data is used to improve calculation accuracy and efficiency.

Benefits of technology

It achieves accurate measurement of building height, reduces errors, and improves measurement efficiency. The calculation process involves less data, has low data cost, and is automated.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799720A_ABST
    Figure CN118799720A_ABST
Patent Text Reader

Abstract

The invention discloses a method for determining the height of a building, electronic equipment and a storage medium, belongs to the technical field of surveying and mapping, and is used for improving the measurement and calculation accuracy of the height of the building, and the method comprises the steps: obtaining vector data and stereopair data of the building; determining a position point in the building according to the vector data; determining a first homonymy point pair corresponding to the position point in the stereo image pair data; determining a top coordinate of a building corresponding to the first homonymy point pair in the stereo image pair data; acquiring ground coordinates of ground points around the building; and determining the height of the building according to the top coordinate and the ground coordinate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of surveying and mapping technology, and specifically relates to a method for determining the height of a building, an electronic device, and a storage medium. 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 for determining the height of a building, an electronic device, and a storage medium, 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 stereo image pair data of the building; determining a position point inside the building based on the vector data; determining a first same-name point pair corresponding to the position point in the stereo image pair data; determining the top coordinates of the building corresponding to the first same-name point pair in the stereo image pair data; obtaining the ground coordinates of ground points around the building; and determining the height of the building based on the top coordinates and the ground coordinates.

[0006] 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, used to acquire vector data and stereo image pair data of a building; a first determination module, used to determine a location point inside the building based on the vector data; a second determination module, used to determine a first pair of same-name points corresponding to the location point in the stereo image pair data; a third determination module, used to determine the top coordinates of the building corresponding to the first pair of same-name points in the stereo image pair data; a second acquisition module, used to acquire the ground coordinates of ground points around the building; and a fourth determination module, used to determine the height of the building based on the top coordinates and the ground coordinates.

[0007] 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.

[0008] 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.

[0009] In an embodiment of the present application, by acquiring vector data and stereo image pair data of a building; determining a location point inside the building based on the vector data; determining a first pair of same-name points corresponding to the location point in the stereo image pair data; determining the top coordinates of the building corresponding to the first pair of same-name points in the stereo image pair data; acquiring the ground coordinates of ground points around the building; and determining the height of the building based on the top coordinates and the ground coordinates, the height of the building can be calculated by combining the vector data and the stereo image pair data of the building, the calculation accuracy is accurate and reliable, the calculation process involves less data, the data cost is low, and the efficiency of measuring the height of the building is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 It is a flowchart of a method for determining the height of a building provided in an embodiment of the present application;

[0011] Figure 2 It is a flow chart of a device for determining the height of a building provided in an embodiment of the present application;

[0012] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0013] 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.

[0014] 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.

[0015] In conjunction with the accompanying drawings, the method for determining the building height, the electronic device and the storage medium provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios.

[0016] 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:

[0017] Step 102: Obtain vector data and stereo image pair data of the building.

[0018] Specifically, before calculating the height of a building, it is necessary to first obtain the vector data and stereo image pair 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 may also contain attribute information, etc. The stereo image pair data is a pair of images taken of the same building from two different locations. For example, the stereo image pair data of a building may include the front view image and the rear view image of the building.

[0019] Step 104: Determine the location point inside the building according to the vector data.

[0020] Specifically, in order to reduce random errors and increase robustness, a location point inside the building may be obtained from the vector data of the building, and the location point may be any point inside the building.

[0021] In one implementation, the location point includes a centroid point and a corner point of a building, and determining the location point inside the building according to the vector data includes:

[0022] Traverse the layer of the building in the vector data to obtain the outline of the building; determine the centroid of the building according to the outline of the building; perform corner point detection on the layer of the building to determine the corner point located inside the building.

[0023] Specifically, the building layer in the vector data can be traversed to obtain the outline of the building, and the centroid of the building graphic can be calculated using the centroid calculation method of the graphic. In addition, the corner point detection can be performed on the building layer to obtain stable corner points. The position of the corner points can be used to open windows to calculate the building outline and the position of the corner points. The corner points inside the building are retained, and the corner points outside the building are deleted. This ensures that the centroid points and corner points are all inside the building, avoiding the feature points on the edge of the building being selected to improve the accuracy of image matching.

[0024] Step 106: Determine a first point pair with the same name corresponding to the position point in the stereoscopic image pair data.

[0025] In the embodiment of the present application, it is necessary to determine the first point pair with the same name corresponding to the position point in the stereoscopic image pair data.

[0026] Specifically, in one implementation, determining the first point pair with the same name corresponding to the position point in the stereoscopic image pair data includes:

[0027] Acquire digital orthophoto data of the building; open a window in the digital orthophoto data according to the location point to obtain a top template of the top of the building; project the location point into the stereo image pair data and determine a search area in the stereo image pair data with the location point as the center; perform search and matching in the search area according to the top template to obtain the first same-name point pair.

[0028] First, obtain the orthophoto data of the building (Digital Orthophoto Map, DMO), which is a remote sensing image with orthophoto projection properties. After obtaining the above-mentioned location points, it is necessary to open a window on the digital orthophoto image based on the location points. For example, a window is opened on the digital orthophoto image according to the position of the centroid point. The window size can be 11*11 pixels, and then the top template of the building top can be obtained to lay the foundation for image matching.

[0029] Project the position point to the stereo image pair data, obtain the row and column numbers in the stereo image pair, and expand 200 pixels (settable) around the row and column numbers to select the area to be searched. At the same time, use the top template data of the building top as input to perform sliding window search and matching in the area to be searched. The matching method selects the normalized correlation coefficient method (NCC). The specific formula is as follows:

[0030]

[0031] 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, the first same-name point pair matching the position point can be found on the stereo image pair data. For example, the first same-name point pair corresponding to the centroid point can be found in the front view and rear view images of the stereo image pair data.

[0032] Step 108: Determine the top coordinates of the building corresponding to the first pair of points with the same name in the stereo image pair data.

[0033] Specifically, after obtaining the first same-name point pair in the stereo image pair data, it is necessary to determine the top coordinates of the top of the building according to the first same-name point pair data.

[0034] In one implementation, determining the top coordinates of the building corresponding to the first pair of like-named points in the stereoscopic image pair data includes: establishing a set of equations based on the stereoscopic image pair data and the first pair of like-named points, the set of equations including the association relationship between the first pair of like-named points and the top coordinates; and solving the set of equations to obtain the top coordinates.

[0035] Specifically, establishing a set of equations for the first pair of points with the same name and the top coordinates by using the intersection method and solving them to obtain the top coordinates of the building includes the following steps:

[0036] Step 1: Establish the equation group of the first same-name point pair and the top coordinate according to the RPC model.

[0037] For the first pair of points with the same name found, according to the stereo pair RPC model, the details are as follows:

[0038]

[0039] The above formula is transformed into the following form:

[0040]

[0041] This equation establishes the relationship between a single pixel point and its real coordinates (latitude, longitude, elevation). For the first pair of points with the same name, the following set of equations can be established:

[0042]

[0043] in:

[0044] (S 1 ,L 1 ) is the row and column number of the front view image of the stereo image pair data; (S 2 ,L 2 ) are the row and column numbers of the rear-view image of the stereo image pair data;

[0045] DENS1, NUMS1, DENL1, NUML1, DENS2, NUMS2, DENL2, NUML2: are the RPC parameter information of the stereo image pair data. They are all in the form of rational polynomials, and the format is:

[0046] P(B,L,H)=a 0 +a 1 *B+a 2 *L+a 3 *H+a 4 *BL+a 5 *BH+a 6 *LH+a 7 *B 2 +a 8 *L 2

[0047] +a 9 *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

[0048] *BH 2 +a 16 *LH 2 +a 17 *B 3 +a 18 *L 3 +a 19 *H 3

[0049] And B, L, H are the values ​​of the latitude and longitude coordinates b, l, h after standardization, and the standardization formula is as follows:

[0050]

[0051] So far, the association relationship between the first pair of points with the same name and its top coordinates has been established, and it only needs to be solved to calculate the value of the top coordinates (b, l, h) according to the association relationship.

[0052] Step 2: Solve the system of equations and linearize them.

[0053] In order to calculate the real coordinates, the above equations need to be linearized.

[0054] f(b,l,h)=S 1 *DENS1(b,l,h)-NUMS1(b,l,h)

[0055] According to Taylor's formula, f(b,l,h) can be expanded as:

[0056] f(b,l,h)=f(b 0 ,l 0 ,h 0 )+f b ′(b 0 ,l 0 ,h 0 )b+f l ′(b 0 ,l 0 ,h 0 )l+f h ′(b 0 ,l 0 ,h 0 )h

[0057] and:

[0058]

[0059]

[0060]

[0061] in:

[0062] f(b 0 ,l 0 ,h 0 ) is the equation at the expansion point (b 0 ,l 0 ,h 0 ) value, where you can set (b 0 ,l0 ,h 0 ) is the average of the ground coordinates corresponding to the two images of the same point.

[0063] It is the derivative of the three elements of the real coordinates of the coordinate normalization equation team. The specific result is:

[0064]

[0065]

[0066]

[0067] is the partial derivative of the rational polynomial with respect to B, L, and H, For example, the partial derivative equation is as follows:

[0068]

[0069] Step 3: Iterate and solve the system of equations.

[0070] According to step 2, the original system of equations is linearized to obtain the following system of equations.

[0071]

[0072] For the above equations, the least square method is used to calculate the (b, l, h) coordinate values, and the result is (b 1 , l 1 ,h 1 ), determine whether the relationship between the result and the previous expansion point meets the set conditions. The conditions that can be set here are:

[0073] b n -b n-1 <0.0000001&&l n -l n-1 <0.0000001&&h n -h n-1 <0.001;

[0074] If the set conditions are met, the calculation ends, then (b 1 , l 1 ,h 1 ) is the top coordinate corresponding to the first pair of points with the same name, otherwise, the above equations are replaced by (b 1 , l 1 ,h 1 ) Repeat steps 2 and 3 until the set conditions are met.

[0075] Step 110: Acquire the ground coordinates of the ground points around the building.

[0076] Specifically, in order to calculate the height of a building, the elevations of the ground points around the building are also required. The elevations of the ground points can be obtained through the ground coordinates of the ground points. Therefore, in the embodiment of the present application, the ground coordinates of the ground points need to be obtained.

[0077] In one implementation, before acquiring the ground coordinates of the ground points around the building, the method further includes:

[0078] In the vector data, the intersection point of the ray starting from the centroid point and the road network layer of the vector data is determined as the ground point.

[0079] Specifically, we can use the road network layer data in the vector data, take the north direction 0 degrees as the starting angle, and follow the angle step of 3 degrees clockwise to draw a ray from the building material center, calculate the intersection with the nearest road network layer, and obtain the ground points around the building. Based on the ground points, repeat the steps of matching the same-name points, forward intersection, etc. to obtain stable elevation data of the ground points around the building.

[0080] Step 112: Determine the height of the building according to the top coordinates and the ground coordinates.

[0081] Specifically, after obtaining the top coordinates and the ground coordinates, the height of the building can be determined according to the top coordinates and the ground coordinates.

[0082] In an embodiment of the present application, by obtaining vector data and stereo image pair data of a building; determining a location point inside the building based on the vector data; determining a first pair of same-name points corresponding to the location point in the stereo image pair data; determining the top coordinates of the building corresponding to the first pair of same-name points in the stereo image pair data; obtaining the ground coordinates of ground points around the building; and determining the height of the building based on the top coordinates and the ground coordinates, the present application can combine the building vector data and the digital orthophoto data to locate the top of the building, use the graphic matching technology to find the corresponding same-name points in the stereo image pair data, use the forward intersection method to calculate the elevation of the building, and use the same method to calculate the elevation of the ground points around the building, and then determine the height of the building. The calculation accuracy is accurate and reliable, and the calculation process involves less data and low data cost, which improves the efficiency of measuring the height of the building. No human intervention is required, and the automation of building extraction can be achieved. Compared with traditional methods, the present invention has the advantages of high efficiency, high accuracy, and high degree of automation. It can provide accurate building height data in the fields of network optimization simulation, digital city, urban planning, three-dimensional visualization, etc., and can provide a better three-dimensional data solution for industries related to map data production.

[0083] In one implementation, the number of the first pairs of points with the same name is multiple, and solving the set of equations to obtain the top coordinates includes:

[0084] Solving multiple sets of equations corresponding to multiple pairs of the first points of the same name to obtain multiple top coordinates to be confirmed; and filtering the multiple top coordinates to be determined to obtain the top coordinates.

[0085] Specifically, in order to reduce random errors and increase robustness, the number of location points may be multiple. For example, the location points include the centroid point and multiple corner points. In this case, the number of first pairs of points with the same name may also be multiple. Then, when calculating the top coordinates corresponding to the first pairs of points with the same name, there will be multiple sets of equations. Multiple sets of equations need to be solved to obtain multiple top coordinates to be determined. Kalman filtering is performed on multiple top coordinates to eliminate noise to obtain the top coordinates, thereby ensuring the accuracy of the top coordinate extraction of the building.

[0086] In one implementation, before determining the location point inside the building according to the vector data, the method further includes:

[0087] Extract a second pair of like-named points between the first perspective data in the stereo image pair data and the orthophoto data; extract a third pair of like-named points between the second perspective data in the stereo image pair data and the orthophoto data; input the second pair of like-named points and the third pair of like-named points into a radial transformation model to obtain radial transformation coefficients; and determine the positional relationship between the stereo image pair data and the ground based on the radial transformation coefficients.

[0088] In one implementation, before determining the location point inside the building according to the vector data, the method further includes:

[0089] Extract a second pair of like-named points between the first perspective data in the stereo image pair data and the orthophoto data; extract a third pair of like-named points between the second perspective data in the stereo image pair data and the orthophoto data; input the second pair of like-named points and the third pair of like-named points into a radial transformation model to obtain radial transformation coefficients; and determine the positional relationship between the stereo image pair data and the ground based on the radial transformation coefficients.

[0090] Specifically, the stereo image pair data needs to be oriented with the ground data. Based on the spatially corrected digital orthophoto data, we use the SIFT feature extraction method to extract the first-view data and the second-view data of the stereo image pair and the same-name point data of the orthophoto, that is, the second same-name point pair between the first-view data and the orthophoto data and the third same-name point pair between the second-view data and the orthophoto data, and establish a radial transformation model. The first-view data can be the front-view data of the stereo image pair data, and the second-view data can be the back-view data of the stereo image pair data. Specifically:

[0091]

[0092] Bring the second and third pairs of points with the same name into the model and sort them out to form the following format:

[0093]

[0094] Solve the above equations to calculate the radiation transformation coefficient a 0 、a 1 、a 2 , b 0 , b 1 , b 2 , thereby establishing the precise positional relationship between the stereo image pair data and the ground.

[0095] In one implementation, determining the height of the building according to the top coordinates and the ground coordinates includes:

[0096] The elevation of the building is determined according to the top coordinates; the elevation of the ground point is determined according to the ground coordinates; and the difference between the elevation of the building and the elevation of the ground point is determined as the height of the building.

[0097] Specifically, the top coordinates of the building include the elevation of the building; the ground coordinates of the ground point include the elevation of the ground point, the elevation of the building and the elevation of the ground point are subtracted, and the difference between the elevation of the building and the elevation of the ground point is determined as the height of the building. After all the building data of the vector layer are traversed, the extraction of all building heights is completed.

[0098] 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.

[0099] Figure 2Schematic 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 determination module 230 , a third determination module 240 , a second acquisition module 250 and a fourth determination module 260 .

[0100] The first acquisition module 210 is used to acquire vector data and stereo image pair data of the building; the first determination module 220 is used to determine the location point inside the building based on the vector data; the second determination module 230 is used to determine the first same-name point pair corresponding to the location point in the stereo image pair data; the third determination module 240 is used to determine the top coordinates of the building corresponding to the first same-name point pair in the stereo image pair data; the second acquisition module 250 is used to acquire the ground coordinates of the ground points around the building; the fourth determination module 260 is used to determine the height of the building based on the top coordinates and the ground coordinates.

[0101] In one implementation, the location points include the centroid point and corner points of the building, and the first determination module 220 is used to traverse the layer of the building in the vector data to obtain the outline of the building; determine the centroid point of the building based on the outline of the building; perform corner point detection on the layer of the building to determine the corner points located inside the building.

[0102] In one implementation, the second determination module 230 is used to obtain the digital orthophoto data of the building; according to the location point, a window is opened in the digital orthophoto data to obtain a top template of the top of the building; the location point is projected into the stereo image pair data and a search area is determined in the stereo image pair data with the location point as the center; and according to the top template, a search and match is performed in the search area to obtain the first pair of points of the same name.

[0103] In one implementation, the third determination module 240 is used to establish a set of equations based on the stereo image pair data and the first pair of like-named points, wherein the set of equations includes an association relationship between the first pair of like-named points and the top coordinates; and solve the set of equations to obtain the top coordinates.

[0104] In one implementation, the number of the first same-name point pairs is multiple, and the third determination module 240 is used to solve multiple equation groups corresponding to the multiple first same-name point pairs to obtain multiple top coordinates to be confirmed; and filter the multiple top coordinates to be determined to obtain the top coordinates.

[0105] In one implementation, the first determination module 220 is further used to extract a second pair of same-name points between the first perspective data in the stereo image pair data and the orthophoto data; extract a third pair of same-name points between the second perspective data in the stereo image pair data and the orthophoto data; input the second pair of same-name points and the third pair of same-name points into a radial transformation model to obtain radial transformation coefficients; and determine the positional relationship between the stereo image pair data and the ground based on the radial transformation coefficients.

[0106] In one implementation, the fourth determination module 260 is used to determine the elevation of the building based on the top coordinates; determine the elevation of the ground point based on the ground coordinates; and determine the difference between the elevation of the building and the elevation of the ground point as the height of the building.

[0107] In one implementation, the second acquisition module 250 is used to determine, in the vector data, an intersection point between a ray starting from the centroid point and a road network layer of the vector data as the ground point.

[0108] 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.

[0109] 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.

[0110] 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.

[0111] 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 when the program or instruction is executed by the processor 301, it implements: obtaining vector data and stereo image pair data of a building; determining a position point inside the building based on the vector data; determining a first pair of points of the same name corresponding to the position point in the stereo image pair data; determining the top coordinates of the building corresponding to the first pair of points of the same name in the stereo image pair data; obtaining the ground coordinates of ground points around the building; and determining the height of the building based on the top coordinates and the ground coordinates.

[0112] In one implementation, the location points include the centroid point and corner points of the building. In one implementation, the layer of the building in the vector data is traversed to obtain the outline of the building; the centroid point of the building is determined based on the outline of the building; corner point detection is performed on the layer of the building to determine the corner points located inside the building.

[0113] In one implementation, digital orthophoto data of the building is obtained; according to the location point, a window is opened in the digital orthophoto data to obtain a top template of the top of the building; the location point is projected into the stereo image pair data and a search area is determined in the stereo image pair data with the location point as the center; and according to the top template, a search and match is performed in the search area to obtain the first pair of points of the same name.

[0114] In one implementation, a system of equations is established based on the stereo image pair data and the first pair of like-named points, the system of equations including the association relationship between the first pair of like-named points and the top coordinates; the system of equations is solved to obtain the top coordinates.

[0115] In one implementation, there are multiple first pairs of points with the same name, and multiple sets of equations corresponding to the multiple first pairs of points with the same name are solved to obtain multiple top coordinates to be confirmed; and the multiple top coordinates to be determined are filtered to obtain the top coordinates.

[0116] In one implementation, before determining the location point inside the building based on the vector data, a second pair of like-named points between the first perspective data in the stereo image pair data and the orthophoto data is extracted; a third pair of like-named points between the second perspective data in the stereo image pair data and the orthophoto data is extracted; the second pair of like-named points and the third pair of like-named points are input into a radial transformation model to obtain a radial transformation coefficient; and the positional relationship between the stereo image pair data and the ground is determined based on the radial transformation coefficient.

[0117] In one implementation, the elevation of the building is determined based on the top coordinates; the elevation of the ground point is determined based on the ground coordinates; and the difference between the elevation of the building and the elevation of the ground point is determined as the height of the building.

[0118] In one implementation, before obtaining the ground coordinates of the ground point around the building, in the vector data, the intersection of a ray starting from the centroid point and a road network layer of the vector data is determined as the ground point.

[0119] 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.

[0120] It should be noted that the electronic devices in the embodiments of the present application include: servers, terminals, or other devices except terminals.

[0121] 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.

[0122] 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).

[0123] 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.

[0124] 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.

[0125] 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.

[0126] 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.

[0127] 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.

[0128] 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, characterized in that: include: Get vector data and stereo image pair data of buildings; Determining a location point inside the building according to the vector data; Determine a first point pair with the same name corresponding to the position point in the stereo image pair data; Determining the top coordinates of the building corresponding to the first pair of points of the same name in the stereo image pair data; Obtaining ground coordinates of ground points around the building; The height of the building is determined according to the top coordinates and the ground coordinates.

2. The determination method according to claim 1, characterized in that: The location points include the centroid point and corner points of the building, and determining the location points inside the building and the ground points around the building according to the vector data includes: Traversing the layers of the building in the vector data to obtain the outline of the building; Determining the centroid of the building according to the outline of the building; Corner point detection is performed on the layer of the building to determine the corner points located inside the building.

3. The determination method according to claim 1, characterized in that: The step of determining a first point pair with the same name corresponding to the position point in the stereoscopic image pair data comprises: Obtaining digital orthophoto data of the building; According to the location point, a window is opened in the digital orthophoto data to obtain a top template of the top of the building; Projecting the position point into the stereo image pair data and determining a to-be-searched area in the stereo image pair data with the position point as the center; Search and match are performed in the to-be-searched area according to the top template to obtain the first same-name point pair.

4. The determination method according to claim 1, characterized in that: Determining the top coordinates of the building corresponding to the first pair of points of the same name in the stereoscopic image pair data includes: Establishing a set of equations according to the stereo image pair data and the first pair of points with the same name, wherein the set of equations includes an association relationship between the first pair of points with the same name and the top coordinates; The system of equations is solved to obtain the top coordinates.

5. The method according to claim 4, characterized in that The number of the first pairs of points with the same name is multiple, and the solving of the set of equations to obtain the top coordinates includes: Solving multiple sets of equations corresponding to the first pairs of points with the same name to obtain multiple top coordinates to be confirmed; Filtering is performed on the plurality of top coordinates to be determined to obtain the top coordinates.

6. The determination method according to claim 2, characterized in that: Before determining the location point inside the building according to the vector data, the method further includes: Extracting a second pair of points of the same name between the first viewing angle data and the orthophoto data in the stereo image pair data; Extracting a third pair of points of the same name between the second viewing angle data in the stereo image pair data and the orthophoto data; Inputting the second pair of points with the same name and the third pair of points with the same name into a radiation transformation model to obtain radiation transformation coefficients; The positional relationship between the stereo image pair data and the ground is determined according to the radial transformation coefficient.

7. The determination method according to claim 1, characterized in that: Determining the height of the building according to the top coordinates and the ground coordinates includes: Determine the elevation of the building according to the top coordinates; Determining the elevation of the ground point according to the ground coordinates; The difference between the elevation of the building and the elevation of the ground point is determined as the height of the building.

8. The determination method according to claim 1, characterized in that: Before acquiring the ground coordinates of the ground points around the building, the method further includes: In the vector data, the intersection point of the ray starting from the centroid point and the road network layer of the vector data is determined as the ground point.

9. An electronic device, 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 8.

10. A readable storage medium, 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 to 8 are implemented.