Method, device, equipment and medium for constructing urban white model based on open source information

By obtaining open source maps and satellite images, extracting building boundary information and performing grayscale calculations, the problem of not being able to directly obtain building height data is solved, and the rapid construction and high-precision measurement of urban white models are realized, and the open source maps and satellite images are displayed. Advantages.

CN118154762BActive Publication Date: 2024-11-29NAT UNIV OF DEFENSE TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410266695.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-08
Publication Date
2024-11-29
Estimated Expiration
2044-03-08

AI Technical Summary

Technical Problem

When building height or floor number data cannot be obtained directly, how to build urban white model has become a technical problem that technicians need to solve urgently.

Method used

By obtaining open source map spatial data and satellite images, the boundary information of buildings, streets and regions is extracted, grayscale value calculation and threshold segmentation are performed, building height is estimated, and urban white model is stretched within the building profile.

Benefits of technology

It realizes rapid construction of urban white models in the absence of direct data, has high precision and strong operability, and gives full play to the advantages of open source maps and satellite images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118154762B_ABST
    Figure CN118154762B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, equipment and medium for constructing a white model of a city based on open source information. The method includes: when the open source map spatial data of the target building complex area contains building height data or floor number data, the building height value can be directly obtained to construct the white model of the city; when the open source map spatial data of the target building complex area does not contain building height data or floor number data, the building shadow area can be obtained according to the open source satellite image of the target building complex area, and then the building height is estimated and the white model of the city is constructed. The present application can give full play to the advantages of high precision of open source map spatial data and wide width and high resolution of open source satellite images, realize the rapid construction of white models of cities in a large range of target building complex areas, have high measurement accuracy and strong operability, and have good market value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, equipment and medium for constructing a city white model based on open source information. Background Art

[0002] Realistic 3D is a digital virtual space that reflects and expresses the natural physical space on which human beings depend for survival, production and life in a real, three-dimensional and time-series manner. It is an important part of the country's new infrastructure construction and a new type of basic surveying and mapping standardized product. The city information model is an important part of the real 3D. The city information model is divided into 7 levels according to the degree of precision. The higher the level, the higher the degree of precision of the model. The city white model refers to the L2 level 3D digital city model. The model is relatively simple in precision, that is, the model mainly expresses the entity's three-dimensional framework and surface, and is manifested as a "white model" without surface texture. In the L2 level digital city model, the main feature of the building model is the building framework, which is mainly presented as a white "box" containing the main framework features of the building.

[0003] Traditional urban white molds are mainly modeled by directly obtaining building height data or floor number data from geographic spatial data. However, there are some areas where the geographic spatial data does not contain building height information or floor number data. In this case, how to estimate the building height for urban white mold construction has become a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, equipment and medium for constructing a city white model based on open source information when the building height or number of floors data cannot be directly obtained in order to solve the above technical problems.

[0005] A method for constructing a city white model based on open source information, the method comprising:

[0006] Obtain open source map spatial data of the target building complex area, and extract boundary information of buildings, streets and areas from the open source map spatial data;

[0007] When the open source map spatial data contains building height data or floor number data, the building height value is obtained according to the building height data or floor number data;

[0008] When the open source map spatial data does not contain building height data or floor number data, obtain the open source satellite image of the target building complex area, calculate the grayscale value of the open source satellite image, obtain the grayscale image of the target building complex area, and perform threshold segmentation and interconnection processing on the grayscale image in turn to obtain the building shadow area in the open source satellite image, and estimate the building height according to the height of the building shadow area to obtain the building height estimation value;

[0009] The building outline is obtained according to the boundary information of the building, street and area, and within the building outline, it is stretched along the vertical direction of the building according to the building height value or the building height estimation value to construct an urban white model of the target building complex area.

[0010] In one embodiment, when the open source map space data includes building height data or floor number data, obtaining the building height value according to the building height data or floor number data includes:

[0011] When the open source map spatial data contains building height data, the building height value is obtained by directly reading the building height data;

