Visual resource rendering method and device

By determining the visual resources and viewing angle parameters of the scene, constructing and segmenting the grid data, calculating and compressing the initial data, and processing it using the visual resource distribution model, the problem of low efficiency in large-scale scene rendering is solved and high-quality three-dimensional rendering is achieved. Effect.

CN118710799APending Publication Date: 2024-09-27ALIBABA (CHINA) CO LTD
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410613062.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

When processing large-scale scenes, existing 3D reconstruction technology has problems with inaccurate scene expression and insufficient rendering efficiency, making it difficult to quickly and accurately construct and render high-quality images and videos.

Method used

By determining the scene visual resources and visual resource perspective parameters of the target scene, construct the scene grid data and segment it, calculate the initial visual resource data and compress it, and use the visual resource distribution model to process and generate three-dimensional rendering visual resources. Implement data parallel processing and redundant data filtering to reduce waste of rendering computing resources.

Benefits of technology

Without affecting rendering performance, high-quality reconstruction of large-scale scenes is achieved, rendering calculation speed and efficiency are improved, and data storage requirements are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710799A
    Figure CN118710799A
Patent Text Reader

Abstract

The embodiment of the invention provides a visual resource rendering method and device. The method comprises the steps that scene visual resources of a target scene and visual resource view angle parameters of the scene visual resources are determined; constructing scene grid data of the target scene according to the visual resource view angle parameters, and segmenting the scene grid data based on the visual resource view angle parameters to obtain a plurality of scene grid sub-data; calculating initial visual resource data corresponding to the plurality of scene grid sub-data, and compressing the plurality of initial visual resource data according to a preset data compression strategy to obtain a plurality of target visual resource data; and processing the plurality of target visual resource data through the visual resource distribution model, and generating a three-dimensional rendering visual resource of the target scene based on a processing result. And high-quality reconstruction of a large-scale scene is realized while the rendering performance is not influenced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present specification relate to the field of computer technology, and more particularly to a method and device for rendering visual resources. Background Art

[0002] With the development of computer vision, computer graphics processing and 3D reconstruction technology, modeling real scenes from visual resources such as image data and video data and rendering photo-realistic images, videos and other visual resources are important topics in computer vision and computer graphics. There are two important technical indicators for the 3D reconstruction of scenes: the accuracy of 3D reconstruction and the efficiency of scene display and rendering. At present, 3D (3D-Three Dimensions) Gaussian is a new scene expression method. Although it can obtain good evaluation indicators in terms of accuracy and rendering efficiency, it still has problems of inaccurate scene expression and insufficient rendering efficiency when dealing with large-scale scenes. Therefore, for large-scale scenes, how to quickly and accurately construct and render scene graph visual resources is a problem that needs to be solved urgently. Summary of the invention

[0003] In view of this, an embodiment of this specification provides a visual resource rendering method. One or more embodiments of this specification also relate to a visual resource rendering device, a smart city visual resource rendering method, a smart city visual resource rendering device, a computing device, a computer-readable storage medium and a computer program product to solve the technical defects existing in the prior art.

[0004] According to a first aspect of an embodiment of this specification, a visual resource rendering method is provided, comprising:

[0005] Determining scene visual resources of a target scene and visual resource viewing angle parameters of the scene visual resources;

[0006] Constructing scene grid data of the target scene according to the visual resource viewing angle parameter, and segmenting the scene grid data based on the visual resource viewing angle parameter to obtain a plurality of scene grid sub-data;

[0007] Calculating initial visual resource data corresponding to the plurality of scene grid sub-data, and compressing the plurality of initial visual resource data according to a preset data compression strategy to obtain a plurality of target visual resource data;

[0008] The plurality of target visual resource data are processed through a visual resource distribution model, and a three-dimensional rendering visual resource of the target scene is generated based on the processing result.

[0009] According to a second aspect of an embodiment of this specification, a visual resource rendering device is provided, including:

[0010] A determination module, configured to determine a scene visual resource of a target scene and a visual resource viewing angle parameter of the scene visual resource;

[0011] A segmentation module is configured to construct scene grid data of the target scene according to the visual resource perspective parameter, and segment the scene grid data based on the visual resource perspective parameter to obtain a plurality of scene grid sub-data;

[0012] A compression module is configured to calculate the initial visual resource data corresponding to the plurality of scene grid sub-data, and compress the plurality of initial visual resource data according to a preset data compression strategy to obtain a plurality of target visual resource data;

[0013] The generating module is configured to process the plurality of target visual resource data through a visual resource distribution model, and generate a three-dimensional rendering visual resource of the target scene based on the processing result.

[0014] According to a third aspect of an embodiment of this specification, a method for rendering visual resources of a smart city is provided, comprising:

[0015] Determining scene visual resources of a smart city scene and visual resource viewing angle parameters of the scene visual resources;

[0016] Constructing scene grid data of the smart city scene according to the visual resource perspective parameter, and segmenting the scene grid data based on the visual resource perspective parameter to obtain a plurality of scene grid sub-data;

[0017] Calculating initial visual resource data corresponding to the plurality of scene grid sub-data, and compressing the plurality of initial visual resource data according to a preset data compression strategy to obtain a plurality of smart city visual resource data;

[0018] The plurality of smart city visual resource data are processed through a visual resource distribution model, and a three-dimensional rendered visual resource of the smart city scene is generated based on the processing result.

[0019] According to a fourth aspect of an embodiment of this specification, a smart city visual resource rendering device is provided, comprising:

[0020] A determination module is configured to determine scene visual resources of a smart city scene and visual resource viewing angle parameters of the scene visual resources;

[0021] A construction module is configured to construct scene grid data of the smart city scene according to the visual resource perspective parameter, and segment the scene grid data based on the visual resource perspective parameter to obtain a plurality of scene grid sub-data;

[0022] A compression module is configured to calculate the initial visual resource data corresponding to the plurality of scene grid sub-data, and compress the plurality of initial visual resource data according to a preset data compression strategy to obtain a plurality of smart city visual resource data;

[0023] The generation module is configured to process the plurality of smart city visual resource data through a visual resource distribution model, and generate a three-dimensional rendering visual resource of the smart city scene based on the processing result.

[0024] According to a fifth aspect of an embodiment of this specification, a computing device is provided, including:

[0025] Memory and processor;

[0026] The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the steps of the above method are implemented.

[0027] According to a sixth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores a computer program / instruction, and the steps of the above method are implemented when the computer program / instruction is executed by a processor.

[0028] According to a seventh aspect of the embodiments of this specification, a computer program product is provided, comprising a computer program / instruction, which implements the steps of the above method when executed by a processor.

[0029] An embodiment of the present specification realizes that by determining the scene visual resources of the target scene and the visual resource perspective parameters of the scene visual resources, it is convenient to subsequently construct the scene grid data of the target scene according to the visual resource perspective parameters, provide a data basis for subsequent three-dimensional modeling and rendering, and segment the scene grid data based on the visual resource perspective parameters to obtain multiple scene grid sub-data, thereby realizing the division of the scene grid data into multiple different scene grid sub-data, and using the subsequent data parallel processing. After calculating the initial visual resource data corresponding to the multiple scene grid sub-data, the multiple initial visual resource data are compressed according to the preset data compression strategy to obtain multiple target visual resource data, which reduces the resource consumption of the visual resource data when caching and storing, improves the rendering calculation speed, filters the target visual resource data through the visual resource distribution model to obtain the scene visual resource data, and further filters out the redundant data in the target visual resource data, reduces the waste of rendering calculation resources caused by useless data, and improves the rendering efficiency of visual resources. Finally, by rendering the scene visual resource data, multiple scene sub-visual resources are obtained, and the three-dimensional rendering visual resources of the target scene are generated based on the multiple scene sub-visual resources, thereby achieving high-quality reconstruction of large-scale scenes without affecting the rendering performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 is a flow chart of a visual resource rendering method provided by an embodiment of this specification;

[0031] Figure 2 is a process flow chart of a visual resource rendering method provided by an embodiment of the present specification;

[0032] Figure 3 It is a structural diagram of a visual resource rendering device provided by an embodiment of this specification;

[0033] Figure 4 It is a flow chart of a method for rendering visual resources of a smart city provided by an embodiment of this specification;

