WO2021238359A1 - Method for constructing multi-level of detail model of object, and computer device - Google Patents

Method for constructing multi-level of detail model of object, and computer device Download PDF

Info

Publication number
WO2021238359A1
WO2021238359A1 PCT/CN2021/081695 CN2021081695W WO2021238359A1 WO 2021238359 A1 WO2021238359 A1 WO 2021238359A1 CN 2021081695 W CN2021081695 W CN 2021081695W WO 2021238359 A1 WO2021238359 A1 WO 2021238359A1
Authority
WO
WIPO (PCT)
Prior art keywords
building
satellite image
model
computer
lod
Prior art date
Application number
PCT/CN2021/081695
Other languages
French (fr)
Chinese (zh)
Inventor
刘子健
张彦峰
康一飞
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021238359A1 publication Critical patent/WO2021238359A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation
    • G06T17/205Re-meshing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features

Definitions

  • This application relates to the field of map construction, and in particular to a method and computer equipment for constructing a multi-level-of-detail model (digital surface model, DSM) of an object.
  • DSM digital surface model
  • the level of detail (LOD) model of the building is the basis for constructing high-precision maps, that is, maps based on satellite imagery are composed of multiple associated satellite images.
  • the LOD model of each building is obtained after merging. Therefore, if a good LOD model of the building can be constructed, it means that a good satellite map can be constructed in the end.
  • the LOD model of buildings based on satellite images is generally: first perform a regional network adjustment on the satellite images to obtain the aligned satellite images, and then import the aligned satellite images into the stereo mapping software, and pass the front intersection
  • the method measures the height of each building in the satellite image one by one (that is, one building corresponds to a height), and then based on the obtained height information and contour vector of each building, use related software (or algorithm) along the building
  • the contours "pull up" the buildings according to their respective heights, thereby obtaining the LOD model of each building in a certain satellite image.
  • each building in the above method corresponds to a height value
  • the buildings under the LOD model are flat-topped after being “pulled up”, and most of the current buildings are not completely flat-topped, such as " For “herringbone” roofs, “spires” buildings, etc.
  • the LOD model obtained by the above method will lose the top profile information of the building, resulting in loss of accuracy.
  • the embodiments of the application provide a method and computer equipment for constructing a multi-level-of-detail model of an object, which are used to construct an LOD model through the acquired 3-dimension (3-dimension, 3D) point cloud of a building, because the 3D point cloud is based on The contour of the building is sampled, and the top surface information of the building can be restored with high precision, and a high-precision LOD model can be obtained based on this.
  • the embodiments of the present application first provide a method for constructing a multi-level-of-detail model of an object, which can be used in high-precision map construction.
  • Meter satellite image corresponding to the DSM and the outline vector of each building in the satellite image, and the DSM and the outline vector of each building in the satellite image are combined to obtain the combined result.
  • the result of the fit ie, the overlapped DSM and the contour vector of each building
  • sample each building in the current satellite image to obtain the 3D point cloud of each building in the satellite image.
  • the computer equipment can be based on the obtained various buildings.
  • the 3D point cloud of the building constructs each building in the current satellite image to obtain the LOD model of each building in the satellite image.
  • the computer device can obtain the LOD model of each building in each satellite image in the satellite image collection (including the collection of multiple satellite images) in the above-mentioned manner.
  • the DSM corresponding to the satellite image and the contour vector of each building in the satellite image are combined for the first time, and then the 3D point of each building is obtained based on the combined DSM and building contour vector Cloud, that is to say, the fit result obtained according to the DSM and the silhouette vector of the building defines the sampling area of the 3D point cloud (ie, the sampling range is delineated), and the sampling of the 3D point cloud is performed in this sampling area, which can be high
  • the top surface information of the building is restored with precision, and a high-precision LOD model can be obtained based on this.
  • the foregoing embodiments of the present application do not need to obtain the height information of each building individually, which saves costs and reduces the amount of data at the same time.
  • each building in the satellite image is constructed according to the 3D point cloud, and the LOD model of each building in the satellite image is obtained.
  • the method can be through, but not limited to, the following methods: first reconstruct the grid model of each building in the satellite image from the 3D point cloud according to the first preset algorithm, and then simplify the grid model according to the second preset algorithm to obtain the satellite image Simplified LOD model of each building in.
  • the second preset algorithm may have multiple specific manifestations, for example, vertex deletion
  • the method can also be a method in which the side becomes a point (that is, the side collapses), or a method in which the surface becomes a point (that is, the area shrinks), which is not specifically limited here.
  • the second preset algorithm as the edge collapse method (ie, edge folding algorithm) as an example, how to simplify the mesh model is introduced: First, the mesh model of each building is obtained according to the edge folding algorithm. Iterative simplification until the LOD model of each building in the simplified satellite image meets the preset conditions, then the simplified LOD model obtained at this time is the final output LOD model.
  • the obtained mesh model is simplified by the edge folding algorithm, and a self-checking mechanism (ie, setting preset conditions) is added to prevent LOD.
  • the model is oversimplified, while taking into account the simplification ratio and model accuracy.
  • the current satellite image Sampling of each building to obtain the 3D point cloud of each building in the satellite image can be specifically but not limited to the following methods: each building in the current satellite image is followed by a certain step on the corresponding DSM along its outline.
  • R It is the image resolution of the satellite image.
  • each building in the multiple satellite images The LOD model is partitioned and merged to obtain the target map.
  • the LOD model of each building in the satellite image collection can be partitioned and merged to obtain a high-precision target map.
  • the map can be further sent to end-side devices (such as mobile phones, tablet computers, etc.) or edge devices for use, which is practical.
  • the contour vector of each building in the satellite image is Save it as a shp file.
  • a shp file includes but is not limited to the following methods: 1) The outline of each building obtained based on the satellite image can be stored as a shp file, and a satellite image corresponds to a shp file. For example, there are 4 buildings in a satellite image, then The obtained contour vectors of the 4 buildings are all stored in the same shp file; 2) Each building corresponds to a shp file. For example, if there are 4 buildings in a certain satellite image, then these 4 buildings are obtained The contour vectors of are saved as 4 different shp files.
  • the specific implementation of storing the outline vector of each building in each satellite image as a shp file is not limited here.
  • the building includes at least the following objects At least one of: houses, bridges, electrical towers, tunnels, iron towers, water towers, iconic sculptures, dams, communication base stations, etc. Further, as long as it is a target determined by people in satellite images, and extract the outline vector of the target , Then the target can be called the building described in the embodiment of this application.
  • the first preset algorithm includes: a Poisson surface reconstruction algorithm.
  • a second aspect of the embodiments of the present application provides a computer device that has the function of implementing the foregoing first aspect or any one of the possible implementation methods of the first aspect.
  • This function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • the third aspect of the embodiments of the present application provides another computer device, which may include a memory, a processor, and a bus system, where the memory is used to store a program, and the processor is used to call the program stored in the memory to execute the first embodiment of the present application. Aspect or any one of the possible implementation methods of the first aspect.
  • the fourth aspect of the present application provides a computer-readable storage medium that stores instructions in the computer-readable storage medium.
  • the computer can execute the first aspect or any one of the first aspects. Way of realization.
  • the fifth aspect of the embodiments of the present application provides a computer program or computer program product.
  • the computer program or computer program product When the computer program or computer program product is run on a computer, the computer executes the first aspect or any one of the possible implementation manners of the first aspect. method.
  • the sixth aspect of the embodiments of the present application provides a chip.
  • the chip includes at least one processor and at least one interface circuit, the interface circuit is coupled to the processor, and the at least one interface circuit is used to perform a transceiver function and send instructions to At least one processor, at least one processor is used to run a computer program or instruction, which has the function of realizing the method of the above-mentioned first aspect or any one of the possible implementation manners of the first aspect.
  • This function can be realized by hardware or software Realization can also be realized by a combination of hardware and software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • the interface circuit is used to communicate with other modules outside the chip.
  • the interface circuit can send the LOD model of the building obtained by the on-chip processor to end-side devices (such as mobile phones, personal computers, smart phones). Watches, etc.) or cloud-side devices (such as cloud servers, clusters, etc.).
  • FIG. 1 is a schematic diagram of three mesh models of the same target 3D object with different accuracy provided by an embodiment of the application;
  • FIG. 2 is a schematic diagram of a mesh model in which each triangle is divided into 4 new triangles according to an embodiment of the application;
  • FIG. 3 is a schematic diagram of the working principle of the LOD model provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of a folding process of the edge folding algorithm provided by an embodiment of the application.
  • FIG. 5 is a schematic diagram of a DSM provided by an embodiment of the application.
  • Figure 6 is a schematic flow diagram of a mainstream solution for building a LOD model of a building based on satellite images
  • Fig. 7 is a schematic diagram of the initial input satellite image
  • Figure 8 is a schematic diagram of measuring the height of a certain building in a satellite image by using stereo mapping software
  • Fig. 9 is a schematic diagram of the outline of the building corresponding to the satellite image
  • Figure 10 is a schematic diagram of saving a building outline vector as a shp file
  • Figure 11 is a schematic diagram of a city-level high-precision map obtained by segmenting and merging the LOD models of various buildings;
  • FIG. 12 is a schematic flowchart of a method for constructing an object's LOD model provided by an embodiment of the application.
  • Figure 13 is a schematic diagram of a semi-globally optimized DSM extraction method
  • Fig. 14 is a schematic diagram of a building contour recognition method based on artificial intelligence (AI);
  • 15 is a schematic diagram of another flow chart of the method for constructing an object's LOD model provided by an embodiment of the application;
  • FIG. 16 is a schematic diagram of a vertex deletion method provided by an embodiment of the application to achieve the purpose of simplifying the mesh model
  • FIG. 17 is a schematic diagram of a method of area shrinkage provided by an embodiment of the application to achieve the purpose of simplifying the mesh model;
  • FIG. 18 is a schematic diagram of the LOD model at different degrees of simplification provided by the embodiments of the application.
  • FIG. 19 is a schematic diagram of a flow chart of implementing mesh model simplification through an edge folding algorithm provided by an embodiment of the application.
  • FIG. 20 is a schematic diagram of a method for constructing a LOD model of an object provided by an embodiment of the application.
  • 21 is a schematic diagram of a high-precision map obtained by merging the LOD models of various buildings according to an embodiment of the application;
  • FIG. 22 is a schematic diagram of comparison between the LOD model obtained by the prior art and the LOD model obtained by the solution of the present application;
  • FIG. 23 is a schematic diagram of an application scenario provided by an embodiment of the application.
  • FIG. 24 is a schematic diagram of a computer device provided by an embodiment of the application.
  • FIG. 25 is another schematic diagram of a computer device provided by an embodiment of this application.
  • the embodiments of the present application provide a method and computer equipment for constructing a multi-level-of-detail model of an object, which are used to construct an LOD model from the acquired 3D point cloud of a building. Since the 3D point cloud is sampled based on the outline of the building, It can restore the top surface information of the building with high precision, and obtain a high-precision LOD model based on this.
  • Satellite image It can also be called satellite image, satellite image, satellite image, etc. It refers to the map-like photos of the earth or other planets taken by the photography equipment mounted on the artificial satellite.
  • the first is to use photographic equipment to shoot the film, place the photographic equipment with the film on the satellite, and send the satellite into the designed orbit to take pictures of the ground.
  • the satellite is recovered, and the negative film is obtained after a series of photographic processing, which can be digitized by image scanning to obtain digital satellite images; the second is "digital imaging", and the imaging principle is similar to that of a digital camera.
  • Regional network adjustment refers to the reasonable allocation of accidental errors of observations, pre-correction of systematic errors of observations, and the use of certain observation principles and manual methods to control the gross errors of observations. .
  • the control network is fixed on the known data based on the known starting data.
  • the regional network adjustment refers to dividing the area with the largest area not exceeding the number of image pairs, and performing the adjustment according to the divided area as a unit.
  • Stereo mapping generally refers to the simulation method of stereo mapping, that is, using two optical or mechanical projectors, or optical-mechanical projectors, the transparent aerial photograph is installed in the projector, illuminated with light, and simulated shooting overshoot. Reconstruct a reduced three-dimensional model similar to the actual field. The measurement on this three-dimensional model is equivalent to the measurement of the original object. The results obtained can be directly drawn on the drawing table by mechanical or gear transmission to various topographic maps or topics The basic principle of maps and stereo mapping is the geometric reversal of the photographic process.
  • Spatial front intersection It can also be called the spatial front intersection of the stereo pair. It refers to the method of restoring the beam of the stereo pair during photography and establishing the geometric model, and then using the intersection of the light rays of the same name to determine the spatial position of the model point.
  • the stereo The method of determining the object space coordinates of the point (the coordinates in a tentative three-dimensional coordinate system or the coordinates of the ground measurement coordinate system) by the internal and external azimuth elements of the left and right images and the image coordinate measurement values of the image point with the same name .
  • the images or image data to be nested can be photos or data of each spectrum captured by a multi-spectral camera or scanner at the same time period or different time periods, or data collected by different sensors.
  • Mesh model It can also be called Mesh model, or, 3D mesh model.
  • Mesh model refers to the unified expression form of a 3D object. Each 3D object is presented in the form of a mesh model.
  • Mesh model It is spliced by polygons (commonly used quadrilaterals and triangles), and a complex polygon is actually spliced by multiple triangular faces.
  • the mesh model is a mesh model composed of triangles as an example for illustration. As shown in Figure 1, there are three mesh models with different precisions of the same target 3D object "dog".
  • the so-called different precision refers to the same 3D object model, and the high precision refers to more faces (such as , The number of triangles) is constructed into the 3D object.
  • the low precision means that the 3D object is constructed from fewer faces.
  • a mesh model is divided into four by each original triangle. With the new triangle, the total number of faces has been increased by 4 times, and the accuracy has also been improved.
  • Multi-level of detail model LOD model, a real-time three-dimensional computer graphics technology, its working principle is: when the viewpoint is close to the object, the model can be observed with rich details; when the viewpoint is far away from the model, the observed details are gradually blurred.
  • the system drawing program selects the corresponding details to display according to certain judgment conditions, thus avoiding the time waste caused by drawing those details with relatively little meaning, and effectively harmonizing the relationship between the continuity of the picture and the resolution of the model.
  • Poisson surface reconstruction algorithm It is an implicit function surface reconstruction method. For example, an object can be represented by an indicator function whose outside is 1 and 0 inside the object, and the surface is obtained by solving this function and then performing isosurface extraction. The process of solving this function is the process of constructing a Poisson equation and solving the Poisson equation. This algorithm is usually used to reconstruct a discrete 3D point cloud to reconstruct a watertight triangular mesh model.
  • Edge folding algorithm It can also be called an edge collapse algorithm or an edge collapse simplification algorithm. It is a type of geometric element deletion method. Its essence is vertex deletion, also called edge collapse.
  • Figure 4 is a schematic diagram of the folding process. Each time it is simplified, a directed edge x (the dotted arrow in Figure 1 indicates the direction) and two related points (p1, p2) are selected through the algorithm. ), "fold" one of the points p1 to p2, then modify the topological relationship, map the edges related to p1 to p2, and finally complete the simplified operation.
  • One simplification can reduce 1 edge and 2 faces of the source model.
  • the edge folding algorithm folds the edge x and the point p1, the triangle 12 disappears from the original mesh model after folding, and the triangle 3456The original point with p1 as the vertex is changed to p2 as the vertex.
  • the advantage of the edge folding algorithm is that it can generate continuous levels of detail and has a corresponding method of processing texture information.
  • DSM Digital surface model
  • DEM digital elevation model
  • DEM digital elevation model
  • DEM digital elevation model
  • DEM digital elevation model
  • DEM only includes the elevation of the terrain
  • the information does not contain other surface information.
  • DSM is based on DEM and further covers the elevation of other surface information besides the ground. As shown in Figure 5, a schematic diagram of DSM is illustrated. It has been widely used in some areas where building height is required. DSM represents the most true expression of ground ups and downs, and can be widely used in all walks of life.
  • Figure 6 is a mainstream solution for building LOD models based on satellite images.
  • the process is as follows: the initial input data is satellite images (as shown in Figure 7), and a regional network is performed for each group of satellite images. Adjust to obtain the aligned satellite image (the aligned satellite image optimizes the camera parameters of the camera equipment, and the satellite image itself has no influence); then, import the aligned satellite image into the relevant stereo mapping software and pass the front
  • the rendezvous method can measure the height of each building (measured one by one) in each satellite image (as shown in Figure 8); in addition, it is also necessary to obtain the building outline corresponding to the input satellite image (as shown in Figure 9).
  • the building outline is usually drawn manually based on the corresponding satellite image, that is, it can be constructed according to each building in each satellite image. Now it is generally purchased directly from a third party. The purchased satellite image and the satellite image The building outlines in is already marked.
  • the building outlines obtained based on each satellite image can be stored as a shp file.
  • a satellite image corresponds to a shp file. For example, there are 3 buildings in a satellite image. The outline vectors of these three buildings will be obtained and stored in the shp file; after that, the height of each building in each satellite image obtained above is also stored in the shp file (as shown in Figure 10); finally based on The contour and height information of each building in the shp file corresponding to each satellite image.
  • the above-mentioned mainstream solution for building LOD models based on satellite images has at least the following defects: 1) The cost is high. This solution needs to use relevant software or algorithms to measure each satellite image one by one in the entire production process. The height of the building increases the time cost and labor cost of data production; 2) Loss of accuracy, as can be seen from Figure 11, due to program restrictions, these models are flat-topped. For some complex buildings, such as " "Herringbone” roofs, "spire” buildings, etc., the LOD model produced by the above solution will lose the top profile information of the building, resulting in loss of accuracy.
  • the embodiment of the present application first provides a method of constructing an object's LOD model, which is used to construct the LOD model from the acquired 3D point cloud of the building, because the 3D point cloud is completely based on the building
  • the contour is sampled, and the top surface information of the building can be restored with high precision, and a high-precision LOD model can be obtained based on this.
  • FIG. 12 is a schematic flowchart of a method for constructing a LOD model of an object according to an embodiment of the application, which specifically includes:
  • the computer equipment will obtain the DSM corresponding to a certain target satellite image (for example, a satellite image with a resolution of 0.5 meters) and the contour vector of each building in the satellite image.
  • a certain target satellite image for example, a satellite image with a resolution of 0.5 meters
  • how the computer equipment obtains the DSM corresponding to the satellite image and the outline vector of each building in the satellite image are all mature solutions in the industry. The details are not repeated here, including but not limited to: computer
  • the device can obtain the DSM corresponding to the satellite image through a semi-globally optimized DSM extraction method as shown in Figure 13, and then obtain the satellite through an AI-based building contour recognition method as shown in Figure 14.
  • the outline vector of each building in the image It should be noted here that the satellite image mentioned in this application refers to the satellite image that has been adjusted and aligned through the regional network.
  • the outline vector of each building in each satellite image can be stored as a shp file, including but not limited to the following methods: 1) Each building obtained based on the satellite image The outline can be stored as a shp file, and a satellite image corresponds to a shp file. For example, if there are 4 buildings in a satellite image, the obtained outline vectors of these 4 buildings are all stored in the same shp file; 2) Each building corresponds to a shp file. For example, if there are 4 buildings in a certain satellite image, the obtained outline vectors of the 4 buildings are stored as 4 different shp files.
  • the specific implementation of storing the outline vector of each building in each satellite image as a shp file is not limited here. It should be noted that, in some embodiments of the present application, in addition to storing the outline vector of each building in the satellite image as a shp file, it can also be stored as other files, and the details are not limited here.
  • the buildings described in the embodiments of the present application may include at least one of the following objects: houses, bridges, electrical towers, tunnels, iron towers, water towers, iconic sculptures, dams, communication base stations, etc., and further , As long as it is a target determined by people in the satellite image and the contour vector of the target is extracted, then the target can be called the building described in the embodiment of the present application.
  • the DSM is combined with the contour vector of each building in the satellite image to obtain a combined result.
  • the computer device After the computer device obtains the DSM of the current satellite image and the contour vector of each building in the satellite image, it will fit the DSM with the contour vector of each building in the satellite image to obtain the fit result. Since the contour vectors of DSM and each building are extracted based on the satellite image after the same adjustment, the two can naturally fit together strictly, that is, based on the sum of the contour vectors of each building in the same satellite image.
  • the corresponding DSM is overlapped, and the overlapped DSM and the contour vector of each building are the result of the integration.
  • the computer equipment After the computer equipment obtains the set result, it can sample each building in the current satellite image according to the set result (ie the overlapped DSM and the contour vector of each building) to obtain the 3D of each building in the satellite image Point cloud.
  • the set result ie the overlapped DSM and the contour vector of each building
  • sampling each building in the current satellite image according to the result of the set-up to obtain the 3D point cloud of each building in the satellite image can be specifically, but not limited to, the following methods:
  • a dense 3D point cloud you can set a smaller, such as 0.3; if you want to get a less dense 3D point cloud , Then a can be set larger, such as 0.9, which is not specifically limited here, and R is the image resolution of the satellite image.
  • the computer equipment can construct each building in the current satellite image according to the obtained 3D point cloud of each building, so as to obtain the LOD model of each building in the satellite image.
  • the computer device can obtain the LOD model of each building in each satellite image in the satellite image collection (including the collection of multiple satellite images) in the above-mentioned manner.
  • the LOD model of each building in the satellite image collection can be partitioned and merged to obtain A high-precision target map, which can be further sent to end-side devices (such as mobile phones, tablet computers, etc.) or edge devices for use.
  • the computer device described in this application can be a cloud-side device (eg, cloud server, cluster, etc.), or an end-side device (eg, mobile phone, personal computer, etc.), as long as it can execute this application
  • the device corresponding to each step in the embodiment in FIG. 12 can be referred to as a computer device, and the specific expression form of the computer device is not specifically limited herein.
  • Fig. 15 illustrates the method of constructing the LOD model of the object described in the above embodiment: First, select a target satellite image (may be called a satellite image S), based on the satellite image S Extract the outline vector of each building in the DSM and the satellite image S (for example, the outline vector of each building can be saved as a shp file), and then the DSM and the outline vector of each building (for example, the corresponding shp File) to fit, get the fit result shown on the right side of Figure 15, and then based on the fit result, sample the discrete 3D point cloud according to the contour of each building, Figure 15 selects a building in DSM as the target The building (may be called building z) is shown to obtain the discrete 3D point cloud of building z, and finally the building z is constructed according to the 3D point cloud of building z to obtain the LOD model of building z.
  • a target satellite image may be called a satellite image S
  • the satellite image S for example, the outline vector of each building can be saved as a sh
  • the LOD model can be reconstructed from the 3D point cloud through the Poisson surface reconstruction algorithm, and the reconstructed model has good water tightness and geometric surface characteristics.
  • the LOD model corresponding to each building in the satellite image S is obtained according to similar processing to the building z.
  • the DSM corresponding to the satellite image and the contour vector of each building in the satellite image are combined for the first time, and then the 3D point of each building is obtained based on the combined DSM and building contour vector Cloud, that is to say, the fit result obtained according to the DSM and the silhouette vector of the building defines the sampling area of the 3D point cloud (ie, the sampling range is delineated), and the sampling of the 3D point cloud is performed in this sampling area, which can be high
  • the top surface information of the building is restored with precision, and a high-precision LOD model can be obtained based on this.
  • the foregoing embodiments of the present application do not need to obtain the height information of each building individually, which saves costs and reduces the amount of data at the same time.
  • each building in the satellite image is constructed according to the 3D point cloud, and the LOD model of each building in the satellite image is obtained, which is essentially a high-precision grid model. Because all the 3D point clouds obtained for each building are used to construct the LOD model of the building, although the LOD model of the building obtained in this way has high accuracy, it also has the problem of large amount of data. Eventually, the amount of synthesized satellite map data may be too large, causing freezes during use and affecting user experience.
  • each building in the satellite image is constructed according to the 3D point cloud, and the way to obtain the LOD model of each building in the satellite image can be through, but not limited to, the following methods: first according to the first preset The algorithm reconstructs the grid model of each building in the satellite image from the 3D point cloud (that is, the above-mentioned unsimplified LOD model), and then simplifies the grid model according to the second preset algorithm to obtain a simplified model of each building in the satellite image LOD model.
  • the first preset algorithm may include, but is not limited to: Poisson surface reconstruction algorithm.
  • the second preset algorithm can have a variety of specific manifestations, for example, the vertex deletion shown in Figure 16
  • the method can also be a method in which the side becomes a point (that is, the side collapses) as shown in FIG. 4, or a method in which the surface becomes a point (that is, the area shrinks) as shown in FIG. 17, which is not specifically limited here.
  • edge collapse ie edge folding algorithm
  • FIG. 4 take the method of edge collapse (ie edge folding algorithm) shown in Figure 4 as an example for the second preset algorithm to introduce how to simplify the mesh model:
  • the mesh model of the object is iteratively simplified until the LOD model of each building in the simplified satellite image meets the preset conditions.
  • the simplification of the mesh model is achieved through the edge folding algorithm (as shown in Figure 4), and a self-checking mechanism (ie, setting preset conditions) is added to prevent excessive simplification of the LOD model, as shown in Figure 18, that is Because the LOD model is "pulled" due to over-simplification, the building in this case has been severely distorted and cannot be used.
  • the edge with the smallest cost value can be selected for collapse, or the edge with the cost value less than a certain value can be selected for collapse.
  • the self-checking calculation can be carried out by, but not limited to, the following methods: Calculate the 3D point cloud that constitutes the initial mesh model (that is, the 3D point cloud that is not performed on the left side of Figure 4 above) The distance d from each vertex at the time of collapse) to the current simplified LOD model (that is, the area formed by the 7 triangle rows on the right side of Figure 4, which can be approximated as a plane).
  • the step is the sampling step of the 3D point cloud.
  • the sampling step can also be set by yourself, for example,
  • FIG. 20 For ease of understanding, the following takes Figure 20 as an example to illustrate the LOD model finally simplified from the initial satellite image: input the initial satellite image (for example, a satellite image with a resolution of 0.5 meters) into a computer device, and then , Using a preset method (such as the semi-global optimization method shown in Figure 13) to extract DSM from the satellite image, while using a preset method (such as the AI recognition method shown in Figure 14) to extract the satellite image
  • the automated construction process can reduce labor and production cycles, effectively reduce the production cost of LOD models, and at the same time ensure the accuracy of complex building models, and achieve high-precision, low-cost city-level high-precision maps Rapid production.
  • the LOD model of the building obtained from the same satellite image is the building obtained by the embodiment of the present application.
  • the accuracy of the LOD model is much higher than the accuracy of the LOD model of the building obtained by the current existing technology.
  • the high-precision map constructed based on the LOD model of the building in the embodiment of this application can be used in the fields of smart security, smart city, smart terminal, etc.
  • the LOD model of the building obtained based on the method of this application can be used to construct high-precision maps.
  • This high-precision map can be applied to various scenarios, such as some common tasks: unmanned obstacle avoidance, intelligent recognition, positioning navigation, further construction of AR/VR maps, etc. Introduction of multiple application scenarios.
  • AR map also known as River Map
  • 5G architecture of terminal, tube and cloud fusion it will provide an earth-level virtual and real world. Construction and service capabilities.
  • the high-precision map as a bridge between the virtual world and the real world, is an important foundation for AR maps.
  • the technical solution proposed in this application has been verified, and it has been proved that the solution can quickly produce LOD models at a lower cost and realize the city Level of high-precision map coverage, while the accuracy of the model meets the application requirements, as shown in FIG. 23, the application effect of the high-precision map provided in this embodiment of the application in the AR map.
  • the high-precision map obtained based on the LOD model constructed in the embodiments of this application can also be applied to the field of unmanned driving, such as unmanned intelligent flight equipment (such as unmanned aerial vehicles, aerial fire extinguishing equipment, etc.).
  • unmanned intelligent flight equipment such as unmanned aerial vehicles, aerial fire extinguishing equipment, etc.
  • the smart devices of can be equipped with high-precision maps provided by this application, so that these smart flying devices can accurately avoid various buildings during low-altitude flights.
  • the AR map and the obstacle avoidance for unmanned driving introduced above are only two specific scenarios for the application of the high-precision map constructed based on the method of the embodiment of the present application, and the application of the embodiment of the present application is not limited to the foregoing scenarios. , It can be applied to any scene where a map needs to be used.
  • FIG. 24 is a schematic diagram of a computer device provided by an embodiment of the application.
  • the computer device may specifically include: an acquisition module 2401, a nesting module 2402, a sampling module 2403, and a construction module 2404, wherein the acquisition module 2401 , Used to obtain the DSM corresponding to the satellite image and the contour vector of each building in the satellite image; the matching module 2402, used to merge the DSM with the contour vector of each building in the satellite image, Obtain the nested result; the sampling module 2403 is used to sample each building in the satellite image according to the nested result to obtain the 3D point cloud of each building in the satellite image; the building module 2404 is used to The 3D point cloud constructs each building in the satellite image to obtain a LOD model of each building in the satellite image.
  • the acquisition module 2401 Used to obtain the DSM corresponding to the satellite image and the contour vector of each building in the satellite image
  • the matching module 2402 used to merge the DSM with the contour vector of each building in the satellite image, Obtain the nested result
  • the sampling module 2403 is used to sample each building in the satellite image according
  • the acquisition module 2401 will acquire the DSM corresponding to the satellite image and the contour vector of each building in the satellite image, and use the matching module 2402 to convert the DSM and satellite image corresponding to the satellite image.
  • the contour vectors of each building are combined, and then based on the combined DSM and building contour vectors, the 3D point cloud of the discrete buildings is sampled by the sampling module 2403, and finally the 3D point cloud is used for each building through the building module 2404. Since the 3D point cloud is sampled based on the outline of the building, it can restore the top surface information of the building with high precision, and thus a high-precision LOD model can be obtained.
  • the foregoing embodiments of the present application do not need to obtain the height information of each building individually, which saves costs and reduces the amount of data at the same time.
  • the construction module 2404 is specifically configured to: reconstruct a grid model of each building in the satellite image from the 3D point cloud according to a first preset algorithm, and then, according to the first preset algorithm The second preset algorithm simplifies the grid model to obtain the LOD model of each building in the satellite image.
  • the construction module 2404 is specifically used to: iteratively simplify the grid model according to the edge folding algorithm until the simplified LOD model of each building in the satellite image satisfies With the preset conditions, the simplified LOD model obtained at this time is the final output LOD model.
  • the obtained mesh model is simplified by the edge folding algorithm, and a self-checking mechanism (ie, setting preset conditions) is added to prevent LOD.
  • the model is oversimplified, while taking into account the simplification ratio and model accuracy.
  • the sampling module 2403 is specifically configured to: based on the outline of each building in the satellite image, perform sampling on the DSM at a preset step to obtain each 3D point cloud of buildings.
  • the sampling module 2403 is specifically configured to: based on the outline of each building in the satellite image, perform sampling on the DSM at a preset step to obtain each 3D point cloud of buildings.
  • the construction module 2404 is also used to: merge the LOD models of various buildings in multiple satellite images to obtain a target map.
  • the LOD model of each building in the satellite image collection can be partitioned and merged to obtain a high-precision target map.
  • the map can be further sent to end-side devices (such as mobile phones, tablet computers, etc.) or edge devices for use, which is practical.
  • the outline vector of each building in the satellite image is saved as a shp file.
  • a shp file includes but is not limited to the following methods: 1) The outline of each building obtained based on the satellite image can be stored as a shp file, and a satellite image corresponds to a shp file. For example, there are 4 buildings in a satellite image, then The obtained contour vectors of the 4 buildings are all stored in the same shp file; 2) Each building corresponds to a shp file. For example, if there are 4 buildings in a certain satellite image, then these 4 buildings are obtained The contour vectors of are saved as 4 different shp files.
  • the specific implementation of storing the outline vector of each building in each satellite image as a shp file is not limited here.
  • the building includes at least one of the following objects: houses, bridges, electrical towers, tunnels, iron towers, water towers, iconic sculptures, dams, communication base stations, etc., further, as long as they are People determine the target in the satellite image and extract the contour vector of the target, then the target can be called the building described in the embodiment of the present application.
  • the first preset algorithm includes: a Poisson surface reconstruction algorithm.
  • FIG. 24 corresponds to the information interaction and execution process between the various modules/units in the computer equipment described in the embodiment, and is based on the same method embodiment as that of FIG. 12, FIG. 15 and FIG. 20 in this application.
  • the specific content can be referred to the description in the method embodiment shown in the foregoing application, which will not be repeated here.
  • FIG. 25 is a schematic structural diagram of a computer device provided by an embodiment of this application.
  • the described modules are used to implement the functions of the computer device in the embodiment corresponding to FIG. 24.
  • the computer device 2500 is implemented by one or more servers.
  • the computer device 2500 may have relatively large differences due to different configurations or performances. Including one or more central processing units (CPU) 2522 (e.g., one or more central processing units) and memory 2532, and one or more storage media 2530 (e.g., one or more central processing units) storing application programs 2542 or data 2544 A storage device in Shanghai).
  • CPU central processing units
  • storage media 2530 e.g., one or more central processing units
  • the memory 2532 and the storage medium 2530 may be short-term storage or permanent storage.
  • the program stored in the storage medium 2530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the computer device 2500.
  • the central processing unit 2522 may be configured to communicate with the storage medium 2530, and execute a series of instruction operations in the storage medium 2530 on the computer device 2500.
  • the computer device 2500 may also include one or more power supplies 2526, one or more wired or wireless network interfaces 2550, one or more input and output interfaces 2558, and/or one or more operating systems 2541, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • the central processing unit 2522 is configured to execute the method in the embodiment corresponding to FIG. 12, FIG. 15 or FIG. 20.
  • the central processing unit 2522 can be used to: obtain a DSM corresponding to a certain target satellite image (for example, a satellite image with a resolution of 0.5 meters) and the contour vector of each building in the satellite image, and combine the DSM with The contour vectors of the various buildings in the satellite image are combined to obtain the combined result.
  • the combined result ie, the overlapped DSM and the contour vector of each building
  • Sampling is performed to obtain the 3D point cloud of each building in the satellite image.
  • the computer equipment can construct each building in the current satellite image according to the obtained 3D point cloud of each building, so as to obtain each of the satellite images.
  • the LOD model of the building can be obtained.
  • the computer device can obtain the LOD model of each building in each satellite image in the satellite image collection (including the collection of multiple satellite images) in the above-mentioned manner.
  • central processing unit 2522 may also be used to execute any step in the method embodiment corresponding to FIG. 12, FIG. 15 or FIG. 20 in this application.
  • the central processing unit 2522 may also be used to execute any step in the method embodiment corresponding to FIG. 12, FIG. 15 or FIG. 20 in this application.
  • the embodiment of the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium stores a program for signal processing. When it runs on a computer, the computer executes the above-mentioned embodiment description. The steps performed by the computer equipment.
  • the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physically separate.
  • the physical unit can be located in one place or distributed across multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the connection relationship between the modules indicates that they have a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.
  • this application can be implemented by means of software plus necessary general hardware. Of course, it can also be implemented by dedicated hardware including dedicated integrated circuits, dedicated CPUs, dedicated memory, Dedicated components and so on to achieve. Under normal circumstances, all functions completed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structure used to achieve the same function can also be diverse, such as analog circuits, digital circuits or special purpose circuits. Circuit etc. However, for this application, software program implementation is a better implementation in more cases. Based on this understanding, the technical solution of this application essentially or the part that contributes to the prior art can be embodied in the form of a software product.
  • the computer software product is stored in a readable storage medium, such as a computer floppy disk. , U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk, etc., including several instructions to make a computer device (which can be a personal Computers, training devices, or network devices, etc.) execute the methods described in the various embodiments of the present application.
  • a computer floppy disk such as a computer floppy disk.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, training device, or data.
  • the center transmits to another website site, computer, training equipment, or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a training device or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a high-density digital video disc (digital video disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disk)). , SSD)) etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Abstract

