A single-unit modeling method and system for entity semantic CIM3 city model

Through the monolithic modeling method of solid semantic CIM3 urban model, the pre-processing and solid semantic acquisition are used using drone tilt photography and street scene images, and combined with three-dimensional and monolithic linkage technology, the three-dimensional model missing and distortion in the existing technology is solved. The problem of this paper realizes the construction of high-precision urban three-dimensional model, meeting the accuracy requirements of urban management.

CN117893700BActive Publication Date: 2024-11-05BEIJING EGOVA TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410058283.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-15
Publication Date
2024-11-05
Estimated Expiration
2044-01-15

AI Technical Summary

Technical Problem

The existing CIM3 urban model construction technology has problems of three-dimensional model missing or distortion in the automatic image matching modeling and laser point cloud modeling methods, especially in areas such as water bodies, dense high-rise buildings, overpasses, and dense vegetation, and it is difficult to meet the situation. The positioning accuracy and rendering quality requirements of urban management land structures, and laser point cloud modeling relies on classification quality, is susceptible to noise interference, and is difficult to adapt to the special-shaped structure.

Method used

Using the monolithic modeling method of solid semantic CIM3 urban model, images are acquired through drone tilt photography and street scenes, preprocessing and solid semantic acquisition, and using spatial indexing and three-dimensional and monolithic linkage technology to form structured and semantic The three-dimensional model avoids dependence on laser point cloud data.

Benefits of technology

Achieve high-precision urban three-dimensional model construction, meets 1:1000 surveying and mapping accuracy, supports high-precision real-life three-dimensional model for urban planning, construction, management and other application scenarios, solves the problems of model missing and distortion, and improves structure and semantics. Characteristics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117893700B_ABST
    Figure CN117893700B_ABST
Patent Text Reader

Abstract

The present application relates to the field of modeling technology, and in particular to a method and system for modeling a single entity semantic CIM3 city model, including: acquiring images; preprocessing the acquired images; performing entity semantic collection and solution on the preprocessed images to form a three-dimensional model; revising and quality checking the three-dimensional model to obtain the final three-dimensional model result. The present application adopts the principle of photogrammetry, does not require the acquisition of laser point cloud data, does not perform dense image matching, uses the acquisition of internal and external orientation elements of the film to restore the stereo image pair, and uses entity geometric semantic collection to produce a structured, object-oriented, and semantic CIM3 city model, which meets the 1:1000 surveying and mapping accuracy and supports high-precision real-scene three-dimensional models for application scenarios such as urban planning, construction, and management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of modeling technology, and in particular to a method and system for modeling entity semantic CIM3 city model monomers. Background Art

[0002] Based on the fusion of large amounts of data, CIM city model data is based on technologies such as building information modeling (BIM), geographic information system (GIS), and the Internet of Things (IoT). It integrates multi-dimensional and multi-scale spatial data and IoT perception data on the city's above-ground and underground, indoor and outdoor, historical, current, and future, to achieve the intrinsic connection between various elements of the city, and build an organic complex of urban information in a three-dimensional digital space, which can be widely used in digital twin applications in various industries.

[0003] According to the data source, model characteristics and scene refinement, the CIM city model can be divided into seven levels: CIM1-CIM7. CIM3 is based on satellite remote sensing, oblique photography, digital elevation, topographic maps and other data resources to generate a standard model that expresses the three-dimensional framework of the entity and the internal and external surfaces. It focuses on the three-dimensional framework and indoor and outdoor surfaces of the elements. Compared with the framework model, it mainly adds information such as sites, pipelines, geology, and urban components. It is usually used in scenarios such as urban planning, construction and management.

[0004] At present, there are roughly three mainstream technical routes for CIM3 city models. The first is the image matching automatic modeling technical route, which uses the same-name point matching method from image pairs with a large overlap rate to generate a three-dimensional point cloud through mathematical operations, and then builds a triangulated network model on this basis, and performs texture mapping. The second is the laser point cloud modeling technical route, which obtains reliable and high-precision laser point clouds from laser scanners to build a three-dimensional network model, uses edge features to cut the triangulated network to obtain a monomer model, and uses oblique images to obtain images for texture mapping. The third is the revision modeling technical route, which uses the image matching automatic modeling technical route results data (mesh model) as input, obtains a new monomer structure through cutting, collection, and meshing, and performs texture mapping.

[0005] However, the automatic modeling technology based on image matching still has some areas where triangulation cannot be constructed, resulting in missing or distorted three-dimensional models. These areas are mainly water bodies, dense high-rise buildings, overpasses, buildings or roads with dense vegetation, etc. The reasons for the inability to construct correct three-dimensional models in these areas are the lack of images and unclear texture features. When the image overlap rate is low and the image quality is poor (overexposure, poor light), large areas of pure color surfaces (such as the sky, water surface or pure color and smooth surface objects), transparent objects (such as glass windows, etc.), moving objects, and places with structural mutations (such as house corners, etc.), the image matching results have great uncertainty and randomness, and the matched triangulated network is difficult to meet the requirements of urban management structure positioning accuracy and rendering quality. At the same time, the amount of matched results is large, and the results of various features are a whole, "one skin", without the characteristics of monomerization, structuring, semantics, and attributes, which restricts the promotion of the application of results.