[0034] Figure 5 It is a structural diagram of a smart city visual resource rendering device provided by an embodiment of this specification;

[0035] Figure 6 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0036] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0037] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0038] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0039] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0040] First, the terms involved in one or more embodiments of this specification are explained.

[0041] Volume rendering: Volume rendering is a computer graphics technology used to convert three-dimensional data fields (such as medical CT (Computed Tomography), MRI (Magnetic Resonance Imaging) scanning data, meteorological data, fluid simulation results, etc.) into two-dimensional images in order to intuitively display and analyze the three-dimensional information contained therein.

[0042] 3D Gaussian Splatter: 3D Gaussian Splatter is a volume rendering process that uses a 3D Gaussian kernel as the basic rendering unit. Specifically, it refers to a technique that uses a 3D Gaussian function to diffusely render points in three-dimensional space.

[0043] Structure from Motion: Structure from Motion (SFM) is an SFM algorithm, which is a method for automatically recovering camera intrinsic and extrinsic parameters and scene 3D structure from a set of unregistered 2D image sequences.

[0044] Multi-view stereo vision: Multi-view stereo vision (MVS) is a method that further generates dense and continuous three-dimensional scene models from multi-view images based on known camera parameters.

[0045] Level of Detail Expression: Level of Detail (LOD) is a data management strategy widely used in 3D computer graphics. It creates scene representations of different levels of precision and dynamically selects the appropriate level of detail for rendering based on the distance or perspective of the observer to balance rendering quality and computing resource consumption.

[0046] Smart city: Supported by information technology and communication technology, it aims to achieve a new form of more scientific, efficient and better urban life. It improves urban operation efficiency, improves public service levels and forms a low-carbon urban ecosystem through comprehensive and thorough perception of urban operation data, ubiquitous broadband interconnection, intelligent fusion applications and people-oriented sustainable innovation.

[0047] Digital Park: A park that takes digital economy as its core and integrates emerging technologies and industries such as information technology, the Internet, and artificial intelligence. It aims to promote innovation and entrepreneurship, cultivate emerging industries, promote the development of the digital economy, and provide a good innovation and entrepreneurship environment for enterprises and individuals.

[0048] For the three-dimensional reconstruction of the scene, there are two most important core technical indicators, one is the accuracy of the three-dimensional reconstruction, and the other is the display and rendering efficiency of the three-dimensional reconstructed scene. The traditional three-dimensional reconstruction solution based on triangle patches has a relatively large advantage in rendering and display efficiency, but there are obvious problems with the accuracy of the scene, especially the ability to express details. In the past two years, the three-dimensional reconstruction solution based on NeRF (Neural Radiance Fields) has greatly improved the visual accuracy, but it cannot be displayed in a more efficient real-time manner. As a new way to express the scene, 3D Gaussian can obtain better evaluation indicators in terms of accuracy and rendering efficiency. However, when the data scale is enlarged to a larger-scale scene, the original 3D Gaussian expression and rendering solution still has shortcomings.

[0049] Based on this, a visual resource rendering method is provided in this specification. This specification also involves a visual resource rendering device, a smart city visual resource rendering device, a computing device, a computer-readable storage medium and a computer program product, which are described in detail one by one in the following embodiments.

[0050] See also Figure 1 , Figure 1 A flowchart of a visual resource rendering method provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0051] Step 102: Determine scene visual resources of the target scene and visual resource viewing angle parameters of the scene visual resources.

[0052] In practical applications, in the reconstruction of three-dimensional visual resources for large-scale scenes, the large amount of scene data leads to slow rendering speed or poor rendering quality of visual resources. The visual resource rendering method provided in this specification can achieve high-quality real-time rendering performance while ensuring efficient training based on 3D Gaussian. At the same time, LOD training and rendering algorithms are introduced to expand the expression ability of 3D Gaussian for large scenes without affecting performance.

[0053] Among them, the target scene can be understood as a large-scale scene, the target scene is the scene environment that needs to be reconstructed in 3D, the scene visual resources of the target scene can be understood as the two-dimensional image or video corresponding to the target scene, and the number of scene visual resources can be multiple, so the scene visual resources can be a group of images or videos taken from different angles of the target scene. The visual resource perspective parameters of the scene visual resources can be understood as the camera parameters of the image photos or videos. The camera parameters may include camera internal and external parameters. The camera internal and external parameters are basic concepts in the field of photogrammetry, which are used to describe the optical characteristics of the camera and the spatial position and posture relative to the scene. In specific implementation, after obtaining a group of scene visual resources for the target scene, the sum of the objects in the environment range that need to be reconstructed in 3D in the target scene can be determined, and the visual resource perspective parameters of the group of scene visual resources can be determined.

[0054] Furthermore, in order to subsequently perform multi-scale and multi-level data expression for objects in the target scene, it is necessary to determine the visual resource perspective parameters of the scene visual resources. Specifically, determining the visual resource perspective parameters of the scene visual resources includes: generating a visual resource sequence according to the scene visual resources, calculating camera optical parameters and spatial pose parameters corresponding to the scene visual resources according to the visual resource sequence; and using the camera optical parameters and the spatial pose parameters as the visual resource perspective parameters of the scene visual resources.

[0055] Among them, the visual resource sequence can be understood as a sequence composed of multiple scene visual resources of the target scene. According to the visual resource sequence, the camera optical parameters and idle pose parameters corresponding to these scene visual resources can be calculated. The camera optical parameters are the camera internal parameters, which usually include focal length, principal point position, pixel size, distortion parameters, etc. The camera optical parameters determine the projection relationship from points in three-dimensional space to pixels on the image plane in two-dimensional images or videos, that is, the internal projection model of the camera. The spatial pose parameters are the camera external parameters, which reflect the absolute position and direction of the camera in three-dimensional space. They are usually represented by rotation matrices and translation neighbors. The spatial pose parameters describe the posture and position of the camera for a fixed coordinate system such as the world coordinate system, and determine the relative position of the midpoint of the scene under different camera views. The calculated camera optical parameters and spatial pose parameters are used as the visual resource viewing angle parameters of the scene visual resources.

[0056] In practical applications, the SFM algorithm can be used to recover the camera's internal and external parameters. The SFM algorithm is a method that automatically recovers these internal and external parameters and the three-dimensional structure of the scene from a set of unaligned two-dimensional visual resource sequences. After processing by the SFM algorithm, the internal and external parameters of all cameras involved in the reconstruction and a sparse three-dimensional point cloud are obtained. This information provides the basis for the subsequent acquisition of scene depth information.

[0057] Step 104: constructing scene grid data of the target scene according to the visual resource viewing angle parameter, and segmenting the scene grid data based on the visual resource viewing angle parameter to obtain a plurality of scene grid sub-data.

[0058] In practical applications, after determining the visual resource perspective parameters, the scene mesh data of the target scene can be constructed according to the visual resource perspective parameters. The scene mesh data is a mesh model (mesh) used to represent the scene surface of the target scene, wherein the mesh model can be a mesh model of various shapes such as a triangular mesh model and a quadrilateral mesh model. In specific implementation, the MVS algorithm can be used to reconstruct the basic scene mesh. The MVS algorithm is a method that further generates a dense and continuous three-dimensional scene model from multi-view images or videos based on known camera parameters. It generates the surface mesh mesh of the scene, i.e., the scene mesh data, based on the camera internal and external parameters and sparse point cloud provided by SfM.

[0059] Among them, after obtaining the scene grid data of the target scene, in order to reduce the amount of scene data without affecting the subsequent scene rendering, the scene grid data can be segmented based on the visual resource perspective parameters to obtain multiple scene grid sub-data. The specific segmentation of the scene grid data can be based on the data expression method of reference LOD, and the scene grid data is divided into M*N blocks with overlapping areas, where M and N represent the plane division of the two-dimensional space, for example, the x-axis is divided into M parts, and the y-axis is divided into N parts, and each block corresponds to its own scene grid sub-data.

[0060] Furthermore, in order to correctly construct the scene grid data of the target scene, it is necessary to first obtain the point cloud data of the target scene, and specifically construct the scene grid data of the target scene according to the visual resource perspective parameters, including: generating the point cloud data of the target scene according to the visual resource perspective parameters; and constructing the scene grid data of the target scene based on the point cloud data.