[0012] When the open source map space data contains floor quantity data, the number of floors provided by the floor quantity data is multiplied by the set floor height to obtain the building height value.

[0013] In one embodiment, the open source satellite image is taken during a time range when the sunlight is strong during the day and there is a certain inclination angle between the sun and the target building complex area.

[0014] In one embodiment, a grayscale image of a target building complex area is obtained by calculating grayscale values ​​of an open source satellite image, including:

[0015] The RGB color channels in the open source satellite image are converted into HSI color channels to obtain the satellite HSI image of the target building complex area. The grayscale value is calculated based on the satellite HSI image to obtain the grayscale image of the target building complex area.

[0016] In one embodiment, the RGB color channel in the open source satellite image is converted into the HSI color channel to obtain the satellite HSI image of the target building complex area, and the grayscale value is calculated based on the satellite HSI image to obtain the grayscale image of the target building complex area, including:

[0017] First, the RGB color channels in the open-source satellite images are normalized, that is, the pixel values ​​of the RGB color channels are adjusted to the range of [0,1].

[0018] Then, the normalized RGB color channel is converted to the HSI color channel to obtain the satellite HSI image of the target building complex area; the pixel values ​​of the HSI color channel in the satellite HSI image are:

[0019]

[0020]

[0021]

[0022]

[0023] Where I is the pixel value of the brightness channel, S is the pixel value of the saturation channel, H is the pixel value of the hue channel, R is the pixel value of the red channel, G is the pixel value of the green channel, B is the pixel value of the blue channel, and θ is the angle value;

[0024] Finally, the grayscale value is calculated based on the satellite HSI image to obtain the grayscale image of the target building complex area, which is expressed as

[0025] D = f(d);

[0026]

[0027] Among them, d represents the intermediate parameter, D represents the grayscale image of the target building complex area, and w h and w s are the preset hue channel weight parameter and saturation channel weight parameter, respectively, and w h and w s is a constant value, ranging from [0,1]; f is the grayscale stretching function, and f is expressed as

[0028]

[0029] Among them, (x1, x2) and (y1, y2) are defined constant values.

[0030] In one embodiment, threshold segmentation and interconnection processing are performed on the grayscale image in sequence to obtain the building shadow area in the open source satellite image, including:

[0031] The Otsu segmentation algorithm is used to perform threshold segmentation on the grayscale image to obtain a binary image of the shadow area and a binary image of the non-shadow area in the target building complex area.

[0032] The binary image of the shadow area and the binary image of the non-shadow area are connected, that is, the image morphological opening operation is performed first and then the image morphological closing operation is performed to obtain the potential shadow pixel segmentation result of the target building complex area. The buildings in the potential shadow pixel segmentation result are obtained by detection, and the shadow area connected to the building in the potential shadow pixel segmentation result is classified as the building shadow area.

[0033] In one embodiment, estimating the building height according to the height of the building shadow area to obtain the building height estimation value includes:

[0034] The building height is estimated according to the height of the building shadow area, and the estimated building height is obtained, which is expressed as

[0035]

[0036] Where L is the height of the building shadow area, and ω are the altitude and azimuth of the sun, which are directly provided by satellite image data, and γ is an empirical parameter; among them, the height of the building shadow area is defined as the length of the shadow direction corresponding to the direction of sunlight.

[0037] A device for constructing a city white model based on open source information, the device comprising:

[0038] An open source information acquisition module is used to acquire open source map spatial data of the target building complex area and extract boundary information of buildings, streets and areas from the open source map spatial data;

[0039] A building height acquisition module is used to obtain the building height value according to the building height data or the number of floors data when the open source map spatial data contains the building height data or the number of floors data;

[0040] The building height estimation module is used to obtain the open-source satellite image of the target building complex area when the open-source map spatial data does not contain the building height data or the number of floors data, obtain the grayscale image of the target building complex area by calculating the grayscale value of the open-source satellite image, and perform threshold segmentation and interconnection processing on the grayscale image in turn to obtain the building shadow area in the open-source satellite image, and estimate the building height according to the height of the building shadow area to obtain the building height estimation value;