A method for constructing a multi-level of detail (LOD) model of an object, and a computer device, applicable in the construction of a high-precision map. The method comprises: nesting a digital surface model (DSM) corresponding to a satellite image and outline vectors of buildings in the satellite image; then performing sampling on the basis of the nested DSM and outline vectors of the buildings to obtain discrete 3D point clouds of the buildings; and constructing the buildings using the 3D point clouds, wherein the 3D point clouds are obtained by performing sampling on the basis of the outlines of the buildings, and thus can highly precisely restore top surface information of the buildings, such that a high-precision multi-LOD model can be obtained. The method does not require individual one-by-one acquisition of height information of each building, can directly use an automatic construction process to reduce workload and a manufacturing period, thus effectively reducing production costs of an LOD model; in addition, the method ensures the precision of a complicated building model, and implements quick production of a low-cost city-scale high-precision map.

Description

一种构建物体的多细节层次模型的方法及计算机设备Method and computer equipment for constructing multi-level of detail model of object
本申请要求于2020年5月28日提交中国专利局、申请号为202010466779.1、申请名称为“一种构建物体的多细节层次模型的方法及计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the Chinese Patent Office on May 28, 2020, the application number is 202010466779.1, and the application title is "a method and computer equipment for constructing a multi-level-of-detail model of an object", and its entire contents Incorporated in this application by reference.
技术领域Technical field
本申请涉及地图构建领域,尤其涉及一种构建物体的多细节层次模型(digital surface model,DSM)的方法及计算机设备。This application relates to the field of map construction, and in particular to a method and computer equipment for constructing a multi-level-of-detail model (digital surface model, DSM) of an object.
背景技术Background technique
随着第五代移动通信技术(5th-generation,5G)时代的到来,高精度地图作为连接虚拟世界和真实世界的桥梁,将在各个领域中扮演重要的角色,具有广阔的应用前景,如无人驾驶、定位导航、增强现实(augmented reality,AR)、虚拟现实(virtual reality,VR)、5G仿真等。随着高精度地图的需求越来越大,各种高精度地图的生产方案被提出。其中,基于无人机影像和激光数据的方案受限于成本,无法大规模推广;基于卫星图像(也可称为卫星影像)的生产方案依然是目前的主流方案。With the advent of the fifth-generation mobile communication technology (5th-generation, 5G) era, high-precision maps, as a bridge connecting the virtual world and the real world, will play an important role in various fields and have broad application prospects. Human driving, positioning and navigation, augmented reality (AR), virtual reality (VR), 5G simulation, etc. With the increasing demand for high-precision maps, various production solutions for high-precision maps have been proposed. Among them, solutions based on drone images and laser data are limited by cost and cannot be promoted on a large scale; production solutions based on satellite images (also known as satellite images) are still the current mainstream solutions.
在基于卫星图像的生产方案中,建筑物的多细节层次(levels of detail,LOD)模型是构建高精度地图的基础,即基于卫星图像的地图都是由各个相关联的多个卫星图像内的各个建筑物的LOD模型分区合并后得到的,因此,若能构建一个好的建筑物的LOD模型,就意味着最终可以构建出一个好的卫星地图。目前,基于卫星图像的建筑物的LOD模型的方式一般是:先对卫星图像进行区域网平差,得到对齐后的卫星图像,之后将对齐后的卫星图像导入立体测图软件,通过前方交会的方式一个一个的测量卫星图像中各个建筑物的高度(即一个建筑物对应有一个高度),再基于得到的各个建筑物的高度信息和轮廓矢量,用相关软件(或算法)沿着建筑物的轮廓将建筑物按照各自的高度“拉起来”,从而得到某张卫星图像内各个建筑物的LOD模型。In the production plan based on satellite imagery, the level of detail (LOD) model of the building is the basis for constructing high-precision maps, that is, maps based on satellite imagery are composed of multiple associated satellite images. The LOD model of each building is obtained after merging. Therefore, if a good LOD model of the building can be constructed, it means that a good satellite map can be constructed in the end. At present, the LOD model of buildings based on satellite images is generally: first perform a regional network adjustment on the satellite images to obtain the aligned satellite images, and then import the aligned satellite images into the stereo mapping software, and pass the front intersection The method measures the height of each building in the satellite image one by one (that is, one building corresponds to a height), and then based on the obtained height information and contour vector of each building, use related software (or algorithm) along the building The contours "pull up" the buildings according to their respective heights, thereby obtaining the LOD model of each building in a certain satellite image.
然而,由于上述方式中每个建筑物对应的是一个高度值,“拉起来”后使得LOD模型下的建筑物都是平顶的,目前的建筑物大多都不完全是平顶的,比如“人字形”屋顶、“尖顶”建筑物等,通过上述方式得到的LOD模型会丢失建筑物的顶面轮廓信息,造成精度损失。However, since each building in the above method corresponds to a height value, the buildings under the LOD model are flat-topped after being "pulled up", and most of the current buildings are not completely flat-topped, such as " For “herringbone” roofs, “spires” buildings, etc., the LOD model obtained by the above method will lose the top profile information of the building, resulting in loss of accuracy.
发明内容Summary of the invention
本申请实施例提供了一种构建物体的多细节层次模型的方法及计算机设备,用于通过获取到的建筑物的三维(3-dimension,3D)点云构建LOD模型,由于3D点云是基于建筑物的轮廓采样得到,其能够高精度的还原建筑物的顶面信息,据此可以得到高精度的LOD模型。The embodiments of the application provide a method and computer equipment for constructing a multi-level-of-detail model of an object, which are used to construct an LOD model through the acquired 3-dimension (3-dimension, 3D) point cloud of a building, because the 3D point cloud is based on The contour of the building is sampled, and the top surface information of the building can be restored with high precision, and a high-precision LOD model can be obtained based on this.
基于此,本申请实施例提供以下技术方案:Based on this, the embodiments of the present application provide the following technical solutions:
第一方面,本申请实施例首先提供一种构建物体的多细节层次模型的方法,可用于高 精度的地图构建中,该方法包括:获取到与某个目标卫星图像(如,分辨率为1米的卫星图像)对应的DSM及该卫星图像中各个建筑物的轮廓矢量,并将该DSM和该卫星图像中各个建筑物的轮廓矢量进行套合,得到套合结果,之后,就可根据该套合结果(即重合后的DSM和各个建筑物的轮廓矢量)对当前卫星图像中各个建筑物进行采样,以得到卫星图像中各个建筑物的3D点云,最后,计算机设备可以根据得到的各个建筑物的3D点云对当前卫星图像中的各个建筑物进行构建,从而得到该卫星图像中各个建筑物的LOD模型。类似地,计算机设备可以通过上述所述的方式得到卫星图像集(包括多个卫星图像的集合)中每个卫星图像内各建筑物的LOD模型。In the first aspect, the embodiments of the present application first provide a method for constructing a multi-level-of-detail model of an object, which can be used in high-precision map construction. Meter satellite image) corresponding to the DSM and the outline vector of each building in the satellite image, and the DSM and the outline vector of each building in the satellite image are combined to obtain the combined result. The result of the fit (ie, the overlapped DSM and the contour vector of each building) sample each building in the current satellite image to obtain the 3D point cloud of each building in the satellite image. Finally, the computer equipment can be based on the obtained various buildings. The 3D point cloud of the building constructs each building in the current satellite image to obtain the LOD model of each building in the satellite image. Similarly, the computer device can obtain the LOD model of each building in each satellite image in the satellite image collection (including the collection of multiple satellite images) in the above-mentioned manner.
在本申请上述实施方式中,首次将卫星图像对应的DSM及卫星图像中各个建筑物的轮廓矢量进行套合,再基于套合后的DSM和建筑物轮廓矢量获取到每个建筑物的3D点云,也就是说,根据DSM和建筑物的轮廓矢量得到的套合结果限定了3D点云的采样区域(即圈定了采样范围),在这个采样区域内进行3D点云的采样,其能够高精度的还原建筑物的顶面信息,据此可以得到高精度的LOD模型。并且,本申请上述实施方式不需要单独一个一个获取每个建筑物的高度信息,节约了成本,同时降低了数据量。In the above-mentioned embodiment of this application, the DSM corresponding to the satellite image and the contour vector of each building in the satellite image are combined for the first time, and then the 3D point of each building is obtained based on the combined DSM and building contour vector Cloud, that is to say, the fit result obtained according to the DSM and the silhouette vector of the building defines the sampling area of the 3D point cloud (ie, the sampling range is delineated), and the sampling of the 3D point cloud is performed in this sampling area, which can be high The top surface information of the building is restored with precision, and a high-precision LOD model can be obtained based on this. In addition, the foregoing embodiments of the present application do not need to obtain the height information of each building individually, which saves costs and reduces the amount of data at the same time.
结合本申请实施例第一方面,在本申请实施例第一方面的第一种实现方式中,根据3D点云对卫星图像中各个建筑物进行构建,得到卫星图像中各个建筑物的LOD模型的方式可以通过但不限于如下方式:先根据第一预设算法由3D点云重建得到卫星图像中各个建筑物的网格模型,再根据第二预设算法对网格模型进行简化,得到卫星图像中各个建筑物简化的LOD模型。In combination with the first aspect of the embodiments of the present application, in the first implementation of the first aspect of the embodiments of the present application, each building in the satellite image is constructed according to the 3D point cloud, and the LOD model of each building in the satellite image is obtained. The method can be through, but not limited to, the following methods: first reconstruct the grid model of each building in the satellite image from the 3D point cloud according to the first preset algorithm, and then simplify the grid model according to the second preset algorithm to obtain the satellite image Simplified LOD model of each building in.
在本申请上述实施方式中,具体阐述了一种如何得到LOD模型的方式,即先根据第一预设算法得到网格模型,再对网格模型简化,得到LOD模型。这种方式简单易操作,具备灵活性。In the above-mentioned embodiment of the present application, a method of how to obtain the LOD model is specifically explained, that is, the mesh model is first obtained according to the first preset algorithm, and then the mesh model is simplified to obtain the LOD model. This method is simple, easy to operate, and flexible.
结合本申请实施例第一方面的第一种实现方式,在本申请实施例第一方面的第二种实现方式中,第二预设算法可以有多种具体表现形式,例如,可以是顶点删除的方式,也可以是边变成点(即边塌陷)的方式,还可以是面变成点(即面收缩)的方式,具体此处不做限定。为便于理解,以第二预设算法为边塌陷的方式(即边折叠算法)为例,对如何简化网格模型进行介绍:首先,根据边折叠算法对得到的各个建筑物的网格模型进行迭代简化,直至简化后得到的卫星图像中各个建筑物的LOD模型满足预设条件,则此时得到的简化后的LOD模型就为最终输出的LOD模型。In combination with the first implementation manner of the first aspect of the embodiments of the present application, in the second implementation manner of the first aspect of the embodiments of the present application, the second preset algorithm may have multiple specific manifestations, for example, vertex deletion The method can also be a method in which the side becomes a point (that is, the side collapses), or a method in which the surface becomes a point (that is, the area shrinks), which is not specifically limited here. For ease of understanding, taking the second preset algorithm as the edge collapse method (ie, edge folding algorithm) as an example, how to simplify the mesh model is introduced: First, the mesh model of each building is obtained according to the edge folding algorithm. Iterative simplification until the LOD model of each building in the simplified satellite image meets the preset conditions, then the simplified LOD model obtained at this time is the final output LOD model.
在本申请上述实施方式中,具体阐述了一种如何简化网格模型的方式,即通过边折叠算法对得到的网格模型进行简化,同时加入自校验机制(即设置预设条件)防止LOD模型过度简化,同时兼顾到了简化比和模型精度。In the above-mentioned embodiment of this application, a method of how to simplify the mesh model is specifically explained, that is, the obtained mesh model is simplified by the edge folding algorithm, and a self-checking mechanism (ie, setting preset conditions) is added to prevent LOD. The model is oversimplified, while taking into account the simplification ratio and model accuracy.
结合本申请实施例第一方面、第一方面的第一种实现方式至第二种实现方式,在本申请实施例第一方面的第三种实现方式中,根据套合结果对当前卫星图像中各个建筑物进行采样来得到卫星图像中各个建筑物的3D点云具体可以但不限于通过如下方式:对当前卫星图像中的每一个建筑物沿着其轮廓在对应的DSM上按一定的步长(step)采样3D点,这样每个建筑物就能离散出对应的3D点云,其中,步长step=a*R,a为预设的系数,可 根据实际情况自行设置,若想要得到密集的3D点云,则a可设置的小一些,如,0.3;若想要得到不那么密集的3D点云,则a可以设置的大一些,如,0.9,具体此处不做限定,R则为卫星图像的图像分辨率。Combining the first aspect of the embodiments of the present application, the first implementation to the second implementation of the first aspect, in the third implementation of the first aspect of the embodiments of the present application, the current satellite image Sampling of each building to obtain the 3D point cloud of each building in the satellite image can be specifically but not limited to the following methods: each building in the current satellite image is followed by a certain step on the corresponding DSM along its outline. (step) Sampling 3D points, so that each building can discretize the corresponding 3D point cloud, where step = a*R, a is a preset coefficient, which can be set according to the actual situation, if you want to get For dense 3D point clouds, a can be set smaller, such as 0.3; if you want to get a less dense 3D point cloud, you can set a larger, such as 0.9. The specifics are not limited here, R It is the image resolution of the satellite image.
在本申请上述实施方式中,具体阐述了如何根据建筑物的轮廓得到离散的3D点云的,3D点云的密集度可根据步长自行调整,可满足用户的不同需求,具备灵活性。In the above-mentioned embodiments of this application, it is specifically explained how to obtain discrete 3D point clouds according to the contours of buildings. The density of the 3D point clouds can be adjusted according to the step length, which can meet the different needs of users and is flexible.
结合本申请实施例第一方面、第一方面的第一种实现方式至第三种实现方式,在本申请实施例第一方面的第四种实现方式中,将多个卫星图像中各个建筑物的LOD模型进行分区合并,得到目标地图。In combination with the first aspect of the embodiments of the present application and the first to third implementation manners of the first aspect, in the fourth implementation manner of the first aspect of the embodiments of the present application, each building in the multiple satellite images The LOD model is partitioned and merged to obtain the target map.
在本申请上述实施方式中,得到的卫星图像集中每个卫星图像内各建筑物的LOD模型之后,就可将卫星图像集中各个建筑物LOD模型进行分区合并,得到高精度的目标地图,该目标地图可进一步发送给端侧设备(如,手机、平板电脑等)或边缘设备使用,具备实用性。In the above-mentioned embodiment of this application, after obtaining the LOD model of each building in each satellite image in the satellite image collection, the LOD model of each building in the satellite image collection can be partitioned and merged to obtain a high-precision target map. The map can be further sent to end-side devices (such as mobile phones, tablet computers, etc.) or edge devices for use, which is practical.
结合本申请实施例第一方面、第一方面的第一种实现方式至第四种实现方式,在本申请实施例第一方面的第五种实现方式中,卫星图像中各个建筑物的轮廓矢量保存为shp文件。具体地,包括但不限于如下方式:1)基于该卫星图像得到的各个建筑物轮廓可存储为一个shp文件,一张卫星图像对应一个shp文件,比如,某张卫星图像中有4个建筑物,那么获得的这4个建筑物的轮廓矢量均存在该同一个shp文件中;2)每个建筑物对应一个shp文件,比如,某张卫星图像中有4个建筑物,那么获得的这4个建筑物的轮廓矢量分别存成4个不同的shp文件。此处不限定每个卫星图像中的各个建筑物的轮廓矢量存储为shp文件的具体实现方式。In combination with the first aspect of the embodiments of the present application and the first implementation to the fourth implementation of the first aspect, in the fifth implementation of the first aspect of the embodiments of the present application, the contour vector of each building in the satellite image is Save it as a shp file. Specifically, it includes but is not limited to the following methods: 1) The outline of each building obtained based on the satellite image can be stored as a shp file, and a satellite image corresponds to a shp file. For example, there are 4 buildings in a satellite image, then The obtained contour vectors of the 4 buildings are all stored in the same shp file; 2) Each building corresponds to a shp file. For example, if there are 4 buildings in a certain satellite image, then these 4 buildings are obtained The contour vectors of are saved as 4 different shp files. The specific implementation of storing the outline vector of each building in each satellite image as a shp file is not limited here.
在本申请上述实施方式中,阐述了将建筑物保存为shp文件的几种方式,具备可选择性。In the above-mentioned embodiments of this application, several ways of saving the building as a shp file are described, which are optional.
结合本申请实施例第一方面、第一方面的第一种实现方式至第五种实现方式,在本申请实施例第一方面的第六种实现方式中,所述建筑物至少包括如下物体中的至少一种:房屋、桥梁、电塔、隧道、铁塔、水塔、标志性雕塑、水坝、通信基站等,进一步地,只要是人们在卫星图像中确定的目标,并提取到该目标的轮廓矢量,那么该目标就可以称为本申请实施例所述的建筑物。With reference to the first aspect of the embodiments of the present application and the first to fifth implementation manners of the first aspect, in the sixth implementation manner of the first aspect of the embodiments of the present application, the building includes at least the following objects At least one of: houses, bridges, electrical towers, tunnels, iron towers, water towers, iconic sculptures, dams, communication base stations, etc. Further, as long as it is a target determined by people in satellite images, and extract the outline vector of the target , Then the target can be called the building described in the embodiment of this application.
在本申请上述实施方式中,阐述了本申请所述的建筑物具体可以是哪些物体,便于在对建筑物轮廓进行获取时,知道如何在卫星图像中确定出需要的建筑物类型。In the foregoing embodiments of the present application, it is explained which objects the buildings described in the present application can be, so that when the outline of the building is acquired, it is convenient to know how to determine the required building type in the satellite image.
结合本申请实施例第一方面的第一种实现方式至第六种实现方式,在本申请实施例第一方面的第七种实现方式中,第一预设算法包括:泊松表面重建算法。With reference to the first implementation to the sixth implementation of the first aspect of the embodiments of the present application, in the seventh implementation of the first aspect of the embodiments of the present application, the first preset algorithm includes: a Poisson surface reconstruction algorithm.
在本申请上述实施方式中,给出了第一预设算法的一种具体形式,具备可选择性。In the foregoing implementation manners of the present application, a specific form of the first preset algorithm is given, which is optional.
本申请实施例第二方面提供一种计算机设备,该计算机设备具有实现上述第一方面或第一方面任意一种可能实现方式的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。A second aspect of the embodiments of the present application provides a computer device that has the function of implementing the foregoing first aspect or any one of the possible implementation methods of the first aspect. This function can be realized by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.
本申请实施例第三方面提供另一种计算机设备,可以包括存储器、处理器以及总线系统,其中,存储器用于存储程序,处理器用于调用该存储器中存储的程序以执行本申请实 施例第一方面或第一方面任意一种可能实现方式的方法。The third aspect of the embodiments of the present application provides another computer device, which may include a memory, a processor, and a bus system, where the memory is used to store a program, and the processor is used to call the program stored in the memory to execute the first embodiment of the present application. Aspect or any one of the possible implementation methods of the first aspect.
本申请第四方面提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当该指令在计算机上运行时,使得计算机可以执行上述第一方面或第一方面任意一种可能实现方式的方法。The fourth aspect of the present application provides a computer-readable storage medium that stores instructions in the computer-readable storage medium. When the instructions are run on a computer, the computer can execute the first aspect or any one of the first aspects. Way of realization.
本申请实施例第五方面提供了一种计算机程序或计算机程序产品,当该计算机程序或计算机程序产品在计算机上运行时,使得计算机执行上述第一方面或第一方面任意一种可能实现方式的方法。The fifth aspect of the embodiments of the present application provides a computer program or computer program product. When the computer program or computer program product is run on a computer, the computer executes the first aspect or any one of the possible implementation manners of the first aspect. method.
本申请实施例第六方面提供了一种芯片,该芯片包括至少一个处理器和至少一个接口电路,该接口电路和该处理器耦合,至少一个接口电路用于执行收发功能,并将指令发送给至少一个处理器,至少一个处理器用于运行计算机程序或指令,其具有实现如上述第一方面或第一方面任意一种可能实现方式的方法的功能,该功能可以通过硬件实现,也可以通过软件实现,还可以通过硬件和软件组合实现,该硬件或软件包括一个或多个与上述功能相对应的模块。此外,该接口电路用于与该芯片之外的其它模块进行通信,例如,该接口电路可将芯片上处理器得到的建筑物的LOD模型发送给端侧设备(如,手机、个人电脑、智能手表等)或云侧设备(如,云服务器、集群等)。The sixth aspect of the embodiments of the present application provides a chip. The chip includes at least one processor and at least one interface circuit, the interface circuit is coupled to the processor, and the at least one interface circuit is used to perform a transceiver function and send instructions to At least one processor, at least one processor is used to run a computer program or instruction, which has the function of realizing the method of the above-mentioned first aspect or any one of the possible implementation manners of the first aspect. This function can be realized by hardware or software Realization can also be realized by a combination of hardware and software. The hardware or software includes one or more modules corresponding to the above-mentioned functions. In addition, the interface circuit is used to communicate with other modules outside the chip. For example, the interface circuit can send the LOD model of the building obtained by the on-chip processor to end-side devices (such as mobile phones, personal computers, smart phones). Watches, etc.) or cloud-side devices (such as cloud servers, clusters, etc.).
附图说明Description of the drawings
图1为本申请实施例提供的同一个目标3D物体不同精度的3个网格模型的示意图;FIG. 1 is a schematic diagram of three mesh models of the same target 3D object with different accuracy provided by an embodiment of the application;
图2为本申请实施例提供的每个三角形分成4个新三角形的网格模型的一个示意图;2 is a schematic diagram of a mesh model in which each triangle is divided into 4 new triangles according to an embodiment of the application;
图3为本申请实施例提供的LOD模型工作原理的一个示意图;FIG. 3 is a schematic diagram of the working principle of the LOD model provided by an embodiment of the application;
图4为本申请实施例提供的边折叠算法的一个折叠过程的示意图;4 is a schematic diagram of a folding process of the edge folding algorithm provided by an embodiment of the application;
图5为本申请实施例提供的DSM的一个示意图;Figure 5 is a schematic diagram of a DSM provided by an embodiment of the application;
图6为基于卫星图像构建得到建筑物的LOD模型的主流方案的一个流程示意图;Figure 6 is a schematic flow diagram of a mainstream solution for building a LOD model of a building based on satellite images;
图7为初始输入的卫星图像的一个示意图;Fig. 7 is a schematic diagram of the initial input satellite image;
图8为通过立体测图软件测量卫星图像中某个建筑物的高度的一个示意图;Figure 8 is a schematic diagram of measuring the height of a certain building in a satellite image by using stereo mapping software;
图9为与卫星图像对应的建筑物轮廓的一个示意图;Fig. 9 is a schematic diagram of the outline of the building corresponding to the satellite image;
图10为将建筑物轮廓矢量存为shp文件的一个示意图;Figure 10 is a schematic diagram of saving a building outline vector as a shp file;
图11为将各个建筑物的LOD模型进行分块合并得到的城市级的高精度地图的一个示意图;Figure 11 is a schematic diagram of a city-level high-precision map obtained by segmenting and merging the LOD models of various buildings;
图12为本申请实施例提供的构建物体的LOD模型的方法的一个流程示意图;FIG. 12 is a schematic flowchart of a method for constructing an object's LOD model provided by an embodiment of the application;
图13为一种半全局优化的DSM提取方法的示意图;Figure 13 is a schematic diagram of a semi-globally optimized DSM extraction method;
图14为一种基于人工智能(artificial intelligence,AI)的建筑物轮廓识别方法的示意图;Fig. 14 is a schematic diagram of a building contour recognition method based on artificial intelligence (AI);
图15为本申请实施例提供的构建物体的LOD模型的方法的另一流程示意图;15 is a schematic diagram of another flow chart of the method for constructing an object's LOD model provided by an embodiment of the application;
图16为本申请实施例提供的一种顶点删除方式达到简化网格模型目的的一个示意图;FIG. 16 is a schematic diagram of a vertex deletion method provided by an embodiment of the application to achieve the purpose of simplifying the mesh model;
图17为本申请实施例提供的一种面收缩方式达到简化网格模型目的的一个示意图;FIG. 17 is a schematic diagram of a method of area shrinkage provided by an embodiment of the application to achieve the purpose of simplifying the mesh model;
图18为本申请实施例提供的不同简化程度时LOD模型的一个示意图;FIG. 18 is a schematic diagram of the LOD model at different degrees of simplification provided by the embodiments of the application; FIG.
图19为本申请实施例提供的通过边折叠算法实现网格模型简化的一个流程示意图;FIG. 19 is a schematic diagram of a flow chart of implementing mesh model simplification through an edge folding algorithm provided by an embodiment of the application; FIG.
图20为本申请实施例提供的构建物体的LOD模型的方法的一个示意图;FIG. 20 is a schematic diagram of a method for constructing a LOD model of an object provided by an embodiment of the application;
图21为本申请实施例提供的根据各个建筑物的LOD模型合并得到的一个高精度地图的示意图;21 is a schematic diagram of a high-precision map obtained by merging the LOD models of various buildings according to an embodiment of the application;
图22为通过现有技术得到的LOD模型与通过本申请方案得到的LOD模型的对比示意图;FIG. 22 is a schematic diagram of comparison between the LOD model obtained by the prior art and the LOD model obtained by the solution of the present application;
图23为本申请实施例提供的应用场景的一个示意图;FIG. 23 is a schematic diagram of an application scenario provided by an embodiment of the application;
图24为本申请实施例提供的计算机设备的一个示意图;FIG. 24 is a schematic diagram of a computer device provided by an embodiment of the application;
图25为本申请实施例提供的计算机设备的另一示意图。FIG. 25 is another schematic diagram of a computer device provided by an embodiment of this application.
具体实施方式Detailed ways
本申请实施例提供了一种构建物体的多细节层次模型的方法及计算机设备,用于通过获取到的建筑物的3D点云构建LOD模型,由于3D点云是基于建筑物的轮廓采样得到,其能够高精度的还原建筑物的顶面信息,据此可以得到高精度的LOD模型。The embodiments of the present application provide a method and computer equipment for constructing a multi-level-of-detail model of an object, which are used to construct an LOD model from the acquired 3D point cloud of a building. Since the 3D point cloud is sampled based on the outline of the building, It can restore the top surface information of the building with high precision, and obtain a high-precision LOD model based on this.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,这仅仅是描述本申请的实施例中对相同属性的对象在描述时所采用的区分方式。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,以便包含一系列单元的过程、方法、系统、产品或设备不必限于那些单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它单元。The terms "first", "second", etc. in the description and claims of the application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It should be understood that the terms used in this way can be interchanged under appropriate circumstances, and this is only used to describe the method of distinguishing objects with the same attribute in the description of the embodiments of the present application. In addition, the terms "include" and "have" and any variations of them are intended to cover non-exclusive inclusion, so that a process, method, system, product or device containing a series of units is not necessarily limited to those units, but may include Listed or inherent to these processes, methods, products, or equipment.
本申请实施例涉及了许多关于卫星图像的处理的相关知识,为了更好地理解本申请实施例的方案,下面先对本申请实施例可能涉及的相关术语和概念进行介绍。The embodiments of the present application involve a lot of relevant knowledge about the processing of satellite images. In order to better understand the solutions of the embodiments of the present application, the following first introduces related terms and concepts that may be involved in the embodiments of the present application.
卫星图像:也可称为卫星影像、卫片、卫星图等,是指搭载在人造卫星上的摄影设备拍摄的地球或其它星球的地图式照片。目前,原始的卫星图像的获取一般有两种方式,第一种是用摄影设备拍摄底片,将装好底片的摄影设备安置在卫星上,将卫星送入设计好的轨道上对地面进行摄影,摄影完成后再将卫星收回,通过一系列的摄影处理后得到底片,可以通过影像扫描进行数字化,从而得到数字的卫星图像;第二种是“数字成像”的,成像原理类似于数码相机。Satellite image: It can also be called satellite image, satellite image, satellite image, etc. It refers to the map-like photos of the earth or other planets taken by the photography equipment mounted on the artificial satellite. At present, there are generally two ways to acquire the original satellite image. The first is to use photographic equipment to shoot the film, place the photographic equipment with the film on the satellite, and send the satellite into the designed orbit to take pictures of the ground. After the photography is completed, the satellite is recovered, and the negative film is obtained after a series of photographic processing, which can be digitized by image scanning to obtain digital satellite images; the second is "digital imaging", and the imaging principle is similar to that of a digital camera.
区域网平差:平差指的是对观测值的偶然误差进行合理配赋,对观测值的系统误差进行预改正,对观测值的粗差采用一定的观测原则和人工挑错的办法予以控制。一般平差算法中,都是以已知的起算数据为基础,将控制网固定在已知数据上。区域网平差是指以面积最大不超过像对数来划分区域,按照所划分的区域为单元进行平差。Regional network adjustment: Adjustment refers to the reasonable allocation of accidental errors of observations, pre-correction of systematic errors of observations, and the use of certain observation principles and manual methods to control the gross errors of observations. . In the general adjustment algorithm, the control network is fixed on the known data based on the known starting data. The regional network adjustment refers to dividing the area with the largest area not exceeding the number of image pairs, and performing the adjustment according to the divided area as a unit.
立体测图:一般指的是模拟法立体测图,即利用两个光学或机械投影器,或光学-机械投影器,将透明航片装在投影器中,用灯光照射,模拟拍摄过冲,重建一个于实地相似的缩小的立体模型,在此立体模型上量测即相当于对原物体的量测,所得结果可通过机械或齿轮传动方式直接在绘图桌上绘出各种地形图或专题地图,立体测图的基本原理是摄影过程的几何反转。Stereo mapping: generally refers to the simulation method of stereo mapping, that is, using two optical or mechanical projectors, or optical-mechanical projectors, the transparent aerial photograph is installed in the projector, illuminated with light, and simulated shooting overshoot. Reconstruct a reduced three-dimensional model similar to the actual field. The measurement on this three-dimensional model is equivalent to the measurement of the original object. The results obtained can be directly drawn on the drawing table by mechanical or gear transmission to various topographic maps or topics The basic principle of maps and stereo mapping is the geometric reversal of the photographic process.
空间前方交会:也可称为立体像对的空间前方交会,是指恢复立体像对摄影时的光束和建立几何模型后,利用同名光线的交会确定模型点空间位置的方法,具体地,由立体像对左右两影像的内、外方位元素和同名像点的影像坐标测量值,来确定该点的物方空间坐标(某一暂定三维坐标系里的坐标或地面测量坐标系坐标)的方法。Spatial front intersection: It can also be called the spatial front intersection of the stereo pair. It refers to the method of restoring the beam of the stereo pair during photography and establishing the geometric model, and then using the intersection of the light rays of the same name to determine the spatial position of the model point. Specifically, the stereo The method of determining the object space coordinates of the point (the coordinates in a tentative three-dimensional coordinate system or the coordinates of the ground measurement coordinate system) by the internal and external azimuth elements of the left and right images and the image coordinate measurement values of the image point with the same name .
套合(nesting):对同一目标两张或多张图像的相关数据进行几何套对,使各图像的细部或像元数据能叠合在一起的作业。被套合的图像或图像数据可为多光谱摄影机或扫描仪在同一时段或不同时段所摄取的各谱段像片或数据,也可为不同的感测器所收集到的数据。Nesting: Perform geometric matching of the related data of two or more images of the same target, so that the details or pixel data of each image can be overlapped together. The images or image data to be nested can be photos or data of each spectrum captured by a multi-spectral camera or scanner at the same time period or different time periods, or data collected by different sensors.
网格模型:也可称为Mesh模型,或,3D网格模型,网格模型是指一个3D物体的统一表达形式,每个3D物体都是基于网格模型的形式呈现出来的,网格模型是由多边形(一般常用的是四边形和三角形)拼接而成,而一个复杂的多边形,实际上是由多个三角面拼接而成。在本申请实施例中,均以网格模型为三角形构成的网格模型为例进行示意。如图1所示,为同一目标3D物体“狗”的不同精度的3个网格模型,所谓精度不同指的是基于相同的3D物体模型,精度高的就是指由更多的面数(如,三角形的数量)构建成该3D物体,反之,精度低的就是指由更少的面数构建成该3D物体,如图2所示,一个网格模型由原来的每个三角形对应分成四个新的三角形,总的面数就增加到了原来的4倍,那么精度也提高了。Mesh model: It can also be called Mesh model, or, 3D mesh model. Mesh model refers to the unified expression form of a 3D object. Each 3D object is presented in the form of a mesh model. Mesh model It is spliced by polygons (commonly used quadrilaterals and triangles), and a complex polygon is actually spliced by multiple triangular faces. In the embodiments of the present application, the mesh model is a mesh model composed of triangles as an example for illustration. As shown in Figure 1, there are three mesh models with different precisions of the same target 3D object "dog". The so-called different precision refers to the same 3D object model, and the high precision refers to more faces (such as , The number of triangles) is constructed into the 3D object. On the contrary, the low precision means that the 3D object is constructed from fewer faces. As shown in Figure 2, a mesh model is divided into four by each original triangle. With the new triangle, the total number of faces has been increased by 4 times, and the accuracy has also been improved.
多细节层次模型:即LOD模型,是一种实时三维计算机图形技术,其工作原理是:视点离物体近时,能观察到的模型细节丰富;视点远离模型时,观察到的细节逐渐模糊,可参阅图3所示的示例图。系统绘图程序根据一定的判断条件,选择相应的细节进行显示,从而避免了因绘制那些意义相对不大的细节而造成的时间浪费,同时有效地协调了画面连续性与模型分辨率的关系。Multi-level of detail model: LOD model, a real-time three-dimensional computer graphics technology, its working principle is: when the viewpoint is close to the object, the model can be observed with rich details; when the viewpoint is far away from the model, the observed details are gradually blurred. Refer to the example diagram shown in Figure 3. The system drawing program selects the corresponding details to display according to certain judgment conditions, thus avoiding the time waste caused by drawing those details with relatively little meaning, and effectively harmonizing the relationship between the continuity of the picture and the resolution of the model.
泊松表面重建算法:是一种隐函数表面重建方法,例如,一个物体可用物体外为1、物体内为0的指示函数表示,通过求解出这个函数然后进行等值面提取,从而得到表面。求解这个函数的过程,就是构建一个泊松方程并对泊松方程进行求解的过程。通常用这种算法实现离散的3D点云重建具有水密性的三角网格模型。Poisson surface reconstruction algorithm: It is an implicit function surface reconstruction method. For example, an object can be represented by an indicator function whose outside is 1 and 0 inside the object, and the surface is obtained by solving this function and then performing isosurface extraction. The process of solving this function is the process of constructing a Poisson equation and solving the Poisson equation. This algorithm is usually used to reconstruct a discrete 3D point cloud to reconstruct a watertight triangular mesh model.
边折叠算法:也可称为边塌陷算法,或边折叠简化算法,其属于几何元素删除法的一种,它的实质是顶点删除,也称边塌陷。如图4所示,图4是一个折叠过程的示意图,每次简化时,通过算法选定一条有向边x(如图1中的虚线箭头表示朝向)以及相关的两个点(p1,p2),将其中一个点p1“折叠”至p2,然后修改拓扑关系,将与p1相关的边映射到p2,最后完成简化操作。一次简化可以减少源模型的1条边和2个面。在图4中,边折叠算法就折叠了边x以及点p1,三角形①②在折叠后从原网格模型中消失,而三角形③④⑤⑥原先以p1为顶点的点修改为以p2为顶点,发生了变化。边折叠算法的优势在于它可以生成连续的细节层次,并且有相应的处理纹理信息的方法。Edge folding algorithm: It can also be called an edge collapse algorithm or an edge collapse simplification algorithm. It is a type of geometric element deletion method. Its essence is vertex deletion, also called edge collapse. As shown in Figure 4, Figure 4 is a schematic diagram of the folding process. Each time it is simplified, a directed edge x (the dotted arrow in Figure 1 indicates the direction) and two related points (p1, p2) are selected through the algorithm. ), "fold" one of the points p1 to p2, then modify the topological relationship, map the edges related to p1 to p2, and finally complete the simplified operation. One simplification can reduce 1 edge and 2 faces of the source model. In Figure 4, the edge folding algorithm folds the edge x and the point p1, the triangle ①② disappears from the original mesh model after folding, and the triangle ③④⑤⑥The original point with p1 as the vertex is changed to p2 as the vertex. . The advantage of the edge folding algorithm is that it can generate continuous levels of detail and has a corresponding method of processing texture information.
数字地表模型(digital surface model,DSM):是指包含了地表建筑物、桥梁和树木等高度的地面高程模型,和数字高程模型(digital elevation model,DEM)相比,DEM只包含了地形的高程信息,并未包含其它地表信息,DSM是在DEM的基础上,进一步涵盖了除地面以外的其它地表信息的高程,如图5所示,示例了一个DSM的示意图。在一些对建 筑物高度有需求的领域,得到了很大应用。DSM表示的是最真实地表达地面起伏情况,可广泛应用于各行各业。如在森林地区,可以用于检测森林的生长情况;在城区,DSM可以用于检查城市的发展情况;特别是众所周知的巡航导弹,它不仅需要数字地面模型,而更需要的是数字表面模型,这样才有可能使巡航导弹在低空飞行过程中,逢山让山,逢森林让森林。Digital surface model (DSM): refers to a ground elevation model that includes the heights of buildings, bridges, and trees on the ground. Compared with the digital elevation model (DEM), DEM only includes the elevation of the terrain The information does not contain other surface information. DSM is based on DEM and further covers the elevation of other surface information besides the ground. As shown in Figure 5, a schematic diagram of DSM is illustrated. It has been widely used in some areas where building height is required. DSM represents the most true expression of ground ups and downs, and can be widely used in all walks of life. For example, in forest areas, it can be used to detect the growth of forests; in urban areas, DSM can be used to check the development of cities; especially the well-known cruise missiles require not only digital ground models, but also digital surface models. Only in this way is it possible to make it possible for the cruise missile to surrender to the mountains at every mountain and forest to the forest at every forest during its low-altitude flight.
此外,在介绍本申请实施例之前,先对目前构建卫星图像中各个建筑物的LOD模型的常见方式进行简单介绍,使得后续便于理解本申请实施例。In addition, before introducing the embodiments of the present application, a brief introduction to the current common ways of constructing the LOD model of each building in the satellite image will be given to facilitate the understanding of the embodiments of the present application later.
具体请参阅图6,图6为基于卫星图像构建得到建筑物的LOD模型的主流方案,流程如下:初始的输入数据为卫星图像(如,图7所示),针对每组卫星图像进行区域网平差,得到对齐后的卫星图像(对齐后的卫星图像优化的是摄像设备的相机参数,卫星图像本身没有任何影响);之后,将对齐后的卫星图像导入相关的立体测图软件,通过前方交会的方式可以测量到每张卫星图像中各个建筑物(一个一个测得)的高度(如,图8所示);此外,还需要得到和输入的卫星图像对应的建筑物轮廓(如,图9所示),建筑物轮廓通常由人工基于对应的卫星图像画得,即可以根据每个卫星图像中的各个建筑物构建出,现在一般是直接从第三方购买,购买的卫星图像与该卫星图像中的建筑物轮廓已经是标注好的,基于每个卫星图像得到的各个建筑物轮廓可存储为一个shp文件,一张卫星图像对应一个shp文件,比如,某张卫星图像中有3个建筑物,那么就会获得这3个建筑物的轮廓矢量存在shp文件中;之后,再将上述获得的每张卫星图像中各个建筑物的高度也存入该shp文件中(如,图10所示);最后基于每张卫星图像对应的shp文件中各个建筑物的轮廓和高度信息,用相关软件(或算法)沿着建筑物的轮廓一次性将某张卫星图像中的所有已勾勒轮廓的建筑物“拉起来”,得到分别与各个建筑物对应的LOD模型(如,图11右边部分所示,示意了2个按照各自高度“拉起来”的建筑物),每个卫星图像中的各个建筑物轮廓都执行上述操作,然后进行分块合并最终得到城市级的高精度地图,如图11左边部分所示。Please refer to Figure 6 for details. Figure 6 is a mainstream solution for building LOD models based on satellite images. The process is as follows: the initial input data is satellite images (as shown in Figure 7), and a regional network is performed for each group of satellite images. Adjust to obtain the aligned satellite image (the aligned satellite image optimizes the camera parameters of the camera equipment, and the satellite image itself has no influence); then, import the aligned satellite image into the relevant stereo mapping software and pass the front The rendezvous method can measure the height of each building (measured one by one) in each satellite image (as shown in Figure 8); in addition, it is also necessary to obtain the building outline corresponding to the input satellite image (as shown in Figure 9). As shown), the building outline is usually drawn manually based on the corresponding satellite image, that is, it can be constructed according to each building in each satellite image. Now it is generally purchased directly from a third party. The purchased satellite image and the satellite image The building outlines in is already marked. The building outlines obtained based on each satellite image can be stored as a shp file. A satellite image corresponds to a shp file. For example, there are 3 buildings in a satellite image. The outline vectors of these three buildings will be obtained and stored in the shp file; after that, the height of each building in each satellite image obtained above is also stored in the shp file (as shown in Figure 10); finally based on The contour and height information of each building in the shp file corresponding to each satellite image. Use related software (or algorithm) to "pull up" all the contoured buildings in a certain satellite image at one time along the contour of the building. Obtain the LOD model corresponding to each building (for example, as shown in the right part of Figure 11, showing two buildings "pull up" according to their respective heights), each building outline in each satellite image performs the above operations , And then merge into blocks to finally get a city-level high-precision map, as shown in the left part of Figure 11.
然而,上述基于卫星图像构建得到建筑物的LOD模型的主流方案至少存在以下几个缺陷:1)成本高,该方案在整个生产流程中需要借助相关软件或算法一个一个测得每张卫星图像中各个建筑物的高度,这样增加了数据生产的时间成本和人力成本;2)精度损失,从图11中可以看出,由于方案限制这些模型都是平顶的,对一些复杂的建筑物,比如“人字形”屋顶、“尖顶”建筑物等,上述方案生产的LOD模型会丢失建筑物的顶面轮廓信息,造成精度损失。However, the above-mentioned mainstream solution for building LOD models based on satellite images has at least the following defects: 1) The cost is high. This solution needs to use relevant software or algorithms to measure each satellite image one by one in the entire production process. The height of the building increases the time cost and labor cost of data production; 2) Loss of accuracy, as can be seen from Figure 11, due to program restrictions, these models are flat-topped. For some complex buildings, such as " "Herringbone" roofs, "spire" buildings, etc., the LOD model produced by the above solution will lose the top profile information of the building, resulting in loss of accuracy.
为解决上述所述问题,本申请实施例首先提供了一种构建物体的LOD模型的方法,用于通过获取到的建筑物的3D点云构建LOD模型,由于3D点云是完全基于建筑物的轮廓采样得到,其能够高精度的还原建筑物的顶面信息,据此可以得到高精度的LOD模型。In order to solve the above-mentioned problem, the embodiment of the present application first provides a method of constructing an object's LOD model, which is used to construct the LOD model from the acquired 3D point cloud of the building, because the 3D point cloud is completely based on the building The contour is sampled, and the top surface information of the building can be restored with high precision, and a high-precision LOD model can be obtained based on this.
下面结合附图,对本申请的实施例进行描述。本领域普通技术人员可知,随着技术的发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。具体请参阅图12,图12为本申请实施例提供的构建物体的LOD模型的方法的一种流程示意图,具体包括:The embodiments of the present application will be described below in conjunction with the drawings. A person of ordinary skill in the art knows that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems. Please refer to FIG. 12 for details. FIG. 12 is a schematic flowchart of a method for constructing a LOD model of an object according to an embodiment of the application, which specifically includes:
1201、获取与卫星图像对应的DSM及该卫星图像中各个建筑物的轮廓矢量。1201. Acquire a DSM corresponding to a satellite image and a contour vector of each building in the satellite image.
首先,计算机设备会获取到与某个目标卫星图像(如,分辨率为0.5米的卫星图像)对应的DSM及该卫星图像中各个建筑物的轮廓矢量。在本申请的实施方式中,计算机设备如何获取到卫星图像对应的DSM及该卫星图像中各个建筑物的轮廓矢量均为业界成熟的解决方案,具体此处不予赘述,包括但不限于:计算机设备可以通过如图13所示意的一种半全局优化的DSM提取方法来获取到与卫星图像对应的DSM,再进一步通过如图14所示意的一种基于AI的建筑物轮廓识别方法得到该卫星图像中各个建筑物的轮廓矢量。这里需要注意的是,本申请所述的卫星图像是指已经经过区域网平差对齐后的卫星图像。First, the computer equipment will obtain the DSM corresponding to a certain target satellite image (for example, a satellite image with a resolution of 0.5 meters) and the contour vector of each building in the satellite image. In the implementation of this application, how the computer equipment obtains the DSM corresponding to the satellite image and the outline vector of each building in the satellite image are all mature solutions in the industry. The details are not repeated here, including but not limited to: computer The device can obtain the DSM corresponding to the satellite image through a semi-globally optimized DSM extraction method as shown in Figure 13, and then obtain the satellite through an AI-based building contour recognition method as shown in Figure 14. The outline vector of each building in the image. It should be noted here that the satellite image mentioned in this application refers to the satellite image that has been adjusted and aligned through the regional network.
需要说明的是,在本申请的一些实施方式中,每个卫星图像中的各个建筑物的轮廓矢量可存储为shp文件,包括但不限于如下方式:1)基于该卫星图像得到的各个建筑物轮廓可存储为一个shp文件,一张卫星图像对应一个shp文件,比如,某张卫星图像中有4个建筑物,那么获得的这4个建筑物的轮廓矢量均存在该同一个shp文件中;2)每个建筑物对应一个shp文件,比如,某张卫星图像中有4个建筑物,那么获得的这4个建筑物的轮廓矢量分别存成4个不同的shp文件。此处不限定每个卫星图像中的各个建筑物的轮廓矢量存储为shp文件的具体实现方式。需要注意的是,在本申请的一些实施方式中,除了将卫星图像中的各个建筑物的轮廓矢量存储为shp文件,也可以存储为其他文件,具体此处不做限定。It should be noted that in some embodiments of this application, the outline vector of each building in each satellite image can be stored as a shp file, including but not limited to the following methods: 1) Each building obtained based on the satellite image The outline can be stored as a shp file, and a satellite image corresponds to a shp file. For example, if there are 4 buildings in a satellite image, the obtained outline vectors of these 4 buildings are all stored in the same shp file; 2) Each building corresponds to a shp file. For example, if there are 4 buildings in a certain satellite image, the obtained outline vectors of the 4 buildings are stored as 4 different shp files. The specific implementation of storing the outline vector of each building in each satellite image as a shp file is not limited here. It should be noted that, in some embodiments of the present application, in addition to storing the outline vector of each building in the satellite image as a shp file, it can also be stored as other files, and the details are not limited here.
还需要说明的是,本申请实施例所述的建筑物可以包括如下物体中的至少一种:房屋、桥梁、电塔、隧道、铁塔、水塔、标志性雕塑、水坝、通信基站等,进一步地,只要是人们在卫星图像中确定的目标,并提取到该目标的轮廓矢量,那么该目标就可以称为本申请实施例所述的建筑物。It should also be noted that the buildings described in the embodiments of the present application may include at least one of the following objects: houses, bridges, electrical towers, tunnels, iron towers, water towers, iconic sculptures, dams, communication base stations, etc., and further , As long as it is a target determined by people in the satellite image and the contour vector of the target is extracted, then the target can be called the building described in the embodiment of the present application.
1202、将DSM与卫星图像中各个建筑物的轮廓矢量进行套合,得到套合结果。1202. The DSM is combined with the contour vector of each building in the satellite image to obtain a combined result.
计算机设备获取到当前卫星图像的DSM和该卫星图像中各个建筑物的轮廓矢量后,将会将该DSM和该卫星图像中各个建筑物的轮廓矢量进行套合,得到套合结果。由于DSM和各个建筑物的轮廓矢量均是基于同一个平差对齐后的卫星图像提取得到的,二者是天然能够严格套合的,即基于同一个卫星图像中的各个建筑物的轮廓矢量和对应的DSM是重合的,重合后的DSM和各个建筑物的轮廓矢量就为所述的套合结果。After the computer device obtains the DSM of the current satellite image and the contour vector of each building in the satellite image, it will fit the DSM with the contour vector of each building in the satellite image to obtain the fit result. Since the contour vectors of DSM and each building are extracted based on the satellite image after the same adjustment, the two can naturally fit together strictly, that is, based on the sum of the contour vectors of each building in the same satellite image. The corresponding DSM is overlapped, and the overlapped DSM and the contour vector of each building are the result of the integration.
1203、根据套合结果对卫星图像中各个建筑物进行采样,得到卫星图像中各个建筑物的3D点云。1203. Sampling each building in the satellite image according to the result of the nesting, to obtain a 3D point cloud of each building in the satellite image.
计算机设备得到套合结果后,就可根据该套合结果(即重合后的DSM和各个建筑物的轮廓矢量)对当前卫星图像中各个建筑物进行采样,以得到卫星图像中各个建筑物的3D点云。After the computer equipment obtains the set result, it can sample each building in the current satellite image according to the set result (ie the overlapped DSM and the contour vector of each building) to obtain the 3D of each building in the satellite image Point cloud.
具体地,在本申请的一些实施方式中,根据套合结果对当前卫星图像中各个建筑物进行采样来得到卫星图像中各个建筑物的3D点云具体可以但不限于通过如下方式:对当前卫星图像中的每一个建筑物沿着其轮廓在对应的DSM上按一定的步长(step)采样3D点,这样每个建筑物就能离散出对应的3D点云,其中,步长step=a*R,a为预设的系数,可根据实际情况自行设置,若想要得到密集的3D点云,则a可设置的小一些,如,0.3;若想要得到不那么密集的3D点云,则a可以设置的大一些,如,0.9,具体此处不做限定,R 则为卫星图像的图像分辨率。Specifically, in some embodiments of the present application, sampling each building in the current satellite image according to the result of the set-up to obtain the 3D point cloud of each building in the satellite image can be specifically, but not limited to, the following methods: Each building in the image is sampled with a certain step size (step) along its contour on the corresponding DSM 3D points, so that each building can be discretized out of the corresponding 3D point cloud, where step = a *R and a are preset coefficients, which can be set according to the actual situation. If you want to get a dense 3D point cloud, you can set a smaller, such as 0.3; if you want to get a less dense 3D point cloud , Then a can be set larger, such as 0.9, which is not specifically limited here, and R is the image resolution of the satellite image.
1204、根据3D点云构建卫星图像中各个建筑物的LOD模型。1204. Construct a LOD model of each building in the satellite image according to the 3D point cloud.
最后,计算机设备可以根据得到的各个建筑物的3D点云对当前卫星图像中的各个建筑物进行构建,从而得到该卫星图像中各个建筑物的LOD模型。类似地,计算机设备可以通过上述所述的方式得到卫星图像集(包括多个卫星图像的集合)中每个卫星图像内各建筑物的LOD模型。Finally, the computer equipment can construct each building in the current satellite image according to the obtained 3D point cloud of each building, so as to obtain the LOD model of each building in the satellite image. Similarly, the computer device can obtain the LOD model of each building in each satellite image in the satellite image collection (including the collection of multiple satellite images) in the above-mentioned manner.
需要说明的是,在本申请的一些实施方式中,计算机设备得到的卫星图像集中每个卫星图像内各建筑物的LOD模型之后,就可将卫星图像集中各个建筑物LOD模型进行分区合并,得到高精度的目标地图,该目标地图可进一步发送给端侧设备(如,手机、平板电脑等)或边缘设备使用。It should be noted that, in some embodiments of this application, after the satellite image collection obtained by the computer equipment obtains the LOD model of each building in each satellite image, the LOD model of each building in the satellite image collection can be partitioned and merged to obtain A high-precision target map, which can be further sent to end-side devices (such as mobile phones, tablet computers, etc.) or edge devices for use.
还需要说明的是,本申请所述的计算机设备可以是云侧设备(如,云服务器、集群等),也可以是端侧设备(如,手机、个人电脑等),只要是能执行本申请图12对应实施例中的各个步骤的设备都可称为计算机设备,具体此处对计算机设备的具体表现形式不做限定。It should also be noted that the computer device described in this application can be a cloud-side device (eg, cloud server, cluster, etc.), or an end-side device (eg, mobile phone, personal computer, etc.), as long as it can execute this application The device corresponding to each step in the embodiment in FIG. 12 can be referred to as a computer device, and the specific expression form of the computer device is not specifically limited herein.
为便于理解,下面以图15为例,对上述实施例所述的构建物体的LOD模型的方法进行说明:首先,选取一张目标卫星图像(可称为卫星图像S),基于该卫星图像S分别提取得到DSM及该卫星图像S中各个建筑物的轮廓矢量(如,各个建筑物的轮廓矢量可存为一个shp文件),之后将该DSM与各个建筑物的轮廓矢量(如,对应的shp文件)进行套合,得到图15右边所示的套合结果,再基于该套合结果,根据各个建筑物的轮廓采样得到离散的3D点云,图15选择DSM中的某个建筑物作为目标建筑物(可称为建筑物z)进行示意,得到建筑物z的离散3D点云,最后再根据该建筑物z的3D点云对建筑物z进行构建,从而得到建筑物z的LOD模型,如,可以通过泊松表面重建算法由3D点云重建得到LOD模型,重建出的模型具有良好的水密性和几何表面特性。类似地,针对该卫星图像S中的其他建筑物,依照对建筑物z类似的处理,得到该卫星图像S中每个建筑物对应的LOD模型。For ease of understanding, the following takes Fig. 15 as an example to illustrate the method of constructing the LOD model of the object described in the above embodiment: First, select a target satellite image (may be called a satellite image S), based on the satellite image S Extract the outline vector of each building in the DSM and the satellite image S (for example, the outline vector of each building can be saved as a shp file), and then the DSM and the outline vector of each building (for example, the corresponding shp File) to fit, get the fit result shown on the right side of Figure 15, and then based on the fit result, sample the discrete 3D point cloud according to the contour of each building, Figure 15 selects a building in DSM as the target The building (may be called building z) is shown to obtain the discrete 3D point cloud of building z, and finally the building z is constructed according to the 3D point cloud of building z to obtain the LOD model of building z. For example, the LOD model can be reconstructed from the 3D point cloud through the Poisson surface reconstruction algorithm, and the reconstructed model has good water tightness and geometric surface characteristics. Similarly, for other buildings in the satellite image S, the LOD model corresponding to each building in the satellite image S is obtained according to similar processing to the building z.
在本申请上述实施方式中,首次将卫星图像对应的DSM及卫星图像中各个建筑物的轮廓矢量进行套合,再基于套合后的DSM和建筑物轮廓矢量获取到每个建筑物的3D点云,也就是说,根据DSM和建筑物的轮廓矢量得到的套合结果限定了3D点云的采样区域(即圈定了采样范围),在这个采样区域内进行3D点云的采样,其能够高精度的还原建筑物的顶面信息,据此可以得到高精度的LOD模型。并且,本申请上述实施方式不需要单独一个一个获取每个建筑物的高度信息,节约了成本,同时降低了数据量。In the above-mentioned embodiment of this application, the DSM corresponding to the satellite image and the contour vector of each building in the satellite image are combined for the first time, and then the 3D point of each building is obtained based on the combined DSM and building contour vector Cloud, that is to say, the fit result obtained according to the DSM and the silhouette vector of the building defines the sampling area of the 3D point cloud (ie, the sampling range is delineated), and the sampling of the 3D point cloud is performed in this sampling area, which can be high The top surface information of the building is restored with precision, and a high-precision LOD model can be obtained based on this. In addition, the foregoing embodiments of the present application do not need to obtain the height information of each building individually, which saves costs and reduces the amount of data at the same time.
需要说明的是,在本申请上述实施方式中,根据3D点云对卫星图像中各个建筑物进行构建,得到卫星图像中各个建筑物的LOD模型实质上构建得到的是高精度的网格模型,因为得到的每个建筑物的所有3D点云都被用于对建筑物的LOD模型进行构建,这种方式得到的建筑物的LOD模型虽然精度很高,但同时也存在数据量大的问题,最终可能导致合成的卫星地图数据量过大,造成使用过程中的卡顿,影响用户体验。因此在本申请的一些实施方式中,根据3D点云对卫星图像中各个建筑物进行构建,得到卫星图像中各个建筑物的LOD模型的方式可以通过但不限于如下方式:先根据第一预设算法由3D点云重建得到卫 星图像中各个建筑物的网格模型(即上述未简化的LOD模型),再根据第二预设算法对网格模型进行简化,得到卫星图像中各个建筑物简化的LOD模型。It should be noted that, in the above-mentioned embodiment of the present application, each building in the satellite image is constructed according to the 3D point cloud, and the LOD model of each building in the satellite image is obtained, which is essentially a high-precision grid model. Because all the 3D point clouds obtained for each building are used to construct the LOD model of the building, although the LOD model of the building obtained in this way has high accuracy, it also has the problem of large amount of data. Eventually, the amount of synthesized satellite map data may be too large, causing freezes during use and affecting user experience. Therefore, in some embodiments of the present application, each building in the satellite image is constructed according to the 3D point cloud, and the way to obtain the LOD model of each building in the satellite image can be through, but not limited to, the following methods: first according to the first preset The algorithm reconstructs the grid model of each building in the satellite image from the 3D point cloud (that is, the above-mentioned unsimplified LOD model), and then simplifies the grid model according to the second preset algorithm to obtain a simplified model of each building in the satellite image LOD model.
还需要说明的是,在本申请的一些实施方式中,第一预设算法可以包括但不限于:泊松表面重建算法。It should also be noted that in some embodiments of the present application, the first preset algorithm may include, but is not limited to: Poisson surface reconstruction algorithm.
下面具体对如何根据第二预设算法简化网格模型进行介绍,这里需要先说明的是,第二预设算法可以有多种具体表现形式,例如,可以是如图16所示的顶点删除的方式,也可以是如图4所示的边变成点(即边塌陷)的方式,还可以是如图17所示的面变成点(即面收缩)的方式,具体此处不做限定。但是为了便于理解,以第二预设算法为图4所示的边塌陷的方式(即边折叠算法)为例,对如何简化网格模型进行介绍:首先,根据边折叠算法对得到的各个建筑物的网格模型进行迭代简化,直至简化后得到的卫星图像中各个建筑物的LOD模型满足预设条件。通过设置的预设条件,同时兼顾简化比和模型精度。其核心技术思想是:通过边折叠算法实现网格模型的简化(如图4所示),同时加入自校验机制(即设置预设条件)防止LOD模型过度简化,如图18所示,即为由于过度简化导致的LOD模型被“拉花”,这种情况下的建筑物已严重失真,无法使用。The following specifically introduces how to simplify the mesh model according to the second preset algorithm. It needs to be explained here that the second preset algorithm can have a variety of specific manifestations, for example, the vertex deletion shown in Figure 16 The method can also be a method in which the side becomes a point (that is, the side collapses) as shown in FIG. 4, or a method in which the surface becomes a point (that is, the area shrinks) as shown in FIG. 17, which is not specifically limited here. . However, for ease of understanding, take the method of edge collapse (ie edge folding algorithm) shown in Figure 4 as an example for the second preset algorithm to introduce how to simplify the mesh model: The mesh model of the object is iteratively simplified until the LOD model of each building in the simplified satellite image meets the preset conditions. By setting the preset conditions, both simplification ratio and model accuracy are taken into consideration. The core technical idea is: the simplification of the mesh model is achieved through the edge folding algorithm (as shown in Figure 4), and a self-checking mechanism (ie, setting preset conditions) is added to prevent excessive simplification of the LOD model, as shown in Figure 18, that is Because the LOD model is "pulled" due to over-simplification, the building in this case has been severely distorted and cannot be used.
具体地,通过边折叠算法实现网格模型的简化的步骤可如图19所示:首先,对得到的当前卫星图像中各个建筑物的网格模型计算其塌陷代价函数,该塌陷代价函数可表示为cost=|S 0-S 1|,其中,S 0为当前边x所关联的三角形所围成的局部区域(即图4中左边共点的9个三角形所围成的区域),S 1为假设该边x塌陷成顶点p2后,顶点p2所关联的三角形所围成的局部区域(即图4中右边共点的7个三角形所围成的区域),cost即为塌陷前后局部面积的变化量;类似地,针对该网格模型中的每条边都可根据上述塌陷代价函数计算出每条边对应的cost的取值,之后,按照预设规则选择其中一个cost对应的边进行塌陷(即一条边塌陷变成一个顶点),如,可以是选择cost的取值最小的边进行塌陷,也可以是选择cost的取值小于某个值的边进行塌陷,此处对预设规则不做限定;按照上述类似的方式,每次迭代一定的步长(如,10-20次,每个周期按照上述方式连续塌陷10-20次,即塌陷10-20条边)后,对模型进行自校验的计算以判断模型是否被“拉花”,具体地,可以通过但不限于如下方式进行自校验计算:计算构成初始的网格模型的3D点云(就是上图4左边未进行塌陷时的各个顶点)到当前简化的LOD模型(就是图4右边7个三角行构成的区域,可近似看作一个平面)的距离d,具体的计算公式可以是d=μ+2*σ,其中,μ=∑ i=1~nd i/n,为每个3D点到当前简化的LOD模型的距离d i的平均值,
Figure PCTCN2021081695-appb-000001
Figure PCTCN2021081695-appb-000002
为每个3D点到当前简化的LOD模型的距离d i的标准差;之后,判断当前简化的LOD模型与点云的距离是否超过“拉花”的阈值t,t=ε*step,其中,ε为比例系数,可根据实际情况自行设置,根据实验的经验,可以取值为2~5中的任意数值,step为3D点云的采样步长,该采样步长也可自行设置,如,可取步长为step=0.5*0.5m;如果计算得到的距离d没有超过阈值t,则回到上述步骤继续进行下一个周期的迭代简化,若计算得到的距离d超过阈值t,则停止简化,并将上一个简化周期迭代得到的LOD模型作为最终简化好的LOD模型输出。
Specifically, the steps to realize the simplification of the grid model through the edge folding algorithm can be shown in Figure 19: First, calculate the collapse cost function of the obtained grid model of each building in the current satellite image, and the collapse cost function can be expressed as Is cost=|S 0 -S 1 |, where S 0 is the local area enclosed by the triangles associated with the current side x (that is, the area enclosed by the 9 triangles on the left in Figure 4), S 1 To assume that after the edge x collapses to vertex p2, the local area enclosed by the triangles associated with vertex p2 (that is, the area enclosed by the 7 triangles on the right in Figure 4), cost is the local area before and after the collapse The amount of change; similarly, for each edge in the grid model, the value of the cost corresponding to each edge can be calculated according to the above collapse cost function, and then the edge corresponding to one cost is selected for collapse according to the preset rules (That is, one edge collapses into a vertex). For example, the edge with the smallest cost value can be selected for collapse, or the edge with the cost value less than a certain value can be selected for collapse. Make a limit; in a similar way to the above, after each iteration a certain step length (for example, 10-20 times, each cycle continues to collapse 10-20 times in the above way, that is, 10-20 edges are collapsed), the model is The self-checking calculation is used to determine whether the model is "pulled". Specifically, the self-checking calculation can be carried out by, but not limited to, the following methods: Calculate the 3D point cloud that constitutes the initial mesh model (that is, the 3D point cloud that is not performed on the left side of Figure 4 above) The distance d from each vertex at the time of collapse) to the current simplified LOD model (that is, the area formed by the 7 triangle rows on the right side of Figure 4, which can be approximated as a plane). The specific calculation formula can be d=μ+2*σ, Among them, μ=∑ i=1~n d i /n, which is the average value of the distance d i from each 3D point to the current simplified LOD model,
Figure PCTCN2021081695-appb-000001
Figure PCTCN2021081695-appb-000002
It is the standard deviation of the distance d i from each 3D point to the current simplified LOD model; after that, it is judged whether the distance between the current simplified LOD model and the point cloud exceeds the threshold value t of "drawing", t=ε*step, where, ε is the scale factor, which can be set according to the actual situation. According to the experience of the experiment, the value can be any value from 2 to 5. The step is the sampling step of the 3D point cloud. The sampling step can also be set by yourself, for example, The possible step size is step=0.5*0.5m; if the calculated distance d does not exceed the threshold t, then return to the above steps to continue the iterative simplification of the next cycle. If the calculated distance d exceeds the threshold t, stop the simplification. And output the LOD model obtained from the last simplification cycle iteration as the final simplified LOD model.
为便于理解,下面以图20为例,对上述由初始的卫星图像得到最终简化后的LOD模 型进行说明:向计算机设备输入初始的卫星图像(如,分辨率为0.5米的卫星图像),之后,采用预设方法(如,图13所示的半全局优化的方法)从该卫星图像中提取DSM,同时采用预设方法(如,图14所示的AI识别的方法)提取该卫星图像中各个建筑物的轮廓,并生成shp文件,再将DSM与建筑物的shp文件进行套合,然后对每一个建筑物沿着其轮廓在对应的DSM上按一定的步长step(如,step=0.5*0.5米,其他的步长也可以)采样3D点,离散出3D点云,最后通过泊松表面重建算法(其他算法也可以)由3D点云重建得到高精度的3D网格模型;之后,对每一个建筑物对应的网格模型,按照1米(5*step)的距离(也可以是其他距离)得到阈值t,再进行如图20所示的简化步骤生成最终简化好的LOD模型。最后,就可以对得到的各个建筑物的LOD模型进行分区合并,得到城市级的高精度地图,如图21所示,就为根据各个建筑物的LOD模型合并得到的一个高精度地图,由图21可以看出,其很好的还原了各建筑物的顶部信息。For ease of understanding, the following takes Figure 20 as an example to illustrate the LOD model finally simplified from the initial satellite image: input the initial satellite image (for example, a satellite image with a resolution of 0.5 meters) into a computer device, and then , Using a preset method (such as the semi-global optimization method shown in Figure 13) to extract DSM from the satellite image, while using a preset method (such as the AI recognition method shown in Figure 14) to extract the satellite image The outline of each building and the shp file is generated, and then the DSM and the shp file of the building are combined, and then each building is set along its outline on the corresponding DSM according to a certain step (eg, step= 0.5*0.5 meters, other steps are also possible) sample 3D points, discretize the 3D point cloud, and finally reconstruct a high-precision 3D mesh model from the 3D point cloud through the Poisson surface reconstruction algorithm (other algorithms are also available); then , For the grid model corresponding to each building, get the threshold t according to the distance of 1 meter (5*step) (or other distances), and then perform the simplified steps shown in Figure 20 to generate the final simplified LOD model . Finally, the obtained LOD models of each building can be merged into zones to obtain a city-level high-precision map. 21 It can be seen that it restores the top information of each building very well.
在本申请上述实施方式中,通过自动化的构建流程能够减少人工量和制作周期,有效降低LOD模型的生产成本,同时保证复杂建筑物模型的精度,实现高精度、低成本的城市级高精度地图的快速生产。In the above-mentioned embodiments of this application, the automated construction process can reduce labor and production cycles, effectively reduce the production cost of LOD models, and at the same time ensure the accuracy of complex building models, and achieve high-precision, low-cost city-level high-precision maps Rapid production.
为了对本申请实施例所带来的有益效果有更为直观的认识,可参阅图22,在图22中,针对同一个卫星图像得到的建筑物的LOD模型,通过本申请实施例得到的建筑物的LOD模型在精度上就比通过目前已有技术得到的建筑物的LOD模型的精度高很多。In order to have a more intuitive understanding of the beneficial effects brought by the embodiments of the present application, please refer to FIG. 22. In FIG. 22, the LOD model of the building obtained from the same satellite image is the building obtained by the embodiment of the present application. The accuracy of the LOD model is much higher than the accuracy of the LOD model of the building obtained by the current existing technology.
由于智能安防、智慧城市、智能终端等领域中都可以用到本申请实施例中基于建筑物的LOD模型构建的高精度地图,例如,基于本申请方法得到的建筑物LOD模型,可用于构建高精度地图,该高精度地图可应用于各种场景,比如常见的一些任务:无人驾驶的障碍物避让、智能识别、定位导航、进一步构建AR/VR地图等,下面将对多个落地到产品的多个应用场景进行介绍。Since the high-precision map constructed based on the LOD model of the building in the embodiment of this application can be used in the fields of smart security, smart city, smart terminal, etc., for example, the LOD model of the building obtained based on the method of this application can be used to construct high-precision maps. Accuracy map. This high-precision map can be applied to various scenarios, such as some common tasks: unmanned obstacle avoidance, intelligent recognition, positioning navigation, further construction of AR/VR maps, etc. Introduction of multiple application scenarios.
(1)AR地图(1) AR map
AR地图(也称河图)具有融合3D高精地图的能力、空间计算能力、强环境理解能力和逼真的虚实融合渲染能力,在端管云融合的5G架构下,将提供地球级虚实融合世界的构建与服务能力。而高精度地图作为连接虚拟世界和真实世界的桥梁,是AR地图的重要基础,本申请提出的技术方案已经进行了验证,已证明该方案能够以较低的成本,快速生产LOD模型,实现城市级的高精度地图覆盖,同时模型精度满足应用要求,如图23所示,为本申请实施例提供的高精度地图在AR地图中的应用效果。AR map (also known as River Map) has the ability to integrate 3D high-precision maps, spatial computing capabilities, strong environment understanding capabilities, and realistic virtual and real fusion rendering capabilities. Under the 5G architecture of terminal, tube and cloud fusion, it will provide an earth-level virtual and real world. Construction and service capabilities. The high-precision map, as a bridge between the virtual world and the real world, is an important foundation for AR maps. The technical solution proposed in this application has been verified, and it has been proved that the solution can quickly produce LOD models at a lower cost and realize the city Level of high-precision map coverage, while the accuracy of the model meets the application requirements, as shown in FIG. 23, the application effect of the high-precision map provided in this embodiment of the application in the AR map.
(2)无人驾驶的障碍物避让(2) Unmanned obstacle avoidance
基于本申请实施例构建的LOD模型得到的高精度地图也可以应用于无人驾驶领域,如,无人驾驶的智能飞行设备(如,无人机、空中灭火设备等),在这些无人驾驶的智能设备上可搭载配置本申请提供的高精度地图,使得这些智能飞行设备在低空飞行过程中,能准确避让各个建筑物。The high-precision map obtained based on the LOD model constructed in the embodiments of this application can also be applied to the field of unmanned driving, such as unmanned intelligent flight equipment (such as unmanned aerial vehicles, aerial fire extinguishing equipment, etc.). The smart devices of can be equipped with high-precision maps provided by this application, so that these smart flying devices can accurately avoid various buildings during low-altitude flights.
应理解,上文介绍的AR地图和无人驾驶的障碍物避让只是基于本申请实施例方法构建得到的高精度地图所应用的两个具体场景,本申请实施例在应用时并不限于上述场景,其能够应用到任何需要使用地图的场景中。It should be understood that the AR map and the obstacle avoidance for unmanned driving introduced above are only two specific scenarios for the application of the high-precision map constructed based on the method of the embodiment of the present application, and the application of the embodiment of the present application is not limited to the foregoing scenarios. , It can be applied to any scene where a map needs to be used.
在图12、图15及图20所对应的实施例的基础上,为了更好的实施本申请实施例的上述方案,下面还提供用于实施上述方案的计算机设备。具体参阅图24,图24为本申请实施例提供的一种计算机设备的示意图,该计算机设备具体可以包括:获取模块2401、套合模块2402、采样模块2403以及构建模块2404,其中,获取模块2401,用于获取与卫星图像对应的DSM及所述卫星图像中各个建筑物的轮廓矢量;套合模块2402,用于将所述DSM与所述卫星图像中各个建筑物的轮廓矢量进行套合,得到套合结果;采样模块2403,用于根据所述套合结果对所述卫星图像中各个建筑物进行采样,得到所述卫星图像中各个建筑物的3D点云;构建模块2404,用于根据所述3D点云对所述卫星图像中各个建筑物进行构建,得到所述卫星图像中各个建筑物的LOD模型。On the basis of the embodiments corresponding to FIG. 12, FIG. 15 and FIG. 20, in order to better implement the above solutions of the embodiments of the present application, a computer device for implementing the above solutions is also provided below. For details, refer to FIG. 24. FIG. 24 is a schematic diagram of a computer device provided by an embodiment of the application. The computer device may specifically include: an acquisition module 2401, a nesting module 2402, a sampling module 2403, and a construction module 2404, wherein the acquisition module 2401 , Used to obtain the DSM corresponding to the satellite image and the contour vector of each building in the satellite image; the matching module 2402, used to merge the DSM with the contour vector of each building in the satellite image, Obtain the nested result; the sampling module 2403 is used to sample each building in the satellite image according to the nested result to obtain the 3D point cloud of each building in the satellite image; the building module 2404 is used to The 3D point cloud constructs each building in the satellite image to obtain a LOD model of each building in the satellite image.
在本申请上述实施方式中,首先,获取模块2401会获取到与卫星图像对应的DSM及该卫星图像中各个建筑物的轮廓矢量,并通过套合模块2402将卫星图像对应的DSM及卫星图像中各个建筑物的轮廓矢量进行套合,再基于套合后的DSM和建筑物轮廓矢量通过采样模块2403采样得到离散的建筑物的3D点云,最后通过构建模块2404利用该3D点云对各个建筑物进行构建,由于3D点云是基于建筑物的轮廓采样得到的,其能够高精度的还原建筑物的顶面信息,据此可以得到高精度的LOD模型。并且,本申请上述实施方式不需要单独一个一个获取每个建筑物的高度信息,节约了成本,同时降低了数据量。In the above-mentioned embodiment of the present application, first, the acquisition module 2401 will acquire the DSM corresponding to the satellite image and the contour vector of each building in the satellite image, and use the matching module 2402 to convert the DSM and satellite image corresponding to the satellite image. The contour vectors of each building are combined, and then based on the combined DSM and building contour vectors, the 3D point cloud of the discrete buildings is sampled by the sampling module 2403, and finally the 3D point cloud is used for each building through the building module 2404. Since the 3D point cloud is sampled based on the outline of the building, it can restore the top surface information of the building with high precision, and thus a high-precision LOD model can be obtained. In addition, the foregoing embodiments of the present application do not need to obtain the height information of each building individually, which saves costs and reduces the amount of data at the same time.
在一种可能的设计中,所述构建模块2404,具体用于:根据第一预设算法由所述3D点云重建得到所述卫星图像中各个建筑物的网格模型,之后,再根据第二预设算法对所述网格模型进行简化,得到所述卫星图像中各个建筑物的LOD模型。In a possible design, the construction module 2404 is specifically configured to: reconstruct a grid model of each building in the satellite image from the 3D point cloud according to a first preset algorithm, and then, according to the first preset algorithm The second preset algorithm simplifies the grid model to obtain the LOD model of each building in the satellite image.
在本申请上述实施方式中,具体阐述了一种如何得到LOD模型的方式,即先根据第一预设算法得到网格模型,再对网格模型简化,得到LOD模型。这种方式简单易操作,具备灵活性。In the above-mentioned embodiment of the present application, a method of how to obtain the LOD model is specifically explained, that is, the mesh model is first obtained according to the first preset algorithm, and then the mesh model is simplified to obtain the LOD model. This method is simple, easy to operate, and flexible.
在一种可能的设计中,所述构建模块2404,具体还用于:根据边折叠算法对所述网格模型进行迭代简化,直至简化后得到的所述卫星图像中各个建筑物的LOD模型满足预设条件,则此时得到的简化后的LOD模型就为最终输出的LOD模型。In a possible design, the construction module 2404 is specifically used to: iteratively simplify the grid model according to the edge folding algorithm until the simplified LOD model of each building in the satellite image satisfies With the preset conditions, the simplified LOD model obtained at this time is the final output LOD model.
在本申请上述实施方式中,具体阐述了一种如何简化网格模型的方式,即通过边折叠算法对得到的网格模型进行简化,同时加入自校验机制(即设置预设条件)防止LOD模型过度简化,同时兼顾到了简化比和模型精度。In the above-mentioned embodiment of this application, a method of how to simplify the mesh model is specifically explained, that is, the obtained mesh model is simplified by the edge folding algorithm, and a self-checking mechanism (ie, setting preset conditions) is added to prevent LOD. The model is oversimplified, while taking into account the simplification ratio and model accuracy.
在一种可能的设计中,所述采样模块2403,具体用于:基于所述卫星图像中各个建筑物的轮廓,在所述DSM上按预设步长进行采样,得到所述卫星图像中各个建筑物的3D点云。在本申请上述实施方式中,具体阐述了如何根据建筑物的轮廓得到离散的3D点云的,3D点云的密集度可根据步长自行调整,可满足用户的不同需求,具备灵活性。In a possible design, the sampling module 2403 is specifically configured to: based on the outline of each building in the satellite image, perform sampling on the DSM at a preset step to obtain each 3D point cloud of buildings. In the above-mentioned embodiments of this application, it is specifically explained how to obtain discrete 3D point clouds according to the contours of buildings. The density of the 3D point clouds can be adjusted according to the step length, which can meet the different needs of users and is flexible.
在一种可能的设计中,所述构建模块2404,还用于:将多个卫星图像中各个建筑物的LOD模型进行分区合并,得到目标地图。In a possible design, the construction module 2404 is also used to: merge the LOD models of various buildings in multiple satellite images to obtain a target map.
在本申请上述实施方式中,得到的卫星图像集中每个卫星图像内各建筑物的LOD模型之后,就可将卫星图像集中各个建筑物LOD模型进行分区合并,得到高精度的目标地图,该目标地图可进一步发送给端侧设备(如,手机、平板电脑等)或边缘设备使用,具备实用 性。In the above-mentioned embodiment of this application, after obtaining the LOD model of each building in each satellite image in the satellite image collection, the LOD model of each building in the satellite image collection can be partitioned and merged to obtain a high-precision target map. The map can be further sent to end-side devices (such as mobile phones, tablet computers, etc.) or edge devices for use, which is practical.
在一种可能的设计中,所述卫星图像中各个建筑物的轮廓矢量保存为shp文件。具体地,包括但不限于如下方式:1)基于该卫星图像得到的各个建筑物轮廓可存储为一个shp文件,一张卫星图像对应一个shp文件,比如,某张卫星图像中有4个建筑物,那么获得的这4个建筑物的轮廓矢量均存在该同一个shp文件中;2)每个建筑物对应一个shp文件,比如,某张卫星图像中有4个建筑物,那么获得的这4个建筑物的轮廓矢量分别存成4个不同的shp文件。此处不限定每个卫星图像中的各个建筑物的轮廓矢量存储为shp文件的具体实现方式。In a possible design, the outline vector of each building in the satellite image is saved as a shp file. Specifically, it includes but is not limited to the following methods: 1) The outline of each building obtained based on the satellite image can be stored as a shp file, and a satellite image corresponds to a shp file. For example, there are 4 buildings in a satellite image, then The obtained contour vectors of the 4 buildings are all stored in the same shp file; 2) Each building corresponds to a shp file. For example, if there are 4 buildings in a certain satellite image, then these 4 buildings are obtained The contour vectors of are saved as 4 different shp files. The specific implementation of storing the outline vector of each building in each satellite image as a shp file is not limited here.
在本申请上述实施方式中,阐述了将建筑物保存为shp文件的几种方式,具备可选择性。在一种可能的设计中,所述建筑物至少包括如下物体中的至少一种:房屋、桥梁、电塔、隧道、铁塔、水塔、标志性雕塑、水坝、通信基站等,进一步地,只要是人们在卫星图像中确定的目标,并提取到该目标的轮廓矢量,那么该目标就可以称为本申请实施例所述的建筑物。In the above-mentioned embodiments of this application, several ways of saving the building as a shp file are described, which are optional. In a possible design, the building includes at least one of the following objects: houses, bridges, electrical towers, tunnels, iron towers, water towers, iconic sculptures, dams, communication base stations, etc., further, as long as they are People determine the target in the satellite image and extract the contour vector of the target, then the target can be called the building described in the embodiment of the present application.
在本申请上述实施方式中,阐述了本申请所述的建筑物具体可以是哪些物体,便于在对建筑物轮廓进行获取时,知道如何在卫星图像中确定出需要的建筑物类型。In the foregoing embodiments of the present application, it is explained which objects the buildings described in the present application can be, so that when the outline of the building is acquired, it is convenient to know how to determine the required building type in the satellite image.
在一种可能的设计中,所述第一预设算法包括:泊松表面重建算法。In a possible design, the first preset algorithm includes: a Poisson surface reconstruction algorithm.
在本申请上述实施方式中,给出了第一预设算法的一种具体形式,具备可选择性。In the foregoing implementation manners of the present application, a specific form of the first preset algorithm is given, which is optional.
需要说明的是,图24对应实施例所述的计算机设备中各模块/单元之间的信息交互、执行过程等内容,与本申请中图12、图15及图20对应的方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。It should be noted that FIG. 24 corresponds to the information interaction and execution process between the various modules/units in the computer equipment described in the embodiment, and is based on the same method embodiment as that of FIG. 12, FIG. 15 and FIG. 20 in this application. For the concept, the specific content can be referred to the description in the method embodiment shown in the foregoing application, which will not be repeated here.
接下来介绍本申请实施例提供的另一种计算机设备,请参阅图25,图25为本申请实施例提供的计算机设备的一种结构示意图,计算机设备2500上可以部署有图24对应实施例中所描述的模块,用于实现图24对应实施例中计算机设备的功能,具体的,计算机设备2500由一个或多个服务器实现,计算机设备2500可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)2522(例如,一个或一个以上中央处理器)和存储器2532,一个或一个以上存储应用程序2542或数据2544的存储介质2530(例如一个或一个以上海量存储设备)。其中,存储器2532和存储介质2530可以是短暂存储或持久存储。存储在存储介质2530的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对计算机设备2500中的一系列指令操作。更进一步地,中央处理器2522可以设置为与存储介质2530通信,在计算机设备2500上执行存储介质2530中的一系列指令操作。Next, another computer device provided by an embodiment of this application will be introduced. Please refer to FIG. 25. FIG. 25 is a schematic structural diagram of a computer device provided by an embodiment of this application. The described modules are used to implement the functions of the computer device in the embodiment corresponding to FIG. 24. Specifically, the computer device 2500 is implemented by one or more servers. The computer device 2500 may have relatively large differences due to different configurations or performances. Including one or more central processing units (CPU) 2522 (e.g., one or more central processing units) and memory 2532, and one or more storage media 2530 (e.g., one or more central processing units) storing application programs 2542 or data 2544 A storage device in Shanghai). Among them, the memory 2532 and the storage medium 2530 may be short-term storage or permanent storage. The program stored in the storage medium 2530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the computer device 2500. Furthermore, the central processing unit 2522 may be configured to communicate with the storage medium 2530, and execute a series of instruction operations in the storage medium 2530 on the computer device 2500.
计算机设备2500还可以包括一个或一个以上电源2526,一个或一个以上有线或无线网络接口2550,一个或一个以上输入输出接口2558,和/或,一个或一个以上操作系统2541,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。The computer device 2500 may also include one or more power supplies 2526, one or more wired or wireless network interfaces 2550, one or more input and output interfaces 2558, and/or one or more operating systems 2541, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
本申请实施例中,中央处理器2522,用于执行图12、图15或图20对应实施例中的方法。例如,中央处理器2522可以用于:获取到与某个目标卫星图像(如,分辨率为0.5米的卫星图像)对应的DSM及该卫星图像中各个建筑物的轮廓矢量,并将该DSM和该卫星图像 中各个建筑物的轮廓矢量进行套合,得到套合结果,之后,就可根据该套合结果(即重合后的DSM和各个建筑物的轮廓矢量)对当前卫星图像中各个建筑物进行采样,以得到卫星图像中各个建筑物的3D点云,最后,计算机设备可以根据得到的各个建筑物的3D点云对当前卫星图像中的各个建筑物进行构建,从而得到该卫星图像中各个建筑物的LOD模型。类似地,计算机设备可以通过上述所述的方式得到卫星图像集(包括多个卫星图像的集合)中每个卫星图像内各建筑物的LOD模型。In this embodiment of the application, the central processing unit 2522 is configured to execute the method in the embodiment corresponding to FIG. 12, FIG. 15 or FIG. 20. For example, the central processing unit 2522 can be used to: obtain a DSM corresponding to a certain target satellite image (for example, a satellite image with a resolution of 0.5 meters) and the contour vector of each building in the satellite image, and combine the DSM with The contour vectors of the various buildings in the satellite image are combined to obtain the combined result. After that, the combined result (ie, the overlapped DSM and the contour vector of each building) can be used for each building in the current satellite image. Sampling is performed to obtain the 3D point cloud of each building in the satellite image. Finally, the computer equipment can construct each building in the current satellite image according to the obtained 3D point cloud of each building, so as to obtain each of the satellite images. The LOD model of the building. Similarly, the computer device can obtain the LOD model of each building in each satellite image in the satellite image collection (including the collection of multiple satellite images) in the above-mentioned manner.
需要说明的是,中央处理器2522还可以用于执行与本申请中图12、图15或图20对应的方法实施例中任意一个步骤,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。It should be noted that the central processing unit 2522 may also be used to execute any step in the method embodiment corresponding to FIG. 12, FIG. 15 or FIG. 20 in this application. For details, please refer to the method embodiment shown in the foregoing application. The narrative, I won’t repeat it here.
本申请实施例中还提供一种计算机可读存储介质,该计算机可读存储介质中存储有用于进行信号处理的程序,当其在计算机上运行时,使得计算机执行如前述所示实施例描述中计算机设备所执行的步骤。The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a program for signal processing. When it runs on a computer, the computer executes the above-mentioned embodiment description. The steps performed by the computer equipment.
另外需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本申请提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。In addition, it should be noted that the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physically separate. The physical unit can be located in one place or distributed across multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments. In addition, in the drawings of the device embodiments provided in the present application, the connection relationship between the modules indicates that they have a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本申请而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘、U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,训练设备,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general hardware. Of course, it can also be implemented by dedicated hardware including dedicated integrated circuits, dedicated CPUs, dedicated memory, Dedicated components and so on to achieve. Under normal circumstances, all functions completed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structure used to achieve the same function can also be diverse, such as analog circuits, digital circuits or special purpose circuits. Circuit etc. However, for this application, software program implementation is a better implementation in more cases. Based on this understanding, the technical solution of this application essentially or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a readable storage medium, such as a computer floppy disk. , U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk, etc., including several instructions to make a computer device (which can be a personal Computers, training devices, or network devices, etc.) execute the methods described in the various embodiments of the present application.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part.
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、训练设备或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个 网站站点、计算机、训练设备或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的训练设备、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, training device, or data. The center transmits to another website site, computer, training equipment, or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a training device or a data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a high-density digital video disc (digital video disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disk)). , SSD)) etc.