[0061] Among them, the point cloud data of the target scene can be understood as a sparse three-dimensional point cloud of the target scene generated by using the SFM algorithm based on the visual resource perspective parameters. After the point cloud data of the target scene is generated, the point cloud data can be used to construct the scene grid data of the target scene.

[0062] In practical applications, the MVS algorithm can be used to extract more detailed depth information from multi-view images or videos under the condition of known camera parameters, generate dense three-dimensional point clouds, and then construct a triangular network model mesh representing the scene surface.

[0063] Furthermore, in order to subsequently perform efficient and parallel 3D Gaussian training and rendering based on the scene mesh data, the scene mesh data of the large-scale scene can be preprocessed and organized in blocks. Specifically, the scene mesh data can be segmented based on the visual resource perspective parameters to obtain a plurality of scene mesh sub-data, including: determining the camera optical center coordinates according to the visual resource perspective parameters, and performing projection point compensation on the camera optical center coordinates to obtain the compensated camera optical center coordinates; segmenting the scene mesh data according to the compensated camera optical center coordinates to obtain the plurality of scene mesh sub-data.

[0064] The camera optical center coordinates refer to the position of the center of the camera optical system in three-dimensional space, usually represented by a three-dimensional vector (X, Y, Z), where X, Y, and Z correspond to the horizontal, vertical, and vertical coordinates of the optical center in the world coordinate system (or user-defined reference coordinate system), respectively. Projection point compensation for the camera optical center coordinates can be understood as translating the horizontal coordinates of the camera optical center to the intersection of the optical center and the scene at a height to optimize the basis for data segmentation. The compensated camera optical center coordinates are used as the basis for subsequent scene grid data segmentation.

[0065] In practical applications, after obtaining the compensated camera optical center coordinates, you can refer to the LOD data expression method. At the highest level, consider the distribution of data and divide the data into M*N blocks with overlapping areas. Divide the scene data into blocks of different levels, each corresponding to a different level of detail, to adapt to dynamic detail adjustments when observation conditions change. In specific implementation, refer to the compensated optical center coordinates, combined with scene height information, viewpoint distribution and other factors, and divide the scene data into M*N blocks with overlapping areas. These blocks maintain the original details at the highest level. As the LOD level increases, the resolution is downsampled layer by layer to achieve a gradual simplification of details.

[0066] Based on this, through data segmentation, hierarchical division and resolution adjustment, a multi-scale scene data structure is constructed that can adapt to different detail requirements, facilitate parallel processing and efficient rendering.

[0067] Furthermore, in order to be able to further perform refined data management on the scene grid data to facilitate subsequent rendering optimization, the divided data can be further layered. Specifically, the scene grid data is segmented according to the compensated camera optical center coordinates to obtain multiple scene grid sub-data, including: segmenting the scene grid data according to the compensated camera optical center coordinates to obtain multiple scene grid initial sub-data; performing quadtree data layering on the multiple scene grid initial sub-data to obtain the multiple scene grid sub-data.

[0068] Among them, after the scene grid data is divided according to the compensated camera optical center coordinates, the scene grid initial sub-data corresponding to each LOD block after LOD segmentation is obtained, and then the scene grid initial sub-data of each LOD block can be quadtree-layered to obtain scene grid sub-data with a multi-level data structure.

[0069] In practical applications, since the highest level considers the distribution of data and divides the data into M*N blocks with overlapping areas, each block of data at the high level can be divided into 4 blocks of data at the next level according to the quadtree, and this is repeated several times; at the same time, the image resolution of each level of data is set, the lowest level is the original resolution, and the resolution is downsampled to 1 / 4 (the length and width are halved) for each level up. In specific implementation, the quadtree data structure is used to recursively subdivide each LOD block. On the basis of each high-level block, it is evenly divided into four sub-blocks of the next level to form a hierarchical structure with variable depth. The closer the block is to the leaf node, the smaller its size and the richer its details. Then set the image resolution of each level of data. The lowest level (original resolution) maintains the highest details, and as the level increases, the resolution is gradually downsampled to 1 / 4 (the length and width are halved). In this way, the amount of data of each block at different levels remains at the same order of magnitude, which is conducive to parallel training and rendering.

[0070] Based on this, around the LOD strategy, we optimized the blocking basis through projection point compensation, implemented LOD level blocking and quadtree subdivision, and resolution adjustment, and built a data organization structure that can adapt to large-scale scenes, support dynamic detail adjustment, and facilitate efficient rendering.

[0071] Step 106: Calculate the initial visual resource data corresponding to the plurality of scene grid sub-data, and compress the plurality of initial visual resource data according to a preset data compression strategy to obtain a plurality of target visual resource data.

[0072] In practical applications, after obtaining the scene grid sub-data of each LOD block, 3D Gaussians or grid models can be used to express the scene. Using 3D Gaussians to express the scene means using Gaussian functions to express the objects in the target scene. In specific implementation, when using 3D Gaussians to express the scene, the quality of the rendering effect is proportional to the number of 3D Gaussians. In order to control the storage consumption of a single block at multiple scales, the 3D Gaussian data can be stored and compressed.

[0073] Among them, the preset data compression strategy can be understood as a strategy for storing and compressing 3D Gaussians. The preset data compression strategy is used to determine the way to compress 3D Gaussians. The preset data compression strategy in an embodiment of this specification includes two aspects of compression methods, namely reducing the storage consumption of a single 3D Gaussian and reducing the total number of 3D Gaussians. After compressing the 3D Gaussians of each LOD block using the preset data compression strategy, multiple target visual resource data can be obtained, and the target visual resource data is the compressed 3D Gaussians.

[0074] Furthermore, compressing a plurality of initial visual resource data according to a preset data compression strategy to obtain a plurality of target visual resource data includes: classifying a plurality of initial visual resource data according to the preset data compression strategy to obtain a first visual resource data class and a second visual resource data class, wherein the color information between the first visual resource data class and the second visual resource data class is different; calculating a first color weight score of each first visual resource data in the first visual resource data class, and a second color weight score of each second visual resource data in the second visual resource data class; compressing the first visual resource data class according to the first color weight score to obtain a compressed first visual resource data class, and compressing the second visual resource data class according to the second color weight score to obtain a compressed second visual resource data class; and using the compressed first visual resource data class and the compressed second visual resource data class as target visual resource data.

[0075] In practical applications, in order to address the uneven frequency distribution of illumination information of scene objects in the target scene, the visual resource rendering method provided in this specification decomposes the scene into diffuse-like 3D Gaussian (n=0) and metal-like 3D Gaussian (n=4), where n is the spherical harmonic coefficient. Most of the color information in the scene is diffuse-like, and high-frequency color information such as reflection or highlight is relatively small. Compared with the uniform use of third-order coefficients, this decomposition can reduce the N-order spherical harmonic coefficients stored in a large number of 3D Gaussians from 45 coefficients to 3, and storage is greatly reduced. Although the number of coefficients of the remaining 3D Gaussians is slightly increased, the storage can be kept level by performing texture mapping. Therefore, after obtaining the initial visual resource data corresponding to the LOD block, the initial visual resource data of each LOD block can be classified into a first visual resource data class and a second visual resource data class, wherein the first visual resource data class is a diffuse reflection 3D Gaussian class, and the second visual resource data class is a metal reflection 3D Gaussian class. The color information between the two visual resource data classes is different, that is, the color information of the scene objects corresponding to the two visual resource data classes is different. The above method can reduce the storage consumption of a single 3D Gaussian, so that high-frequency color information is still effectively expressed, and the storage demand does not increase significantly.

[0076] In a specific implementation, after all the initial visual resource data are classified to obtain the first visual resource data class and the second visual resource data class, the contribution weight of each 3D Gaussian to the pixel color during the rendering process is calculated respectively, and the calculated contribution weight is the color weight score, such as the first color weight score of the first visual resource data in the first visual resource data class, or the second color weight score of the second visual resource data in the second visual resource data class. After calculating the color weight score corresponding to each 3D Gaussian, data compression can be performed based on the color weight score. The specific data compression strategy is to eliminate 3D Gaussians with lower color weight scores. The above method can be used to reduce the total number of 3D Gaussians, that is, Gaussian elimination, and compress 3D Gaussians under the condition of less rendering quality loss, thereby obtaining compressed visual resource data.

