NeRF model optimization and rendering method based on BIM model depth information

By using the depth information of the BIM model to assist NeRF model modeling, and adopting a multi-model integral fusion rendering strategy, the problem of insufficient reconstruction quality of the NeRF model in complex scenes is solved, the accuracy and stability of the three-dimensional scene reconstruction are improved, and efficient render.

CN118608701BActive Publication Date: 2024-10-08WUHAN OPTICS VALLEY INFORMATION TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

It is difficult for existing NeRF models to obtain enough multi-view image data in complex scenes or environments, resulting in reconstruction quality that cannot reach the ideal level, and distortion or artifacts may occur in areas with complex details.

Method used

Depth information based on the BIM model is used to assist NeRF model modeling, and multi-model integration fusion rendering strategies are used to enhance the NeRF model's ability to capture scene geometric information and improve rendering efficiency and quality.

Benefits of technology

Assisted modeling by the depth information of the BIM model improves the NeRF model's ability to capture scene geometric information, enhances the accuracy and stability of three-dimensional scene reconstruction, ensures rendering quality, and takes into account computing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608701B_ABST
    Figure CN118608701B_ABST
Patent Text Reader

Abstract

The present invention proposes a NeRF model optimization and rendering method based on the depth information of a BIM model, which belongs to the field of three-dimensional reconstruction, including: S1, setting the posture of the BIM model in the world coordinate system, and setting the camera posture; S2, generating a camera image of the current posture according to the camera posture, using the camera image and ray sampling point method to model based on the depth information of the BIM model, and generating a NeRF model based on the depth information of the BIM model; S3, using a rendering strategy of multi-model integral fusion to render the NeRF model based on the depth information of the BIM model, and generating a fused image. This application uses the depth information of the BIM model to assist the NeRF model in modeling, and uses a rendering strategy of multi-model integral fusion to render the NeRF model based on the depth information of the BIM model, while ensuring the rendering quality, it also takes into account the computational efficiency of the rendering.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional reconstruction, and in particular to a NeRF model optimization and rendering method based on BIM model depth information. Background Art

[0002] In recent years, with the rapid development of deep learning, neural networks have shown unprecedented potential in the field of computer graphics, especially in the representation and reconstruction of three-dimensional spatial information. As one of the important technologies, Neural Radiance Field (NeRF) uses neural networks to implicitly represent three-dimensional space and can be sampled at any resolution. Compared with traditional discrete representation methods such as point clouds, voxels, and grids, the neural representation based on implicit functions can more accurately capture and render complex three-dimensional scenes, achieving high-precision three-dimensional reconstruction effects. Three-dimensional scene reconstruction technology based on NeRF has been a cutting-edge and hot research field in recent years. It uses an implicit representation to store scene models, processes remote sensing data or ground vision data, and uses a deep fully connected network to render 3D models and scenes.

[0003] However, in the existing technology, the construction of the NeRF model requires a large amount of high-quality image data as input. It may be difficult to obtain sufficient multi-view image data for some complex scenes or environments. In addition, in some areas with complex details, the reconstruction quality cannot reach the ideal level and may produce some distortion or artifacts in some cases.

[0004] Therefore, finding a method that can achieve high-precision three-dimensional scene reconstruction and improve the efficiency of three-dimensional scene reconstruction is a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention

[0005] In view of this, the present invention proposes a NeRF model optimization and rendering method based on the depth information of the BIM model, which can utilize the depth information of the BIM model to assist the NeRF model modeling, enhance the NeRF model's ability to capture scene geometric information, and adopt a multi-model integral fusion rendering strategy to render the NeRF model based on the depth information of the BIM model, while ensuring the rendering quality, it also takes into account the rendering computational efficiency.

[0006] The technical solution of the present invention is implemented as follows: The present invention provides a NeRF model optimization and rendering method based on BIM model depth information, comprising the following steps:

[0007] S1. Setting the pose of the BIM model in the world coordinate system, and setting the pose of the camera according to the pose of the BIM model in the world coordinate system;

[0008] S2. Generate a camera image of the current pose according to the camera pose, use the camera image of the current pose and the ray sampling point method to perform modeling based on the depth information of the BIM model, and generate a NeRF model based on the depth information of the BIM model;