[0041] The urban white model construction module is used to obtain the building outline according to the boundary information of the building, street and area, and stretch it within the building outline along the vertical direction of the building according to the building height value or the building height estimation value to construct the urban white model of the target building complex area.

[0042] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0043] Obtain open source map spatial data of the target building complex area, and extract boundary information of buildings, streets and areas from the open source map spatial data;

[0044] When the open source map spatial data contains building height data or floor number data, the building height value is obtained according to the building height data or floor number data;

[0045] When the open source map spatial data does not contain building height data or floor number data, obtain the open source satellite image of the target building complex area, calculate the grayscale value of the open source satellite image, obtain the grayscale image of the target building complex area, and perform threshold segmentation and interconnection processing on the grayscale image in turn to obtain the building shadow area in the open source satellite image, and estimate the building height according to the height of the building shadow area to obtain the building height estimation value;

[0046] The building outline is obtained according to the boundary information of the building, street and area, and within the building outline, it is stretched along the vertical direction of the building according to the building height value or the building height estimation value to construct an urban white model of the target building complex area.

[0047] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0048] Obtain open source map spatial data of the target building complex area, and extract boundary information of buildings, streets and areas from the open source map spatial data;

[0049] When the open source map spatial data contains building height data or floor number data, the building height value is obtained according to the building height data or floor number data;

[0050] When the open source map spatial data does not contain building height data or floor number data, obtain the open source satellite image of the target building complex area, calculate the grayscale value of the open source satellite image, obtain the grayscale image of the target building complex area, and perform threshold segmentation and interconnection processing on the grayscale image in turn to obtain the building shadow area in the open source satellite image, and estimate the building height according to the height of the building shadow area to obtain the building height estimation value;

[0051] The building outline is obtained according to the boundary information of the building, street and area, and within the building outline, it is stretched along the vertical direction of the building according to the building height value or the building height estimation value to construct an urban white model of the target building complex area.

[0052] The above method for constructing a city white model based on open source information can directly obtain the building height value for city white model construction when the open source map spatial data of the target building complex area contains building height data or floor number data; when the open source map spatial data of the target building complex area does not contain building height data or floor number data, the building shadow area can be obtained according to the open source satellite image of the target building complex area, and then the building height can be estimated and the city white model can be constructed. This application can give full play to the advantages of high precision of open source map spatial data and wide width and high resolution of open source satellite images, realize the rapid construction of city white models in a large range of target building complex areas, have high measurement accuracy and strong operability, and have good market value. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A schematic diagram of a process of constructing a city white model based on open source information in one embodiment;

[0054] Figure 2 A schematic diagram of the structure of a device for constructing a city white model based on open source information in one embodiment;

[0055] Figure 3 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0057] In one embodiment, Figure 1 As shown, a method for constructing a city white model based on open source information is provided, comprising the following steps:

[0058] Step S1, obtaining open source map spatial data of a target building complex area, and extracting boundary information of buildings, streets and areas from the open source map spatial data.

[0059] It can be understood that open source map spatial data is a kind of open source information, which refers to information and data that can be obtained through public channels such as the Internet. For some cities, the city white model can be directly obtained from open source information. When the city white model cannot be directly obtained from open source information, it is necessary to construct the city white model from open source information.

[0060] Step S2: when the open source map space data includes building height data or floor number data, a building height value is obtained according to the building height data or floor number data.

[0061] Step S3, when the open source map spatial data does not contain building height data or floor number data, obtain an open source satellite image of the target building complex area, calculate the grayscale value of the open source satellite image, obtain a grayscale image of the target building complex area, and perform threshold segmentation and interconnection processing on the grayscale image in turn to obtain the building shadow area in the open source satellite image, and estimate the building height according to the height of the building shadow area to obtain an estimated building height value.