[0006] In addition, although the laser point cloud modeling technology route utilizes the reliability of laser point cloud data, it is heavily dependent on the quality of laser point cloud classification in the process of individual modeling. In the case of noise interference (especially incorrect point cloud classification, such as vegetation layer and ground layer point cloud data are classified into building layer), incorrect three-dimensional structure will be generated; although laser scanners have various working modes (circular scanning, push scanning), they all have occlusion problems. Therefore, the laser point cloud modeling technology route is generally difficult to solve the modeling problem of "big-headed buildings" and is difficult to adapt to the special-shaped structures in urban buildings; at the same time, in addition to the traditional tilt data collection process, the laser point cloud modeling technology route also has an airborne Lidar data collection and data processing process, which cannot be attributed and semanticized during the modeling process.

[0007] In addition, the secondary collection and monomer modeling technology route uses the image matching automatic modeling technology route results data (mesh model) as input and the mesh triangulated network structure for positioning. The structural and geometric accuracy is completely subject to the quality of the input data. Summary of the invention

[0008] The present application provides a method and system for entity semantic CIM3 city model monomer modeling to meet the requirements of CIM3 city model.

[0009] In order to solve the above technical problems, this application provides the following technical solutions:

[0010] A method for modeling a single entity semantic CIM3 city model comprises the following steps: step S110, acquiring an image; step S120, preprocessing the acquired image; step S130, collecting and solving entity semantics on the preprocessed image to form a three-dimensional model; step S140, revising and quality checking the three-dimensional model to obtain a final three-dimensional model result.

[0011] The entity semantic CIM city model monomer modeling method as described above, wherein preferably, step S130 includes the following sub-steps: step S131, creating a spatial index for the preprocessed image; step S132, performing semantic collection for each image loaded with the spatial index; step S133, performing entity collection in each semantically collected image to obtain multiple monomers; step S134, merging and solving the multiple monomers, and mapping the textures to form a three-dimensional model.

[0012] The entity semantic CIM3 city model monomer modeling method as described above, wherein preferably, images are acquired through oblique photography of unmanned aerial vehicles and through street views; wherein, shooting is performed by a vertical camera and an oblique camera to realize the acquisition of images by oblique photography of unmanned aerial vehicles; and shooting is performed along both sides of the street by a ground street view collection vehicle or a backpack panoramic collection system to realize the acquisition of images by street views.

[0013] In the entity semantic CIM3 city model monomer modeling method as described above, preferably, the preprocessing is to calibrate the internal orientation parameters of the vertical camera and the oblique camera carried by the UAV and to solve the original elements of the external orientation of the image.

[0014] In the entity semantic CIM3 city model monomer modeling method as described above, it is preferred to adopt a linkage method of downward-looking stereo and oblique photos, and compensate for the obscured parts of the downward-looking stereo by oblique photos, so as to observe the obscured parts in a stereoscopic acquisition environment.

[0015] A entity semantic CIM3 city model monomer modeling system comprises: an image acquisition unit, an image preprocessing unit, a collection and solution unit and a revision and quality inspection unit; the image acquisition unit acquires an image; the preprocessing unit preprocesses the acquired image; the collection and solution unit performs entity semantic acquisition and solution on the preprocessed image to form a three-dimensional model; the revision and quality inspection unit revises and inspects the three-dimensional model to obtain a final three-dimensional model result.

[0016] The entity semantic CIM3 city model monomer modeling system as described above, wherein preferably, the acquisition and solution unit includes: a spatial index creation subunit, a semantic acquisition subunit, an entity acquisition subunit and a solution mapping subunit; the spatial index creation subunit creates a spatial index for the preprocessed image; the semantic acquisition subunit performs semantic acquisition for each image for which a spatial index is created; the entity acquisition subunit performs entity acquisition in each semantically acquired image to obtain multiple monomers; the solution mapping subunit merges and solves multiple monomers, and maps textures to form a three-dimensional model.

[0017] The entity semantic CIM3 city model monomer modeling system as described above, wherein preferably, images are acquired through oblique photography of unmanned aerial vehicles and through street views; wherein, shooting is performed by a vertical camera and an oblique camera to realize the acquisition of images by oblique photography of unmanned aerial vehicles; and shooting is performed along both sides of the street by a ground street view collection vehicle or a backpack panoramic collection system to realize the acquisition of images by street views.

[0018] In the entity semantic CIM3 city model monomer modeling system as described above, preferably, the preprocessing is to calibrate the internal orientation parameters of the vertical camera and the oblique camera carried by the drone and to solve the original elements of the external orientation of the image.