[0009] S3. Use the multi-model integral fusion rendering strategy to render the NeRF model based on the depth information of the BIM model to generate a fused image of the current camera pose.

[0010] On the basis of the above technical solution, preferably, step S2 specifically includes:

[0011] S21, obtaining a camera image of a current posture according to the camera posture, and obtaining camera parameters and depth information of multiple BIM models;

[0012] S22, using a ray sampling point method to perform a first sampling on the camera image of the current position, to obtain a number of rays of the camera image; wherein a number of sampling points are set on each ray;

[0013] S23, generating a network structure of a standard NeRF model according to the camera image of the current posture, and initializing the network parameters of the standard NeRF model;

[0014] S24, constructing a joint loss function according to the camera image of the current posture, the sampling point and the depth information of the BIM model;

[0015] S25. Modeling is performed based on the joint loss function to generate a NeRF model based on the depth information of the BIM model.

[0016] On the basis of the above technical solution, preferably, step S24 specifically includes:

[0017] S241, calculating the color loss item of the camera image using L2 loss according to the camera image and sampling points of the current posture;

[0018] S242, calculating the depth loss item of the camera image using the depth information of the BIM model;

[0019] S243. Construct a joint loss function according to the color loss term and the depth loss term.

[0020] Based on the above technical solution, preferably, step S241 specifically includes:

[0021] Use the standard NeRF model to predict the color of the sampling point on each ray and get the predicted color ;

[0022] Get the actual color of the sampling point on each ray based on the camera image of the current pose ;

[0023] Use L2 loss to calculate the difference between the predicted color and the true color to get the color loss term .

[0024] On the basis of the above technical solution, preferably, the calculation formula of the color loss term is as follows:

[0025] ;

[0026] in, represents the color loss term of the rth ray, represents the predicted color of the rth ray, represents the true color of the rth ray, represents L2 loss.

[0027] Based on the above technical solution, preferably, the calculation formula of the depth loss term is as follows:

[0028] ;

[0029] ;

[0030] ;

[0031] in, represents the depth loss term of the rth ray, K represents the number of sampling points on a ray, represents the weight, i represents the i-th sampling point, represents the standard deviation of all sampling points on the rth ray, Represents the target depth of all sampling points on the rth ray, represents the predicted standard deviation of all sampling points on the rth ray, represents the predicted depth of all sampling points on the rth ray, Indicates the sampling point location.

[0032] On the basis of the above technical solution, preferably, step S3 specifically includes:

[0033] S31, setting the position and posture of the rendering camera, and obtaining the parameters of the rendering camera;

[0034] S32, randomly selecting a rendering ray on the camera, and performing a second sampling on each rendering ray to obtain a plurality of sampling points;

[0035] S33, respectively calculating the volume density and color value of each sampling point in each NeRF model, and performing integral volume rendering using the optimal NeRF model selection strategy of the volume density;

[0036] S34, repeating steps S32-S33 until all rendering rays on the camera are integrally rendered to obtain a fused image of the current camera pose.

[0037] More preferably, the second sampling includes fine sampling and coarse sampling, wherein the coarse sampling is 64-point coarse sampling and the fine sampling is 128-point fine sampling.

[0038] On the basis of the above technical solution, preferably, step S33 specifically includes:

[0039] Calculate the volume density and color value of each coarse sampling point in each NeRF model;

[0040] According to the probability density function of the distribution, the volume density and color value of each fine sampling point in each NeRF model are calculated;

[0041] Compare the volume density of the coarse sampling points in the NeRF model and the volume density of the fine sampling points in the NeRF model on each rendering ray, and select the NeRF model with the largest volume density as the optimal NeRF model of volume density;

[0042] The rendering rays are rendered integrally according to the volume density and color values ​​of the optimal NeRF model of the volume density.

[0043] On the basis of the above technical solution, preferably, the formula for integral volume rendering is:

[0044] ;

[0045] ;

[0046] ;

[0047] in, represents the color value of the optimal NeRF model for volume density, K represents the number of sampling points on a ray, represents the weight, Represents the length between the i-th sampling point and the i+1-th sampling point, represents the volume density of the optimal NeRF model for volume density, represents the distance between the jth sampling point and the j+1th sampling point, Represents the cumulative transmittance between the 0th sampling point and the i-th sampling point.

[0048] The NeRF model optimization and rendering method of the present invention has the following beneficial effects compared with the prior art:

[0049] By using the depth information of the BIM model to assist the NeRF model in modeling, the NeRF model's ability to capture scene geometry information is enhanced, and a multi-model integral fusion rendering strategy is used to render the NeRF model based on the depth information of the BIM model, which ensures the rendering quality while also taking into account the rendering calculation efficiency;

[0050] A NeRF model based on BIM depth information was constructed through the ray sampling point method. While maintaining the flexibility of the NeRF model, the BIM depth information was used to improve the accuracy of 3D scene reconstruction, making the most of the prior information provided by the BIM model, and improving the convergence speed of the NeRF model and the 3D scene reconstruction effect.

[0051] By utilizing the depth information provided by different BIM models, multiple NeRF models can be generated to represent the scene, which can capture the geometric details of the scene more comprehensively. The rendering strategy based on multi-model integration can fully utilize the advantages of different NeRF models in local areas to generate fused images consistent with the actual observed scene, thereby improving the rendering quality and stability. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only 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.

[0053] Figure 1 The figure is a flow chart of the NeRF model optimization and rendering method of the present invention. DETAILED DESCRIPTION

[0054] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.

[0055] As those skilled in the art can understand, a BIM model usually contains three-dimensional geometric information of scenes such as buildings and interior decoration. In addition to geometric information, a BIM model usually also contains material information (such as material, texture, etc.) and semantic information (such as room type, furniture category, etc.) of the scene.

[0056] like Figure 1As shown, the present invention provides a NeRF model optimization and rendering method based on BIM model depth information, comprising the following steps:

[0057] S1. Setting the pose of the BIM model in the world coordinate system, and setting the pose of the camera according to the pose of the BIM model in the world coordinate system;

[0058] It can be understood that the spatial pose information such as the position and orientation of the BIM model in the world coordinate system is extracted, and the position and orientation of the camera in the world coordinate system are determined according to the pose information of the BIM model in the world coordinate system, so as to set the pose parameters of the camera, so that the NeRF model can effectively utilize the geometric prior information provided by the BIM model.

[0059] By setting the pose of the BIM model in the world coordinate system, the position and direction of the camera in the world coordinate system are automatically determined according to the pose information of the BIM model, avoiding the tedious process of manually calibrating the camera pose, which helps to improve the accuracy and efficiency of 3D scene reconstruction.

[0060] S2. Generate a camera image of the current pose according to the camera pose, use the camera image of the current pose and the ray sampling point method to perform modeling based on the depth information of the BIM model, and generate a NeRF model based on the depth information of the BIM model.

[0061] Specifically, step S2 specifically includes:

[0062] S21, obtaining a camera image of a current posture according to the camera posture, and obtaining camera parameters and depth information of multiple BIM models;

[0063] S22, using a ray sampling point method to perform a first sampling on the camera image of the current position, to obtain a number of rays of the camera image; wherein a number of sampling points are set on each ray;

[0064] S23, generating a network structure of a standard NeRF model according to the camera image of the current posture, and initializing the network parameters of the standard NeRF model;

[0065] S24, constructing a joint loss function according to the camera image of the current posture, the sampling point and the depth information of the BIM model;

[0066] S25. Modeling is performed based on the joint loss function to generate multiple NeRF models based on the deep information of the BIM model.

[0067] It can be understood that using the 3D geometric information, material information, and semantic information of the BIM model as prior information helps the NeRF model to better capture the geometric details of the scene and improve the accuracy of 3D scene reconstruction, so that the NeRF model based on the depth information of the BIM model can perform 3D scene reconstruction even with a small number of images, thereby improving the reconstruction quality and stability of the NeRF model.

[0068] It can be understood that multiple BIM models are set according to actual application scenarios to generate multiple NeRF models based on BIM depth information. This application does not impose specific restrictions on the number of BIM models and the number of NeRF models based on BIM depth information, and can be set according to actual needs.

[0069] Using the camera image data and the depth information provided by the BIM model, a NeRF model based on BIM depth information was constructed through the ray sampling point method. This helps to improve the accuracy of NeRF model reconstruction by using BIM depth information while maintaining the flexibility of the NeRF model, and maximizes the use of the prior information provided by the BIM model, which helps to improve the convergence speed of the NeRF model and the three-dimensional scene reconstruction effect.