[0062] Step S4, obtaining the building outline according to the boundary information of the building, street and area, and stretching the building outline along the vertical direction of the building according to the building height value or the building height estimation value to construct an urban white model of the target building complex area.

[0063] In one embodiment, when the open source map space data includes building height data or floor number data, obtaining the building height value according to the building height data or floor number data includes:

[0064] When the open source map spatial data contains building height data, the building height value is obtained by directly reading the building height data; for example, the National Earth System Science Data Center provides a 10-meter building height dataset in my country;

[0065] When the open source map spatial data includes floor number data, the floor number provided by the floor number data is multiplied by the set floor height to obtain the building height value. Specifically, the floor height is generally set to 3 or 3.5 meters.

[0066] In one embodiment, the open source satellite image is taken during a time range when the sunlight is strong during the day and there is a certain inclination angle between the sun and the target building complex area. When shooting within this time range, the building in the satellite image can have an obvious shadow facing a certain angle.

[0067] In one embodiment, a grayscale image of a target building complex area is obtained by calculating grayscale values ​​of an open source satellite image, including:

[0068] The RGB color channels in the open-source satellite image are converted into HSI color channels to obtain the satellite HSI image of the target building complex area, and the grayscale value is calculated based on the satellite HSI image to obtain the grayscale image of the target building complex area. Among them, HSI perceives color based on three basic characteristic quantities: hue, saturation and brightness; RGB represents the colors of the three channels of red, green and blue.

[0069] The specific steps of obtaining the grayscale image of the target building complex area include:

[0070] First, the RGB color channels in the open-source satellite images are normalized, that is, the pixel values ​​of the RGB color channels are adjusted to the range of [0,1]. Specifically, for 8-bit channel images, each pixel value is divided by 255.

[0071] Then, the normalized RGB color channel is converted to the HSI color channel to obtain the satellite HSI image of the target building complex area; the pixel values ​​of the HSI color channel in the satellite HSI image are:

[0072]

[0073]

[0074]

[0075]

[0076] Among them, I is the pixel value of the brightness channel, S is the pixel value of the saturation channel, H is the pixel value of the hue channel, R is the pixel value of the red channel, G is the pixel value of the green channel, B is the pixel value of the blue channel, and θ is the angle value.

[0077] Finally, the grayscale value is calculated based on the satellite HSI image to obtain the grayscale image of the target building complex area, which is expressed as

[0078] D = f(d);

[0079]

[0080] Among them, d represents the intermediate parameter, D represents the grayscale image of the target building complex area, and w h and w s are the preset hue channel weight parameter and saturation channel weight parameter, respectively, and w h and w s is a constant value, ranging from [0,1]; f is the grayscale stretching function, and f is expressed as

[0081]

[0082]

[0083] Among them, (x1, x2) and (y1, y2) are defined constant values, and their values ​​are all within the value range of d. The values ​​are determined according to the specific image content and can be determined through experiments or experience.

[0084] In one embodiment, threshold segmentation and interconnection processing are performed on the grayscale image in sequence to obtain the building shadow area in the open source satellite image, including:

[0085] First, the grayscale image is threshold segmented using the Otsu segmentation algorithm to obtain a binary image of the shadow area and a binary image of the non-shadow area in the target building complex area. The Otsu segmentation algorithm is also called the maximum inter-class variance method. It divides the image into two parts, background and target, according to the grayscale distribution characteristics of the image. The basis for segmentation is the maximum inter-class variance between the two classes, that is, the difference within the class is minimized.

[0086] Then, the binary image of the shadow area and the binary image of the non-shadow area are connected, that is, the image morphological opening operation is performed first and then the image morphological closing operation is performed to obtain the potential shadow pixel segmentation result of the target building complex area. The building in the potential shadow pixel segmentation result is obtained by detection, and the shadow area connected to the building in the potential shadow pixel segmentation result is classified as the building shadow area. Ideally, the shadows belonging to the same building will be connected into a block area. By performing the connection processing, the shadow areas that are very close in the image can be connected, and the adjacent areas that are far away can be separated, so that a more accurate shadow segmentation effect can be obtained.