[0077] In a specific embodiment of the present specification, the compression of visual resource data can also be achieved through a neural network model. The specific compression training process of the neural network model is: first train a diffuse reflection 3D Gaussian, initialized to the sparse reconstructed point cloud of SFM, call K times Gaussian culling in this process, and then use the rendering residual to train a metal reflection 3D Gaussian, initialized to a random point cloud, the number of random point clouds is the same as the number of SFM sparse point clouds, and this process can also call K times Gaussian culling. After the above training converges, the two types of 3D Gaussians are jointly optimized. The joint optimization is to use the two types of 3D Gaussians to render the visual resources together, and then calculate the rendering loss value with the standard visual resources and send it back, so as to optimize the model parameters.

[0078] Based on this, by dividing the 3D Gaussians in the scene into diffuse reflection and metal reflection, and performing corresponding storage compression, the scene visual resource data can be effectively compressed, thereby significantly reducing data storage requirements and computational complexity while ensuring rendering effects.

[0079] Furthermore, in order to better store the compressed 3D Gaussian data, different types of visual resource data can be stored in a specific storage format. Specifically, after obtaining multiple target visual resource data, the method also includes: storing the compressed first visual resource data class in a point cloud format, and storing the compressed second visual resource data class in a visual resource format.

[0080] In practical applications, diffuse reflection 3D Gaussians are directly stored in PLY point cloud format; metal reflection 3D Gaussians are stored as 2D images through octahedral texture mapping of SH coefficients, and other attributes (such as 3D point position, scaling factor, rotation quaternion and transparency) are also stored in PLY point cloud format.

[0081] Among them, the point cloud format (Polygon File Format, PLY) is a 3D model file format that can record point cloud data. The visual resource format is to convert the (Spherical Harmonics, SH) coefficients into a 2D image or 2D video storage by octahedral texture mapping. This method uses the efficient compression characteristics of image formats and video formats to reduce the storage requirements of metal reflective parts.

[0082] In specific implementation, after the above compression and storage, about 1 million 3D Gaussian functions are usually retained for each LOD block. This shows that the number of original Gaussian functions is effectively reduced while ensuring the rendering quality. The compression ratio is about 12 times, which means that after compression, the amount of data required for storage is only about 1 / 12 of that before compression, which significantly reduces the storage cost and the computational complexity of subsequent processing.

[0083] Step 108: Processing the plurality of target visual resource data by using a visual resource distribution model, and generating a three-dimensional rendering visual resource of the target scene based on the processing result.

[0084] In practical applications, after obtaining the compressed and stored target visual resource data, the target visual resource data can be input into the visual resource distribution model for processing, and based on the processing result, the final three-dimensional rendering visual resource of the target scene is generated.

[0085] Among them, the visual resource distribution model can be a Gaussian distribution model or a mesh model. The Gaussian distribution model is used to filter the target Gaussian data. During the training process, the Gaussian distribution model needs to be responsible for periodic densification of Gaussian distribution, pruning filtering, geometric shape control, opacity and scale filtering, training objectives and evaluation indicators. Periodic densification of Gaussian distribution means increasing the number of Gaussian distributions according to a certain period during the training process to more finely describe the scene details; pruning filtering means pruning and filtering according to the opacity of the Gaussian distribution to remove Gaussian distributions that have little impact on the rendering results, and filtering floating objects in the air according to mesh information to further streamline the model; geometric shape control means constraining the geometric shape of the Gaussian distribution by adding a scale loss function to avoid the appearance of an overly slender Gaussian distribution, ensuring the rationality and stability of the rendering effect; opacity and scale filtering means continuously performing opacity pruning and filtering throughout the training process, and adding a scale filtering strategy to remove particularly small Gaussian distributions to further optimize the model. The training goal and evaluation index are to set the training goal to a PSNR (peak signal-to-noise ratio) of more than 28 to ensure the rendering quality, and require that the final Gaussian distribution number of each block be controlled at the same order of magnitude to prepare for subsequent fusion rendering.

[0086] In specific implementation, the Gaussian distribution model can periodically densify the Gaussian while performing pruning and filtering based on the Gaussian opacity and mesh information to remove Gaussians that contribute little to rendering, add a scale loss function to control the Gaussian geometry, avoid the appearance of slender Gaussians, introduce a scale filtering strategy to remove particularly small Gaussians, and the training goal is to achieve a certain threshold for PSNR and keep the final number of Gaussians in each block at the same order of magnitude.

[0087] Furthermore, the multiple target visual resource data are processed through a visual resource distribution model, and a three-dimensional rendered visual resource of the target scene is generated based on the processing results, including: inputting the multiple target visual resource data into the visual resource distribution model, obtaining scene visual resource data output by the visual resource distribution model, wherein the visual resource distribution model is used to filter the multiple target visual resource data.

[0088] In practical applications, after obtaining the compressed and stored target visual resource data, the target visual resource data can be input into the visual resource distribution model, and the target visual resource data can be filtered using the visual resource distribution model to obtain the final scene visual resource data of the target scene. Since each LOD block corresponds to its own scene visual resource data, that is, each LOD block contains a set of 3D Gaussian data describing the scene attributes (such as color, density, texture, etc.) in the area, when rendering visual resources, the rendered scene sub-visual resources corresponding to each LOD block are also rendered. Subsequently, the scene sub-visual resources corresponding to each LOD block need to be spliced ​​to generate the final three-dimensional rendered visual resources of the target scene.

[0089] In summary, a variety of optimization strategies are proposed when training the visual resource distribution model, aiming to improve the rendering quality and computational efficiency of the model and prepare for subsequent fusion rendering. The target visual resource data is filtered through the visual resource distribution model, and the Gaussian distribution is optimized to ensure that the scene details can be accurately expressed while maintaining a reasonable scale of training data, which is convenient for subsequent efficient rendering and generates the final 3D rendered visual resources of the target scene.

[0090] Furthermore, the multiple target visual resource data are input into the visual resource distribution model to obtain scene visual resource data output by the visual resource distribution model, including: inputting the multiple target visual resource data into the visual resource distribution model, and determining the transparency information and scale information corresponding to each target visual resource data through the visual resource distribution model; filtering the multiple target visual resource data according to the transparency information and the scale information to obtain the scene visual resource data output by the visual resource distribution model.

[0091] Among them, transparency information can be understood as the opacity information of the Gaussian distribution, and the Gaussian distribution with less impact on the rendering result can be extracted through the transparency information. Scale information can be understood as the size information of the Gaussian distribution, and the Gaussian distribution that does not meet the preset size threshold can be removed through the scale information. Therefore, in practical applications, the transparency information and scale information of each target visual resource data can be first determined through the Gaussian distribution model, and the target visual resource data can be optimized and filtered to obtain the final scene visual resource data of the target scene, which can be used for subsequent scene visual resource rendering.

[0092] In practical applications, the scene visual resource data output by the visual resource distribution model is the scene visual resource data corresponding to each LOD block. When the three-dimensional scene visual resource of the target scene is subsequently rendered, the scene visual resource data corresponding to each LOD block is also used for rendering.

[0093] In a specific implementation, the scene visual resource data is rendered to obtain a plurality of scene sub-visual resources, including: rendering the scene visual resource data to obtain a plurality of initial visual resource pairs, wherein each initial visual resource pair includes a color visual resource and a depth visual resource; determining visual resource bounding boxes of the plurality of initial visual resource pairs, cutting the color visual resource and the depth visual resource in each initial visual resource pair according to the visual resource bounding box, and generating scene sub-visual resources for each initial visual resource pair according to the cutting result.

[0094] In practical applications, the scene visual resource data of each LOD block can be rendered to obtain the initial visual resource pair corresponding to each LOD block, which includes a color image, namely an RGB color map, and a depth image, namely a depth map. Then, the two visual resources are cut according to the visual resource boundary box to generate the scene sub-visual resources corresponding to each LOD block. Among them, the RGB color map records the color information of each pixel, reflecting the color distribution in the screen space after the Gaussian function is superimposed, and the depth map records the depth information from each pixel to the observation point (camera), reflecting the three-dimensional spatial structure of the scene.