[0070] The ray sampling point method specifically includes:

[0071] A ray is generated at each pixel position of the camera image, and a number of sampling points are set along the ray, so that a number of rays of the camera image and a number of sampling points on the rays are obtained.

[0072] Specifically, step S2 is described with a specific embodiment:

[0073] Use the set camera pose parameters and BIM model to obtain the camera image at the current observation angle; at the same time, obtain the depth information of the corresponding image area from the BIM model;

[0074] For the obtained camera image, a ray sampling point method is used to generate a ray at each pixel position, and several sampling points are set along the ray, so that several rays and sampling points of the camera image and the three-dimensional coordinates corresponding to the sampling points are obtained;

[0075] Build a standard NeRF network model and initialize parameters. In the standard NeRF network model, the depth information provided by the BIM model is used as an additional input feature.

[0076] Construct a joint loss function that utilizes BIM depth information when optimizing the standard NeRF network model; for example, the error between the predicted depth and the BIM model depth is incorporated into the joint loss function to encourage the standard NeRF network model to learn a 3D structure that is closer to the BIM model;

[0077] By training and optimizing the standard NeRF network model, a NeRF model based on the deep information of the BIM model is finally obtained.

[0078] Further, step S24 specifically includes:

[0079] S241, calculating the color loss item of the camera image using L2 loss according to the camera image and sampling points of the current posture;

[0080] S242, calculating the depth loss item of the camera image using the depth information of the BIM model;

[0081] S243. Construct a joint loss function according to the color loss term and the depth loss term.

[0082] It can be understood that the color loss term can ensure that the NeRF model can accurately predict the color information of the rays in the camera image, while the depth loss term can use the prior depth information provided by the BIM model to guide the standard NeRF model to learn a 3D reconstruction that is closer to the real geometric structure.

[0083] By using the depth information provided by the BIM model to calculate the depth loss term, the prior depth information of the BIM model can be effectively introduced into the training process of the standard NeRF model, avoiding the ambiguity and uncertainty that may exist in 3D reconstruction based solely on camera image data, thereby significantly improving the reconstruction accuracy of the NeRF model in terms of geometric structure. At the same time, the depth loss term can be used as an effective regularization term to help the NeRF model better generalize to these complex scenes.

[0084] Furthermore, step S241 specifically includes:

[0085] Use the standard NeRF model to predict the color of the sampling point on each ray and get the predicted color ;

[0086] Get the actual color of the sampling point on each ray based on the camera image of the current pose ;

[0087] Use L2 loss to calculate the difference between the predicted color and the true color to get the color loss term .

[0088] Among them, the calculation formula of the color loss term is as follows:

[0089]

[0090] in, represents the color loss term of the rth ray, represents the predicted color of the rth ray, represents the true color of the rth ray, represents L2 loss.

[0091] The calculation formula of the depth loss term is as follows:

[0092]

[0093]

[0094]

[0095] in, represents the depth loss term of the rth ray, K represents the number of sampling points on a ray, represents the weight, i represents the i-th sampling point, represents the target standard deviation of all sampling points on the rth ray, Represents the target depth of all sampling points on the rth ray, represents the predicted standard deviation of all sampling points on the rth ray, represents the predicted depth of all sampling points on the rth ray, Indicates the sampling point location.

[0096] When the predicted depth Depth of target The difference between the two is greater than the target standard deviation , indicating that the predicted value of the depth information is quite different from the true value. At this time, the depth loss term will produce a larger value to make the predicted depth of the ray approach the target depth. > greater than target standard deviation When , it means that the distribution uncertainty of the predicted depth is too large. At this time, the depth loss term will also produce an increased value to make the predicted depth error of the ray within the target standard deviation. limited The loss range is between 0 and positive infinity, which prevents the NeRF model from predicting too large a variance value, thus causing numerical instability.

[0097] The calculation formula of the joint loss function is as follows:

[0098]

[0099] in, represents the color loss term, represents the depth loss term, r represents the ray, R represents the ray set, represents the hyperparameter used to adjust the weight of the depth loss term.