Claims (20)

  1. 一种构建物体的多细节层次模型的方法,其特征在于,包括:A method for constructing a multi-level-of-detail model of an object, which is characterized in that it includes:
    获取与卫星图像对应的数字地表模型DSM及所述卫星图像中各个建筑物的轮廓矢量;Acquiring a digital surface model DSM corresponding to the satellite image and the contour vector of each building in the satellite image;
    将所述DSM与所述卫星图像中各个建筑物的轮廓矢量进行套合,得到套合结果;Merging the DSM with the contour vectors of each building in the satellite image to obtain a merging result;
    根据所述套合结果对所述卫星图像中各个建筑物进行采样,得到所述卫星图像中各个建筑物的3D点云;Sampling each building in the satellite image according to the combination result to obtain a 3D point cloud of each building in the satellite image;
    根据所述3D点云构建所述卫星图像中各个建筑物的多细节层次LOD模型。Constructing a multi-level-of-detail LOD model of each building in the satellite image according to the 3D point cloud.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述3D点云构建所述卫星图像中各个建筑物的LOD模型包括:The method according to claim 1, wherein the constructing the LOD model of each building in the satellite image according to the 3D point cloud comprises:
    根据第一预设算法由所述3D点云重建得到所述卫星图像中各个建筑物的网格模型;To obtain a grid model of each building in the satellite image by reconstructing from the 3D point cloud according to a first preset algorithm;
    根据第二预设算法对所述网格模型进行简化,得到所述卫星图像中各个建筑物的LOD模型。The grid model is simplified according to the second preset algorithm to obtain the LOD model of each building in the satellite image.
  3. 根据权利要求2所述的方法,其特征在于,所述根据第二预设算法对所述网格模型进行简化包括:The method according to claim 2, wherein the simplifying the mesh model according to a second preset algorithm comprises:
    根据边折叠算法对所述网格模型进行迭代简化,直至简化后得到的所述卫星图像中各个建筑物的LOD模型满足预设条件。The grid model is iteratively simplified according to the edge folding algorithm until the simplified LOD model of each building in the satellite image meets a preset condition.
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述根据所述套合结果对所述卫星图像中各个建筑物进行采样,得到所述卫星图像中各个建筑物的3D点云包括:The method according to any one of claims 1 to 3, wherein the sampling of each building in the satellite image is performed according to the result of the integration to obtain a 3D image of each building in the satellite image The point cloud includes:
    基于所述卫星图像中各个建筑物的轮廓,在所述DSM上按预设步长进行采样,得到所述卫星图像中各个建筑物的3D点云。Based on the outline of each building in the satellite image, sampling is performed on the DSM at a preset step length to obtain a 3D point cloud of each building in the satellite image.
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-4, wherein the method further comprises:
    将多个卫星图像中各个建筑物的LOD模型进行分区合并,得到目标地图。The LOD model of each building in the multiple satellite images is partitioned and merged to obtain the target map.
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述卫星图像中各个建筑物的轮廓矢量保存为shp文件。The method according to any one of claims 1 to 5, wherein the outline vector of each building in the satellite image is saved as a shp file.
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述建筑物至少包括如下物体中的至少一种:The method according to any one of claims 1-6, wherein the building at least includes at least one of the following objects:
    房屋、桥梁、电塔、隧道、铁塔、水塔、标志性雕塑、水坝、通信基站。Houses, bridges, electrical towers, tunnels, iron towers, water towers, iconic sculptures, dams, communication base stations.
  8. 根据权利要求2-7中任一项所述的方法,其特征在于,所述第一预设算法包括:The method according to any one of claims 2-7, wherein the first preset algorithm comprises:
    泊松表面重建算法。Poisson surface reconstruction algorithm.
  9. 一种计算机设备,其特征在于,包括:A computer device, characterized in that it comprises:
    获取模块,用于获取与卫星图像对应的DSM及所述卫星图像中各个建筑物的轮廓矢量;An acquisition module, which is used to acquire the DSM corresponding to the satellite image and the contour vector of each building in the satellite image;
    套合模块,用于将所述DSM与所述卫星图像中各个建筑物的轮廓矢量进行套合,得到套合结果;The nesting module is used to nest the DSM with the contour vectors of each building in the satellite image to obtain a nesting result;
    采样模块,用于根据所述套合结果对所述卫星图像中各个建筑物进行采样,得到所述卫星图像中各个建筑物的3D点云;A sampling module, configured to sample each building in the satellite image according to the set result to obtain a 3D point cloud of each building in the satellite image;
    构建模块,用于根据所述3D点云构建所述卫星图像中各个建筑物的LOD模型。The construction module is used to construct the LOD model of each building in the satellite image according to the 3D point cloud.
  10. 根据权利要求9所述的设备,其特征在于,所述构建模块,具体用于:The device according to claim 9, wherein the building module is specifically used for:
    根据第一预设算法由所述3D点云重建得到所述卫星图像中各个建筑物的网格模型;To obtain a grid model of each building in the satellite image by reconstructing from the 3D point cloud according to a first preset algorithm;
    根据第二预设算法对所述网格模型进行简化,得到所述卫星图像中各个建筑物的LOD模型。The grid model is simplified according to the second preset algorithm to obtain the LOD model of each building in the satellite image.
  11. 根据权利要求10所述的设备,其特征在于,所述构建模块,具体还用于:The device according to claim 10, wherein the building module is specifically further used for:
    根据边折叠算法对所述网格模型进行迭代简化,直至简化后得到的所述卫星图像中各个建筑物的LOD模型满足预设条件。The grid model is iteratively simplified according to the edge folding algorithm until the simplified LOD model of each building in the satellite image meets a preset condition.
  12. 根据权利要求9-11中任一项所述的设备,其特征在于,所述采样模块,具体用于:The device according to any one of claims 9-11, wherein the sampling module is specifically configured to:
    基于所述卫星图像中各个建筑物的轮廓,在所述DSM上按预设步长进行采样,得到所述卫星图像中各个建筑物的3D点云。Based on the outline of each building in the satellite image, sampling is performed on the DSM at a preset step length to obtain a 3D point cloud of each building in the satellite image.
  13. 根据权利要求9-12中任一项所述的设备,其特征在于,所述构建模块,还用于:The device according to any one of claims 9-12, wherein the building module is further used for:
    将多个卫星图像中各个建筑物的LOD模型进行分区合并,得到目标地图。The LOD model of each building in the multiple satellite images is partitioned and merged to obtain the target map.
  14. 根据权利要求9-13中任一项所述的设备,其特征在于,所述卫星图像中各个建筑物的轮廓矢量保存为shp文件。The device according to any one of claims 9-13, wherein the outline vector of each building in the satellite image is saved as a shp file.
  15. 根据权利要求9-14中任一项所述的设备,其特征在于,所述建筑物至少包括如下物体中的至少一种:The device according to any one of claims 9-14, wherein the building includes at least one of the following objects:
    房屋、桥梁、电塔、隧道、铁塔、水塔、标志性雕塑、水坝、通信基站。Houses, bridges, electrical towers, tunnels, iron towers, water towers, iconic sculptures, dams, communication base stations.
  16. 根据权利要求10-15中任一项所述的设备,其特征在于,所述第一预设算法包括:The device according to any one of claims 10-15, wherein the first preset algorithm comprises:
    泊松表面重建算法。Poisson surface reconstruction algorithm.
  17. 一种计算机设备,包括存储器和一个或多个处理器,所述一个和多个处理器与所述存储器耦合,其特征在于,A computer device includes a memory and one or more processors, the one or more processors are coupled with the memory, and is characterized in that:
    所述存储器,用于存储程序;The memory is used to store programs;
    所述一个或多个处理器,用于执行所述存储器中的程序,使得所述计算机设备执行如权利要求1-8中任一项所述的方法。The one or more processors are configured to execute the program in the memory, so that the computer device executes the method according to any one of claims 1-8.
  18. 一种计算机可读存储介质,包括计算机可读指令,其特征在于,当所述计算机可读指令在计算机上运行时,使得计算机执行如权利要求1-8中任一项所述的方法。A computer-readable storage medium, comprising computer-readable instructions, characterized in that, when the computer-readable instructions are run on a computer, the computer is caused to execute the method according to any one of claims 1-8.
  19. 一种计算机程序产品,包括计算机可读指令,其特征在于,当所述计算机可读指令在计算机上运行时,使得计算机执行如权利要求1-8中任一项所述的方法。A computer program product comprising computer-readable instructions, wherein when the computer-readable instructions are run on a computer, the computer is caused to execute the method according to any one of claims 1-8.
  20. 一种芯片,其特征在于,所述芯片包括存储器和一个或多个处理器,所述芯片用于读取存储器中存储的计算机程序,使得所述一个或多个处理器执行如权利要求1-8任一项所述的方法。A chip, characterized in that, the chip includes a memory and one or more processors, and the chip is used to read a computer program stored in the memory, so that the one or more processors execute as claimed in claim 1- 8. The method of any one.