[0019] The entity semantic CIM3 city model monomer modeling system as described above, wherein preferably, adopts the method of linking downward stereo and oblique images, and compensates the obscured parts of the downward stereo by oblique images, so as to observe the obscured parts in a stereoscopic acquisition environment.

[0020] Compared with the above-mentioned background technology, the entity semantic CIM3 city model monomer modeling method and system provided by the present invention adopts the principle of photogrammetry, does not need to obtain laser point cloud data, does not perform image matching, uses the internal and external orientation elements of the oblique film to restore the stereo image pair, and uses the entity geometry semantic acquisition method to produce a structured, object-oriented, and semantic CIM3 city model, which meets the 1:1000 surveying and mapping accuracy and supports high-precision real-scene three-dimensional models for application scenarios such as urban planning, construction, and management. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0022] Figure 1 It is a flow chart of the entity semantic CIM3 city model monomer modeling method provided by this application;

[0023] Figure 2 is a flow chart of forming a three-dimensional model provided by the present application;

[0024] Figure 3 It is a schematic diagram of the entity semantics formed by this application;

[0025] Figure 4 is a schematic diagram of the epipolar space provided by this application;

[0026] Figure 5 It is a schematic diagram of the stereoscopic and single-chip linkage acquisition method provided by this application;

[0027] Figure 6 is a schematic diagram of texture mapping provided by this application;

[0028] Figure 7 It is a schematic diagram of the entity semantic CIM3 city model monomer modeling system provided by this application. DETAILED DESCRIPTION

[0029] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.

[0030] Embodiment 1

[0031] like Figure 1 As shown, the present application provides a method for modeling a single entity semantic CIM3 city model, comprising the following steps:

[0032] Step S110, acquiring an image;

[0033] In this application, images are obtained through oblique photography of drones and images are obtained through street views. Among them, by using the oblique aerial camera carried by the drone, shooting through the vertical camera and the oblique camera, the roof and side textures of the building can be obtained at the same time, so as to realize the oblique photography of the drone to obtain images. In general, the image matching automatic modeling technology usually has high requirements for the heading overlap and lateral overlap during oblique photography of drones: the heading overlap is not less than 80%, and the lateral overlap is not less than 70%; the technical solution of this application requires that the heading overlap is not less than 60%, and the lateral overlap is not less than 50%, which can usually reduce the flight cost of the drone's oblique flight.

[0034] In addition, since the drone's tilted flight will have a certain degree of photography blind spots, and the smaller road signs and signs on both sides of the street may have low texture resolution. In this case, the ground street view collection vehicle or backpack panoramic collection system can be used to shoot along both sides of the street to achieve street view image acquisition, and the GPS+IMU (embedded deep fusion algorithm) of the ground street view collection vehicle or backpack panoramic collection system can be used to automatically fuse the images obtained by the drone's tilted photography with the images obtained by the street view, so that the images obtained by the ground street view collection vehicle and backpack panoramic collection system can be used as an effective supplement to the images obtained by the drone's tilted photography.

[0035] Step S120, preprocessing the acquired image;

[0036] The preprocessing operation is roughly divided into the following steps: distortion correction, light and color uniformity, aerial triangulation and other steps. The main purpose is to calibrate the intrinsic orientation parameters (including focal length, principal point offset, distortion parameters K1, K2, K3, P1, P2, etc.) of the vertical camera and oblique camera carried by the UAV and to solve the original elements of the image exterior orientation (including line elements XYZ and angle elements OPK).

[0037] Step S130, collecting and solving entity semantics of the preprocessed image to form a three-dimensional model;

[0038] After preprocessing, the image can enter the entity semantic collection and solution process, such as Figure 2 As shown, it specifically includes the following sub-steps:

[0039] Step S131, creating a spatial index for the preprocessed image;

[0040] In this application, a spatial index (including entity index and image index) is created for the preprocessed image. In the subsequent semantic collection and entity collection, the spatial index is used to assist in guiding the determination of the spatial position, topological relationship, etc. of the entity.

[0041] Step S132, performing semantic collection for each image for which a spatial index is created;

[0042] The images collected in this application have six categories, namely buildings, structures, transportation, green space, water conservancy, and venues. Therefore, after loading the spatial index on the image, it is also necessary to perform semantic collection on the image loaded with the spatial index so that each entity in the image has semantics (buildings, structures, transportation, green space, water conservancy, venues, etc.). Figure 3 As shown, Figure 3 The semantics of various entities are shown, thereby expanding the subsequently established three-dimensional model.

[0043] Step S133, collecting entities in each semantically collected image, thereby obtaining multiple monomers;