[0095] In specific implementation, the scene visual resource data of each LOD block can be subjected to rasterization rendering to obtain an initial visual resource pair including a color visual resource and a depth visual resource. Rasterization is the process of converting geometric figures into a pixel array. Then, the visual resource bounding box of the LOD block is determined, and the color visual resource and the depth visual resource of the LOD block are cut according to the visual resource bounding box. The cut color visual resource and the depth visual resource are combined to generate a scene sub-visual resource corresponding to the LOD block.

[0096] Furthermore, after obtaining the scene sub-visual resources corresponding to each LOD block, it is necessary to stitch the visual resources to generate a three-dimensional rendering visual resource of the target scene. Specifically, the three-dimensional rendering visual resource of the target scene is generated based on the multiple scene sub-visual resources, including: determining the position information corresponding to each scene sub-visual resource; stitching the multiple scene sub-visual resources according to the position information to obtain the three-dimensional rendering visual resource of the target scene.

[0097] Among them, the position information corresponding to each scene sub-visual resource can be understood as the position information of the LOD block in the target scene. According to the specific position of the LOD block in the target scene, the position of the scene sub-visual resource during splicing can be determined, so that the three-dimensional rendering visual resources of the target scene can be correctly spliced ​​according to the position information to ensure the rendering quality.

[0098] In a specific embodiment of the present specification, the position information of the scene sub-visual resources of each LOD block is determined, and each scene sub-visual resource is spliced ​​according to the position information to generate a three-dimensional rendering visual resource of the target scene.

[0099] Based on this, efficient rendering and visualization of the scene based on 3D Gaussian function is achieved through the splicing operation of the scene sub-visual resources.

[0100] The present specification provides a visual resource rendering method, comprising determining scene visual resources of a target scene and visual resource viewing angle parameters of the scene visual resources; constructing scene grid data of the target scene according to the visual resource viewing angle parameters, and segmenting the scene grid data based on the visual resource viewing angle parameters to obtain a plurality of scene grid sub-data; calculating initial visual resource data corresponding to the plurality of scene grid sub-data, and compressing the plurality of initial visual resource data according to a preset data compression strategy to obtain a plurality of target visual resource data; inputting the plurality of target visual resource data into a visual resource distribution model to obtain scene visual resource data output by the visual resource distribution model, wherein the visual resource distribution model is used to filter the plurality of target visual resource data; rendering the scene visual resource data to obtain a plurality of scene sub-visual resources, and generating a three-dimensional rendered visual resource of the target scene based on the plurality of scene sub-visual resources. The method realizes that by determining the scene visual resources of the target scene and the visual resource perspective parameters of the scene visual resources, the scene grid data of the target scene can be constructed according to the visual resource perspective parameters, providing a data basis for subsequent three-dimensional modeling and rendering. The scene grid data is segmented based on the visual resource perspective parameters to obtain multiple scene grid sub-data, and the scene grid data is divided into multiple different scene grid sub-data for subsequent data parallel processing. After calculating the initial visual resource data corresponding to the multiple scene grid sub-data, the multiple initial visual resource data are compressed according to the preset data compression strategy to obtain multiple target visual resource data, which reduces the resource consumption of the three-dimensional visual resource data during caching and storage, improves the rendering calculation speed, filters the target visual resource data through the visual resource distribution model to obtain the scene visual resource data, and further filters out the redundant data in the target visual resource data, reduces the waste of rendering calculation resources caused by useless data, and improves the rendering efficiency of visual resources. Finally, by rendering the scene visual resource data, multiple scene sub-visual resources are obtained, and multiple scene sub-visual resources are combined to generate three-dimensional rendering visual resources of the target scene, thereby achieving high-quality reconstruction of large-scale scenes without affecting rendering performance.

[0101] The following combination Figure 2 Taking the application of the visual resource rendering method provided in this specification in the construction of a school scene model as an example, the visual resource rendering method is further described. Figure 2 A processing flow chart of a visual resource rendering method provided in an embodiment of the present specification is shown, which specifically includes the following steps.

[0102] Step 202: determine a scene image of the target scene, generate an image sequence according to the scene image, and calculate camera optical parameters and spatial pose parameters corresponding to the scene image according to the image sequence.

[0103] In one feasible method, the target scene is a school scene, and three-dimensional reconstruction and rendering are required for the school scene. The scene image of the school scene is determined and an image sequence is generated. The corresponding camera optical parameters and spatial pose parameters are calculated according to the image sequence.

[0104] Step 204: Generate point cloud data of the target scene according to the camera optical parameters and the spatial posture parameters, and construct scene grid data of the target scene based on the point cloud data.

[0105] In one achievable manner, sparse point cloud data of a school scene is generated according to the internal and external parameters of the camera, and scene mesh data of the scene surface of the school scene is constructed based on the sparse point cloud data.

[0106] Step 206: Determine the camera optical center coordinates according to the image viewing angle parameters, and perform projection point compensation on the camera optical center coordinates to obtain compensated camera optical center coordinates.

[0107] Step 208: Segment the scene grid data according to the compensated camera optical center coordinates to obtain a plurality of scene grid sub-data.

[0108] In one feasible method, the scene mesh data is LOD segmented according to the compensated camera optical center coordinates to obtain the scene mesh initial sub-data corresponding to multiple LOD blocks, and the scene mesh initial sub-data of each LOD block is quadtree-layered to obtain the scene mesh sub-data of each LOD block.

[0109] Step 210: Calculate initial Gaussian data corresponding to a plurality of scene grid sub-data, and compress the plurality of initial Gaussian data according to a preset data compression strategy to obtain a plurality of target Gaussian data.

[0110] In one feasible method, the preset data compression strategy includes a compression strategy for reducing the storage consumption of a single 3D Gaussian and a compression strategy for reducing the total number of 3D Gaussians. The initial Gaussian data of each LOD block is compressed according to the above two strategies, and the compressed diffuse-like 3D Gaussian is stored in a point cloud format, and the compressed metal-like reflection 3D Gaussian is stored in an image format.

[0111] Step 212: input the multiple target Gaussian data into the Gaussian distribution model, and determine the transparency information and scale information corresponding to the multiple target Gaussian data through the Gaussian distribution model.

[0112] Step 214: Filter multiple target Gaussian data according to the transparency information and the scale information to obtain scene Gaussian data output by the Gaussian distribution model.

[0113] Step 216: Render the scene Gaussian data to obtain a plurality of initial image pairs, wherein each initial image pair includes a color image and a depth image.

[0114] Step 218: Determine image bounding boxes of multiple initial image pairs, cut the color image and the depth image in each initial image pair according to the image bounding boxes, and generate a scene sub-image of each initial image pair according to the cutting result.

[0115] Step 220: Generate a three-dimensional rendering image of the target scene based on the multiple scene sub-images.

[0116] In one achievable manner, the position information corresponding to each scene sub-image is determined, and multiple scene sub-images are spliced ​​according to the position information to obtain a three-dimensional rendering image of the school scene.

[0117] An embodiment of the present specification realizes that by determining the scene image of the school scene and the image perspective parameters of the scene image, it is convenient to construct the scene grid data of the school scene according to the image perspective parameters in the future, provide a data basis for the subsequent three-dimensional modeling and rendering, and segment the scene grid data based on the image perspective parameters to obtain multiple scene grid sub-data, so as to realize the division of the scene grid data into multiple blocks of different scene grid sub-data, and use the subsequent data parallel processing. After calculating the initial Gaussian data corresponding to the multiple scene grid sub-data, the multiple initial Gaussian data are compressed according to the preset data compression strategy to obtain multiple target Gaussian data, which reduces the resource consumption of the three-dimensional Gaussian data during caching and storage, improves the rendering calculation speed, and filters the target Gaussian data through the Gaussian distribution model to obtain the scene Gaussian data, further filters out the redundant data in the target Gaussian data, reduces the waste of rendering calculation resources caused by useless data, and improves the image rendering efficiency. Finally, by rendering the scene Gaussian data, multiple scene sub-images are obtained, and the three-dimensional rendering image of the school scene is generated by the multiple scene sub-images, thereby realizing high-quality reconstruction of large-scale scenes without affecting the rendering performance.

[0118] Corresponding to the above method embodiment, this specification also provides a visual resource rendering device embodiment, Figure 3 FIG. 1 shows a schematic diagram of a structure of a visual resource rendering device provided by an embodiment of the present specification. Figure 3 As shown, the device comprises:

[0119] A determination module 302 is configured to determine a scene visual resource of a target scene and a visual resource viewing angle parameter of the scene visual resource;

[0120] A segmentation module 304 is configured to construct scene grid data of the target scene according to the visual resource perspective parameter, and segment the scene grid data based on the visual resource perspective parameter to obtain a plurality of scene grid sub-data;

[0121] The compression module 306 is configured to calculate the initial visual resource data corresponding to the plurality of scene grid sub-data, and compress the plurality of initial visual resource data according to a preset data compression strategy to obtain a plurality of target visual resource data;

[0122] The generating module 308 is configured to process the plurality of target visual resource data through a visual resource distribution model, and generate a three-dimensional rendering visual resource of the target scene based on the processing result.

[0123] Optionally, the generation module 308 is further configured to input the multiple target visual resource data into a visual resource distribution model to obtain scene visual resource data output by the visual resource distribution model, wherein the visual resource distribution model is used to filter the multiple target visual resource data; render the scene visual resource data to obtain multiple scene sub-visual resources, and generate a three-dimensional rendered visual resource of the target scene based on the multiple scene sub-visual resources.

[0124] Optionally, the determination module 302 is further configured to generate a visual resource sequence based on the scene visual resources, calculate camera optical parameters and spatial pose parameters corresponding to the scene visual resources based on the visual resource sequence; and use the camera optical parameters and the spatial pose parameters as visual resource viewing angle parameters of the scene visual resources.

[0125] Optionally, the segmentation module 304 is further configured to generate point cloud data of the target scene according to the visual resource viewing angle parameter; and construct scene mesh data of the target scene based on the point cloud data.

[0126] Optionally, the segmentation module 304 is further configured to determine the camera optical center coordinates according to the visual resource viewing angle parameters, and perform projection point compensation on the camera optical center coordinates to obtain compensated camera optical center coordinates; and segment the scene grid data according to the compensated camera optical center coordinates to obtain the multiple scene grid sub-data.

[0127] Optionally, the segmentation module 304 is further configured to segment the scene grid data according to the compensated camera optical center coordinates to obtain a plurality of scene grid initial sub-data; and perform quadtree data stratification on the plurality of scene grid initial sub-data to obtain the plurality of scene grid sub-data.

[0128] Optionally, the compression module 306 is further configured to classify multiple initial visual resource data according to a preset data compression strategy to obtain a first visual resource data class and a second visual resource data class, wherein the color information between the first visual resource data class and the second visual resource data class is different; calculate the first color weight score of each first visual resource data in the first visual resource data class, and the second color weight score of each second visual resource data in the second visual resource data class; compress the first visual resource data class according to the first color weight score to obtain a compressed first visual resource data class, and compress the second visual resource data class according to the second color weight score to obtain a compressed second visual resource data class; and use the compressed first visual resource data class and the compressed second visual resource data class as target visual resource data.

[0129] Optionally, the device further comprises a storage module configured to store the compressed first visual resource data class in a point cloud format, and to store the compressed second visual resource data class in a visual resource format.

[0130] Optionally, the generation module 308 is further configured to input the multiple target visual resource data into the visual resource distribution model, determine the transparency information and scale information corresponding to each target visual resource data through the visual resource distribution model; filter the multiple target visual resource data according to the transparency information and the scale information, and obtain the scene visual resource data output by the visual resource distribution model.

[0131] Optionally, the generating module 308 is further configured to render the scene visual resource data to obtain a plurality of initial visual resource pairs, wherein each initial visual resource pair includes a color visual resource and a depth visual resource; determine visual resource bounding boxes of the plurality of initial visual resource pairs, cut the color visual resource and the depth visual resource in each initial visual resource pair according to the visual resource bounding boxes, and generate scene sub-visual resources for each initial visual resource pair according to the cutting results.

[0132] Optionally, the generating module 308 is further configured to determine the position information corresponding to each scene sub-visual resource; and splice the multiple scene sub-visual resources according to the position information to obtain the three-dimensional rendering visual resource of the target scene.

[0133] The above is a schematic scheme of a visual resource rendering device of this embodiment. It should be noted that the technical scheme of the visual resource rendering device and the technical scheme of the visual resource rendering method described above belong to the same concept, and the details of the technical scheme of the visual resource rendering device that are not described in detail can all be referred to the description of the technical scheme of the visual resource rendering method described above.

[0134] Figure 4 A flowchart of a method for rendering visual resources of a smart city provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0135] Step 402: Determine scene visual resources of the smart city scene and visual resource viewing angle parameters of the scene visual resources;

[0136] Step 404: constructing scene grid data of the smart city scene according to the visual resource perspective parameter, and segmenting the scene grid data based on the visual resource perspective parameter to obtain a plurality of scene grid sub-data;

[0137] Step 406: calculating the initial visual resource data corresponding to the plurality of scene grid sub-data, and compressing the plurality of initial visual resource data according to a preset data compression strategy to obtain a plurality of smart city visual resource data;

[0138] Step 408: Process the plurality of smart city visual resource data using a visual resource distribution model, and generate a three-dimensional rendered visual resource of the smart city scene based on the processing result.

[0139] The main goals of smart cities include improving the efficiency of urban management, optimizing urban public services, and improving the quality of life of urban residents. Specifically, it can achieve the prediction and dispatch of traffic congestion through the smart transportation system to ease the pressure of urban traffic; achieve the intelligent allocation and appointment registration of medical resources through the smart medical system to improve the efficiency and quality of medical services; achieve intelligent control of home devices through the smart home system to improve the quality of life of residents; achieve intelligent allocation of educational resources and personalized education through the smart education system to improve the educational level of residents.

[0140] In practical applications, in the reconstruction of three-dimensional images for large-scale scenes, the image rendering speed is slow or the rendering quality is poor due to the large amount of scene data. The image rendering method provided in this specification can achieve high-quality real-time rendering performance while ensuring efficient training based on 3D Gaussian. At the same time, LOD training and rendering algorithms are introduced to expand the expression ability of 3D Gaussian for large scenes without affecting performance. After determining the visual resource perspective parameters, the scene mesh data of the smart city scene can be constructed according to the visual resource perspective parameters. The scene mesh data is a triangular mesh model (mesh) of the scene surface used to represent the smart city scene.

[0141] In specific implementation, the MVS algorithm can be used to reconstruct the basic scene mesh. The MVS algorithm is a method for further generating dense and continuous three-dimensional scene models from multi-view images based on known camera parameters. It generates the surface mesh mesh of the scene, i.e., scene mesh data, based on the camera internal and external parameters and sparse point clouds provided by SfM. After obtaining the scene mesh sub-data of each LOD block, 3D Gaussians can be used for scene expression, that is, Gaussian functions are used to express objects in the smart city scene. In specific implementation, the scene expression of 3D Gaussians is used, and the rendering effect quality is proportional to the number of 3D Gaussians. In order to control the storage consumption of a single block under multiple scales, the 3D Gaussian data can be stored and compressed. After obtaining the compressed and stored target smart city data, the target smart city data can be input into the smart city distribution model, and the target smart city data can be filtered using the smart city distribution model to obtain the final scene smart city data of the smart city scene. Since each LOD block corresponds to its own scene smart city data, that is, each LOD block contains a set of 3D Gaussian data describing the scene attributes (such as color, density, texture, etc.) in the area, when rendering visual resources, the rendered scene sub-visual resources are also corresponding to each LOD block. Subsequently, the scene sub-visual resources corresponding to each LOD block need to be spliced ​​to generate the final three-dimensional rendering visual resources of the smart city scene.

[0142] In summary, the target smart city data is filtered through the smart city distribution model to obtain the scene smart city data, and the redundant data in the target smart city data is further filtered out to reduce the waste of rendering computing resources caused by useless data and improve the rendering efficiency of visual resources. Finally, by rendering the scene smart city data, multiple scene sub-visual resources are obtained, and multiple scene sub-visual resources are used to generate three-dimensional rendering visual resources of the smart city scene, thereby achieving high-quality reconstruction of large-scale scenes without affecting the rendering performance.

