Urban dynamic scene construction method and system based on NeRF

By using the NeRF-based method to decompose and process urban dynamic scenes, it solves the problems of high data acquisition and processing complexity and insufficient dynamic scene accuracy in the existing technology, and achieves efficient construction and rendering of urban dynamic scenes, which is suitable for urban construction monitoring. and planning.

CN118736124APending Publication Date: 2024-10-01QINGYUAN SURVEYING & MAPPING INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410852542.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing 3D construction methods for urban scenes have high complexity in data acquisition and processing and insufficient accuracy in dynamic scene processing, especially when dealing with complex structures and dynamic elements. There are challenges.

Method used

The urban dynamic scene construction method based on NeRF is used to obtain video data under different times, weather and lighting conditions, decompose the scene into static, dynamic and long-range branch scenes, use a hash function to build a hash table data structure, and convert the feature vector into Mapping into color, density and far-field radiance, weighted calculations are performed to generate new scene views.

Benefits of technology

It realizes the construction of large-scale automated urban dynamic scenes, improves the rendering accuracy of dynamic scenes, is suitable for industries such as urban construction monitoring and planning visualization, and reduces the complexity of data processing and privacy security risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736124A_ABST
    Figure CN118736124A_ABST
Patent Text Reader

Abstract

The invention discloses a city dynamic scene construction method and system based on NeRF, and the method comprises the steps: obtaining a plurality of videos shot under different time, weather and illumination conditions, and recording the shooting postures and angles of a camera in different shooting processes; the method comprises the following steps: decomposing a scene contained in a video into a static branch scene, a dynamic branch scene and a long-shot branch scene, and constructing a corresponding hash table data structure by adopting different hash functions; connecting feature vectors according to the constructed hash table data structure and the auxiliary parameters, and respectively mapping the feature vectors of different branch scenes into colors, densities and far-field radiance; and weighting and calculating the color and density parameters of the static branch scene and the dynamic branch scene, and rendering to generate a new scene view. Compared with a traditional three-dimensional model construction method, the method can be suitable for large-range and automatic urban dynamic scene construction, and benefits are provided for related industries or researches such as urban construction monitoring and urban planning visualization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of three-dimensional scene construction, and in particular relates to a method and system for constructing a city dynamic scene based on NeRF. Background Art

[0002] Geometric reconstruction techniques for cities, such as Google Maps and Streetview, have profoundly changed our daily lives, providing people with ways to explore cities from different perspectives. In recent years, techniques based on Neural Radiance Fields (NeRF) have enabled realistic interactions with scenes through advanced viewpoint synthesis. This technique uses deep learning algorithms to parse and render 3D scenes, resulting in realistic visual effects. Despite these impressive advances, existing methods for 3D construction of urban scenes still face two major problems.

[0003] First, the acquisition and processing of data is extremely complex. To accurately reconstruct a 3D model of a city, a large amount of image data and precise location information is required. The collection and processing of this data is not only time-consuming and labor-intensive, but may also pose privacy and security issues in some cases. Second, although NeRF technology provides highly realistic rendering, its accuracy in processing dynamic scenes needs to be improved. Dynamic urban scenes contain complex structures and dynamic elements, which poses a great challenge to the existing NeRF's different processing of dynamic and static scenes. Summary of the invention

[0004] The main purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art and to provide a method and system for constructing a city dynamic scene based on NeRF.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] One aspect of the present invention provides a method for constructing a city dynamic scene based on NeRF, comprising the following steps:

[0007] Get multiple videos shot at different times, weather conditions, and lighting conditions, and record the camera poses and angles during different shooting processes;

[0008] Decomposing scenes contained in multiple video images into static branch scenes, dynamic branch scenes and distant branch scenes according to their expression forms, and using different hash functions to construct corresponding hash table data structures for different branch scenes;

[0009] According to the constructed hash table data structure and auxiliary parameters, feature vectors are connected and the feature vectors of different scene branches are mapped into color, density and far-field radiance respectively;