[0087] Specifically, when obtaining the building shadow area, the buildings in the potential shadow pixel segmentation results are detected and identified by utilizing the building's straight lines, right angles and other features. For shadow areas where corresponding buildings can be found and connected to the shadows, they are classified as building shadows; for shadow areas where corresponding buildings cannot be found and have a small area, they are classified as other shadows or not considered for further calculations.

[0088] It can be understood that the image morphological opening operation refers to first performing an erosion operation on the image and then performing an expansion operation on the image. It first erodes the image to eliminate noise and smaller connected domains in the image, and then uses an expansion operation to compensate for the area reduction caused by erosion in the larger connected domain. The image morphological closing operation is just the opposite. It first performs an expansion operation on the image and then performs an erosion operation on the image. It first expands the image to fill small holes in the connected domain, expand the boundary of the connected domain, and connect two adjacent connected domains. Then, an erosion operation is used to reduce the expansion of the boundary of the connected domain and the increase in area caused by the expansion operation.

[0089] In one embodiment, estimating the building height according to the height of the building shadow area to obtain the building height estimation value includes:

[0090] The building height is estimated according to the height of the building shadow area, and the estimated building height is obtained, which is expressed as

[0091]

[0092] Where L is the height of the building shadow area, and ω are the altitude and azimuth of the sun, which are directly provided by satellite image data, and γ is an empirical parameter that can be determined by experiments based on the image content. Among them, the height of the building shadow area is defined as the length of the shadow direction corresponding to the sun's illumination direction, which can be determined by the sun's illumination angle.

[0093] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0094] In one embodiment, Figure 2 As shown, a device for constructing a city white model based on open source information is provided, comprising:

[0095] The open source information acquisition module 201 is used to acquire the open source map spatial data of the target building complex area and extract the boundary information of the building, street and area from the open source map spatial data;

[0096] The building height acquisition module 202 is used to acquire the building height value according to the building height data or the number of floors data when the open source map spatial data contains the building height data or the number of floors data;

[0097] The building height estimation module 203 is used to obtain an open-source satellite image of the target building complex area when the open-source map spatial data does not contain building height data or floor number data, obtain a grayscale image of the target building complex area by calculating the grayscale value of the open-source satellite image, and perform threshold segmentation and interconnection processing on the grayscale image in turn to obtain the building shadow area in the open-source satellite image, and estimate the building height according to the height of the building shadow area to obtain the building height estimation value;

[0098] The urban white model construction module 204 is used to obtain the building outline according to the boundary information of the building, street and area, and stretch it within the building outline along the vertical direction of the building according to the building height value or the building height estimation value to construct the urban white model of the target building complex area.

[0099] The specific definition of the device for constructing a city white model based on open source information can be found in the above definition of the method for constructing a city white model based on open source information, which will not be repeated here. Each module in the above-mentioned device for constructing a city white model based on open source information can be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0100] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for constructing a city white model based on open source information is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0101] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0102] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0103] Obtain open source map spatial data of the target building complex area, and extract boundary information of buildings, streets and areas from the open source map spatial data;

[0104] When the open source map spatial data contains building height data or floor number data, the building height value is obtained according to the building height data or floor number data;

[0105] When the open source map spatial data does not contain building height data or floor number data, obtain the open source satellite image of the target building complex area, calculate the grayscale value of the open source satellite image, obtain the grayscale image of the target building complex area, and perform threshold segmentation and interconnection processing on the grayscale image in turn to obtain the building shadow area in the open source satellite image, and estimate the building height according to the height of the building shadow area to obtain the building height estimation value;

[0106] The building outline is obtained according to the boundary information of the building, street and area, and within the building outline, it is stretched along the vertical direction of the building according to the building height value or the building height estimation value to construct an urban white model of the target building complex area.