[0143] In addition to smart city scenes, the visual resource rendering method can also be applied to digital parks to realize the rendering of park scenes corresponding to digital parks. Among them, digital parks have many significant features, including intelligent management, networked collaboration and service innovation. By building a smart management platform, digital parks can collect, analyze and process various data in the park in real time, improve management efficiency and reduce operating costs. At the same time, using technologies such as cloud computing and the Internet of Things, enterprises and institutions in the park can achieve information exchange and resource sharing, and promote collaboration between upstream and downstream of the industrial chain. In addition, digital parks also provide digital services such as online transactions, financial services, talent training, etc. to meet the diversified needs of enterprises and promote industrial innovation.

[0144] In practical applications, the scene visual resources of the digital park scene and the visual resource perspective parameters of the scene visual resources are determined; the scene grid data of the digital park scene is constructed according to the visual resource perspective parameters, and the scene grid data is segmented based on the visual resource perspective parameters to obtain multiple scene grid sub-data; the initial visual resource data corresponding to the multiple scene grid sub-data are calculated, and the multiple initial visual resource data are compressed according to a preset data compression strategy to obtain multiple digital park visual resource data; the multiple digital park visual resource data are processed through a visual resource distribution model, and the three-dimensional rendering visual resources of the digital park scene are generated based on the processing results.

[0145] Furthermore, the multiple smart city visual resource data are processed through the visual resource distribution model, and the three-dimensional rendered visual resources of the smart city scene are generated based on the processing results, including: inputting the multiple smart city visual resource data into the visual resource distribution model to obtain scene visual resource data output by the visual resource distribution model, wherein the visual resource distribution model is used to filter the multiple smart city visual resource data; rendering the scene visual resource data to obtain multiple scene sub-visual resources, and generating the three-dimensional rendered visual resources of the smart city scene based on the multiple scene sub-visual resources.

[0146] In practical applications, after obtaining the compressed and stored target visual resource data, the target visual resource data can be input into the visual resource distribution model, and the target visual resource data can be filtered using the visual resource distribution model to obtain the final scene visual resource data of the smart city scene.

[0147] In specific implementation, the visual resource distribution model can periodically densify the Gaussian while performing pruning and filtering based on the Gaussian opacity and mesh information, removing Gaussians that contribute little to rendering, adding a scale loss function to control the geometric shape of the Gaussian, avoiding the appearance of slender Gaussians, introducing a scale filtering strategy, and removing particularly small Gaussians. The training goal is to achieve a certain threshold for PSNR and keep the final number of Gaussians in each block at the same order of magnitude. Since each LOD block corresponds to its own scene visual resource data, that is, each LOD block contains a set of 3D Gaussian data describing the scene attributes (such as color, density, texture, etc.) in the area, when rendering visual resources, the rendered scene sub-visual resources are also the corresponding scene sub-visual resources of each LOD block. Subsequently, the scene sub-visual resources corresponding to each LOD block need to be spliced ​​to generate the final three-dimensional rendering visual resources of the smart city scene.

[0148] In summary, a variety of optimization strategies are proposed when training the visual resource distribution model, aiming to improve the rendering quality and computational efficiency of the model and prepare for subsequent fusion rendering. The target visual resource data is filtered through the visual resource distribution model to optimize the visual resource distribution, ensuring that the scene details can be accurately expressed while maintaining a reasonable scale of training data for subsequent efficient rendering.

[0149] In summary, an embodiment of the present specification realizes that by determining the scene visual resources of the smart city scene and the visual resource perspective parameters of the scene visual resources, it is convenient to subsequently construct the scene grid data of the smart city scene according to the visual resource perspective parameters, provide a data basis for subsequent three-dimensional modeling and rendering, and segment the scene grid data based on the visual resource perspective parameters to obtain multiple scene grid sub-data, thereby realizing the division of the scene grid data into multiple different scene grid sub-data, and using the subsequent data parallel processing. After calculating the initial visual resource data corresponding to the multiple scene grid sub-data, the multiple initial visual resource data are compressed according to the preset data compression strategy to obtain multiple target visual resource data, thereby reducing the resource consumption of the visual resource data during caching and storage, and improving the rendering calculation speed. The target visual resource data is filtered through the visual resource distribution model to obtain the scene visual resource data, and the redundant data in the target visual resource data is further filtered out, thereby reducing the waste of rendering calculation resources caused by useless data and improving the rendering efficiency of visual resources. Finally, by rendering the scene visual resource data, multiple scene sub-visual resources are obtained, and three-dimensional rendering visual resources of the smart city scene are generated based on multiple scene sub-visual resources, thereby achieving high-quality reconstruction of large-scale scenes without affecting rendering performance.

[0150] Corresponding to the above method embodiment, this specification also provides a smart city visual resource rendering device embodiment, Figure 5FIG. 1 shows a schematic diagram of a smart city visual resource rendering device provided by an embodiment of the present specification. Figure 5 As shown, the device comprises:

[0151] A determination module 502 is configured to determine scene visual resources of a smart city scene and visual resource viewing angle parameters of the scene visual resources;

[0152] A construction module 504 is configured to construct scene grid data of the smart city scene according to the visual resource perspective parameter, and segment the scene grid data based on the visual resource perspective parameter to obtain a plurality of scene grid sub-data;

[0153] A compression module 506 is configured to calculate the initial visual resource data corresponding to the plurality of scene grid sub-data, and compress the plurality of initial visual resource data according to a preset data compression strategy to obtain a plurality of smart city visual resource data;

[0154] The generation module 508 is configured to process the plurality of smart city visual resource data through a visual resource distribution model, and generate a three-dimensional rendered visual resource of the smart city scene based on the processing result.

[0155] Optionally, the generating module 508 is further configured to: input the plurality of smart city visual resource data into a visual resource distribution model to obtain scene visual resource data output by the visual resource distribution model, wherein the visual resource distribution model is used to filter the plurality of smart city visual resource data;

[0156] The scene visual resource data is rendered to obtain a plurality of scene sub-visual resources, and a three-dimensional rendered visual resource of the smart city scene is generated based on the plurality of scene sub-visual resources.

[0157] In summary, an embodiment of the present specification realizes that by determining the scene visual resources of the smart city scene and the visual resource perspective parameters of the scene visual resources, it is convenient to subsequently construct the scene grid data of the smart city scene according to the visual resource perspective parameters, provide a data basis for subsequent three-dimensional modeling and rendering, and segment the scene grid data based on the visual resource perspective parameters to obtain multiple scene grid sub-data, thereby realizing the division of the scene grid data into multiple different scene grid sub-data, and using the subsequent data parallel processing. After calculating the initial visual resource data corresponding to the multiple scene grid sub-data, the multiple initial visual resource data are compressed according to the preset data compression strategy to obtain multiple target visual resource data, thereby reducing the resource consumption of the visual resource data during caching and storage, and improving the rendering calculation speed. The target visual resource data is filtered through the visual resource distribution model to obtain the scene visual resource data, and the redundant data in the target visual resource data is further filtered out, thereby reducing the waste of rendering calculation resources caused by useless data and improving the rendering efficiency of visual resources. Finally, by rendering the scene visual resource data, multiple scene sub-visual resources are obtained, and three-dimensional rendering visual resources of the smart city scene are generated based on multiple scene sub-visual resources, thereby achieving high-quality reconstruction of large-scale scenes without affecting rendering performance.

[0158] The above is a schematic scheme of a smart city visual resource rendering device of this embodiment. It should be noted that the technical scheme of the smart city visual resource rendering device and the technical scheme of the smart city visual resource rendering method described above belong to the same concept, and the details of the technical scheme of the visual resource rendering device that are not described in detail can all be referred to the description of the technical scheme of the smart city visual resource rendering method described above.

[0159] Figure 6 The block diagram of a computing device 600 according to an embodiment of the present specification is shown. The components of the computing device 600 include but are not limited to a memory 610 and a processor 620. The processor 620 is connected to the memory 610 via a bus 630, and the database 650 is used to store data.

[0160] The computing device 600 also includes an access device 640 that enables the computing device 600 to communicate via one or more networks 660. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 640 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).

[0161] In one embodiment of the present specification, the above components of the computing device 600 and Figure 6 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 6 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0162] The computing device 600 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 600 may also be a mobile or stationary server.