[0044] In the case of known camera internal orientation parameters and image external orientation elements, digital photogrammetry generally uses the K_rectify×R_rectify×R^t method to correct the epipolar image for binocular stereo acquisition or stereo matching. K_rectify is the camera internal orientation parameter matrix after correction, R_rectify is the rotation matrix of the image external orientation elements after correction, and the X axis in R_rectify is the baseline O l O t , the Y axis is perpendicular to the X axis and the camera optical axis, and the Z axis is perpendicular to the X axis and the Y axis, thus obtaining a coordinate system, R^t is the transposed matrix of the original image exterior orientation rotation matrix, such as Figure 4 shown.

[0045] In the epipolar space, the parallax formula D = B × f ÷ d (where D is the depth value, B is the baseline distance, f is the focal length, and d is the parallax). It can be seen that the current depth value D only depends on the parallax d; but according to the derivation process of the epipolar correction equation, there is an important implicit condition in the middle, which is to assume that the optical axis of the current camera is perpendicular to the ground, which is basically equivalent to vertical photography (the tilt angle of the film is less than 3°). However, due to the light weight of the drone aerial photography platform, it is more susceptible to weather factors such as wind speed and altitude, and it is difficult to obtain vertical images. Then, a parallax paradox may occur when the drone camera is collecting: different parts of the object that should have the same depth value D show different parallax d, so the parallax paradox must be solved by real-time dynamic parallax compensation. Assuming the initial parallax d1, the depth value D is derived. When the coordinate XYZ position changes, the parallax d2 is derived from the depth value D. At this time, the difference between d2 and d1 needs to be compensated, and the difference between d2 and d1 is applied to the image to perform parallax compensation.

[0046] This application uses a collection method that combines stereo and single-chip linkage to collect entities. The underlying entity objects are physically abstracted into three categories: points, lines, and surfaces. Logically, they are abstracted into five categories: polyhedron objects, feature line objects, feature point objects, constraint line objects, and approximate surface objects. Real-time linkage at the mouse tracking level is achieved through entity collection, and real-time seamless switching between stereo and single-chip is possible. Any operation in single-chip and stereo is equivalent. At the same time, an efficient self-check mechanism is provided to quickly discover various errors such as omissions in operations.

[0047] Further deducing from the nuclear line theory of photogrammetry, as long as two images overlap, they can be relatively oriented, and the nuclear line correction can be performed based on the relative orientation relationship to produce a stereo image. However, since people are very prone to visual fatigue when observing oblique stereo, downward-looking films are generally selected for stereo image acquisition in operations. This has no effect on traditional DEM (digital elevation model) and DLG (digital linear map) operations, but when working on entities, the obstructed parts cannot be observed due to the presence of large buildings. The present application adopts a stereo and single-chip linkage method, especially a downward-looking stereo and oblique film linkage method, which compensates for the obstructed parts of the downward-looking stereo through oblique films, thereby solving the problem of unobservable parts in a stereo environment.

[0048] This application realizes real-time linkage at the tracking level, and can seamlessly switch between the stereoscopic (nuclear line image) operation window and the single-chip (image) operation window in real time; any operation in the stereoscopic operation window is equivalent to any operation in the single-chip operation window. It provides real-time and reliable technical means to collect entities for parts that cannot be observed in stereo, and can also perform accuracy and omission checks. The basic principle is as follows Figure 5 As shown, the line of sight OP is obtained by the coordinates XYZ of the shooting point O and the external orientation elements of the film. Using the depth Z of the stereo window, the intersection point X1Y1Z1 of the line of sight OP in the film can be calculated. Conversely, if X1Y1Z1 is known, the depth Z of the stereo window can be calculated.

[0049] In entity collection, it is necessary to construct a triangulated network. This application is based on Constrained Delaunay Triangulation, and adopts the Master / Slave constraint mechanism and candidate mechanism to sample the first height and the second height of the collected building to solve the popular features that conform to the entity semantics. At the same time, the constraints are used to solve the possible intersections of the entity in advance and regularize the intersection values.

[0050] The basic characteristics of the basic constrained Delaunay triangulation algorithm are as follows: the Delaunay triangulation is a set of adjacent and non-overlapping triangulations. The circumscribed circle of each triangle does not contain other points. It is generally generated by the local optimal equiangular rule. The constrained Delaunay triangulation adds constraints to the standard Delaunay triangulation, and uses the local optimal equiangular rule for triangulation on the premise that the constraints are met. The Delaunay triangulation algorithm is based on the XY plane two-dimensional algorithm. Z does not participate in the triangulation operation, but can be stored and output as a point attribute. When the constrained Delaunay triangulation is being divided, the constraints cannot intersect directly.

[0051] This application makes the following extensions and innovations based on the constrained Delaunay triangulation algorithm: using the Master / Slave constraint mechanism, under which the slave constraint condition must be valid only if the master constraint condition is established. For example, in entity collection, the building collection line is the master constraint condition, and the sibling object is the slave constraint condition. Under the master-slave constraint mechanism, entities can be collected freely without the requirements of collection rules such as first, last, up, and down.