PCT/CN2021/081695 2020-05-28 2021-03-19 Method for constructing multi-level of detail model of object, and computer device WO2021238359A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010466779.1A CN113743155A (en) 2020-05-28 2020-05-28 Method for constructing multi-detail level model of object and computer equipment
CN202010466779.1 2020-05-28

Publications (1)

Publication Number Publication Date
WO2021238359A1 true WO2021238359A1 (en) 2021-12-02

Family

ID=78724153

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/081695 WO2021238359A1 (en) 2020-05-28 2021-03-19 Method for constructing multi-level of detail model of object, and computer device

Country Status (2)

Country Link
CN (1) CN113743155A (en)
WO (1) WO2021238359A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114863020A (en) * 2022-04-29 2022-08-05 北京工业大学 Three-dimensional model construction method and device, electronic equipment and storage medium
CN115358486A (en) * 2022-09-20 2022-11-18 中咨数据有限公司 Port freight volume prediction method, system and application based on three-dimensional satellite image

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116416366A (en) * 2021-12-30 2023-07-11 华为技术有限公司 3D model construction method and device and electronic equipment
CN114202622B (en) * 2022-02-18 2022-05-31 腾讯科技(深圳)有限公司 Virtual building generation method, device, equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101604018A (en) * 2009-07-24 2009-12-16 中国测绘科学研究院 High-definition remote sensing image data disposal route and system thereof
CN102074050A (en) * 2011-03-01 2011-05-25 哈尔滨工程大学 Fractal multi-resolution simplified method used for large-scale terrain rendering
CN104457691A (en) * 2014-12-15 2015-03-25 重庆市勘测院 Method for obtaining elevation information of main building body

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10163255B2 (en) * 2015-01-07 2018-12-25 Geopogo, Inc. Three-dimensional geospatial visualization
US10430961B2 (en) * 2015-12-16 2019-10-01 Objectvideo Labs, Llc Using satellite imagery to enhance a 3D surface model of a real world cityscape
CN107967713A (en) * 2017-11-21 2018-04-27 泰瑞数创科技(北京)有限公司 Construction three-dimensional model building method and system based on spatial point cloud data
WO2019126671A1 (en) * 2017-12-22 2019-06-27 Magic Leap, Inc. Caching and updating of dense 3d reconstruction data
CN110889899B (en) * 2019-10-14 2023-04-25 北京建筑大学 Digital earth surface model generation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101604018A (en) * 2009-07-24 2009-12-16 中国测绘科学研究院 High-definition remote sensing image data disposal route and system thereof
CN102074050A (en) * 2011-03-01 2011-05-25 哈尔滨工程大学 Fractal multi-resolution simplified method used for large-scale terrain rendering
CN104457691A (en) * 2014-12-15 2015-03-25 重庆市勘测院 Method for obtaining elevation information of main building body

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
KONG JIANHONG, YANG CHAO;YU XIAO-HUI;QI GUANG-YUAN;WANG ZE-KUN: "3D Point Cloud Adaptive Levels of Detail Model Dynamic Rendering Based on Viewpoint", SCIENCE TECHNOLOGY AND ENGINEERING, ZHONGGUO JISHU JINGJI YANJIUHUI, CN, vol. 19, no. 12, 30 April 2019 (2019-04-30), CN , pages 231 - 236, XP055872780, ISSN: 1671-1815 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114863020A (en) * 2022-04-29 2022-08-05 北京工业大学 Three-dimensional model construction method and device, electronic equipment and storage medium
CN114863020B (en) * 2022-04-29 2023-03-28 北京工业大学 Three-dimensional model construction method and device, electronic equipment and storage medium
CN115358486A (en) * 2022-09-20 2022-11-18 中咨数据有限公司 Port freight volume prediction method, system and application based on three-dimensional satellite image