[0010] The color and density parameters of the static branch scene and the dynamic branch scene are weighted and calculated, and the obtained results are rendered to generate a new scene view.

[0011] As a preferred technical solution, the acquisition of multiple videos shot at different times, in different weather conditions, and under different lighting conditions is specifically as follows:

[0012] Use geographic information system professional software to conduct interval sampling along urban roads; set the shooting position and pitch angle of the video according to the geographic coordinates of the sampling point, and obtain the video of the sampling point;

[0013] The same sampling point is sampled multiple times at different times, in different weather conditions, and under different lighting conditions. Each frame in the same sampling task video is arranged in order according to time t. Each sampling task is numbered separately, and ultimately includes N sampling tasks.

[0014] As a preferred technical solution, the scene is decomposed into static branch scenes, representing non-moving scene terrain that remains consistent in different videos; where the coordinate position x∈R 3 , R 3 represents the three-dimensional space, vid∈{1,…,N} represents the video number, l∈L represents different resolution levels; the static branch uses 3D space voxels v l,s , let the static branch hash function be:

[0015] i l,s =static_hash(space(v l,s ));

[0016] Among them, i l,s is a static branch hash index, static_( is a static branch hash function, and space( is a function for preprocessing or converting 3D space voxels to suit the input requirements of the hash function.

[0017] As a preferred technical solution, the scene is decomposed into dynamic branch scenes to represent the moving objects in the video; the dynamic branches use 4D spatiotemporal voxels v l,d , where t∈{1,…,} represents the frame index in the video and the coordinate position x∈R 3 , R 3 represents the three-dimensional space, vid∈{1,…,N} represents the video number, l∈L represents different resolution levels, and the dynamic branch hash function is:

[0018] i l,d =dynamic_(space(v l,d ),time(v k,d ),vid);

[0019] Among them, i l,d is a dynamic branch hash index, dynamic_hash(is a dynamic branch hash function, space(is a function for preprocessing or converting 3D space voxels to meet the input requirements of the hash function, and time(is a function for extracting time information.

[0020] As a preferred technical solution, the scene is decomposed into distant branch scenes, representing distant objects and the sky in the video; where the coordinate position x∈R 3 , camera viewing direction d∈R 3 , R 3 represents three-dimensional space, vid∈{1,…,N} represents the video number, and l∈L represents different resolution levels; the distant branch uses 3D space voxels, and the distant branch hash function is:

[0021] i l,e =env_hash(dir(v l,e ),vid)

[0022] Among them, i l,e is the hash index of the vision branch, dynamic_hash(is the hash function of the vision branch, dir(v l,e ) is to convert voxel v l,e Function that converts to a direction vector.

[0023] As a preferred technical solution, the constructed hash table data structure and auxiliary parameters are connected into feature vectors, and the feature vectors of different scene branches are mapped into color, density and far-field radiance, specifically:

[0024] The hash table values ​​in the static branch scene are concatenated together with the auxiliary input into a feature vector, wherein the auxiliary input includes the viewing direction and the video number; the feature vector is then mapped to the view-dependent color c e and the view-independent density σ s , where the video-specific matrix A vid The product of the Fourier-encoded time index F(t) is calculated as an auxiliary condition to calculate the view-dependent color as follows:

[0025] σ s (x)∈R;

[0026] c s (x,d,A vid F(t))∈R 3 ;

[0027] Among them, σ s (x) is the density function of the static branch scene, c s (x,d,A vidF(t)) is the color function of the static branch scene, x∈R 3 is the coordinate position, R 3 Represents three-dimensional space, d∈R 3 is the camera viewing direction;

[0028] In a dynamic branching scenario, by using the scalar shadow field ρ d ∈[0,1] for the color c of the static branch scene s Adjust to get the color c of the dynamic branch scene d and density σ d , as shown below:

[0029] σ d (x,t,vid)∈R;

[0030] ρ d (x,t,vid);

[0031] c d (x,t,vid,d)∈R 3 ;

[0032] Where t∈{1,…,} represents the frame index in the video, c d (x,t,vid,d) is the color function of the dynamic branch scene related to the view time and video time, σ d (x, t, vid) is the density function of the dynamic branching scene related to the view time and video time;

[0033] In the distant branch scene, the far-field radiance c in the distant branch scene is analyzed from two aspects: video shooting angle and video sequence number. e Modeling is done as follows:

[0034] c e (d,vid)∈R 3 ;

[0035] Among them, c e (d, vid) is the far-field radiance function of the distant branch scene.

[0036] As a preferred technical solution, the color and density parameters of the static branch scene and the dynamic branch scene are weighted and calculated, and the obtained results are rendered to generate a new scene view, specifically:

[0037] The weighted sum of the color and density values ​​of the static and dynamic branch scenes is calculated, and combined with point-level shadow reduction, a single density and radiation value at any position is derived, as shown below:

[0038]

[0039] σ(x,t,vid)=σ s (x)+σ d (x,t,vid);

[0040] Among them, c(x,t,vid,d) and σ(x,t,vid) are the derived single radiation value function and density function, ∈R 3 is the coordinate position, R 3 represents the three-dimensional space, t∈{1,…,T} represents the frame index in the video, and d∈R 3 is the camera viewing direction, vid∈{1,…,} represents the video number, A vid and F(t) represent the video-specific matrix and the time index of Fourier encoding, respectively, σ s and c s (x,, vid F(t)) are the view-independent density and color functions in the static branch scene, σ d (x, t, vid) and c d (x, t, vid, d) are the density function and color function related to view time and video time mapped by the dynamic branch scene feature vector in the dynamic branch scene, σ s (x) is the density function of the static branching scenario;

[0041] Obtain the color of a camera ray in a given frame and video by accumulating the transmittance at sample points along the ray and forcing the ray to intersect with the far-field environment. As shown below;

[0042]

[0043] Wherein, σ(r(t),,id) represents the density function along the ray r(t) at time t and video number vid, c(r(t),,id,) represents the density function along the ray r9t) at time t, video number vid and camera viewing direction d, r(t) is the parameterized equation of the position of the ray at time t, σ(r(s),,id) represents the volume density function along the ray r(s) at time t and video number vid;

[0044] Based on the obtained color, density and radiation values, the new perspective image of the scene is rendered.

[0045] Another aspect of the present invention further provides a system for constructing a city dynamic scene based on NeRF, which is applied to the above-mentioned method for constructing a city dynamic scene based on NeRF, and includes a data acquisition and preprocessing module, a feature construction module, and a rendering module;

[0046] The data acquisition and preprocessing module is used to collect multiple videos shot at different times, different weather conditions and different lighting conditions in the study area, record the camera shooting posture and angle under different shooting processes, and decompose the scenes contained in the video images into static branch scenes, dynamic branch scenes and distant branch scenes according to the expression form;

[0047] The feature construction module is used to construct corresponding hash table data structures for different branch scenes using different hash functions, connect the constructed hash table data structures and auxiliary parameters into feature vectors, and map the feature vectors of different scene branches into color, density and far-field radiance respectively.

[0048] The rendering module is used to realize the rendering of the new perspective scene image, by calculating the weighted sum of the color value and density value of the static branch scene and the dynamic branch scene, performing weighted sum calculation on the color and density parameters of the static branch scene and the dynamic branch scene, and rendering the obtained result to generate a new scene view.

[0049] As a preferred technical solution, in the rendering module, the obtained results are rendered to generate a new scene view as follows:

[0050] The color and density values ​​of the static branch scene and the dynamic branch scene are weighted and summed, and the shadows in the scene are reduced. The color, density and radiance of each point are derived in combination with the long-range radiance in the distant branch scene for rendering.

[0051] Another aspect of the present invention further provides a storage medium storing a program, which, when executed by a processor, implements the above-mentioned method for constructing a city dynamic scene based on NeRF.

[0052] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0053] (1) The present invention is based on urban scene photography data and combines the neural radiation field model in graphics to provide a three-dimensional construction method for urban dynamic scenes. The present invention applies the above method to the construction of three-dimensional models of urban dynamic scenes. Compared with traditional three-dimensional construction models, the present invention can be applied to large-scale, automated construction of urban dynamic scenes, and provide certain benefits to related industries or research such as urban construction monitoring and urban planning visualization. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 is a flowchart of a method for constructing a city dynamic scene based on NeRF in an embodiment of the present invention;

[0055] Figure 2 It is a structural diagram of a NeRF-based urban dynamic scene construction system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0057] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0058] Example

[0059] like Figure 1 As shown, this embodiment provides a method for constructing a city dynamic scene based on NeRF, including the following steps:

[0060] S1: Acquire multiple videos shot at different times, different weather conditions, and different lighting conditions, and record the camera shooting postures and angles under different shooting processes. Further, the following steps are included:

[0061] S11: The single data collection task is to perform interval sampling along the urban roads through the professional software of the geographic information system; according to the geographic coordinates of the sampling points, set the shooting position, pitch angle and other parameters of the video to obtain the video of the sampling point;

[0062] S12: Perform multiple sampling on the same sampling point at different times, different weather conditions, and different lighting conditions, and arrange each frame in the same sampling task video in order according to time t, and set a number for each sampling task respectively, ultimately including N sampling tasks.

[0063] S2: The scenes contained in the multiple video images are divided into three branches according to the expression forms, and independent hash table data structures are constructed for different branch scenes by using different hash functions. Further, the following steps are included:

[0064] S21: Decompose the scene into static branches, representing non-moving scene terrain that remains consistent across different videos; where the coordinate position x∈R 3 , R 3 represents the three-dimensional space, vid∈{1,…,} represents the video number, and l∈L represents different resolution levels. The static branch uses 3D space voxels v l,s , the static branch hash function is specified as:

[0065] i l,s =static_hash(space(v l,s ));

[0066] Among them, i k,sis a static branch hash index, static_( is a static branch hash function, and space( is a function for preprocessing or converting 3D space voxels to suit the input requirements of the hash function.

[0067] S22: Decompose the scene into dynamic branch scenes, representing objects moving in the video; the dynamic branch uses 4D spatiotemporal voxels v l,d , where t∈{1,…,} represents the frame index in the video and the coordinate position x∈R 3 , vid∈{1,…,N} represents the video number, l∈L represents different resolution levels. The dynamic branch hash function is specified as:

[0068] i l,d =dynamic_(space(v l,d ),time(v l,d ),vid);

[0069] Among them, i l,d is a dynamic branch hash index, dynamic_hash(is a dynamic branch hash function, space(is a function for preprocessing or converting 3D space voxels to meet the input requirements of the hash function, and time(is a function for extracting time information.

[0070] S23: Decompose the scene into distant branches, representing distant objects and the sky in the video; where the coordinate position x∈R 3 , camera viewing direction d∈R 3 , vid∈{1,…,N} represents the video number, l∈L represents different resolution levels. The distant branch uses 3D space voxels, and the distant branch hash function is specified as

[0071] i l,e =env_hash(dir(v l,e ),vid).

[0072] Among them, i l,e is the hash index of the vision branch, dynamic_hash(is the hash function of the vision branch, dir(v l,e ) is to convert voxel v l,e Function that converts to a direction vector.

[0073] S3: For the hash table structures of the three types of branch scenes constructed above, together with auxiliary parameters such as viewing direction and video number, they are connected into feature vectors, and the feature vectors of different scene branches are mapped into parameters such as color, etc., further comprising the following steps:

[0074] S31: Concatenate the hash table values ​​in the static branch scene together with auxiliary inputs such as viewing direction and video number into a feature vector, and then map the feature vector to the view-related color C s and the view-independent density σ s In order to model the lighting conditions that change dramatically in the overall video but slowly in a single video, the video-specific matrix A vid The product of the Fourier-coded time index F(t) is calculated as an auxiliary condition to calculate the view-related color. The relevant formula is as follows:

[0075] σ s (x)∈R;

[0076] c s (x,d,A vid F(t))∈R 3 ;

[0077] Among them, σ s (x) is the density function of the static branch scene, c s (x,d,A vid F(t)) is the color function of the static branch scene.

[0078] S32: In the dynamic branching scene, the color C mapped by the dynamic branching scene feature vector d and density σ d It is also related to the view time and video time. At the same time, in dynamic branch scenes, shadows have a great influence on the construction of urban scenes. Therefore, by using the scalar shadow field ρ d ∈[0,1 for the color c of the static branch scene s Adjust to get the color c of the dynamic branch scene d and density σ d , the relevant formula is as follows:

[0079] σ d (x,t,vid)∈R;

[0080] ρ d (x,t,vid);

[0081] c d (x,t,vid,d)∈R 3 ;

[0082] Among them, c d (x,t,vid,d) is the color function of the dynamic branch scene related to the view time and video time, σ d (x, t, vid) is the density function of the dynamic branching scene related to view time and video time.

[0083] S33: In the distant branch scene, the sky in the scene needs to infer the remote radiance, and the sky may change greatly in the video with different video shooting time and angle. Then the far-field radiance c in the distant branch scene is calculated from the two aspects of video shooting angle and video sequence number. e Modeling is performed. The relevant formula is as follows:

[0084] c e (d,vid)∈R 3 .

[0085] Among them, c e (d, vid) is the far-field radiance function of the distant branch scene.

[0086] S4: weighting and calculating the color and density parameters of the static branch scene and the dynamic branch scene, and rendering the obtained results to generate a new scene view, further comprising the following steps:

[0087] S41: Calculate the weighted sum of the color and density values ​​of the static branch scene and the dynamic branch scene, and combine the point-level shadow reduction to derive a single density and radiation value for any location. The formula is as follows:

[0088]

[0089] σ(x,t,vid)=σ s (x)+σ d (x,t,vid);

[0090] Among them, c(x,t,vid,d) and σ(x,t,vid) are the derived single radiation value function and density function, ∈R 3 is the coordinate position, R 3 represents the three-dimensional space, t∈{1,…,T} represents the frame index in the video, and d∈R 3 is the camera viewing direction, vid∈{1,…,} represents the video number, A vid and F(t) represent the video-specific matrix and the time index of Fourier encoding, respectively, σ s and c s (x,, vid F(t)) are the view-independent density and color functions in the static branch scene, σ d (x, t, vid) and c d (x, t, vid, d) are the density function and color function related to view time and video time mapped by the dynamic branch scene feature vector in the dynamic branch scene, σ s (x) is the density function of the static branching scenario;

[0091] S42: Obtain the color of the camera ray in a given frame and video by accumulating the transmittance at the sampling points along the ray and forcing the ray to intersect with the far-field environment. The formula is as follows;

[0092]

[0093] Among them, σ(r(t),,id) represents the density function along the ray r(t) at time t and video number vid, c(r(t),,id,) represents the density function along the ray r(t) at time t, video number vid and camera viewing direction d, r(t) is the parameterized equation of the position of the ray at time t, and σ(r(s),,id) represents the volume density function along the ray r(s) at time t and video number vid.

[0094] Based on the obtained color, density and radiation values, the new perspective image of the scene is rendered.

[0095] like Figure 2 As shown, in another embodiment of the present application, a system for constructing a city dynamic scene based on NeRF is provided, the system comprising a data acquisition and preprocessing module 10, a data acquisition and preprocessing module 10 and a rendering module 30;

[0096] The data acquisition and preprocessing module 10 is used to collect N video data shot at different times, different weather conditions and different lighting conditions in the study area, record the camera shooting posture and angle under different shooting processes, and decompose the scenes contained in the video images into static branch scenes, dynamic branch scenes and distant branch scenes according to the expression form;

[0097] The feature construction module 20 is used to construct corresponding hash table data structures for static branch scenes, dynamic branch scenes and distant branch scenes using different hash functions, and finally use each branch hash table data structure together with auxiliary inputs such as observation direction and video number as feature vectors to map parameters such as color and density through functions;

[0098] The rendering module 30 is used to render the scene image from a new perspective by calculating the weighted sum of the color values ​​and density values ​​of the static branch scene and the dynamic branch scene, and combining point-level shadow reduction to derive a single density and radiation value for any position; then, the transmittance is accumulated at the sampling point along the light, and the light is forced to intersect with the far-field environment to obtain the color of the camera light in a given frame and video. After obtaining the color, density and radiation values, the scene image from a new perspective can be rendered.

[0099] Furthermore, in the data acquisition and preprocessing module, N video data are collected in the study area at different times, different weather conditions and different lighting environments. These videos will be shot in different time periods (such as early morning, noon, and evening) and various weather conditions (including sunny, cloudy, rainy, etc.). This ensures that the acquired data can fully reflect the scene changes under different environmental conditions. At the same time, the specific posture and angle of the camera during the shooting of each video are recorded. This information is crucial for understanding and analyzing the video content. The posture of the camera includes its position, height and tilt angle, while the shooting angle involves the direction and field of view of the camera lens. Different combinations of these parameters can significantly affect the visual presentation of the captured scene.

[0100] Furthermore, in the feature construction module and the rendering module, the steps of constructing the feature vector and performing rendering after calculation are as follows:

[0101] (1) Hash table construction: construct different hash table structures for multi-branch scenarios;

[0102] (2) Through the values ​​of the multi-branch hash table structure, the hash table values ​​in different branch scenarios are connected together with auxiliary inputs such as observation direction and video number to form a feature vector, and then the feature vector is mapped to parameters such as color and density;

[0103] (3) The color and density values ​​of the static branch scene and the dynamic branch scene are weighted and summed, and the shadows in the scene are reduced. Combined with the long-range radiance in the distant branch scene, the color, density, and radiance of each point are derived for rendering.

[0104] It should be noted here that the system provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure is divided into different functional modules to complete all or part of the functions described above. The system is a NeRF-based urban dynamic scene construction method applied to the above embodiment.

[0105] In another embodiment of the present application, a storage medium is further provided, storing a program, and when the program is executed by a processor, a method for constructing a city dynamic scene based on NeRF is implemented, specifically:

[0106] Get multiple videos shot at different times, weather conditions, and lighting conditions, and record the camera poses and angles during different shooting processes;

[0107] Decomposing scenes contained in multiple video images into static branch scenes, dynamic branch scenes and distant branch scenes according to their expression forms, and using different hash functions to construct corresponding hash table data structures for different branch scenes;

[0108] According to the constructed hash table data structure and auxiliary parameters, feature vectors are connected and the feature vectors of different scene branches are mapped into color, density and far-field radiance respectively;

[0109] The color and density parameters of the static branch scene and the dynamic branch scene are weighted and calculated, and the obtained results are rendered to generate a new scene view.

[0110] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0111] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. A method for constructing a city dynamic scene based on NeRF, characterized in that: The steps include: Get multiple videos shot at different times, weather conditions, and lighting conditions, and record the camera poses and angles during different shooting processes; Decomposing scenes contained in multiple video images into static branch scenes, dynamic branch scenes and distant branch scenes according to their expression forms, and using different hash functions to construct corresponding hash table data structures for different branch scenes; According to the constructed hash table data structure and auxiliary parameters, feature vectors are connected and the feature vectors of different scene branches are mapped into color, density and far-field radiance respectively; The color and density parameters of the static branch scene and the dynamic branch scene are weighted and calculated, and the obtained results are rendered to generate a new scene view.

2. A method for constructing a city dynamic scene based on NeRF according to claim 1, characterized in that: The obtaining of multiple videos shot at different times, under different weather conditions and under different lighting conditions is specifically as follows: Use geographic information system professional software to conduct interval sampling along urban roads; set the shooting position and pitch angle of the video according to the geographic coordinates of the sampling point, and obtain the video of the sampling point; The same sampling point is sampled multiple times at different times, in different weather conditions, and under different lighting conditions. Each frame in the same sampling task video is arranged in order according to time t. Each sampling task is numbered separately, and ultimately includes N sampling tasks.

3. The method for constructing a city dynamic scene based on NeRF according to claim 1, characterized in that: Decompose the scene into static branch scenes, representing non-moving scene terrain that remains consistent across different videos; where the coordinate position x∈R 3 , R 3 represents the three-dimensional space, vid∈{1,…,N} represents the video number, l∈L represents different resolution levels; the static branch uses 3D space voxels v l,s , let the static branch hash function be: i l,s =static_hash(space(v l,s )); Among them, i l,s is a static branch hash index, static_hash() is a static branch hash function, and space() is a function that preprocesses or transforms 3D space voxels to suit the input requirements of the hash function.

4. The method for constructing a city dynamic scene based on NeRF according to claim 1, characterized in that: The scene is decomposed into dynamic branch scenes, representing objects moving in the video; the dynamic branch uses 4D spatiotemporal voxels v l,d , where t∈{1,…,T} represents the frame index in the video and the coordinate position x∈R 3 , R 3 represents the three-dimensional space, vid∈{1,...,N} represents the video number, l∈L represents different resolution levels, and the dynamic branch hash function is: i l,d =dynamic_hash(space(ν l,d ),time(v l,d ),vid); Among them, i l,d is a dynamic branch hash index, dynamic_hash() is a dynamic branch hash function, space() is a function that preprocesses or transforms 3D space voxels to suit the input requirements of the hash function, and time() is a function that extracts time information.

5. The method for constructing a city dynamic scene based on NeRF according to claim 1, characterized in that: Decompose the scene into distant branch scenes, representing distant objects and the sky in the video; where the coordinate position x∈R 3 , camera viewing direction d∈R 3 , R 3 represents three-dimensional space, vid∈{1,…,N} represents the video number, and l∈L represents different resolution levels; the distant branch uses 3D space voxels, and the distant branch hash function is: i l,e =env_hash(dir(v l,e ),vid) Among them, i l,e is the future branch hash index, dynamic_hash() is the future branch hash function, dir(v l,e ) is to convert voxel ν l,e Function that converts to a direction vector.

6. The method for constructing a city dynamic scene based on NeRF according to claim 1, characterized in that: The constructed hash table data structure and auxiliary parameters are connected into feature vectors, and the feature vectors of different scene branches are mapped into color, density and far-field radiance, specifically: The hash table values ​​in the static branch scene are concatenated together with the auxiliary input into a feature vector, wherein the auxiliary input includes the viewing direction and the video number; the feature vector is then mapped to the view-dependent color c s and the view-independent density σ s , where the video-specific matrix A vid The product of the Fourier-encoded time index F(t) is calculated as an auxiliary condition to calculate the view-dependent color as follows: s s (x)∈R; c s (x,d,A vid F(t))∈R 3 ; Among them, σ s (x) is the density function of the static branch scene, c s (x,d,A vid F(t)) is the color function of the static branch scene, x∈R 3 is the coordinate position, R 3 Represents three-dimensional space, d∈R 3 is the camera viewing direction; In a dynamic branching scenario, by using the scalar shadow field ρ d ∈[0,1] for the color c of the static branch scene s Adjust to get the color c of the dynamic branch scene d and density σ d , as shown below: s d (x,t,vid)∈R; r d (x,t,vid); c d (x,t,vid,d)∈R 3 ; Where t∈{1,…,T} represents the frame index in the video, c d (x,t,vid,d) is the color function of the dynamic branch scene related to the view time and video time, σ d (x, t, vid) is the density function of the dynamic branching scene related to the view time and video time; In the distant branch scene, the far-field radiance c in the distant branch scene is analyzed from two aspects: video shooting angle and video sequence number. e Modeling is done as follows: c e (d,with)∈R 3 ; Among them, c e (d, vid) is the far-field radiance function of the distant branch scene.

7. The method for constructing a city dynamic scene based on NeRF according to claim 1, characterized in that: The weighted sum calculation of the color and density parameters of the static branch scene and the dynamic branch scene is performed, and the obtained results are rendered to generate a new scene view, specifically: The weighted sum of the color and density values ​​of the static and dynamic branch scenes is calculated, and combined with point-level shadow reduction, a single density and radiation value at any position is derived, as shown below: σ(x,t,vid)=σ s (x)+σ d (x,t,vid); Among them, c(x,t,vid,d) and σ(x,t,vid) are the derived single radiation value function and density function respectively, x∈R 3 is the coordinate position, R 3 represents the three-dimensional space, t∈{1,…,T} represents the frame index in the video, and d∈R 3 is the camera viewing direction, vid∈{1,…,N} represents the video number, A vcd and F(t) represent the video-specific matrix and the time index of Fourier encoding, respectively, σ s and c s (x,d,A vid F(t)) are the view-independent density and color functions in the static branch scene, σ d (x, t, vid) and c d (x, t, vid, d) are the density function and color function related to view time and video time mapped by the dynamic branch scene feature vector in the dynamic branch scene, σ s (x) is the density function of the static branching scenario; Obtain the color of a camera ray in a given frame and video by accumulating the transmittance at sample points along the ray and forcing the ray to intersect with the far-field environment. As shown below; Wherein, σ(r(t), t, vid) represents the density function along the ray r(t) at time t and video number vid, c(r(t), t, vid, d) represents the density function along the ray r(t) at time t, video number vid and camera viewing direction d, r(t) is the parameterized equation of the position of the ray at time t, σ(r(s), t, vid) represents the volume density function along the ray r(s) at time t and video number vid; Based on the obtained color, density and radiation values, the new perspective image of the scene is rendered.

8. A NeRF-based urban dynamic scene construction system, characterized in that: A method for constructing a city dynamic scene based on NeRF, as applied to any one of claims 1 to 7, comprising a data acquisition and preprocessing module, a feature construction module, and a rendering module; The data acquisition and preprocessing module is used to collect multiple videos shot at different times, different weather conditions and different lighting conditions in the study area, record the camera shooting posture and angle under different shooting processes, and decompose the scenes contained in the video images into static branch scenes, dynamic branch scenes and distant branch scenes according to the expression form; The feature construction module is used to construct corresponding hash table data structures for different branch scenes using different hash functions, connect the constructed hash table data structures and auxiliary parameters into feature vectors, and map the feature vectors of different scene branches into color, density and far-field radiance respectively. The rendering module is used to realize the rendering of the new perspective scene image, by calculating the weighted sum of the color value and density value of the static branch scene and the dynamic branch scene, performing weighted sum calculation on the color and density parameters of the static branch scene and the dynamic branch scene, and rendering the obtained result to generate a new scene view.

9. The urban dynamic scene construction system based on NeRF according to claim 8, characterized in that: In the rendering module, the obtained results are rendered to generate a new scene view as follows: The color and density values ​​of the static branch scene and the dynamic branch scene are weighted and summed, and the shadows in the scene are reduced. The color, density and radiance of each point are derived in combination with the long-range radiance in the distant branch scene for rendering.

10. A storage medium storing a program, characterized in that: When the program is executed by a processor, a method for constructing a city dynamic scene based on NeRF as described in any one of claims 1 to 8 is implemented.