Large-scene high-fidelity live-action three-dimensional modeling method capable of realizing unbounded expansion
Through the method of block processing and parallel training, the model capacity and rendering time limitations of UAV 3D reconstruction technology in large-scale city-level scene processing are solved, and high-fidelity rendering of borderless city-level scenes is achieved, saving computing resources. And ensure stability and visualization effects.
Patent Information
- Application Number
- CN202410653406.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-24
AI Technical Summary
Existing drone 3D reconstruction technology has limitations in model capacity and training rendering time, cannot effectively handle large-scale city-level scenes, and can easily lead to memory overflow.
Adopt a high-fidelity real-life 3D modeling method for large scenes that can be extended without boundaries. By collecting drone multi-view image data, colmap is used to generate camera pose diagrams and scene point cloud data. After block processing, it is transferred to 3D Gaussian Splatting for parallel training. , and through fast α-blending rendering, fast rendering effects are achieved, and the rendering results are integrated on the front-end browser.
It supports the construction of borderless city-level large-scale scenes, saves computing resources and time, and realizes real-time rendering of high-fidelity scenes on the browser after segmentation. The algorithm has stability and visualization characteristics.
Smart Images

Figure CN118608706A
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of computer vision and computer graphics, and in particular to a large-scene high-fidelity three-dimensional modeling method that can be expanded without boundaries. Background Art
[0002] City-level 3D modeling is a technology that digitally represents the geographic information of a city or urban area and its surrounding environment. It can simulate the appearance, structure and terrain of a city by creating an accurate 3D model, providing support for urban planning, land management, transportation planning, architectural design, visual simulation and other fields. The use of 3D modeling technology can provide technical support for the development of digital twins and metaverse, and promote the construction of smart cities and the development of the digital economy.
[0003] At present, the technologies for 3D reconstruction using drones include SLAM, SFM, NeRF, etc. However, they all have some problems.
[0004] (1) The model capacity is limited and cannot train large-scale city-level scenarios.
[0005] (2) Training rendering takes too long and may cause memory overflow. Summary of the invention
[0006] In order to solve the existing problems, the present invention provides a large-scale high-fidelity real-scene 3D modeling method that can be expanded without boundaries. The specific scheme is as follows:
[0007] A large-scale high-fidelity real-life 3D modeling method that can be expanded without boundaries comprises the following steps:
[0008] S1, collects multi-view image data from drones;
[0009] S2, input the collected image data into colmap, and use colmap to generate the camera pose graph and scene point cloud data;
[0010] S3, divide the entire scene into multiple small blocks, use the coordinate information stored in the point cloud to find the centroid of each block, divide the scene sparse point cloud into blocks according to the centroid of the sub-region, and use the correspondence between the point cloud and the camera to retrieve the camera pose corresponding to each sub-region, and obtain the point cloud and camera pose of different blocks after the scene is divided;
[0011] S4, the processed data information is passed into 3D Gaussian Splatting (3DGS) for parallel training to obtain the model of each different block;
[0012] S5, rendering with fast alpha-blending for fast and visually realistic rendering;
[0013] S6, renders and fuses the trained blocks on the front-end browser to obtain a three-dimensional scene at any perspective;
[0014] S7, adjust the height of the front-end camera to obtain three-dimensional scenes with different precisions.
[0015] Preferably, step S1 specifically includes selecting an area, using a drone to take oblique photographs of the scene, and the drone forms a dot grid route to fly according to the planned path; the route plan is automatically generated by the drone software, the drone is switched to automatic flight mode to perform the flight mission according to the planned route, and the altitude of the drone is changed at the same time to collect drone image data at different altitude levels.
[0016] Preferably, the method for calculating the centroid in step S3 is: set all point clouds as a set N, and calculate the centroid according to the formula according to the preset number of blocks: The centroid position of each block is calculated, where n represents the position of each point cloud, and x represents the centroid of a block. At the same time, the block division method in step S3 is: according to the number of blocks and the position of the centroid, the point cloud and camera pose of the entire scene are divided into multiple corresponding blocks.
[0017] Preferably, step S4 is specifically as follows: the processed data is passed to 3D Gaussian Splatting for parallel training, using the formula Calculate the loss function of the model, where The total loss function is the weighted sum of two different loss terms; λ is a weight coefficient between 0 and 1, which is used to balance the contribution of the two losses; represents the loss, which measures the absolute difference between the predicted value and the true value; Structural similarity loss D-SSIM is a variant of SSIM (Structural Similarity Index Measure), which is used to measure the similarity of two images in visual quality.
[0018] Preferably, step S6 specifically includes: loading a certain block, and then dynamically exchanging data of different blocks from the memory according to the visual position of the camera to prevent memory overflow.
[0019] The present invention also discloses a computer-readable storage medium, on which a computer program is stored. After the computer program is run, any of the above methods is executed.
[0020] The present invention also discloses a computer system, including a processor and a storage medium, wherein a computer program is stored on the storage medium, and the processor reads and runs the computer program from the storage medium to execute any of the methods described above.
[0021] The beneficial effects of the present invention are:
[0022] The present invention supports the construction of large-scale city-level scenes without borders, and scenes can be trained in parallel, saving computing resources and time. It supports compression and optimization of point clouds, and can merge and render large-scale scenes without borders and high-fidelity real scenes in real time on the browser after segmentation. The algorithm has the characteristics of high stability and visualization. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] like Figure 1 A large-scale high-fidelity real-life 3D modeling method that can be expanded without boundaries comprises the following steps:
[0027] S1, collects multi-view image data from drones.
[0028] Step S1 specifically includes selecting an area, using a drone to take oblique photographs of the scene, and the drone forms a dot grid route to fly according to the planned path; the drone software automatically generates a route plan, and the drone is switched to automatic flight mode to perform the flight mission according to the planned route. At the same time, the drone's altitude is changed, and the scene is photographed again according to the pre-set level and altitude to collect drone image data at different altitude levels.
[0029] S2, inputs the collected image data into colmap, and uses colmap to generate the camera pose graph and scene point cloud data.
[0030] S3 divides the entire scene into multiple small blocks, uses the coordinate information stored in the point cloud to find the centroid of each block, divides the scene sparse point cloud into blocks according to the centroid of the sub-area, and uses the correspondence between the point cloud and the camera to retrieve the camera pose corresponding to each sub-area, and obtains the point cloud and camera pose of different blocks after the scene is divided.
[0031] The method for calculating the centroid in step S3 is as follows: set all point clouds to a set N, and divide them into blocks according to the pre-set number of blocks according to the formula The centroid position of each block is calculated, where n represents the position of each point cloud and x represents the centroid of a block. Meanwhile, the block division method in step S3 is: according to the number of blocks and the position of the centroid, the point cloud and camera pose of the entire scene are divided into a plurality of corresponding blocks.
[0032] S4, the processed data, i.e., the point cloud and camera pose data information of different blocks after the scene division obtained in step S3, is passed into 3D Gaussian Splatting (3DGS) for parallel training to obtain the model of each different block.
[0033] Specifically, the processed data is passed into the 3DGS for initializing the 3DGS set.
[0034]
[0035] Defined using a 3D Gaussian function, where G(x) is the Gaussian function value for a given x, representing the probability density at position x, x is the input vector, and Σ is the covariance matrix. This formula represents a 3D Gaussian distribution with a mean of 0, which is used to describe the spatial distribution characteristics of each point.
[0036]
[0037] Then the weight calculation is performed. i Represents the weight of each Gaussian point, which is used to combine different Gaussian points to generate the final rendered image. i is the transparency of each Gaussian point, and the denominator of the formula ensures that the sum of all weights is 1. i Represents the position vector or variable associated with the i-th component. Σ i : The covariance matrix of the i-th component, which describes the distribution shape and range of the component in space. Σ j The sum symbol indicates that all components are summed to normalize the weight w i After that, the 3D Gaussian image needs to be projected to 2D for rendering.
[0038] Σ′-JW∑WTT
[0039] This formula is used to transform the covariance matrix Σ into the camera coordinate system, where J is the Jacobian matrix of the projective transformation of the affine approximation and W is the transformation matrix from world to camera coordinates, which usually includes rotation and translation. This formula ensures that the shape of the Gaussian is correctly represented in the camera coordinate system, suitable for the optimization process.
[0040] 2 = RRSSTRT
[0041] In order to maintain the validity of the covariance matrix during training, this formula represents the covariance matrix Σ as a combination of a scaling matrix S and a rotation matrix R. This allows the scaling and rotation factors to be optimized independently.
[0042]
[0043] Then the model is trained using the loss function. The total loss function is the weighted sum of two different loss terms; λ is a weight coefficient between 0 and 1, which is used to balance the contribution of the two losses; represents the loss, which measures the absolute difference between the predicted value and the true value; Structural Similarity Loss (D-SSIM), a variant of SSIM (Structural Similarity Index Measure), is used to measure the similarity of two images in visual quality. The loss function combines L1 loss and D-SSIM terms to measure the difference between the rendered image and the training view. This loss function design helps to better capture the view-related appearance, thereby improving the rendering quality.
[0044]
[0045] The gradient of the loss function L is optimized by gradient calculation to optimize the position, color and other parameters of the Gaussian points. The gradient of the loss function L represents the derivative of the loss function with respect to each parameter. is the partial derivative, which represents the loss function L with respect to the weight w i The derivative of . This shows how changing the i-th weight affects the overall loss function. is the weight w iThe gradient vector of . Through the chain rule, the gradient of the loss function with respect to the weights is converted into the gradient of the parameters of the Gaussian points, thus guiding the optimization process. At the same time, adaptive density control is added. During the optimization process, the density of the Gaussian is adaptively controlled to better represent the scene, balancing the need to capture details and reducing the computational load in less critical areas. For small Gaussian functions in under-reconstructed areas, new geometry that must be created needs to be covered. For this case, it is best to clone the Gaussian function, by simply creating a copy of the same size and moving it in the direction of the position gradient. On the other hand, large Gaussian distributions in high variance areas need to be split into small Gaussian distributions. Such a Gaussian function is replaced by two new Gaussian functions.
[0046] Finally, Gaussian color is obtained through color synthesis to render the image.
[0047]
[0048] This formula calculates the final color C(x) by weighted average, where c i is the color of each Gaussian point. Each color value is calculated according to its corresponding weight w i Weighted.
[0049] S5, rendering with fast alpha-blending to achieve fast and visually realistic rendering effects. In computer graphics, fast alpha-blending is a rendering technique used to composite multiple image layers or image elements so that they can be displayed transparently or semi-transparently together. In this technique, the alpha value refers to the transparency level of each image element or layer.
[0050] S6, renders and fuses the trained blocks on the front-end browser to obtain a three-dimensional scene from any perspective: first load a block of scene at a predetermined level, and dynamically swap new scene blocks in and out of the old scene blocks from the memory according to the movement of the camera to achieve seamless connection and browsing of the scene.
[0051] S7, adjust the height of the front-end camera to obtain three-dimensional scenes with different precisions.
[0052] The present invention supports the construction of large-scale city-level scenes without borders, and scenes can be trained in parallel, saving computing resources and time. It supports compression and optimization of point clouds, and can merge and render large-scale scenes without borders and high-fidelity real scenes in real time on the browser after segmentation. The algorithm has the characteristics of high stability and visualization.
[0053] The present invention also discloses a computer-readable storage medium, on which a computer program is stored. After the computer program is run, any of the above methods is executed.
[0054] The present invention also discloses a computer system, including a processor and a storage medium, wherein a computer program is stored on the storage medium, and the processor reads and runs the computer program from the storage medium to execute any of the methods described above.
[0055] Those skilled in the art will further appreciate that the various illustrative logic blocks, modules, circuits, and algorithm steps described in conjunction with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or a combination of the two. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps are generally described above in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the specific application and the design constraints imposed on the overall system. The technician may implement the described functionality in different ways for each specific application, but such implementation decisions should not be interpreted as resulting in a departure from the scope of the present invention.
[0056] The various illustrative logic blocks, modules, and circuits described in conjunction with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in cooperation with a DSP core, or any other such configuration.
[0057] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software module may reside in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read and write information from / to the storage medium. In an alternative, a storage medium may be integrated into a processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and the storage medium may reside in a user terminal as discrete components.
[0058] In one or more exemplary embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented as a computer program product in software, each function may be stored on or transmitted by a computer-readable medium as one or more instructions or codes. Computer-readable media include both computer storage media and communication media, including any medium that facilitates the transfer of a computer program from one place to another. Storage media may be any available medium that can be accessed by a computer. As an example and not limitation, such a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer. Any connection is also properly referred to as a computer-readable medium. For example, if the software is transmitted from a website, a server, or other remote source using a coaxial cable, a fiber optic cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of the medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, wherein disk often reproduces data magnetically, while disc reproduces data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0059] The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be apparent to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein, but should be granted the widest scope consistent with the principles and novel features disclosed herein.
[0060] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A large-scale high-fidelity 3D modeling method that can be expanded without boundaries, characterized in that: The following steps are involved: S1, collects multi-view image data from drones; S2, input the collected image data into colmap, and use colmap to generate the camera pose graph and scene point cloud data; S3, divide the entire scene into multiple small blocks, use the coordinate information stored in the point cloud to find the centroid of each block, divide the scene sparse point cloud into blocks according to the centroid of the sub-region, and use the correspondence between the point cloud and the camera to retrieve the camera pose corresponding to each sub-region, and obtain the point cloud and camera pose of different blocks after the scene is divided; S4, the processed data, i.e., the point cloud and camera pose data of different blocks after the scene division obtained in step S3, is passed into 3D Gaussian Splatting (3DGS) for parallel training to obtain the model of each different block; S5, rendering with fast alpha-blending for fast and visually realistic rendering; S6, rendering and fusing the trained blocks on the front-end browser to obtain a three-dimensional scene at any perspective; S7, adjust the height of the front-end camera to obtain three-dimensional scenes with different precisions.
2. The method according to claim 1, characterized in that: Step S1 specifically includes selecting an area, using a drone to take oblique photographs of the scene, and the drone flies along a dot grid route according to the planned path; the drone software automatically generates a route plan, and the drone is switched to automatic flight mode to perform the flight mission according to the planned route. At the same time, the drone's altitude is changed to collect drone image data at different altitude levels.
3. The method according to claim 1, characterized in that: The method for calculating the centroid in step S3 is: set all point clouds as a set N, and divide them into blocks according to the pre-set number according to the formula The centroid position of each block is calculated, where n represents the position of each point cloud, and x represents the centroid of a block. At the same time, the block division method in step S3 is: according to the number of blocks and the position of the centroid, the point cloud and camera pose of the entire scene are divided into multiple corresponding blocks.
4. The method according to claim 1, characterized in that: Step S4 is as follows: the processed data is passed to 3DGaussian Splatting for parallel training, using the formula Calculate the loss function of the model, where The total loss function is the weighted sum of two different loss terms; λ is a weight coefficient between 0 and 1, which is used to balance the contribution of the two losses; represents the loss, which measures the absolute difference between the predicted value and the true value; Structural similarity loss D-SSIM is a variant of SSIM (Structural Similarity Index Measure), which is used to measure the similarity between two images in visual quality.
5. The method according to claim 1, characterized in that Step S6 specifically includes: loading a certain block, and then dynamically exchanging data of different blocks from the memory according to the visual position of the camera to prevent memory overflow.
6. A computer-readable storage medium, characterized in that: A computer program is stored on the medium, and after the computer program is run, the method according to any one of claims 1 to 5 is executed.
7. A computer system, characterized in that: The method comprises a processor and a storage medium, wherein a computer program is stored in the storage medium, and the processor reads and runs the computer program from the storage medium to execute the method as claimed in any one of claims 1 to 5.
Citation Information
Patent Citations
Object surface three-dimensional reconstruction method and device based on point cloud data
CN116597113A
Air-ground image three-dimensional reconstruction method, system and equipment based on neural radiation field
CN117710583A
Fast large-scale three-dimensional reconstruction method based on neural radiation field
CN117726758A
Cited By
Three-dimensional imaging method
CN119359917A
Method for large-scale scene reconstruction based on 3D Gaussian
CN119991939A
Automatic driving-oriented 4D annotation data processing method and system
CN120147990A
Alignment and merging of 3D gaussian models
WO2026051057A1