[0052] Under the Master / Slave constraint mechanism, all intersections of all constraints on the XY plane are calculated, and the intersections on the XY plane are sampled in the Z direction using the master-then-slave candidate mechanism and the values ​​are regularized. This breaks the restriction that the constraints in the Delaunay triangulation cannot intersect, and the intersections (subsets) between entities are obtained. At the same time, it also breaks the constraint that one XY can only have one Z two-dimensional nature of the Delaunay triangulation algorithm, which is equivalent to performing profile operations on the entity with multiple XY planes with different Zs.

[0053] By using the Delaunay triangulation principle, under the counterclockwise output rule, it can be ensured that any edge of the output polyhedron can connect at most two triangles; at the same time, it can be ensured that all output trends have the same direction. In addition, a rotation matrix can be obtained through the normal and the Z-axis angle. The application of the rotation matrix can expand the Delaunay triangulation algorithm from the XY plane to any plane, solving the problem of solid model facade meshing.

[0054] Step S134, merging and solving multiple monomers, and mapping textures to form a three-dimensional model;

[0055] Since the collected monomers are scattered entity semantic structures, it is necessary to merge and solve multiple monomers (for example, the main body, roof and combination), and automatically determine the occlusion relationship through the camera's internal orientation parameters and the original external orientation of the film, find the optimal texture and perform texture mapping to form a three-dimensional model.

[0056] Polyhedral Boolean operation is a set operation and output of polyhedral areas (union, intersection, set difference, symmetric difference, complement) represented by triangular meshes. In order to obtain monomer results, CSG (Constructive Solid Geometry) operation is used in this application to merge and output the collected monomers. Through various parameterized combinations of entity semantics, any entity can be composed of a main body (including polyhedrons, prisms, cones, cylinders, semi-cylinders, spheres, hemispheres, rings, arcs, etc.), roofs (including flat roofs, gable roofs, pointed roofs, sloping roofs) and sets (including dormer windows, parapets, sun rooms, deep eaves, exposed wood, frames, etc.), and the exterior wall structure materials can be given including stone, glass curtain walls, aluminum alloys, tiles, paint, etc.

[0057] Texture coordinate parameterization is a necessary process for automatic mapping, and the parameterization process must ensure the geometric shape of the spatial entity in the texture space. LSCM (Least Squares Conformal Mapping) is essentially a "UV unfolding" algorithm that is locally optimal and least squares conformal for rotation, translation, and scaling; however, LSCM may cause UV space overlap, local deformation, etc., and does not always give the best results. In this application, the two degrees of freedom in the LSCM calculation are eliminated by calculating the eigenvalues ​​of the LSCM matrix, thereby achieving the purpose of avoiding distortion and improving the texture mapping effect, such as Figure 6 shown.

[0058] Step S140, editing and quality checking the three-dimensional model to obtain a final three-dimensional model result;

[0059] The results are checked based on the accuracy of spatial position and the degree of expression (whether there are deformation, distortion, holes, confusion, etc. in the texture), and the existing texture and structural problems in the 3D model are edited. The 3D model is then quality inspected and the final 3D model is obtained after meeting the requirements.

[0060] Embodiment 2

[0061] like Figure 7 As shown, the present application provides an entity semantic CIM3 city model monomer modeling system 700, including: an acquisition unit 710, an image preprocessing unit 720, a collection and solution unit 730 and an editing and quality inspection unit 740.

[0062] The acquisition unit 710 acquires an image.

[0063] In this application, images are obtained through oblique photography of drones and images are obtained through street views. Among them, by using the oblique aerial camera carried by the drone, shooting through the vertical camera and the oblique camera, the roof and side textures of the building can be obtained at the same time, so as to realize the oblique photography of the drone to obtain images. In general, the image matching automatic modeling technology usually has high requirements for the heading overlap and lateral overlap during oblique photography of drones: the heading overlap is not less than 80%, and the lateral overlap is not less than 70%; the technical solution of this application requires that the heading overlap is not less than 60%, and the lateral overlap is not less than 50%, which can usually reduce the flight cost of the drone's oblique flight.

[0064] In addition, since the drone's tilted flight will have a certain degree of photography blind spots, and the smaller road signs and signs on both sides of the street may have low texture resolution. In this case, the ground street view collection vehicle or backpack panoramic collection system can be used to shoot along both sides of the street to achieve street view acquisition images, and the GPS+I MU (embedded deep fusion algorithm) of the ground street view collection vehicle or backpack panoramic collection system can be used to automatically fuse the images obtained by the drone's tilted photography with the images obtained by the street view, so that the images obtained by the ground street view collection vehicle and backpack panoramic collection system can be used as an effective supplement to the images obtained by the drone's tilted photography.

[0065] The image preprocessing unit 720 preprocesses the acquired image.

[0066] The preprocessing operation is roughly divided into the following steps: distortion correction, light and color uniformity, aerial triangulation encryption, etc. The main purpose is to calibrate the intrinsic orientation parameters (including focal length, principal point offset, distortion parameters K1, K2, K3, P1, P2, etc.) of the vertical camera and oblique camera carried by the UAV and to solve the original elements of the image exterior orientation (including line elements XYZ and angle elements OPK).