[0107] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0108] Obtain open source map spatial data of the target building complex area, and extract boundary information of buildings, streets and areas from the open source map spatial data;

[0109] When the open source map spatial data contains building height data or floor number data, the building height value is obtained according to the building height data or floor number data;

[0110] When the open source map spatial data does not contain building height data or floor number data, obtain the open source satellite image of the target building complex area, calculate the grayscale value of the open source satellite image, obtain the grayscale image of the target building complex area, and perform threshold segmentation and interconnection processing on the grayscale image in turn to obtain the building shadow area in the open source satellite image, and estimate the building height according to the height of the building shadow area to obtain the building height estimation value;

[0111] The building outline is obtained according to the boundary information of the building, street and area, and within the building outline, it is stretched along the vertical direction of the building according to the building height value or the building height estimation value to construct an urban white model of the target building complex area.

[0112] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0113] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0114] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for constructing a city white model based on open source information, characterized in that: The method comprises: Obtaining open source map spatial data of a target building complex area, and extracting boundary information of buildings, streets, and areas from the open source map spatial data; When the open source map space data includes building height data or floor number data, obtaining a building height value according to the building height data or floor number data; When the open source map spatial data does not contain building height data or floor number data, an open source satellite image of the target building complex area is obtained, a grayscale image of the target building complex area is obtained by performing grayscale value calculation on the open source satellite image, and threshold segmentation and interconnection processing are performed on the grayscale image in turn to obtain a building shadow area in the open source satellite image, and the building height is estimated according to the height of the building shadow area to obtain an estimated building height value; Acquire the building outline according to the boundary information of the building, street and area, and stretch the building outline in the vertical direction according to the building height value or the building height estimation value to construct an urban white model of the target building complex area; The grayscale image is subjected to threshold segmentation and interconnection processing in sequence to obtain the building shadow area in the open source satellite image, including: Performing threshold segmentation on the grayscale image using the Otsu segmentation algorithm to obtain a binary image of the shadow area and a binary image of the non-shadow area in the target building complex area; The binary image of the shadow area and the binary image of the non-shadow area are connected, that is, an image morphological opening operation is first performed and then an image morphological closing operation is performed to obtain a potential shadow pixel segmentation result of the target building complex area, and the building in the potential shadow pixel segmentation result is obtained by detection, and the shadow area connected to the building in the potential shadow pixel segmentation result is classified as the building shadow area; specifically, when obtaining the building shadow area, the building in the potential shadow pixel segmentation result is detected and identified by using the straight line and right angle features of the building, and the shadow area that can find the corresponding building and is connected to the shadow is classified as the building shadow; for the shadow area that cannot find the corresponding building and has a small area, it is classified as other shadows or not further calculated; The building height is estimated according to the height of the building shadow area to obtain an estimated building height value, including: The building height is estimated according to the height of the building shadow area to obtain the building height estimation value, which is expressed as ; in, is the height of the building shadow area, and is the altitude and azimuth of the sun, provided directly by satellite image data. is an empirical parameter; wherein the height of the building shadow area is defined as the length of the shadow direction corresponding to the direction of sunlight.

2. The method according to claim 1, characterized in that When the open source map space data includes building height data or floor number data, obtaining the building height value according to the building height data or floor number data includes: When the open source map spatial data includes building height data, the building height value is obtained by directly reading the building height data; When the open source map space data includes floor number data, the floor number provided by the floor number data is multiplied by the set floor height to obtain a building height value.

3. The method according to claim 1, characterized in that The open source satellite images are taken during a time range when the sunlight is strong during the day and there is a certain inclination angle between the sun and the target building complex area.

4. The method according to claim 3, characterized in that By calculating the grayscale value of the open source satellite image, a grayscale image of the target building complex area is obtained, including: The RGB color channels in the open source satellite image are converted into HSI color channels to obtain a satellite HSI image of the target building complex area, and grayscale values ​​are calculated based on the satellite HSI image to obtain a grayscale image of the target building complex area.

