A digital twin three-dimensional model rendering method and system
By judging the hardware performance of the front-end device in the digital twin system, and selecting matching pre-rendered images and adjusting rendering parameters when the preset requirements are not met, the problem of high hardware configuration is solved, widening the application scenarios and improving rendering efficiency.
Patent Information
- Application Number
- CN202411061978.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-08-05
AI Technical Summary
The existing digital twin three-dimensional model rendering method has high requirements for the hardware configuration of the device, which limits the application scenarios of digital twin technology.
By receiving the rendering request from the front-end device, we can determine whether its hardware performance meets the preset requirements. If it is not met, the target image matching the device resolution will be obtained in the pre-rendered image and sent to the front-end device, using the bird's-eye camera or the The one-person camera performs image acquisition and rendering, adjusting the rendered annotation points and position parameters to meet preset conditions.
It reduces the hardware requirements for digital twin system rendering, broadens application scenarios, improves rendering efficiency, and makes up for the rendering ability when hardware performance is insufficient.
Smart Images

Figure CN118587343B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of digital twins, and in particular to a method and system for rendering a digital twin three-dimensional model. Background Art
[0002] Digital twin is a technology that maps the real physical world into the virtual world and synchronizes data in both directions. Among them, the three-dimensional model is an important part of digital twin technology, and the real-time rendering of the three-dimensional model is the core of digital twin technology.
[0003] The digital twin methods and systems in the existing technology usually require high-performance hardware resources to achieve real-time rendering of three-dimensional models, which to a certain extent limits the application scenarios of digital twin technology and also affects the development of digital technology.
[0004] Existing 3D model rendering methods have high requirements on the hardware configuration of the device. Summary of the invention
[0005] The embodiments of the present application provide a digital twin three-dimensional model rendering method and system to at least solve the problem that the existing three-dimensional model rendering methods in the related art have high requirements on the hardware configuration of the device.
[0006] In a first aspect, an embodiment of the present application provides a method for rendering a digital twin three-dimensional model, including:
[0007] Receive a rendering request from a front-end device, wherein the rendering request includes hardware parameters of the front-end device;
[0008] Determining whether the rendering performance of the front-end device meets preset requirements according to the hardware parameters;
[0009] In response to the rendering performance failing to meet the preset requirement, detecting the resolution of the front-end device, and acquiring a target image matching the resolution from the pre-rendered image;
[0010] The target image is sent to the front-end device.
[0011] In one embodiment, acquiring a target image matching the resolution in a pre-rendered image includes:
[0012] From the pre-rendered images, an image whose image resolution is less than or equal to the resolution of the front-end device and is closest to the resolution of the front-end device is selected as the target image.
[0013] In one embodiment, the pre-rendered image is obtained by the following steps:
[0014] Obtaining a three-dimensional model and positions of rendering annotation points in the three-dimensional model;
[0015] Acquire position parameters of an image acquisition device corresponding to the rendered annotation point;
[0016] Obtaining the rendering accuracy of the rendered annotation point;
[0017] An image acquisition device is set according to the position parameters, and a picture is rendered according to the rendering accuracy.
[0018] In one embodiment, the image acquisition device includes a bird's-eye view camera, the bird's-eye view camera faces the rendered annotation point,
[0019] When the image acquisition device is the bird's-eye view camera, the rendering accuracy includes: the number of rendered images around the camera, the number of rendering levels, and the compression ratio of the rendering levels.
[0020] In one embodiment, the number of the rendering annotation points and the corresponding image acquisition devices is at least two, and the image acquisition device is set according to the position parameter and the image is rendered according to the rendering accuracy, including:
[0021] Setting an image acquisition device near each of the rendering annotation points according to the position parameters;
[0022] All the image acquisition devices simultaneously surround and render pictures facing the rendering annotation points according to the rendering accuracy.
[0023] In one embodiment, the image acquisition device includes a first-person camera, the first-person camera facing outward from the rendered annotation point,
[0024] When the image acquisition device is the first-person camera, the rendering accuracy includes: the number of rendering levels and the compression ratio of the rendering levels.
[0025] In one embodiment, the number of the rendering annotation points and the corresponding image acquisition devices is at least two, and the image acquisition device is set according to the position parameter and the image is rendered according to the rendering accuracy, including:
[0026] Setting an image acquisition device near each of the rendering annotation points according to the position parameters;
[0027] All the image acquisition devices simultaneously render images in the direction of the coordinate axes in the three-dimensional model according to the rendering accuracy.
[0028] In one embodiment, the method further comprises:
[0029] In response to the rendering performance being able to meet the preset requirements, the pre-acquired three-dimensional model is sent to the front-end device.
[0030] In one embodiment, after obtaining the position parameter, the method further includes:
[0031] Previewing the rendered annotation point according to the position parameter, and determining whether the rendered annotation point and the position parameter meet preset conditions;
[0032] In response to not satisfying the preset condition, the rendering annotation point and the position parameter are updated.
[0033] In a second aspect, an embodiment of the present application provides a digital twin three-dimensional model rendering system, including:
[0034] Receiving module: used for receiving a rendering request from a front-end device, wherein the rendering request includes hardware parameters of the front-end device;
[0035] A judgment module: used to judge whether the rendering performance of the front-end device meets the preset requirements according to the hardware parameters;
[0036] An acquisition module: used for detecting the resolution of the front-end device in response to the rendering performance failing to meet the preset requirements, and acquiring a target image matching the resolution from the pre-rendered image;
[0037] Result module: used for sending the target image to the front-end device.
[0038] A digital twin three-dimensional model rendering method and system provided in an embodiment of the present application have at least the following technical effects.
[0039] When the rendering performance of the front-end device is insufficient, this application selects the pre-rendered image that best matches the front-end device as the target rendering image and sends it to the front-end device. This makes up for the problem that when the hardware performance of the front-end device in the digital twin system is insufficient, rendering cannot be performed, which limits the application scenarios of digital twins. It reduces the hardware requirements for rendering of the digital twin system and broadens the application scenarios of digital twin technology. At the same time, the pre-rendering results are directly obtained, which improves the rendering efficiency of the digital twin three-dimensional model rendering method to a certain extent.
[0040] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0042] Figure 1is a flowchart of a method for rendering a digital twin 3D model according to an exemplary embodiment;
[0043] Figure 2 is a schematic diagram showing a three-dimensional model and rendering annotation points according to an exemplary embodiment;
[0044] Figure 3 is a schematic diagram of a three-dimensional model rendering interface according to an exemplary embodiment;
[0045] Figure 4 is a schematic diagram of a three-dimensional model rendering interface according to another exemplary embodiment;
[0046] Figure 5 is a schematic diagram of rendering a three-dimensional model using a bird's-eye view camera according to an exemplary embodiment;
[0047] Figure 6 is a schematic diagram of a first-person camera rendering a three-dimensional model according to an exemplary embodiment;
[0048] Figure 7 It is a structural block diagram of a digital twin 3D model rendering system according to an exemplary embodiment. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0050] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.
[0051] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0052] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantity limitation, and may indicate the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0053] In a first aspect, an embodiment of the present application provides a method for rendering a digital twin 3D model. Figure 1 is a flowchart of a method for rendering a digital twin 3D model according to an exemplary embodiment. Figure 1 As shown, the digital twin 3D model rendering method includes:
[0054] Step S101: receiving a rendering request from a front-end device, where the rendering request includes hardware parameters of the front-end device.
[0055] Optionally, the hardware parameters of the front-end device include, but are not limited to, parameters related to the central processing unit (CPU) used by the front-end device, parameters related to the graphics processing unit (GPU), the capacity of the random access memory (RAM), and the memory read and write speed, etc. For example, the number of cores and frequency of the CPU used, the GPU type and video memory, etc.
[0056] Step S102, judging whether the rendering performance of the front-end device meets the preset requirements according to the hardware parameters.
[0057] Optionally, the performance of the front-end device is tested by benchmarking tools such as 3DMark and Geekbench. Alternatively, the judgment is made directly based on the hardware parameters. For example, if the front-end device uses an independent graphics card and the video memory of the independent graphics card is greater than the preset requirements, the rendering performance of the front-end device is judged to meet the preset requirements. If the front-end device does not use a GPU and other hardware parameters are low, the rendering performance of the front-end device is judged to fail to meet the preset requirements.
[0058] In one example, the method further includes: in response to the rendering performance meeting the preset requirements, sending the pre-acquired 3D model to the front-end device. Optionally, when the rendering performance of the front-end device meets the preset requirements, the pre-acquired 3D model is sent to the front-end device, and the front-end device performs the rendering work by itself.
[0059] Step S103, in response to the rendering performance failing to meet the preset requirements, the resolution of the front-end device is detected, and a target image with a matching resolution is obtained from the pre-rendered image. Optionally, the pre-rendered image generally includes pre-rendered images of multiple different resolutions, and the target image is determined from the pre-rendered image according to the resolution of the front-end device.
[0060] In one example, step S103 includes: selecting, from the pre-rendered images, an image whose image resolution is less than or equal to the resolution of the front-end device and is closest to the resolution of the front-end device as the target image.
[0061] Optionally, according to the display resolution of the front-end device, an image with a resolution closest to and not higher than the resolution of the front-end device is selected from the pre-rendered images as the target image. In this way, the pre-rendered image that best matches the front-end device is selected as the target rendered image. This makes up for the problem that when the hardware performance of the front-end device in the digital twin system is insufficient, rendering cannot be performed, limiting the application scenarios of the digital twin. This not only reduces the hardware requirements for rendering of the digital twin system, but also improves the rendering efficiency, broadening the application scenarios of the digital twin technology.
[0062] In one example, the pre-rendered image in step S103 is obtained by the following steps:
[0063] Step S301, obtaining a three-dimensional model and the positions of rendering annotation points in the three-dimensional model.
[0064] Optionally, Figure 2 FIG. 1 is a schematic diagram showing a three-dimensional model and rendering annotation points according to an exemplary embodiment. Figure 2 As shown, 001 is the axial definition of the 3D scene, 002 is the center point of the entire 3D scene, 003 is a single 3D model object, 004 is the center point of a single 3D model object, 005 is the rendering annotation point, 006 is the distance between the rendering annotation point and the model center point in the Z-axis direction, 007 is the offset of the rendering annotation point relative to the model center point in the X-axis direction, and 008 is the offset of the rendering annotation point relative to the model center point in the Y-axis direction.
[0065] Step S302, obtaining position parameters of an image acquisition device corresponding to the rendered annotation point. Optionally, the image acquisition device is generally a camera, a webcam, etc. The image acquisition device in this application includes a bird's-eye view camera and a first-person camera.
[0066] <When the image acquisition device is a bird's-eye view camera>
[0067] Figure 3 FIG. 1 is a schematic diagram of a 3D model rendering interface according to an exemplary embodiment. Figure 3 As shown, 001 is the axial definition of the 3D scene, 002 is the center point of the entire 3D scene, 003 is a single 3D model object, 004 is the center point of a single 3D model object, 005 is a bird's-eye view camera (the camera faces the center point of the 3D scene), 006 is the offset angle between the bird's-eye view camera and the center point of the 3D scene in the Z-axis direction, and 007 is the distance between the bird's-eye view camera and the center point of the 3D scene. In this scene, the position parameters of the image acquisition device include: the offset angle between the bird's-eye view camera and the center point of the 3D scene in the Z-axis direction, and the distance between the bird's-eye view camera and the center point of the 3D scene.
[0068] <When the image acquisition device is a first-person camera>
[0069] Figure 4 FIG. 1 is a schematic diagram of a three-dimensional model rendering interface according to another exemplary embodiment. Figure 4As shown, 001 is the axial definition of the 3D scene, 002 is the center point of the entire 3D scene, 003 is a single 3D model object, 004 is the center point of a single 3D model object, 005 is the first-person camera (the camera faces outward from the center point of the 3D scene), and 006 is the distance between the first-person camera and the center point of the 3D scene in the Z-axis direction. In this scene, the position parameters of the image acquisition device include: the distance between the first-person camera and the center point of the 3D scene in the Z-axis direction.
[0070] In one example, after obtaining the position parameters in step S302, the method further includes: previewing the rendered annotation points according to the position parameters, determining whether the rendered annotation points and the position parameters meet preset conditions, and updating the rendered annotation points and the position parameters in response to not meeting the preset conditions.
[0071] Optionally, it is determined that the image acquisition device is set according to the position parameters, and it is determined whether the image acquisition device is too far or too close when acquiring the image information of the rendering annotation point, and whether there is a problem of being unable to clearly acquire the image due to problems such as occlusion during the acquisition process. The preset condition in this example is that the information of the rendering annotation point can be completely and clearly acquired. In this way, when there is a problem, the rendering annotation point and the position parameters are adjusted in time to facilitate accurate and complete rendering results.
[0072] Step S303, obtaining the rendering accuracy of the rendered annotation points. Optionally, the rendering accuracy generally includes information such as the resolution of the rendered image, the number and direction of the rendered images, etc.
[0073] Step S304, setting the image acquisition device according to the position parameters, and rendering the image according to the rendering accuracy.
[0074] Optionally, the image acquisition device is set according to the position parameters, and the image can be rendered serially or in parallel according to the rendering accuracy. When serial rendering is selected, the image acquisition device is switched to the vicinity of each rendering annotation point in turn according to the position parameters, and the image is rendered according to the parameters and rendering accuracy of the image acquisition device near each rendering annotation point. When parallel rendering is selected, the image acquisition device can be set near each rendering annotation point according to the position parameters at the same time, and the image is rendered according to the position parameters and rendering accuracy at the same time. Among them, the position parameters include information such as position and angle.
[0075] <When the image acquisition device is a bird's-eye view camera>
[0076] The bird's-eye view camera faces the rendering annotation point. At this time, the rendering accuracy in step S303 includes: the number of rendered images that the camera surrounds in one circle, the number of rendering levels, and the compression ratio of the rendering levels. Optionally, the number of rendering levels refers to the number of circles that the camera surrounds, and each level requires the camera to surround and render in one circle. The compression ratio of the rendering level refers to the compression ratio of the rendering resolution of each level compared to the previous level.
[0077] Figure 5 FIG. 1 is a schematic diagram showing a bird's-eye view camera rendering a three-dimensional model according to an exemplary embodiment. Figure 5 As shown, 001 is the axial definition of the 3D scene, 003 is a single 3D model object, 004 is the center point of a single 3D model object, 005 is a rendering annotation point, 006 is the distance between the rendering annotation point and the center point of the model in the Z-axis direction, 007 is the offset of the rendering annotation point relative to the center point of the model in the X-axis direction, 008 is the offset of the rendering annotation point relative to the center point of the model in the Y-axis direction, 009 is a bird's-eye view camera (the camera faces the rendering annotation point), 010 is the angle between the bird's-eye view camera and the rendering annotation point in the Z-axis direction, 011 is the distance between the bird's-eye view camera and the rendering annotation point, and 012 is a certain number of static images rendered by the bird's-eye view camera around the rendering annotation point as the center. In this example, the position parameters are the angle between the bird's-eye view camera and the rendering annotation point in the Z-axis direction, and the distance between the bird's-eye view camera and the rendering annotation point.
[0078] In one example, the number of rendering annotation points and corresponding image acquisition devices is at least two, and step S304 includes: setting an image acquisition device near each rendering annotation point according to the position parameter, and all image acquisition devices surround and render pictures facing the rendering annotation point according to the rendering accuracy. In this way, through parallel rendering, all rendering annotation points are rendered according to the parameters and rendering accuracy of the image acquisition device, thereby improving rendering efficiency.
[0079] <When the image acquisition device is a first-person camera>
[0080] The first-person camera faces outward from the rendering mark point. At this time, the rendering accuracy in step S303 includes: the number of rendering levels and the compression ratio of the rendering levels. Optionally, each level is rendered in the same way, and the rendering resolution of each level is reduced according to the compression ratio compared with the previous level.
[0081] Figure 6 FIG. 1 is a schematic diagram of a first-person camera rendering a three-dimensional model according to an exemplary embodiment. Figure 6As shown, 001 is the axial definition of the 3D scene, 003 is a single 3D model object, 004 is the center point of a single 3D model object, 005 is a rendering annotation point, 006 is the distance between the rendering annotation point and the center point of the model in the Z-axis direction, 007 is the offset of the rendering annotation point relative to the center point of the model in the X-axis direction, 008 is the offset of the rendering annotation point relative to the center point of the model in the Y-axis direction, 009 is the first-person camera, 010 is the angle between the first-person camera and the rendering annotation point in the Z-axis direction, and 011 is the first-person camera facing the positive and negative directions of the X-axis, the positive and negative directions of the Y-axis, and the positive and negative directions of the Z-axis, rendering 6 static images. In this example, the starting position of the first-person camera is located at the position of the rendering annotation point, and the position parameters include the angle between the first-person camera and the rendering annotation point in the Z-axis direction, and the offset of the first-person camera relative to the center point of the model on the X-axis, Y-axis, and Z-axis.
[0082] In one example, the number of rendering annotation points and corresponding image acquisition devices is at least two, and step S304 includes: setting an image acquisition device near each rendering annotation point according to the position parameter. All image acquisition devices simultaneously render images in the direction of the coordinate axis in the three-dimensional model according to the rendering accuracy.
[0083] Optionally, the image can be rendered in the direction of the coordinate axis in the three-dimensional model, and the image can be rendered in the positive and negative directions of the X axis, the positive and negative directions of the Y axis, and the positive and negative directions of the Z axis in the three-dimensional model. In this way, by parallel rendering, rendering is performed in the direction of the coordinate axis according to the parameters and rendering accuracy of the image acquisition device, thereby improving rendering efficiency.
[0084] Continue to refer to Figure 1 , after step S103, step S104 is performed, as follows.
[0085] Step S104, sending the target image to the front-end device.
[0086] Optionally, when the rendering performance of the front-end device is insufficient, a pre-rendered image that best matches the resolution of the front-end model is sent to the front-end device. This not only reduces the hardware requirements for rendering of the digital twin system, but also improves rendering efficiency, while broadening the application scenarios of digital twin technology.
[0087] In summary, when the rendering performance of the front-end device meets the preset requirements, the present application sends the three-dimensional model to the front-end device, which is rendered by the front-end device. When the rendering performance of the front-end device is insufficient, the pre-rendered image that best matches the front-end device is selected as the target rendered image and sent to the front-end device. This makes up for the problem that when the hardware performance of the front-end device in the digital twin system is insufficient, rendering cannot be performed, which limits the application scenarios of digital twins. It reduces the hardware requirements for rendering of the digital twin system and broadens the application scenarios of digital twin technology. At the same time, this application can render in parallel during the pre-rendering process, which improves rendering efficiency.
[0088] In a second aspect, an embodiment of the present application provides a digital twin 3D model rendering system, Figure 7 is a structural block diagram of a digital twin 3D model rendering system according to an exemplary embodiment. Figure 7 As shown, the system includes:
[0089] Receiving module 100: used to receive a rendering request from a front-end device, where the rendering request includes hardware parameters of the front-end device.
[0090] Determination module 200: used to determine whether the rendering performance of the front-end device meets the preset requirements according to the hardware parameters.
[0091] Acquisition module 300: used to detect the resolution of the front-end device in response to the rendering performance failing to meet the preset requirements, and acquire a target image matching the resolution from the pre-rendered image.
[0092] Result module 400: used to send the target image to the front-end device.
[0093] In one example, the acquisition module 300 specifically includes: selecting, from the pre-rendered images, an image whose image resolution is less than or equal to the resolution of the front-end device and is closest to the resolution of the front-end device as the target image.
[0094] In one example, the pre-rendered image in the acquisition module 300 is acquired by the following steps:
[0095] Get the 3D model and the position of the rendered annotation point in the 3D model.
[0096] Get the position parameters of the image acquisition device corresponding to the rendered annotation point.
[0097] Gets the rendering precision of the rendered annotation points.
[0098] Set the image acquisition device according to the position parameters and render the image according to the rendering accuracy.
[0099] In one example, the image acquisition device includes a bird's-eye view camera, which faces the rendering annotation point. When the image acquisition device is a bird's-eye view camera, the rendering accuracy includes: the number of rendered pictures around the camera, the number of rendering levels, and the compression ratio of the rendering levels.
[0100] In one example, the number of rendering annotation points and corresponding image acquisition devices is at least two, the image acquisition device is set according to the position parameter, and the image is rendered according to the rendering accuracy, including:
[0101] An image acquisition device is set near each rendered annotation point according to the position parameters.
[0102] All image acquisition devices simultaneously surround and render images facing the rendering annotation points according to the rendering accuracy.
[0103] In one example, the image acquisition device includes a first-person camera, which faces outward from the rendering annotation point. When the image acquisition device is a first-person camera, the rendering accuracy includes: the number of rendering levels and the compression ratio of the rendering levels.
[0104] In one example, the number of rendering annotation points and corresponding image acquisition devices is at least two, the image acquisition device is set according to the position parameter, and the image is rendered according to the rendering accuracy, including:
[0105] An image acquisition device is set near each rendered annotation point according to the position parameters.
[0106] All image acquisition devices simultaneously render images in the direction of the coordinate axes in the three-dimensional model according to the rendering accuracy.
[0107] In one example, the system further includes: in response to the rendering performance meeting the preset requirements, sending the pre-acquired three-dimensional model to the front-end device.
[0108] In one example, after obtaining the position parameter, the system further includes:
[0109] It is used to preview the rendered annotation points according to the position parameters and determine whether the rendered annotation points and position parameters meet the preset conditions.
[0110] Used to update rendering annotation points and position parameters in response to not meeting preset conditions.
[0111] In summary, when the rendering performance of the front-end device meets the preset requirements, the present application sends the three-dimensional model to the front-end device, which is rendered by the front-end device. When the rendering performance of the front-end device is insufficient, the pre-rendered image that best matches the front-end device is selected as the target rendered image and sent to the front-end device. This makes up for the problem that when the hardware performance of the front-end device in the digital twin system is insufficient, rendering cannot be performed, which limits the application scenarios of digital twins. It reduces the hardware requirements for rendering of the digital twin system and broadens the application scenarios of digital twin technology. At the same time, this application can render in parallel during the pre-rendering process, which improves rendering efficiency.
[0112] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0113] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A digital twin 3D model rendering method, It is characterized in that include: Receive a rendering request from a front-end device, wherein the rendering request includes hardware parameters of the front-end device; Determining whether the rendering performance of the front-end device meets preset requirements according to the hardware parameters; In response to the rendering performance failing to meet the preset requirement, the resolution of the front-end device is detected, and a target image matching the resolution is obtained from a pre-rendered image, wherein the pre-rendered image is obtained by the following steps: Acquire a three-dimensional model and the position of a rendering annotation point in the three-dimensional model, acquire position parameters of an image acquisition device corresponding to the rendering annotation point, acquire rendering accuracy of the rendering annotation point, set the image acquisition device according to the position parameters, and render a picture according to the rendering accuracy; The target image is sent to the front-end device.
2. The digital twin 3D model rendering method according to claim 1, It is characterized in that The step of acquiring a target image matching the resolution from a pre-rendered image comprises: From the pre-rendered images, an image whose image resolution is less than or equal to the resolution of the front-end device and is closest to the resolution of the front-end device is selected as the target image.
3. The digital twin 3D model rendering method according to claim 1, It is characterized in that The image acquisition device includes a bird's-eye view camera, the bird's-eye view camera faces the rendering annotation point, When the image acquisition device is the bird's-eye view camera, the rendering accuracy includes: the number of rendered images around the camera, the number of rendering levels, and the compression ratio of the rendering levels.
4. The digital twin 3D model rendering method according to claim 3, It is characterized in that The number of the rendering annotation points and the corresponding image acquisition devices is at least two, the image acquisition device is set according to the position parameter, and the picture is rendered according to the rendering accuracy, including: Setting an image acquisition device near each of the rendering annotation points according to the position parameters; All the image acquisition devices simultaneously surround and render pictures facing the rendering annotation points according to the rendering accuracy.
5. The digital twin 3D model rendering method according to claim 1, It is characterized in that The image acquisition device includes a first-person camera, the first-person camera facing outward from the rendered annotation point, When the image acquisition device is the first-person camera, the rendering accuracy includes: the number of rendering levels and the compression ratio of the rendering levels.
6. The digital twin 3D model rendering method according to claim 5, It is characterized in that The number of the rendering annotation points and the corresponding image acquisition devices is at least two, the image acquisition device is set according to the position parameter, and the picture is rendered according to the rendering accuracy, including: Setting an image acquisition device near each of the rendering annotation points according to the position parameters; All the image acquisition devices simultaneously render images in the direction of the coordinate axes in the three-dimensional model according to the rendering accuracy.
7. The digital twin 3D model rendering method according to claim 1, It is characterized in that The method further comprises: In response to the rendering performance being able to meet the preset requirements, the pre-acquired three-dimensional model is sent to the front-end device.
8. The digital twin 3D model rendering method according to claim 1, It is characterized in that After obtaining the position parameter, the method further includes: Previewing the rendered annotation point according to the position parameter, and determining whether the rendered annotation point and the position parameter meet preset conditions; In response to not satisfying the preset condition, the rendering annotation point and the position parameter are updated.
9. A digital twin 3D model rendering system, It is characterized in that include: Receiving module: used for receiving a rendering request from a front-end device, wherein the rendering request includes hardware parameters of the front-end device; A judgment module: used to judge whether the rendering performance of the front-end device meets the preset requirements according to the hardware parameters; Acquisition module: used for detecting the resolution of the front-end device in response to the rendering performance failing to meet the preset requirements, and acquiring a target image matching the resolution from the pre-rendered image, wherein the pre-rendered image is acquired by the following steps: Acquire a three-dimensional model and the position of a rendering annotation point in the three-dimensional model, acquire position parameters of an image acquisition device corresponding to the rendering annotation point, acquire rendering accuracy of the rendering annotation point, set the image acquisition device according to the position parameters, and render a picture according to the rendering accuracy; Result module: used for sending the target image to the front-end device.