[0067] The acquisition and solution unit 730 performs entity semantic acquisition and solution on the pre-processed image to form a three-dimensional model.

[0068] After preprocessing, the image can enter the entity semantic collection and solution process, such as Figure 6 As shown, the collection and solution unit 730 specifically includes: a spatial index creation subunit 731, a semantic collection subunit 732, an entity collection subunit 733 and a solution mapping subunit 734.

[0069] The spatial index creation subunit 731 creates a spatial index for the pre-processed image.

[0070] In this application, a spatial index (including entity index and image index) is created for the preprocessed image. In the subsequent semantic collection and entity collection, the spatial index is used to assist in determining the spatial position and topological relationship of the entity.

[0071] The semantic collection subunit 732 performs semantic collection for each image for which a spatial index is created.

[0072] The images collected in this application have six categories, namely buildings, structures, transportation, green space, water conservancy, and venues. Therefore, after loading the spatial index on the image, it is also necessary to perform semantic collection on the image loaded with the spatial index so that each entity in the image has semantics (buildings, structures, transportation, green space, water conservancy, venues, etc.). Figure 3 As shown, Figure 3The semantics of various entities are shown, thereby expanding the three-dimensional model established subsequently.

[0073] The entity collection subunit 733 collects entities in each semantically collected image, thereby obtaining a plurality of monomers.

[0074] In the case of known camera internal orientation parameters and image external orientation elements, digital photogrammetry generally uses the K_rectify×R_rectify×R^t method to correct the epipolar image for binocular stereo acquisition or stereo matching. K_rectify is the camera internal orientation parameter matrix after correction, R_rectify is the rotation matrix of the image external orientation elements after correction, and the X axis in R_rectify is the baseline O l O t , the Y axis is perpendicular to the X axis and the camera optical axis, and the Z axis is perpendicular to the X axis and the Y axis, thus obtaining a coordinate system, R^t is the transposed matrix of the original image exterior orientation rotation matrix, such as Figure 4 shown.

[0075] In the epipolar space, the parallax formula D = B × f ÷ d (where D is the depth value, B is the baseline distance, f is the focal length, and d is the parallax). It can be seen that the current depth value D only depends on the parallax d; but according to the derivation process of the epipolar correction equation, there is an important implicit condition in the middle, which is to assume that the optical axis of the current camera is perpendicular to the ground, which is basically equivalent to vertical photography (the tilt angle of the film is less than 3°). However, due to the light weight of the drone aerial photography platform, it is more susceptible to weather factors such as wind speed and altitude, and it is difficult to obtain vertical images. Then, a parallax paradox may occur when the drone camera is collecting: different parts of the object that should have the same depth value D show different parallax d, so the parallax paradox must be solved by real-time dynamic parallax compensation. Assuming the initial parallax d1, the depth value D is derived. When the coordinate XYZ position changes, the parallax d2 is derived from the depth value D. At this time, the difference between d2 and d1 needs to be compensated, and the difference between d2 and d1 is applied to the image to perform parallax compensation.

[0076] This application uses a collection method that combines stereo and single-chip linkage to collect entities. The underlying entity objects are physically abstracted into three categories: points, lines, and surfaces. Logically, they are abstracted into five categories: polyhedron objects, feature line objects, feature point objects, constraint line objects, and approximate surface objects. Real-time linkage at the mouse tracking level is achieved through entity collection, and real-time seamless switching between stereo and single-chip is possible. Any operation in single-chip and stereo is equivalent. At the same time, an efficient self-check mechanism is provided to quickly discover various errors such as omissions in operations.

[0077] Further deducing from the nuclear line theory of photogrammetry, as long as two images overlap, they can be relatively oriented, and the nuclear line correction can be performed based on the relative orientation relationship to produce a stereo image. However, since people are very prone to visual fatigue when observing oblique stereo, downward-looking films are generally selected for stereo image acquisition in operations. This has no effect on traditional DEM (digital elevation model) and DLG (digital linear map) operations, but when working on entities, the obstructed parts cannot be observed due to the presence of large buildings. The present application adopts a stereo and single-chip linkage method, especially a downward-looking stereo and oblique film linkage method, which compensates for the obstructed parts of the downward-looking stereo through oblique films, thereby solving the problem of unobservable parts in a stereo environment.

[0078] This application realizes real-time linkage at the tracking level, and can seamlessly switch between the stereoscopic (nuclear line image) operation window and the single-chip (image) operation window in real time; any operation in the stereoscopic operation window is equivalent to any operation in the single-chip operation window. It provides real-time and reliable technical means to collect entities for parts that cannot be observed in stereo, and can also perform accuracy and omission checks. The basic principle is as follows Figure 5 As shown, the line of sight OP is obtained by the coordinates XYZ of the shooting point O and the external orientation elements of the film. Using the depth Z of the stereo window, the intersection point X1Y1Z1 of the line of sight OP in the film can be calculated. Conversely, if X1Y1Z1 is known, the depth Z of the stereo window can be calculated.