Also Published As

Publication number Publication date
CN113743155A (en) 2021-12-03

Similar Documents

Publication Publication Date Title
WO2021238359A1 (en) Method for constructing multi-level of detail model of object, and computer device
CN108919944B (en) Virtual roaming method for realizing data lossless interaction at display terminal based on digital city model
US9613388B2 (en) Methods, apparatuses and computer program products for three dimensional segmentation and textured modeling of photogrammetry surface meshes
US8463024B1 (en) Combining narrow-baseline and wide-baseline stereo for three-dimensional modeling
CN111415409B (en) Modeling method, system, equipment and storage medium based on oblique photography
CN113112603B (en) Method and device for optimizing three-dimensional model
Barazzetti et al. True-orthophoto generation from UAV images: Implementation of a combined photogrammetric and computer vision approach
CN114066960B (en) Three-dimensional reconstruction method, point cloud fusion method, device, equipment and storage medium
WO2023124676A1 (en) 3d model construction method, apparatus, and electronic device
CN115641401A (en) Construction method and related device of three-dimensional live-action model
CN112053440A (en) Method for determining individualized model and communication device
CN110322541A (en) A method of selecting optimal metope texture from five inclined cameras
CN117232499A (en) Multi-sensor fusion point cloud map construction method, device, equipment and medium
CN113379748B (en) Point cloud panorama segmentation method and device
CN113129422A (en) Three-dimensional model construction method and device, storage medium and computer equipment
CN109785421B (en) Texture mapping method and system based on air-ground image combination
CN115790621A (en) High-precision map updating method and device and electronic equipment
Ariff et al. Exploratory study of 3D point cloud triangulation for smart city modelling and visualization
CN115100296A (en) Photovoltaic module fault positioning method, device, equipment and storage medium
Fernández-Hernandez et al. A new trend for reverse engineering: Robotized aerial system for spatial information management
Guo et al. Research on 3D geometric modeling of urban buildings based on airborne lidar point cloud and image
CN114419250B (en) Point cloud data vectorization method and device and vector map generation method and device
US11776148B1 (en) Multi-view height estimation from satellite images
CN117197361B (en) Live three-dimensional database construction method, electronic device and computer readable medium
Inzerillo et al. 3D modeling of a complex building: From multi-view image fusion to google earth publication

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21814284

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21814284

Country of ref document: EP

Kind code of ref document: A1