5. The method according to claim 4, characterized in that Converting the RGB color channel in the open source satellite image into the HSI color channel to obtain a satellite HSI image of the target building complex area, and performing grayscale value calculation based on the satellite HSI image to obtain a grayscale image of the target building complex area, including: First, the RGB color channels in the open source satellite image are normalized, that is, the pixel values ​​of the RGB color channels are adjusted to the range of [0, 1]; Then, the normalized RGB color channel is converted into the HSI color channel to obtain the satellite HSI image of the target building complex area; wherein the pixel values ​​of the HSI color channel in the satellite HSI image are respectively: ; ; ; ; in, is the pixel value of the brightness channel, is the pixel value of the saturation channel, is the pixel value of the hue channel, is the pixel value of the red channel, is the pixel value of the green channel, is the pixel value of the blue channel, is the angle value; Finally, the grayscale value is calculated according to the satellite HSI image to obtain the grayscale image of the target building complex area, which is expressed as ; ; in, represents the intermediate parameter, Represents the grayscale image of the target building complex area, and are the preset hue channel weight parameter and saturation channel weight parameter, respectively, and and is a constant value, ranging from [0,1]; is the grayscale stretching function, and Expressed as ; in,( , )and( , ) is a defined constant value.

6. A device for constructing a city white model based on open source information, characterized in that: The device comprises: An open source information acquisition module, used to acquire open source map spatial data of the target building complex area, and extract boundary information of buildings, streets and areas from the open source map spatial data; A building height acquisition module, for acquiring a building height value according to the building height data or the number of floors data when the open source map spatial data contains the building height data or the number of floors data; A building height estimation module is used to obtain an open-source satellite image of a target building complex area when the open-source map spatial data does not contain building height data or floor number data, obtain a grayscale image of the target building complex area by performing grayscale value calculation on the open-source satellite image, and perform threshold segmentation and interconnection processing on the grayscale image in turn to obtain a building shadow area in the open-source satellite image, and estimate the building height according to the height of the building shadow area to obtain an estimated building height value; The urban white model construction module is used to obtain the building outline according to the boundary information of the building, street and area, and stretch it in the vertical direction of the building according to the building height value or the building height estimation value within the building outline to construct the urban white model of the target building complex area; The grayscale image is subjected to threshold segmentation and interconnection processing in sequence to obtain the building shadow area in the open source satellite image, including: Performing threshold segmentation on the grayscale image using the Otsu segmentation algorithm to obtain a binary image of the shadow area and a binary image of the non-shadow area in the target building complex area; The binary image of the shadow area and the binary image of the non-shadow area are connected, that is, an image morphological opening operation is first performed and then an image morphological closing operation is performed to obtain a potential shadow pixel segmentation result of the target building complex area, and the building in the potential shadow pixel segmentation result is obtained by detection, and the shadow area connected to the building in the potential shadow pixel segmentation result is classified as the building shadow area; specifically, when obtaining the building shadow area, the building in the potential shadow pixel segmentation result is detected and identified by using the straight line and right angle features of the building, and the shadow area that can find the corresponding building and is connected to the shadow is classified as the building shadow; for the shadow area that cannot find the corresponding building and has a small area, it is classified as other shadows or not further calculated; The building height is estimated according to the height of the building shadow area to obtain an estimated building height value, including: The building height is estimated according to the height of the building shadow area to obtain the building height estimation value, which is expressed as ; in, is the height of the building shadow area, and is the altitude and azimuth of the sun, provided directly by satellite image data. is an empirical parameter; wherein the height of the building shadow area is defined as the length of the shadow direction corresponding to the direction of sunlight.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

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

Citation Information

Patent Citations

  • Method for measuring and calculating height of building by utilizing multi-feature fusion

    CN113408419A

  • High-precision urban building three-dimensional modeling method based on three-dimensional satellite

    CN116168153A