[0163] The processor 620 is used to execute the following computer program / instructions, which implement the steps of the above method when executed by the processor.

[0164] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the computing device embodiment, since it is basically similar to the above method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the above method embodiment.

[0165] An embodiment of the present specification further provides a computer-readable storage medium storing a computer program / instruction, which implements the steps of the above method when executed by a processor.

[0166] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the computer-readable storage medium embodiment, since it is basically similar to the above method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the above method embodiment.

[0167] An embodiment of the present specification also provides a computer program product, including a computer program / instruction, which implements the steps of the above method when executed by a processor.

[0168] The above is a schematic solution of a computer program product of this embodiment. It should be noted that the technical solution of the computer program product and the technical solution of the above method belong to the same concept, and the details not described in detail in the technical solution of the computer program product can be referred to the description of the technical solution of the above method.

[0169] The above is a description of a specific embodiment of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0170] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0171] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0172] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0173] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A method for rendering visual resources, include: Determining scene visual resources of a target scene and visual resource viewing angle parameters of the scene visual resources; Constructing scene grid data of the target scene according to the visual resource viewing angle parameter, and segmenting the scene grid data based on the visual resource viewing angle parameter to obtain a plurality of scene grid sub-data; Calculating initial visual resource data corresponding to the plurality of scene grid sub-data, and compressing the plurality of initial visual resource data according to a preset data compression strategy to obtain a plurality of target visual resource data; The plurality of target visual resource data are processed through a visual resource distribution model, and a three-dimensional rendering visual resource of the target scene is generated based on the processing result.

2. The method according to claim 1, wherein the plurality of target visual resource data are processed by a visual resource distribution model, and a three-dimensional rendering visual resource of the target scene is generated based on the processing result. include: Inputting the plurality of target visual resource data into a visual resource distribution model to obtain scene visual resource data output by the visual resource distribution model, wherein the visual resource distribution model is used to filter the plurality of target visual resource data; The scene visual resource data is rendered to obtain a plurality of scene sub-visual resources, and a three-dimensional rendered visual resource of the target scene is generated based on the plurality of scene sub-visual resources.

3. The method according to claim 1, determining a visual resource viewing angle parameter of the scene visual resource, include: Generate a visual resource sequence according to the scene visual resources, and calculate camera optical parameters and spatial pose parameters corresponding to the scene visual resources according to the visual resource sequence; The camera optical parameters and the spatial posture parameters are used as visual resource viewing angle parameters of the scene visual resources.

4. The method according to claim 1, constructing scene grid data of the target scene according to the visual resource viewing angle parameter, include: Generate point cloud data of the target scene according to the visual resource viewing angle parameters; The scene mesh data of the target scene is constructed based on the point cloud data.

5. The method according to claim 1, segmenting the scene grid data based on the visual resource viewing angle parameter to obtain a plurality of scene grid sub-data, include: Determine the camera optical center coordinates according to the visual resource viewing angle parameters, and perform projection point compensation on the camera optical center coordinates to obtain compensated camera optical center coordinates; The scene grid data is segmented according to the compensated camera optical center coordinates to obtain the multiple scene grid sub-data.

6. The method according to claim 5, wherein the scene grid data is segmented according to the compensated camera optical center coordinates to obtain a plurality of scene grid sub-data, include: According to the compensated camera optical center coordinates, the scene grid data is segmented to obtain a plurality of scene grid initial sub-data; The plurality of scene mesh initial sub-data are subjected to quadtree data stratification to obtain the plurality of scene mesh sub-data.

7. The method according to claim 1, compressing a plurality of initial visual resource data according to a preset data compression strategy to obtain a plurality of target visual resource data, include: Classifying the plurality of initial visual resource data according to a preset data compression strategy to obtain a first visual resource data class and a second visual resource data class, wherein the first visual resource data class and the second visual resource data class have different color information; Calculating a first color weight score of each first visual resource data in the first visual resource data class, and a second color weight score of each second visual resource data in the second visual resource data class; Compressing the first visual resource data class according to the first color weight score to obtain a compressed first visual resource data class, and compressing the second visual resource data class according to the second color weight score to obtain a compressed second visual resource data class; The compressed first visual resource data class and the compressed second visual resource data class are used as target visual resource data.

8. The method according to claim 7, after obtaining a plurality of target visual resource data, the method further comprises: include: The compressed first visual resource data class is stored in a point cloud format, and the compressed second visual resource data class is stored in a visual resource format.

9. The method according to claim 2, inputting the plurality of target visual resource data into a visual resource distribution model, obtaining scene visual resource data output by the visual resource distribution model, include: Inputting the plurality of target visual resource data into the visual resource distribution model, and determining the transparency information and scale information corresponding to each target visual resource data through the visual resource distribution model; The plurality of target visual resource data are filtered according to the transparency information and the scale information to obtain scene visual resource data output by the visual resource distribution model.

10. The method according to claim 2, rendering the scene visual resource data to obtain a plurality of scene sub-visual resources, include: Rendering the scene visual resource data to obtain a plurality of initial visual resource pairs, wherein each initial visual resource pair includes a color visual resource and a depth visual resource; Determine visual resource bounding boxes of the multiple initial visual resource pairs, cut the color visual resource and the depth visual resource in each initial visual resource pair according to the visual resource bounding box, and generate scene sub-visual resources of each initial visual resource pair according to the cutting result.

11. The method according to claim 2, generating a three-dimensional rendering visual resource of the target scene based on the multiple scene sub-visual resources, include: Determine the location information corresponding to each scene sub-visual resource; The multiple scene sub-visual resources are spliced ​​according to the position information to obtain a three-dimensional rendering visual resource of the target scene.

12. A method for rendering visual resources of smart cities, include: Determining scene visual resources of a smart city scene and visual resource viewing angle parameters of the scene visual resources; Constructing scene grid data of the smart city scene according to the visual resource perspective parameter, and segmenting the scene grid data based on the visual resource perspective parameter to obtain a plurality of scene grid sub-data; Calculating initial visual resource data corresponding to the plurality of scene grid sub-data, and compressing the plurality of initial visual resource data according to a preset data compression strategy to obtain a plurality of smart city visual resource data; The plurality of smart city visual resource data are processed through a visual resource distribution model, and a three-dimensional rendered visual resource of the smart city scene is generated based on the processing result.

13. The method according to claim 12, wherein the plurality of smart city visual resource data are processed by a visual resource distribution model, and a three-dimensional rendering visual resource of the smart city scene is generated based on the processing result. include: Inputting the plurality of smart city visual resource data into a visual resource distribution model to obtain scene visual resource data output by the visual resource distribution model, wherein the visual resource distribution model is used to filter the plurality of smart city visual resource data; The scene visual resource data is rendered to obtain a plurality of scene sub-visual resources, and a three-dimensional rendered visual resource of the smart city scene is generated based on the plurality of scene sub-visual resources.

14. A visual resource rendering device, include: A determination module, configured to determine a scene visual resource of a target scene and a visual resource viewing angle parameter of the scene visual resource; A segmentation module is configured to construct scene grid data of the target scene according to the visual resource perspective parameter, and segment the scene grid data based on the visual resource perspective parameter to obtain a plurality of scene grid sub-data; A compression module is configured to calculate the initial visual resource data corresponding to the plurality of scene grid sub-data, and compress the plurality of initial visual resource data according to a preset data compression strategy to obtain a plurality of target visual resource data; The generating module is configured to process the plurality of target visual resource data through a visual resource distribution model, and generate a three-dimensional rendering visual resource of the target scene based on the processing result.

15. A computing device, include: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer program / instructions are executed by the processor, the steps of the method described in any one of claims 1 to 13 are implemented.

16. A computer-readable storage medium storing a computer program / instruction, wherein the computer program / instruction, when executed by a processor, implements the steps of the method according to any one of claims 1 to 13.

17. A computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 13.

Citation Information

Cited By

  • Real-time interactive three-dimensional Gaussian sputtering scene rendering method, storage medium and system

    CN119545084A

  • Gaussian splashing monocular reconstruction method based on neural network

    CN119904580A

  • Data processing method and device

    CN120950510A

  • Visual resource rendering method and apparatus

    WO2025236818A1

  • Rendering method and system for real-time interactive three-dimensional gaussian splatting scene, and storage medium

    WO2026085707A1