[0100] This application fully utilizes the color prediction capabilities of the standard NeRF model. The NeRF model is used to predict the color of the sampling points on each ray to obtain the predicted color, and the L2 loss is used to calculate the difference between the predicted color and the true color to obtain the color loss term. The depth information provided by the BIM model is cleverly integrated, and the predicted depth and predicted standard deviation of the sampling points on the ray are calculated in combination with the BIM model data, and a depth loss term is constructed. By performing a weighted summation of the color loss term and the depth loss term to construct a joint loss function, the reconstruction performance of the NeRF model in both color and geometric structure can be simultaneously optimized, thereby greatly improving the overall reconstruction accuracy.

[0101] S3. Use the multi-model integral fusion rendering strategy to render the NeRF model based on the depth information of the BIM model to generate a fused image of the current camera pose.

[0102] Specifically, step S3 specifically includes:

[0103] S31, setting the position and posture of the rendering camera, and obtaining the parameters of the rendering camera;

[0104] S32, randomly selecting a rendering ray on the camera, and performing a second sampling on each rendering ray to obtain a plurality of sampling points;

[0105] S33, respectively calculating the volume density and color value of each sampling point in each NeRF model, and performing integral volume rendering using the optimal NeRF model selection strategy of the volume density;

[0106] S34, repeating steps S32-S33 until all rendering rays on the camera are integrally rendered, and then obtaining a fused image of the current camera posture.

[0107] By utilizing the depth information provided by different BIM models, multiple NeRF models can be generated to represent the scene, which can capture the geometric details of the scene more comprehensively. The rendering strategy based on multi-model integration makes full use of the advantages of different NeRF models in local areas to generate fused images consistent with the actual observed scene, thereby improving the rendering quality and stability.

[0108] In one embodiment of the present application, the second sampling includes fine sampling and coarse sampling, wherein the coarse sampling is 64-point coarse sampling, and the fine sampling is 128-point fine sampling.

[0109] It is understandable that the use of 64-point coarse sampling and 128-point fine sampling can greatly improve the sampling accuracy and resolution. The detailed distribution of sampling points can better capture the detailed features in the scene, thereby improving the quality and authenticity of the final rendering results, and facilitating more accurate reconstruction and rendering.

[0110] Further, step S33 specifically includes:

[0111] Calculate the volume density and color value of each coarse sampling point in each NeRF model;

[0112] According to the probability density function of the distribution, the volume density and color value of each fine sampling point in each NeRF model are calculated;

[0113] Compare the volume density of the coarse sampling points in the NeRF model and the volume density of the fine sampling points in the NeRF model on each rendering ray, and select the NeRF model with the largest volume density as the optimal NeRF model of volume density;

[0114] The rendering rays are rendered integrally according to the volume density and color values ​​of the optimal NeRF model of the volume density.

[0115] The formula for integral volume rendering is:

[0116]

[0117]

[0118]

[0119] in, The color value of the optimal NeRF model representing the volume density, represents the weight, Represents the length between the i-th sampling point and the i+1-th sampling point, represents the volume density of the optimal NeRF model for volume density, represents the distance between the jth sampling point and the j+1th sampling point, Represents the cumulative transmittance between the 0th sampling point and the i-th sampling point.

[0120] By combining coarse sampling and fine sampling, the volume density and color value of each sampling point in the NeRF model can be calculated more accurately. The optimal NeRF model selection strategy based on volume density ensures that each sampling point is rendered using the most optimal NeRF model, which can maximize the advantages of different NeRF models in local areas and improve the quality of the overall rendering results and the degree of detail restoration.

[0121] This application aligns the pose information of the BIM model in the world coordinate system with the camera pose, effectively utilizes the depth information of the BIM model to assist the modeling of the NeRF model, and enhances the NeRF model's ability to capture scene geometric information, so that a high-quality NeRF model can be established using only a few images, thereby improving the accuracy and stability of the model. A multi-model integral fusion rendering strategy is used to render the NeRF model based on the depth information of the BIM model, and the advantages of different NeRF models are combined to generate higher quality rendering results. The prior information of the BIM model is used to optimize the NeRF model. In the rendering stage, multiple NeRF models and BIM models are directly integrated and fused to generate a fused image at the current perspective, which ensures the rendering quality while also taking into account the rendering computational efficiency.