[0079] In entity collection, it is necessary to construct a triangulated network. This application is based on Constrained Delaunay Triangulation, and adopts the Master / Slave constraint mechanism and candidate mechanism to sample the first height and the second height of the collected building to solve the popular features that conform to the entity semantics. At the same time, the constraints are used to solve the possible intersections of the entity in advance and regularize the intersection values.

[0080] The basic characteristics of the basic constrained Delaunay triangulation algorithm are as follows: the Delaunay triangulation is a set of adjacent and non-overlapping triangulations. The circumscribed circle of each triangle does not contain other points. It is generally generated by the local optimal equiangular rule. The constrained Delaunay triangulation adds constraints to the standard Delaunay triangulation, and uses the local optimal equiangular rule for triangulation on the premise that the constraints are met. The Delaunay triangulation algorithm is based on the XY plane two-dimensional algorithm. Z does not participate in the triangulation operation, but can be stored and output as a point attribute. When the constrained Delaunay triangulation is being divided, the constraints cannot intersect directly.

[0081] This application makes the following extensions and innovations based on the constrained Delaunay triangulation algorithm: using the Master / Slave constraint mechanism, under which the slave constraint condition must be valid only if the master constraint condition is established. For example, in entity collection, the building collection line is the master constraint condition, and the sibling object is the slave constraint condition. Under the master-slave constraint mechanism, entities can be collected freely without the requirements of collection rules such as first, last, up, and down.

[0082] Under the Master / Slave constraint mechanism, all intersections of all constraints on the XY plane are calculated, and the intersections on the XY plane are sampled in the Z direction using the master-then-slave candidate mechanism and the values ​​are regularized. This breaks the restriction that the constraints in the Delaunay triangulation cannot intersect, and the intersections (subsets) between entities are obtained. At the same time, it also breaks the constraint that one XY can only have one Z two-dimensional nature of the Delaunay triangulation algorithm, which is equivalent to performing profile operations on the entity with multiple XY planes with different Zs.

[0083] By using the Delaunay triangulation principle, under the counterclockwise output rule, it can be ensured that any edge of the output polyhedron can connect at most two triangles; at the same time, it can be ensured that all output trends have the same direction. In addition, a rotation matrix can be obtained through the normal and the Z-axis angle. The application of the rotation matrix can expand the Delaunay triangulation algorithm from the XY plane to any plane, solving the problem of solid model facade meshing.

[0084] The solving and mapping subunit 734 solves the multiple monomers in combination and maps the textures to form a three-dimensional model.

[0085] Since the collected monomers are scattered entity semantic structures, it is necessary to merge and solve multiple monomers (such as the main body, roof and combination), and automatically determine the occlusion relationship through the camera's internal orientation parameters and the original external orientation of the film, find the optimal texture and perform texture mapping to form a three-dimensional model.

[0086] Polyhedral Boolean operation is a set operation and output of polyhedral areas (union, intersection, set difference, symmetric difference, complement) represented by triangular meshes. In order to obtain monomer results, CSG (Constructive Solid Geometry) operation is used in this application to merge and output the collected monomers. Through various parameterized combinations of entity semantics, any entity can be composed of a main body (including polyhedrons, prisms, cones, cylinders, semi-cylinders, spheres, hemispheres, rings, arcs, etc.), roofs (including flat roofs, gable roofs, pointed roofs, sloping roofs) and sets (including dormer windows, parapets, sun rooms, deep eaves, exposed wood, frames, etc.), and the exterior wall structure materials can be given including stone, glass curtain walls, aluminum alloys, tiles, paint, etc.

[0087] Texture coordinate parameterization is a necessary process for automatic mapping, and the parameterization process must ensure the geometric shape of the spatial entity in the texture space. LSCM (Least Squares Conformal Mapping) is essentially a "UV unfolding" algorithm that is locally optimal and least squares conformal for rotation, translation, and scaling; however, LSCM may cause UV space overlap, local deformation, etc., and does not always give the best results. In this application, the two degrees of freedom in the LSCM calculation are eliminated by calculating the eigenvalues ​​of the LSCM matrix, thereby achieving the purpose of avoiding distortion and improving the texture mapping effect, such as Figure 6 shown.

[0088] The editing and quality inspection unit 740 edits and inspects the three-dimensional model to obtain a final three-dimensional model result.

[0089] The results are checked based on spatial position accuracy and expression detail (whether there are texture deformation, distortion, holes, confusion, etc.). The texture and structural problems in the 3D model are revised, and then the 3D model is quality inspected. The final 3D model is obtained when the requirements are met.

