Method, device, electronic device and storage medium for determining building height
By obtaining the address of the point of interest and determining the maximum number of floors, the building height of the office building is calculated, which solves the problem of high cost of obtaining the height of the office building in the existing technology, and achieves rapid and accurate height acquisition.
Patent Information
- Application Number
- CN202111200942.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-14
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2041-10-14
AI Technical Summary
The process of obtaining office building heights in the prior art requires a lot of labor or financial costs, resulting in higher overall costs.
By obtaining the address of the point of interest, the address of the point of interest of the geographical entity containing the target building is determined, the maximum number of floors of the target building is determined based on the address, and the corresponding relationship between the preset number of floors and building height is calculated.
It achieves rapid and accurate acquisition of building heights, reduces labor and financial costs, and improves the efficiency and accuracy of the acquisition process.
Smart Images

Figure CN113989448B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology, and in particular relates to a method, device, electronic equipment and storage medium for determining the height of a building. Background Art
[0002] In tasks such as map rendering, it is usually necessary to obtain the height of the office building so as to render the height of the office building in the map.
[0003] At present, the height of office buildings is generally obtained by purchasing official data, manually surveying and collecting data, and using algorithms to analyze the length of office building shadows in satellite photos for estimation.
[0004] However, during the research process, the inventors found that in the current plan, the process of acquiring office buildings requires a lot of manpower or financial costs, resulting in higher overall costs. Summary of the invention
[0005] Based on this, the present invention provides a solution for determining the height of a building to solve the problem in the related art that the process of acquiring an office building requires a lot of manpower or financial costs, resulting in a high overall cost.
[0006] The present invention also provides a device for determining the height of a building, so as to ensure the realization and application of the above method in practice.
[0007] An embodiment of the present invention provides a method for determining a building height, the method comprising:
[0008] Obtaining an address of a point of interest; the address of the point of interest includes a plurality of sequentially connected geographic entities;
[0009] From all the POI addresses, determine a target POI address that includes a target geographic entity corresponding to a target building;
[0010] Determining the maximum number of floors of the target building according to the address of the target point of interest;
[0011] The building height of the target building is determined according to the corresponding relationship between the preset number of floors and the building height, and the maximum number of floors of the target building.
[0012] An embodiment of the present invention further provides a device for determining the height of a building, the device comprising:
[0013] An acquisition module, used to acquire an address of a point of interest; the address of the point of interest includes a plurality of sequentially connected geographic entities;
[0014] A first determination module is used to determine, from all the points of interest addresses, a target point of interest address containing a target geographic entity corresponding to a target building;
[0015] A second determination module is used to determine the maximum number of floors of the target building according to the address of the target point of interest;
[0016] The height module is used to determine the building height of the target building according to the corresponding relationship between the preset number of floors and the building height, and the maximum number of floors of the target building.
[0017] An embodiment of the present invention further provides an electronic device, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations:
[0018] Obtaining an address of a point of interest; the address of the point of interest includes a plurality of sequentially connected geographic entities;
[0019] From all the POI addresses, determine a target POI address that includes a target geographic entity corresponding to a target building;
[0020] Determining the maximum number of floors of the target building according to the address of the target point of interest;
[0021] The building height of the target building is determined according to the corresponding relationship between the preset number of floors and the building height, and the maximum number of floors of the target building.
[0022] An embodiment of the present invention further provides a computer-readable medium having instructions stored thereon, which, when executed by one or more processors, enables the device to execute one or more building height determination methods as described above.
[0023] In an embodiment of the present invention, the method includes: obtaining an address of a point of interest; the address of the point of interest includes a plurality of sequentially connected geographic entities; determining, from all the addresses of the point of interest, a target point of interest address including a target geographic entity corresponding to a target building; determining the maximum number of floors of the target building according to the address of the target point of interest; determining the building height of the target building according to a preset correspondence between the number of floors and the building height, and the maximum number of floors of the target building. The embodiment of the present invention extracts information related to the floors of the target building based on the target point of interest address including the target geographic entity corresponding to the target building, thereby obtaining the maximum number of floors of the target building, and finally calculating the building height of the target building. The entire process can quickly obtain an accurate building height without paying much manpower or financial costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0025] Figure 1 is a flowchart of a method for determining building height provided by an embodiment of the present invention;
[0026] Figure 2 is a flowchart of specific steps of a method for determining building height provided by an embodiment of the present invention;
[0027] Figure 3 is a block diagram of a device for determining building height provided by an embodiment of the present invention;
[0028] Figure 4 is a block diagram of an electronic device 800 for determining building height according to an exemplary embodiment of the present invention;
[0029] Figure 5 It is a schematic diagram of the structure of the server in the embodiment of the present invention. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] The present invention can be used in many general or special computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or devices, etc.
[0032] The present invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0033] Figure 1is a flowchart of a method for determining building height provided by an embodiment of the present invention, which is applied to a client, such as Figure 1 As shown, the method may include:
[0034] Step 101, obtaining the address of a point of interest; the address of the point of interest includes a plurality of sequentially connected geographic entities.
[0035] In the embodiment of the present invention, Geographic Information System In the POI, a point of interest (POI) address can be a house, a shop, a post box, a bus stop, etc. For example, a POI address is the address of XX Building. In order to accurately describe the address of XX Building, it is necessary to connect multiple geographic entities in a certain order to obtain the POI address. Then the complete POI address can be: XX Province / XX City / XX District / XX Building / XX Floor / XX Number. Among them, XX Province, XX City, XX District, XX Building, XX Floor, and XX Number are all geographic entities. In addition, because the POI address is the address of XX Building, the XX Building in the POI address can also be used as the POI in the POI address.
[0036] In this step, all or part of the POI addresses may be obtained from the POI database to serve as a screening range for subsequent screening.
[0037] Step 102: Determine, from all the POI addresses, a target POI address that includes a target geographic entity corresponding to a target building.
[0038] In the embodiment of the present invention, in order to determine the height of the target building, it is necessary to filter out the target POI address containing the target geographic entity corresponding to the target building from all POI addresses. The target building is generally XX Building, XX Building, XX Apartment, etc.
[0039] For example, in order to determine the height of Tus-Tech Building, the target POI addresses that can be found are as follows: target POI address 1 with "Hui Jin Suo Co., Ltd." as the POI: "28th Floor, Building D, Tus-Tech Building, Haidian District, Beijing"; target POI address 2 with "Saier Investment Co., Ltd." as the POI: "Room 1103, 11th Floor, Building D, Tus-Tech Building, No. 8, Tsinghua Science Park, Yard 1, Zhongguancun East Road, Haidian District, Beijing", etc., among which, target POI address 1 and target POI address 2 both contain the target geographic entity "Tus-Tech Building", and also include information on geographic entities related to the floor number and room number of Tus-Tech Building.
[0040] Step 103: Determine the maximum number of floors of the target building according to the address of the target point of interest.
[0041] In the embodiment of the present invention, since the height of a single floor of a building is a preset height according to the building code, in order to determine the overall height of the building, it is necessary to first determine the maximum number of floors of the building. Since the target POI address usually includes information about geographic entities related to the floor number and room number of the target building, the maximum number of floors of the target building can be determined by extracting information about geographic entities related to the floor number and room number from the target POI address.
[0042] For example, for the target POI address 1 with "Huijinso Company" as the POI: "28th Floor, Building D, Tus-Tech Building, Haidian District, Beijing"; the target POI address 2 with "Saier Investment Co., Ltd." as the POI: "1103, 11th Floor, Building D, Tus-Tech Building, No. 8, Tsinghua Science Park, Yard 1, Zhongguancun East Road, Haidian District, Beijing", the floor information of the target building Tus-Tech Building can be extracted as 11th and 28th floors. If there are enough target POI addresses, more information related to the floor geographic entities of Tus-Tech Building will be obtained. If the information analysis of a large number of floor geographic entities shows that the 28th floor is the largest number of floors, the 28th floor can be determined as the maximum number of floors of the target building Tus-Tech Building.
[0043] Step 104, determining the building height of the target building according to the preset correspondence between the number of floors and the building height, and the maximum number of floors of the target building.
[0044] In an embodiment of the present invention, according to the requirements of building specifications, the height of a single floor of a building is generally a preset value, and buildings with different numbers of floors have different building heights. Therefore, a corresponding relationship between the number of floors and the building height can be established in advance. For example, the height of a building with a total height of 27 floors is 86 meters, and the height of a building with a total height of 28 floors is 89 meters… In this step, since the maximum number of floors of the target building is obtained, the building height corresponding to the maximum number of floors of the target building can be obtained through the corresponding relationship between the number of floors and the building height, and the building height is determined as the building height of the target building.
[0045] For example, if the maximum number of floors of the target building is 28, then through the correspondence between the number of floors and the building height, it can be obtained that the building height of the target building is 89 meters.
[0046] After obtaining the building height of the target building, when rendering the 3D display model of the target building in the map software, the height of the 3D display model of the target building can be rendered by the building height, thereby obtaining a more realistic and accurate rendering display effect. For a dense building complex, the height difference between different buildings can be clearly reflected, thereby providing a realistic scene display effect.
[0047] In summary, an embodiment of the present invention provides a method for determining the building height, by obtaining a point of interest address; the point of interest address includes multiple sequentially connected geographic entities; from all point of interest addresses, a target point of interest address including a target geographic entity corresponding to a target building is determined; according to the target point of interest address, the maximum number of floors of the target building is determined; according to the preset correspondence between the number of floors and the building height, and the maximum number of floors of the target building, the building height of the target building is determined. The embodiment of the present invention extracts information related to the floors of the target building based on the target point of interest address including the target geographic entity corresponding to the target building, thereby obtaining the maximum number of floors of the target building, and finally calculating the building height of the target building. The entire process can quickly obtain an accurate building height without paying a lot of manpower or financial costs.
[0048] Figure 2 is a flowchart of the specific steps of a method for determining building height provided by an embodiment of the present invention, such as Figure 2 As shown, the method may include:
[0049] Step 201: Determine the location of the target building.
[0050] In the embodiment of the present invention, since a massive amount of POI address data is stored in the POI database, directly screening the target point of interest addresses containing the target geographic entity corresponding to the target building from the massive amount of POI address data will result in a large amount of data processing. Therefore, a preliminary screening range can be determined through appropriate preliminary screening to reduce the amount of data processing for subsequent screening.
[0051] In this step, the location of the target building can be obtained, so that the POI addresses within a certain range centered on the location of the target building can be determined as a preliminary screening range.
[0052] Step 202: Obtain the point of interest addresses of buildings within a preset range around the location of the target building.
[0053] In this step, after the location of the target building is determined, the point of interest addresses of buildings within a preset range around the location of the target building can be obtained as a preliminary screening range, so that subsequent screening operations can be performed to include the target point of interest addresses of the target geographic entities corresponding to the target building, thereby reducing the amount of data processing.
[0054] For example, if the height of office building A needs to be estimated, all POI addresses within a 100-meter range around office building A can be obtained from the POI database.
[0055] Step 203: segment the POI address into geographic entities to obtain corresponding relationships between multiple geographic entities in the POI address.
[0056] In the embodiment of the present invention, the geographic entity segmentation of the address specifically refers to segmenting geographic entities of different meanings or types in the address, and the segmentation granularity is a complete independent entity. For example, for the POI address: 28th Floor, Building D, Tus-Tech Building, Haidian District, Beijing, the segmentation result is: "28th Floor, Building D, Tus-Tech Building, Haidian District, Beijing". Each independent granularity after segmentation is a geographic entity.
[0057] Step 204: Determine, based on the corresponding relationship, the address of the target point of interest including the target geographic entity corresponding to the target building.
[0058] After obtaining the correspondence between multiple geographic entities in the segmented POI addresses, the target POI addresses containing the target geographic entities corresponding to the target building can be filtered out. For example, if the target building is Tus-Tech Building, the POI addresses containing the independent geographic entity of Tus-Tech Building are filtered out from all the segmented POI addresses as the target POI addresses.
[0059] Optionally, step 204 may specifically include:
[0060] Sub-step 2041: Determine the actual name and alias of the target building.
[0061] Sub-step 2042: Determine a target geographic entity corresponding to the actual name or alias of the target building.
[0062] Sub-step 2043: determining the address of a target point of interest that contains the target geographic entity or a similar geographic entity whose similarity to the target geographic entity is greater than a preset threshold.
[0063] In actual applications, there may be multiple names for buildings, such as new and old names, aliases, colloquial names, etc., which means that any of these names may be used when constructing a POI address, and these names all represent the same building. Therefore, in order to improve the screening accuracy, the embodiment of the present invention can first determine the actual name and alias of the target building, and during the specific screening, determine the target geographic entity corresponding to the actual name or alias of the target building, and determine the target point of interest address containing the target geographic entity, or containing a similar geographic entity whose similarity to the target geographic entity is greater than a preset threshold. This ensures that the screening process does not miss geographic entities that use the alias or similar name of the target building, thereby improving the completeness and compatibility of the screening.
[0064] In addition, after the POI address is segmented and the geographic entity is extracted, it is matched with the target building, and there may be incomplete matches. For example, for the target building Tus-Tech Building, there is a situation where "Tus-Tech Building D" and "Tus-Building D" are inconsistent in expression but actually refer to the same thing, which will lead to a low matching degree. The corresponding measures taken by the embodiment of the present invention include: lowering the matching threshold, or using multiple aliases of the target building to find the highest matching object, or using word weight analysis to reduce the influence of unimportant words such as "technology" so that it can complete the match. It is also possible to use POI aggregation and map POI search text semantic matching methods for matching, which is not limited by the embodiment of the present invention.
[0065] Step 205: extracting geographic entities related to the room number and / or floor number from the target point of interest address.
[0066] In an example, in order to determine the height of the TusPark, target POI addresses that can be found include: target POI address 1 with "Hui Jin Suo Co., Ltd." as the POI: "28th Floor, Building D, TusPark, Haidian District, Beijing"; target POI address 2 with "Saier Investment Co., Ltd." as the POI: "Room 1103, 11th Floor, Building D, TusPark, No. 1, Zhongguancun East Road, Haidian District, Beijing", etc., where both target POI address 1 and target POI address 2 contain the target geographic entity "TusPark", and also include information on geographic entities related to the floor number and room number of the TusPark.
[0067] Step 206: Determine at least one floor number according to the geographical entity associated with the room number and / or floor number.
[0068] For the above example, we can extract the geographical entities "11th floor" and "28th floor" which are directly related to the floor number, thereby determining the two floor numbers. In addition, for the above example, we can also extract the geographical entity "1103" which is directly related to the room number. Since the room number has certain naming rules, the floor number is encoded in the preset position of the room number during the naming and encoding process. In this example, the first two digits of the room number are used to represent the floor where the room is located. Therefore, by extracting the first two digits of the room number "1103", we can get a floor number.
[0069] Step 207: determine the maximum number of floors among the at least one number of floors as the maximum number of floors of the target building.
[0070] In this step, if it is found that XX floors is the maximum number of floors through information analysis of a large number of floor geographic entities, then XX floors can be determined as the maximum number of floors of the target building.
[0071] Step 208: Determine the building height of the target building according to the preset correspondence between the number of floors and the building height, and the maximum number of floors of the target building.
[0072] For details of this step, please refer to the relevant description of the above step 104, which will not be repeated here.
[0073] Optionally, before step 208, the method may further include:
[0074] Step 209: A sample acquisition module is used to obtain the number of floors and actual building height of the sample building.
[0075] In an embodiment of the present invention, the sample buildings may be some buildings selected in advance, and the number of floors and actual building heights of the sample buildings are relatively easy to obtain. Specifically, the number of floors and actual building heights of the sample buildings may be obtained through information provided by the builders, reference to public information, field surveys, etc.
[0076] Step 210, a calculation module is used to calculate the average building height corresponding to the same number of floors according to the number of floors and the actual building height, and establish a corresponding relationship between the number of floors and the average building height.
[0077] In an embodiment of the present invention, different buildings may have slight differences in single-story heights depending on actual construction and demand. Therefore, in order to obtain a more accurate and wider applicable correspondence between floors and building heights, the embodiment of the present invention can first calculate the average building height corresponding to the same number of floors, and then establish a correspondence between the number of floors and the average building height for subsequent search.
[0078] For example, due to the different designs of single-story heights, the actual building height of the 30-story sample building A is 100 meters, the actual building height of the 30-story sample building B is 140 meters, and the actual building height of the 30-story sample building C is 180 meters. After average value calculation, the average building height corresponding to 30 floors is 140 meters.
[0079] After executing step 210, step 208 can be specifically implemented by determining the building height of the target building according to the corresponding relationship between the number of floors and the average building height, and the maximum number of floors of the target building.
[0080] By calculating the average value, the building height corresponding to each floor number is averaged, so that the average building height corresponding to the floor number is more applicable to various building design requirements. By finding and determining the building height of the target building through the correspondence between the floor number and the average building height, more accurate and applicable results can be obtained.
[0081] Optionally, the method may further include:
[0082] Step 211: When constructing a three-dimensional map, render a model of the target building according to the building height of the target building and a preset scale factor.
[0083] In an embodiment of the present invention, when constructing a three-dimensional map, it is usually necessary to render the buildings in three dimensions, which requires first obtaining the building height of the buildings in order to accurately render the features of the buildings in the height direction. When there are multiple buildings in an area, accurate rendering of the features of the buildings in the height direction can clearly express the height difference relationship between the buildings in the area.
[0084] In this step, when constructing a three-dimensional map, the model of the target building can be rendered according to the building height of the target building obtained in step 208 and the preset scale factor. The building height of the target building helps to accurately render the characteristics of the target building in the height direction.
[0085] For example, the building height of the target building is 100 meters, and the preset scale factor may be one ten-thousandth. Then, when constructing the target building on the map in the three-dimensional mode, the height of the model of the target building is 1 centimeter.
[0086] In summary, an embodiment of the present invention provides a method for determining the building height, by obtaining a point of interest address; the point of interest address includes multiple sequentially connected geographic entities; from all point of interest addresses, a target point of interest address including a target geographic entity corresponding to a target building is determined; according to the target point of interest address, the maximum number of floors of the target building is determined; according to the preset correspondence between the number of floors and the building height, and the maximum number of floors of the target building, the building height of the target building is determined. The embodiment of the present invention extracts information related to the floors of the target building based on the target point of interest address including the target geographic entity corresponding to the target building, thereby obtaining the maximum number of floors of the target building, and finally calculating the building height of the target building. The entire process can quickly obtain an accurate building height without paying a lot of manpower or financial costs.
[0087] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, some steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0088] Corresponding to the method provided by the above-mentioned building height determination method embodiment of the present invention, see Figure 3The present invention also provides an embodiment of a device for determining the height of a building. In this embodiment, the device may include:
[0089] An acquisition module 301 is used to acquire an address of a point of interest; the address of the point of interest includes a plurality of sequentially connected geographic entities;
[0090] A first determination module 302 is used to determine, from all the points of interest addresses, a target point of interest address that includes a target geographic entity corresponding to a target building;
[0091] A second determination module 303 is used to determine the maximum number of floors of the target building according to the address of the target point of interest;
[0092] The height module 304 is used to determine the building height of the target building according to the preset correspondence between the number of floors and the building height, and the maximum number of floors of the target building.
[0093] Optionally, the acquisition module includes:
[0094] A location submodule, used to determine the location of the target building;
[0095] The acquisition submodule is used to acquire the point of interest addresses of buildings within a preset range around the location of the target building.
[0096] Optionally, the first determining module includes:
[0097] A segmentation submodule, used to segment the POI address into geographic entities to obtain a corresponding relationship between multiple geographic entities in the POI address;
[0098] The address determination submodule is used to determine the address of the target point of interest containing the target geographic entity corresponding to the target building according to the corresponding relationship.
[0099] Optionally, the second determining module includes:
[0100] An extraction submodule, configured to extract geographic entities associated with a room number and / or a floor number from the target point of interest address;
[0101] A floor submodule, configured to determine at least one floor number according to the geographical entity associated with the room number and / or the floor number;
[0102] The height submodule is used to determine the maximum number of floors among the at least one number of floors as the maximum number of floors of the target building.
[0103] Optionally, determining the target point of interest address of the target geographic entity corresponding to the target building includes:
[0104] Determine the actual name and alias of the target building; determine the target geographic entity corresponding to the actual name or alias of the target building; determine the address of the target point of interest that contains the target geographic entity, or contains a similar geographic entity whose similarity to the target geographic entity is greater than a preset threshold.
[0105] Optionally, the device further comprises:
[0106] The sample acquisition module is used to obtain the number of floors and actual building height of the sample building;
[0107] A calculation module, used to calculate the average building height corresponding to the same number of floors according to the number of floors and the actual building height, and establish a corresponding relationship between the number of floors and the average building height;
[0108] The height module comprises:
[0109] The height submodule is used to determine the building height of the target building according to the corresponding relationship between the number of floors and the average building height, and the maximum number of floors of the target building.
[0110] Optionally, the device further comprises:
[0111] The rendering module is used to render the model of the target building according to the building height of the target building and a preset scale factor when constructing a three-dimensional map.
[0112] In summary, an embodiment of the present invention provides a device for determining the building height, which obtains the address of a point of interest; the address of the point of interest includes multiple sequentially connected geographic entities; from all the addresses of the point of interest, a target point of interest address including a target geographic entity corresponding to a target building is determined; according to the target point of interest address, the maximum number of floors of the target building is determined; according to the correspondence between the preset number of floors and the building height, and the maximum number of floors of the target building, the building height of the target building is determined. The embodiment of the present invention extracts information related to the floors of the target building based on the target point of interest address including the target geographic entity corresponding to the target building, thereby obtaining the maximum number of floors of the target building, and finally calculating the building height of the target building. The whole process can quickly obtain an accurate building height without paying a lot of manpower or financial costs.
[0113] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0114] Figure 48 is a block diagram of an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0115] Reference Figure 4 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0116] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0117] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0118] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0119] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0120] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0121] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0122] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0123] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0124] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0125] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0126] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to perform a building height determination method, the method comprising:
[0127] Obtaining an address of a point of interest; the address of the point of interest includes a plurality of sequentially connected geographic entities;
[0128] From all the POI addresses, determine a target POI address that includes a target geographic entity corresponding to a target building;
[0129] Determining the maximum number of floors of the target building according to the address of the target point of interest;
[0130] The building height of the target building is determined according to the corresponding relationship between the preset number of floors and the building height, and the maximum number of floors of the target building.
[0131] Wherein, obtaining the address of the point of interest includes:
[0132] Determine the location of the target building;
[0133] Obtain the point of interest addresses of buildings within a preset range around the location of the target building.
[0134] The step of determining, from all the points of interest addresses, the target point of interest address containing the target geographic entity corresponding to the target building comprises:
[0135] Performing geographic entity segmentation on the point of interest address to obtain a corresponding relationship between multiple geographic entities in the point of interest address;
[0136] According to the corresponding relationship, a target point of interest address including a target geographic entity corresponding to the target building is determined.
[0137] Wherein, determining the maximum number of floors of the target building according to the address of the target point of interest includes:
[0138] Extracting geographic entities associated with room numbers and / or floor numbers from the target point of interest address;
[0139] Determine at least one floor number according to the geographical entity associated with the room number and / or floor number;
[0140] The maximum number of floors among the at least one number of floors is determined as the maximum number of floors of the target building.
[0141] The step of determining the target point of interest address of the target geographic entity corresponding to the target building includes:
[0142] Determining the actual name and aliases of the target building;
[0143] Determining a target geographic entity corresponding to the actual name or alias of the target building;
[0144] Determine a target point of interest address that includes the target geographic entity or a similar geographic entity whose similarity to the target geographic entity is greater than a preset threshold.
[0145] Figure 51 is a schematic diagram of the structure of the server in an embodiment of the present invention. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1922 (for example, one or more processors) and memory 1932, and one or more storage media 1930 (for example, one or more mass storage devices) storing application programs 1942 or data 1944. Among them, the memory 1932 and the storage medium 1930 can be short-term storage or permanent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1922 can be configured to communicate with the storage medium 1930 and execute a series of instruction operations in the storage medium 1930 on the server 1900.
[0146] The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and / or, one or more operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0147] Those skilled in the art will readily appreciate other embodiments of the invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0148] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
[0149] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for determining building height, characterized in that: The method includes: Obtaining an address of a point of interest; the address of the point of interest includes a plurality of sequentially connected geographic entities; From all the POI addresses, determine a target POI address that includes a target geographic entity corresponding to a target building; Determining the maximum number of floors of the target building according to the address of the target point of interest; Determining the building height of the target building according to the preset correspondence between the number of floors and the building height and the maximum number of floors of the target building; The step of determining the maximum number of floors of the target building according to the address of the target point of interest includes: Extracting geographic entities associated with room numbers and / or floor numbers from the target point of interest address; Determine at least one floor number according to the geographical entity associated with the room number and / or floor number; The maximum number of floors among the at least one number of floors is determined as the maximum number of floors of the target building.
2. The method according to claim 1, characterized in that The step of obtaining the address of the point of interest includes: Determine the location of the target building; Obtain the point of interest addresses of buildings within a preset range around the location of the target building.
3. The method according to claim 1, characterized in that: The step of determining, from all the points of interest addresses, a target point of interest address containing a target geographic entity corresponding to a target building comprises: Performing geographic entity segmentation on the point of interest address to obtain a corresponding relationship between multiple geographic entities in the point of interest address; According to the corresponding relationship, a target point of interest address including a target geographic entity corresponding to the target building is determined.
4. The method according to claim 1 or 3, characterized in that: The determining of the target point of interest address containing the target geographic entity corresponding to the target building includes: Determining the actual name and aliases of the target building; Determining a target geographic entity corresponding to the actual name or alias of the target building; Determine a target point of interest address that includes the target geographic entity or a similar geographic entity whose similarity to the target geographic entity is greater than a preset threshold.
5. The method according to claim 1, characterized in that The method further comprises: Get the number of floors and actual building height of the sample building; According to the number of floors and the actual building height, calculating the average building height corresponding to the same number of floors, and establishing a corresponding relationship between the number of floors and the average building height; Determining the building height of the target building according to the preset correspondence between the number of floors and the building height and the maximum number of floors of the target building includes: The building height of the target building is determined according to the corresponding relationship between the number of floors and the average building height, and the maximum number of floors of the target building.
6. The method according to claim 1, characterized in that After determining the building height of the target building, the method further includes: When constructing a three-dimensional map, a model of the target building is rendered according to the building height of the target building and a preset scale factor.
7. A device for determining building height, characterized in that: The device includes: An acquisition module, used to acquire an address of a point of interest; the address of the point of interest includes a plurality of sequentially connected geographic entities; A first determination module is used to determine, from all the points of interest addresses, a target point of interest address containing a target geographic entity corresponding to a target building; A second determination module is used to determine the maximum number of floors of the target building according to the address of the target point of interest; A height module, used to determine the building height of the target building according to the corresponding relationship between the preset number of floors and the building height, and the maximum number of floors of the target building; The second determining module includes: An extraction submodule, configured to extract geographic entities associated with a room number and / or a floor number from the target point of interest address; A floor submodule, configured to determine at least one floor number according to the geographical entity associated with the room number and / or the floor number; The height submodule is used to determine the maximum number of floors among the at least one number of floors as the maximum number of floors of the target building.
8. The device according to claim 7, characterized in that The acquisition module comprises: A location submodule, used to determine the location of the target building; The acquisition submodule is used to acquire the point of interest addresses of buildings within a preset range around the location of the target building.
9. The device according to claim 7, characterized in that The first determining module includes: A segmentation submodule, used to segment the POI address into geographic entities to obtain a corresponding relationship between multiple geographic entities in the POI address; The address determination submodule is used to determine the address of the target point of interest containing the target geographic entity corresponding to the target building according to the corresponding relationship.
10. The device according to claim 7 or 9, characterized in that The determining of the target point of interest address containing the target geographic entity corresponding to the target building includes: Determine the actual name and alias of the target building; determine the target geographic entity corresponding to the actual name or alias of the target building; determine the address of the target point of interest that contains the target geographic entity, or contains a similar geographic entity whose similarity to the target geographic entity is greater than a preset threshold.
11. The device according to claim 7, characterized in that The device also includes: The sample acquisition module is used to obtain the number of floors and actual building height of the sample building; A calculation module, used to calculate the average building height corresponding to the same number of floors according to the number of floors and the actual building height, and establish a corresponding relationship between the number of floors and the average building height; The height module comprises: The height submodule is used to determine the building height of the target building according to the corresponding relationship between the number of floors and the average building height, and the maximum number of floors of the target building.
12. The device according to claim 7, characterized in that The device also includes: The rendering module is used to render the model of the target building according to the building height of the target building and a preset scale factor when constructing a three-dimensional map.
13. An electronic device, characterized in that: The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: Obtaining an address of a point of interest; the address of the point of interest includes a plurality of sequentially connected geographic entities; From all the POI addresses, determine a target POI address that includes a target geographic entity corresponding to a target building; Determining the maximum number of floors of the target building according to the address of the target point of interest; Determining the building height of the target building according to the preset correspondence between the number of floors and the building height and the maximum number of floors of the target building; The step of determining the maximum number of floors of the target building according to the address of the target point of interest includes: Extracting geographic entities associated with room numbers and / or floor numbers from the target point of interest address; Determine at least one floor number according to the geographical entity associated with the room number and / or floor number; The maximum number of floors among the at least one number of floors is determined as the maximum number of floors of the target building.
14. A computer readable medium having instructions stored thereon, which, when executed by one or more processors, cause an apparatus to perform the building height determination method as claimed in one or more of claims 1 to 6.
Citation Information
Patent Citations
Method and device for acquiring building height
CN105865413A
Determining method and device of storey height, computer equipment and storage medium
CN110127476A