[0122] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A NeRF model optimization and rendering method based on BIM model depth information, characterized in that: The following steps are involved: S1. Setting the pose of the BIM model in the world coordinate system, and setting the pose of the camera according to the pose of the BIM model in the world coordinate system; S2. Generate a camera image of the current pose according to the camera pose, use the camera image of the current pose and the ray sampling point method to perform modeling based on the depth information of the BIM model, and generate a NeRF model based on the depth information of the BIM model; S3, using a rendering strategy of multi-model integral fusion to render the NeRF model based on the depth information of the BIM model to generate a fused image of the current camera pose; Step S2 specifically includes: S21, obtaining a camera image of a current posture according to the camera posture, and obtaining camera parameters and depth information of multiple BIM models; S22, using a ray sampling point method to perform a first sampling on the camera image of the current position, to obtain a number of rays of the camera image; wherein a number of sampling points are set on each ray; S23, generating a network structure of a standard NeRF model according to the camera image of the current posture, and initializing the network parameters of the standard NeRF model; S24, constructing a joint loss function according to the camera image of the current posture, the sampling point and the depth information of the BIM model; S25, modeling based on the joint loss function to generate multiple NeRF models based on the deep information of the BIM model; Step S24 specifically includes: S241, calculating the color loss item of the camera image using L2 loss according to the camera image and sampling points of the current posture; S242, calculating the depth loss item of the camera image using the depth information of the BIM model; S243, constructing a joint loss function according to the color loss term and the depth loss term; The calculation formula of the depth loss term is as follows: ; ; ; in, represents the depth loss term of the rth ray, K represents the number of sampling points on a ray, represents the weight, i represents the i-th sampling point, represents the standard deviation of all sampling points on the rth ray, Represents the target depth of all sampling points on the rth ray, represents the predicted standard deviation of all sampling points on the rth ray, represents the predicted depth of all sampling points on the rth ray, Indicates the sampling point location.

2. The NeRF model optimization and rendering method based on BIM model depth information as claimed in claim 1, characterized in that: Step S241 specifically includes: Use the standard NeRF model to predict the color of the sampling point on each ray and get the predicted color ; Get the actual color of the sampling point on each ray based on the camera image at the current pose ; Use L2 loss to calculate the difference between the predicted color and the true color to get the color loss term .

3. The NeRF model optimization and rendering method based on BIM model depth information as claimed in claim 2, characterized in that: The calculation formula of the color loss term is as follows: ; in, represents the color loss term of the rth ray, represents the predicted color of the rth ray, represents the true color of the rth ray, represents L2 loss.

4. The NeRF model optimization and rendering method based on BIM model depth information as claimed in claim 2, characterized in that: Step S3 specifically includes: S31, setting the position and posture of the rendering camera, and obtaining the parameters of the rendering camera; S32, randomly selecting a rendering ray on the camera, and performing a second sampling on each rendering ray to obtain a plurality of sampling points; S33, respectively calculating the volume density and color value of each sampling point in each NeRF model, and performing integral volume rendering using the optimal NeRF model selection strategy of the volume density; S34, repeating steps S32-S33 until all rendering rays on the camera are integrally rendered to obtain a fused image of the current camera pose.

5. The NeRF model optimization and rendering method based on BIM model depth information as claimed in claim 4, characterized in that: The second sampling includes fine sampling and coarse sampling, wherein the coarse sampling is 64-point coarse sampling and the fine sampling is 128-point fine sampling.

6. The NeRF model optimization and rendering method based on BIM model depth information as claimed in claim 5, characterized in that: Step S33 specifically includes: Calculate the volume density and color value of each coarse sampling point in each NeRF model; According to the probability density function of the distribution, the volume density and color value of each fine sampling point in each NeRF model are calculated; Compare the volume density of the coarse sampling points in the NeRF model and the volume density of the fine sampling points in the NeRF model on each rendering ray, and select the NeRF model with the largest volume density as the optimal NeRF model of volume density; The rendering rays are rendered integrally according to the volume density and color values ​​of the optimal NeRF model of the volume density.

7. The NeRF model optimization and rendering method based on BIM model depth information as claimed in claim 6, characterized in that: The formula for the integral volume rendering is: ; ; ; in, represents the color value of the optimal NeRF model for volume density, K represents the number of sampling points on a ray, represents the weight, Represents the length between the i-th sampling point and the i+1-th sampling point, represents the volume density of the optimal NeRF model for volume density, represents the distance between the jth sampling point and the j+1th sampling point, Represents the cumulative transmittance between the 0th sampling point and the i-th sampling point.