[0090] This application uses photogrammetry technology and the results of tilted drone flights for texture mapping, which not only meets the requirements of the urban CIM3 level definition; but also provides a true three-dimensional scene that is highly consistent with the real world and what you see is what you get, avoiding the distortion and loss of a large amount of urban information caused by virtual modeling in traditional three-dimensional systems; in addition, this application starts from the principle of digital photogrammetry and is based on stereoscopic acquisition. The accuracy of the collected entity plane and elevation meets the requirements of large-scale topographic mapping; in addition, the results of this application are individual entities that can be selected, can be attached with attributes, can be queried and counted, etc., and this application starts from entity semantics, and follows a unified semantic standard from operations to results, which greatly facilitates the business system to organize and manage data in a standardized manner.

[0091] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

[0092] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. A method for modeling entity semantic CIM3 city model monomers, characterized in that: The steps include: Step S110, acquiring an image; Step S120, preprocessing the acquired image; The preprocessing is to calibrate the internal orientation parameters of the vertical camera and oblique camera carried by the UAV and solve the original elements of the exterior orientation of the image; Step S130, collecting and solving entity semantics of the preprocessed image to form a three-dimensional model; Step S130 includes the following sub-steps: Step S131, creating a spatial index for the preprocessed image; Step S132, semantic collection is performed for each image loaded with a spatial index; Step S133, entity collection is performed in each semantically collected image, and entity collection is performed using a stereo and single chip linkage collection method, and real-time linkage at the mouse tracking level is achieved through entity collection, thereby obtaining multiple monomers; And, assuming the initial disparity d1, the depth value D is derived by the disparity formula D=B×f÷d in the epipolar space, where D is the depth value, B is the baseline distance, f is the focal length, and d is the disparity; When the coordinate XYZ position changes, the parallax d2 is derived from the depth value D. At this time, the difference between d2 and d1 needs to be compensated. The difference between d2 and d1 is applied to the image to perform parallax compensation. Step S134, merging and solving multiple monomers, and mapping textures to form a three-dimensional model; Step S140: revise and quality check the 3D model to obtain a final 3D model result.

2. The entity semantic CIM3 city model monomer modeling method according to claim 1 is characterized in that: Imagery acquired through drone oblique photography and imagery acquired through Street View; Among them, shooting is performed by using a vertical camera and an oblique camera to achieve oblique photography of drones to obtain images; The street view images are acquired by shooting along both sides of the street through a ground street view collection vehicle or a backpack panoramic collection system.

3. The entity semantic CIM3 city model monomer modeling method according to claim 1 or 2 is characterized in that: The downward-looking stereo and oblique images are linked, and the obstructed parts of the downward-looking stereo are compensated by the oblique images, so that the obstructed parts can be observed in the stereo acquisition environment.

4. A entity semantic CIM3 city model monomer modeling system, characterized by: include: Image acquisition unit, image preprocessing unit, acquisition and solution unit and editing and quality inspection unit; The image acquisition unit acquires an image; The image preprocessing unit preprocesses the acquired image; The preprocessing is to calibrate the internal orientation parameters of the vertical camera and oblique camera carried by the UAV and solve the original elements of the exterior orientation of the image; The acquisition and solution unit performs entity semantic acquisition and solution on the pre-processed image to form a three-dimensional model; The collection and solution unit includes: a spatial index creation subunit, a semantic collection subunit, an entity collection subunit and a solution mapping subunit; The spatial index creation subunit creates a spatial index for the preprocessed image; The semantic acquisition subunit performs semantic acquisition for each image for which a spatial index is created; The entity collection subunit collects entities in each semantically collected image, adopts a stereoscopic and monolithic linkage collection method to collect entities, and realizes real-time linkage at the mouse tracking level through entity collection, thereby obtaining multiple entities; And, assuming the initial disparity d1, the depth value D is derived by the disparity formula D=B×f÷d in the epipolar space, where D is the depth value, B is the baseline distance, f is the focal length, and d is the disparity; When the coordinate XYZ position changes, the parallax d2 is derived from the depth value D. At this time, the difference between d2 and d1 needs to be compensated. The difference between d2 and d1 is applied to the image to perform parallax compensation. The solving and mapping subunit solves and maps the textures of multiple monomers to form a three-dimensional model; The editing and quality inspection unit edits and inspects the three-dimensional model to obtain the final three-dimensional model result.

5. The entity semantic CIM3 city model monomer modeling system according to claim 4 is characterized in that: Imagery acquired through drone oblique photography and imagery acquired through Street View; Among them, shooting is performed by using a vertical camera and an oblique camera to achieve oblique photography of drones to obtain images; The street view images are acquired by shooting along both sides of the street through a ground street view collection vehicle or a backpack panoramic collection system.

6. The entity semantic CIM3 city model monomer modeling system according to claim 4 or 5, characterized in that: The downward-looking stereo and oblique images are linked, and the obstructed parts of the downward-looking stereo are compensated by the oblique images, so that the obstructed parts can be observed in the stereo acquisition environment.