Digital twin data rendering method, system, electronic device and storage medium
By dynamically obtaining window size and camera height information, determining the grid to aggregate and render digital twin data, solving the problem of low efficiency in rendering massive data in the existing technology, achieving more efficient rendering and improving user experience.
Patent Information
- Application Number
- CN202410017807.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-04
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-01-04
AI Technical Summary
When existing digital twin technology reproduces physical entities in virtual space, the efficiency of rendering massive data is inefficient, resulting in poor user experience.
By dynamically obtaining window size and camera height information, determining several grids, aggregating and rendering the data, reducing the amount of data, and improving rendering efficiency.
It effectively reduces the amount of data required for rendering, improves rendering efficiency, and improves user experience.
Smart Images

Figure CN118247467B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital twin technology, and in particular to a digital twin data rendering method, system, electronic device and storage medium. Background Art
[0002] Digital twin technology is based on data and models, and reproduces physical entities in the real world in the form of digital models in virtual space through multidisciplinary fusion simulation and other methods. However, in order to establish digital models in virtual space and reproduce physical entities through digital twin technology, it is necessary to combine multidisciplinary knowledge and technology to collect real-time data of physical entities. Therefore, the amount of data that needs to be processed and rendered is very large. Traditional rendering methods are inefficient when processing and rendering massive amounts of data, and the user experience is poor. Summary of the invention
[0003] In view of this, an object of an embodiment of the present invention is to provide a digital twin data rendering method, system, device and storage medium, which can improve rendering efficiency and improve user experience.
[0004] To achieve the above purpose, one aspect of an embodiment of the present application provides a digital twin data rendering method, the method comprising:
[0005] Dynamically obtain multiple data and first parameter information; wherein the first parameter information includes window size information and camera height information;
[0006] Determine a plurality of groups of first grids according to the first parameter information, aggregate the data according to the plurality of first grids, determine aggregation points and aggregation values corresponding to the plurality of first grids, and determine a first coefficient according to data distribution in each of the first grids;
[0007] Concatenate the aggregation value and the first coefficient with the corresponding aggregation point to obtain a target aggregation point;
[0008] The target aggregation points are rendered in sequence to obtain rendering results.
[0009] In some embodiments, determining a plurality of groups of first grids according to the first parameter information specifically includes:
[0010] Determine the window size information and the height information of the acquisition device according to the first parameter information;
[0011] Acquire a preset coordinate system, and determine the target coordinate origin according to the height information and the preset coordinate system; wherein the preset coordinate system represents the intrinsic reference coordinate system of the acquisition device;
[0012] A viewing area is determined according to the window size information and the target coordinate origin, and the viewing area is divided according to a preset step size to obtain a plurality of groups of first grids.
[0013] In some embodiments, aggregating the data according to the plurality of first grids specifically includes:
[0014] determining a first coordinate set according to the first grid, and calculating a grid centroid of the first grid according to the first coordinate set;
[0015] Determine several groups of first distances based on the data and several groups of grid centroids, sort the several groups of first distances, determine the minimum distance from all first distances based on the sorting result, and divide the data into the first grid corresponding to the minimum distance.
[0016] In some embodiments, the determining of the aggregation points corresponding to the first grids is obtained by calculating a first preset formula, wherein the first preset formula is as follows:
[0017]
[0018] Among them, the is the aggregation point of the jth grid, m is the total amount of data in the jth grid, a i is the weight of the i-th data in the j-th grid, P i is the i-th data in the j-th grid.
[0019] In some embodiments, rendering the target aggregation points in sequence to obtain rendering results specifically includes:
[0020] According to the matching of the aggregation value of the target aggregation point with a preset table, a corresponding data icon is determined; wherein the data icon includes different sizes or colors;
[0021] The data icons are processed in sequence according to the first coefficients of the target aggregation points to obtain a rendering result.
[0022] In some embodiments, the method further comprises:
[0023] Obtain a first instruction, and obtain the plurality of the data according to the first instruction; wherein the first instruction represents a rendering instruction, and the first instruction is generated by a terminal device or a software application according to an external operation.
[0024] In some embodiments, the method further comprises:
[0025] The rendering results are sent to the front-end device in sequence, so that the front-end device performs visual display according to the rendering results.
[0026] To achieve the above-mentioned purpose, another aspect of the embodiment of the present application provides a digital twin data rendering system, the system comprising:
[0027] A first module is used to dynamically obtain multiple data and first parameter information; wherein the first parameter information includes window size information and camera height information;
[0028] A second module is used to determine a plurality of groups of first grids according to the first parameter information; aggregate the data according to the plurality of first grids, determine aggregation points and aggregation values corresponding to the plurality of first grids, and determine a first coefficient according to data distribution in each of the first grids;
[0029] A third module is used to concatenate the aggregation value and the first coefficient with the corresponding aggregation point to obtain a target aggregation point;
[0030] The fourth module is used to render the target aggregation points in sequence to obtain rendering results.
[0031] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.
[0032] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0033] The implementation of the embodiment of the present invention includes the following beneficial effects: the embodiment dynamically obtains multiple data and obtains the first parameter information, wherein the first parameter information includes the window size information and the camera height information; then, a plurality of groups of first grids are determined according to the obtained first parameter information, and the first data set is aggregated according to the determined plurality of groups of first grids, and the corresponding aggregation point and aggregation value are determined according to each first grid; then, the corresponding first coefficient is determined according to the distribution of the data in each first grid; then, the obtained aggregation value and the first coefficient are spliced with the corresponding aggregation point to obtain the target aggregation point; then, the obtained target aggregation point is rendered to obtain the rendering result. Dynamically obtain multiple real-time data, and determine the first grid according to the obtained first parameter information, aggregate the obtained data according to the first grid, and divide the real-time obtained data through grid aggregation; and the aggregation value and the first coefficient of the aggregated grid are counted, and the characteristic information of the original data is retained; the obtained target aggregation points are rendered in sequence, which reduces the amount of data required for rendering and improves rendering efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a schematic diagram of the steps of a digital twin data rendering method provided in an embodiment of the present application;
[0035] Figure 2 It is a schematic flow chart of the steps of determining a first grid in a digital twin data rendering method provided in an embodiment of the present application;
[0036] Figure 3 It is a schematic flow chart of the steps of determining a second grid in a digital twin data rendering method provided in an embodiment of the present application;
[0037] Figure 4 It is a schematic flow chart of the steps for rendering in a digital twin data rendering method provided in an embodiment of the present application;
[0038] Figure 5 It is a schematic diagram of the steps of a specific embodiment provided in the embodiment of the present application;
[0039] Figure 6 This is a schematic diagram of data obtained in a specific embodiment provided in the embodiment of the present application;
[0040] Figure 7 is a schematic diagram of grid aggregation data in a specific embodiment provided in an embodiment of the present application;
[0041] Figure 8 It is a structural block diagram of a digital twin data rendering system provided in an embodiment of the present application;
[0042] Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0043] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
[0044] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0045] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present invention described herein can be implemented in an order other than that illustrated or described herein.
[0046] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present invention have the same meanings as those commonly understood by those skilled in the art of the present invention. The terms used in the embodiments of the present invention are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.
[0047] In the prior art, the digital twin technology is used to accurately map physical entities in the real world to digital models in the virtual world. In order to achieve accurate mapping, it is necessary to provide real-time feedback of physical entity data in the real world, and to render the digital models in the virtual world in real time through a multidisciplinary coupling simulation method. Due to the real-time feedback of physical entity data, the amount of data that needs to be rendered is very large, and due to the multidisciplinary coupling, the complexity of the data is also very high. The existing rendering software program is used to render the acquired real-time data, but the rendering efficiency is low. Due to the large amount of data, the digital model rendered based on the data will be too crowded in the view, resulting in a poor user experience.
[0048] In view of this, a digital twin data rendering method is provided in an embodiment of the present application. The scheme dynamically acquires multiple data and first parameter information, determines several groups of first grids according to the acquired first parameter information, and aggregates and divides the dynamically acquired data according to the obtained first grids. By dividing the data, the amount of data during rendering is reduced, thereby improving the rendering efficiency; the number of aggregations and aggregation points in each grid after aggregation are statistically calculated, and corresponding coefficients are obtained according to the data distribution in each grid. Rendering is performed according to the obtained coefficients, number of aggregations and aggregation points, the data complexity is reduced through statistical calculation, the distribution of data is reflected through coefficients, and the rendering effect is guaranteed.
[0049] Figure 1 is an optional flowchart of the digital twin data rendering method provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S104.
[0050] Step S101, dynamically acquiring multiple data and first parameter information; wherein the first parameter information includes window size information and camera height information;
[0051] Step S102, determining a plurality of groups of first grids according to the first parameter information, aggregating data according to the plurality of first grids, determining aggregation points and aggregation values corresponding to the plurality of first grids, and determining a first coefficient according to data distribution in each first grid;
[0052] Step S103, concatenating the aggregation value and the first coefficient with the corresponding aggregation point to obtain a target aggregation point;
[0053] Step S104, rendering the target aggregation points in sequence to obtain rendering results.
[0054] In steps S101 to S104 shown in the embodiment of the present application, a database storing data is accessed through an API or other connection method to dynamically acquire data, or a collection device for data collection is connected to acquire the current collected data; at the same time, first parameter information is dynamically acquired, wherein the first parameter information includes the size information of the current window and the height information of the collection device during data collection; by dynamically acquiring data, the real-time performance of data rendering is improved. When the object for data collection changes, the rendering result can be adjusted in real time according to the change, and the visualization model can be adjusted in real time at the same time, and the user can obtain the changes of the model in real time; the window size can be the window size used by the visualization terminal for rendering results. By acquiring the first parameter information in real time, the generated grid parameters are adjusted in real time, and then the subsequent rendering results and the fineness of the visualization model are adjusted to meet the different display needs of users for the model. Request; exemplarily, when the rendering result is displayed on a visualization terminal, the user operates the terminal to zoom in on some details of the rendering result or to reduce the overall display of the rendering result, and obtains different window size information by collecting parameters of the visualization terminal; dynamically generates a plurality of groups of first grids according to the obtained first parameter information, and in particular, the size of the first grid can be adaptively adjusted according to actual needs to adapt to different screen resolutions and view depths; then, the obtained data set is aggregated according to the generated plurality of groups of first grids, and the data set is classified into different first grids, and the number of aggregated and classified data in each first grid is counted, and a first coefficient in each first grid is determined, and the first coefficient characterizes the distribution of data in the grid. In subsequent rendering, the texture distribution of the rendering result is determined according to the obtained first coefficient, and the aggregation point in each first grid is calculated; it is specifically determined by the following formula:
[0055]
[0056] Among them, the is the aggregation point of the jth grid, m is the total amount of data in the jth grid, a i is the weight of the i-th data in the j-th grid, P i is the i-th data in the j-th grid.
[0057] According to the first coefficient, aggregation number and aggregation point of the data in each first grid, rendering is performed to obtain the rendering result. According to the determined first grid, the data set is aggregated to reduce the amount of data; the aggregation number and aggregation point of each grid data are statistically determined, and rendering is performed according to the aggregation point and aggregation number to improve rendering efficiency; the distribution of data is reflected by the coefficient to ensure the rendering effect.
[0058] In the method of some embodiments, the method also includes step S105.
[0059] Step S105, obtaining a first instruction, and obtaining multiple data according to the first instruction; wherein the first instruction represents a rendering instruction, and the first instruction is generated by a terminal device or a software application according to an external operation.
[0060] In step S105 of some embodiments, the system obtains a first instruction through an API or other connection method, and executes the dynamic data acquisition in step S101 according to the obtained first instruction. The first instruction is generated by a terminal device or software application connected through an API or other connection method, and the terminal device or software application generates the first instruction in response to the operation of the technician; in some embodiments, if the data for rendering is stored in multiple databases, the first instruction can also point to the target database.
[0061] In the method of some embodiments, the method also includes step S106.
[0062] Step S106, sending the rendering results to the front-end device in sequence, so that the front-end device performs visual display according to the rendering results.
[0063] In step S106 of some embodiments, the back-end system renders the grid-aggregated data in turn to obtain rendering results, and then sends the obtained rendering results to the front-end for visualization in turn. The visualization front-end system performs visualization according to the obtained rendering results in turn, thereby realizing real-time rendering and display of the front-end and back-end. At the same time, the rendering results can also be compressed to generate hyperlinks, thereby enabling the migration of rendering results.
[0064] See also Figure 2 In some embodiments, step S102 may include but is not limited to steps S201 to S203:
[0065] Step S201, determining the window size information and the height information of the acquisition device according to the first parameter information;
[0066] Step S202, obtaining a preset coordinate system, and determining the target coordinate origin according to the height information and the preset coordinate system; wherein the preset coordinate system represents the intrinsic reference coordinate system of the acquisition device;
[0067] Step S203, determining a viewing area according to the window size information and the target coordinate origin, and dividing the viewing area according to a preset step size to obtain a plurality of groups of first grids.
[0068] In step S201 of some embodiments, the first parameter information includes the window size information of the screen and the height of the acquisition device when acquiring data. The window size determines the size of the display area, and the amount of data to be displayed in the display area can be determined based on the window size to reduce the display of too much data in a smaller window, which causes excessive crowding in the window; and the height information of the acquisition device determines the display of the rendering result. Exemplarily, after rendering the acquired data and obtaining the rendering result, the height information of the acquisition device is obtained to be 1.5 meters. Then, a rendering model of the acquisition device at a height of 1.5 meters is displayed in the window. At this time, the clarity or granularity of the rendering model displayed in the window is relatively low; if the acquired height information of the acquisition device is 0.2 meters, then the clarity or granularity of the rendering model displayed in the window is relatively high; the granularity and display status of the rendering can be determined by determining the window size information and the height information of the acquisition device.
[0069] In step S202 of some embodiments, after obtaining the window size information of the current screen and the height information of the acquisition device according to step S201, the preset coordinate system of the acquisition device is obtained, and the coordinate position of the height information of the acquisition device in the preset coordinate system is used as the target coordinate origin. Then, based on the target coordinate origin, a view area is constructed according to the window size information for the subsequent first grid division; the determination of the target coordinate origin is based on the preset coordinate system, and the preset coordinate system is the internal reference coordinate system set by the acquisition device itself. The acquisition device acquires point cloud data of the physical entity based on the internal reference coordinate system and determines the corresponding coordinate information. By determining the target coordinate origin, the view area is constructed in the internal reference coordinate system of the acquisition device, which reduces the conversion calculation of coordinate data between different coordinate systems, thereby improving rendering efficiency.
[0070] In step S203 of some embodiments, the target coordinate origin is determined by step S202, and a view area is constructed based on the target coordinate origin and the window size information, and the view area contains the acquired data as much as possible, and then the view area is divided according to the preset step size, and the view area is divided into several groups of grids of the same size for subsequent data aggregation; illustratively, the preset step size is set to 2, and the constructed view area is a rectangular area with a length of 16 and a width of 8, and the view area is divided into 32 grids according to the preset step size. In particular, an adaptive algorithm can also be set to make each grid adaptively adjusted, and it is not limited to grids of the same size, so as to adapt to different screen resolutions and view depths.
[0071] See also Figure 3 In some embodiments, step S103 may include but is not limited to steps S301 to S302:
[0072] Step S301, determining a first coordinate set according to a first grid, and calculating a grid centroid of the first grid according to the first coordinate set;
[0073] Step S302, determining a plurality of groups of first distances according to the data and a plurality of groups of grid centroids, sorting the plurality of groups of first distances, determining a minimum distance, and dividing the data into a first grid corresponding to the minimum distance.
[0074] In step S301 of some embodiments, several groups of first grids are obtained through steps S201 to S203. Since the first grids are obtained based on the internal reference coordinate system of the acquisition device, each first grid has corresponding coordinate information, including the coordinate information of the four vertices of the first grid. The center of mass of the grid can be calculated based on the coordinate information of the four vertices. In subsequent operations, the data falling into the first data sets of several groups of first grids are aggregated and classified according to the center of mass to reduce the complexity of the data.
[0075] In step S302 of some embodiments, the coordinate information of the data in the first data set that falls into several groups of first grids is read in sequence, the distance between the data and the center of mass of each first grid determined in step S301 is calculated, the calculation results are sorted, and the minimum value is determined, indicating that the data falls into the grid corresponding to the minimum value, and the data is marked as the data in the grid corresponding to the minimum value, until all the data are classified, and the aggregation of the data of the first data set is completed; the acquired data is aggregated through the first grid, and the aggregation can reduce the amount of data to be calculated and processed during subsequent rendering.
[0076] See also Figure 4 In some embodiments, step S104 may include but is not limited to steps S401 to S402:
[0077] Step S401, matching the aggregation value of the target aggregation point with a preset table to determine a corresponding data icon; wherein the data icon includes different sizes or colors;
[0078] Step S402, fit the data icon on the aggregation point corresponding to the aggregation value to obtain a rendering result. Process the data icon according to the first coefficient of the target aggregation point to obtain a rendering result.
[0079] In step S401 of some embodiments, aggregation points are calculated for each first grid that completes data aggregation in step S302 to determine the aggregation point information in each first grid; then, the number of aggregated data in each first grid is counted, and the corresponding aggregation points are assigned according to the statistically obtained aggregation number, so that when performing subsequent rendering results, the user can quickly determine the degree of aggregation of the data; then, the corresponding data icon is determined by matching the aggregation number with the preset table, wherein the preset table includes the correspondence between different aggregation values and different data icons; exemplarily, when the aggregation number is less than 20, the corresponding data icon size is 2*2, and the color of the data icon is red; when the aggregation number is between 20 and 50, the corresponding data icon size is 3*3, and the color of the data icon is blue, etc.; the specific settings can be set according to the actual application, and the embodiments of the present application are not specifically limited.
[0080] In step S402 of some embodiments, after the data icons corresponding to each first grid are given in step S401, each data icon is pasted on the aggregation point of the corresponding first grid; then, the data icon on the aggregation point is processed according to the first coefficient obtained. Exemplarily, the map obtained by the aggregation point is a two-dimensional plane map, and the first coefficient characterizes the distribution of the original data in the first grid corresponding to the aggregation point, including the depth and density of the data distribution; the obtained data icon is adjusted according to the first coefficient so that the data icon reproduces the distribution of the original data as much as possible; the rendering of the aggregated data in each first grid is completed to obtain the final rendering result. After the data is aggregated through the grid, the aggregation point of the aggregated data is used instead of the data for rendering, which reduces the density of the data and the amount of data to be processed during the rendering process, thereby improving the rendering efficiency.
[0081] The following is a detailed description and explanation of the solution of the embodiment of the present invention in conjunction with a specific application example:
[0082] Reference Figure 5 , Figure 5 A digital twin data rendering method provided in an embodiment of the present application is shown, which accesses a data server through an interface to obtain point cloud data in the data server, as shown in FIG. Figure 6 As shown; then the window size of the current display screen and the height of the camera are obtained, and an aggregation grid is generated according to the window size of the screen and the height of the camera; then, the acquired data is aggregated according to the generated aggregation grid, and the distance relationship between each point cloud data in the data set and different grids in the aggregation grid is calculated, and the corresponding grid of each point cloud data is determined according to the distance relationship; after completing the aggregation of each point cloud data in the data set, the number of aggregated point cloud data in each grid in the aggregation grid is statistically calculated, the first coefficient in each grid is determined, and the aggregation point of each point cloud data in the grid is calculated, as shown in the following figure. Figure 7As shown, the real-time acquired data is divided into different grids, and the aggregation points of each grid are obtained by calculation based on the aggregated data in each grid, as shown in Figure 7 ; generate a corresponding aggregation value according to the number of point cloud data aggregated in the grid, determine the corresponding data icon according to the obtained aggregation value, and assign the data icon to the calculated aggregation point; finally, render in sequence according to the obtained first coefficient, the data icon and the corresponding aggregation point to obtain the rendering result, and send the obtained rendering result to the front-end display screen in sequence for visual display, and the front-end device performs visual modeling in sequence according to the rendering results received in sequence. For example, the back-end system dynamically obtains data of a car in the real world, renders the obtained car data in sequence, and sends the rendered results to the front-end device in sequence, and the front-end device establishes a visualization model in sequence according to the received rendering results. The user can obtain the establishment process of the visualization model of the car in the real world from the front-end device.
[0083] The implementation of the embodiment of the present invention includes the following beneficial effects: the embodiment dynamically obtains multiple data and obtains the first parameter information, wherein the first parameter information includes the window size information and the camera height information; then, according to the obtained first parameter information, several groups of first grids are determined, and then the first data set is aggregated according to the determined several groups of first grids, and the corresponding aggregation point and aggregation value are determined according to each first grid; then, the corresponding first coefficient is determined according to the distribution of data in each first grid; then, the obtained aggregation value and the first coefficient are spliced with the corresponding aggregation point to obtain the target aggregation point; then, the obtained target aggregation point is rendered to obtain the rendering result. Dynamically obtain multiple data, and obtain the first parameter information of the acquisition device and the visualization terminal, determine the first grid according to the obtained first parameter information, and aggregate the obtained first data set according to the first grid, thereby reducing the amount of data to be rendered and improving the rendering efficiency; statistically calculate the first coefficient of data distribution in each first grid, the amount of aggregated data in the grid and the corresponding aggregation point, and render according to the first coefficient, the amount of aggregated data and the aggregation point, thereby reducing data complexity and improving the rendering efficiency.
[0084] See also Figure 8 The embodiment of the present application also provides a digital twin data rendering system, which can implement the above-mentioned digital twin data rendering method, and the system includes:
[0085] A first module is used to dynamically obtain multiple data and first parameter information; wherein the first parameter information includes window size information and camera height information;
[0086] A second module is used to determine a plurality of groups of first grids according to the first parameter information; aggregate the data according to the plurality of first grids, determine aggregation points and aggregation values corresponding to the plurality of first grids, and determine a first coefficient according to data distribution in each of the first grids;
[0087] A third module is used to concatenate the aggregation value and the first coefficient with the corresponding aggregation point to obtain a target aggregation point;
[0088] The fourth module is used to render the target aggregation points in sequence to obtain rendering results.
[0089] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0090] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned digital twin data rendering method when executing the computer program. The electronic device can be any smart terminal including a tablet computer, a car computer, etc.
[0091] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0092] See also Fig. 9 , Fig. 9 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0093] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0094] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the digital twin data rendering method of the embodiment of this application;
[0095] Input / output interface 903, used to implement information input and output;
[0096] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);
[0097] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);
[0098] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .
[0099] Among them, the memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. The memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a remote memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0100] It can be seen that the contents of the above method embodiments are all applicable to the electronic device embodiments. The functions specifically implemented by the device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0101] In addition, the embodiment of the present application also discloses a computer program product or a computer program, and the computer program product or the computer program is stored in a computer-readable storage medium. The processor of the computer device can read the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device performs the above method. Similarly, the contents in the above method embodiment are all applicable to the storage medium embodiment, and the functions specifically implemented by the storage medium embodiment are the same as those in the above method embodiment, and the beneficial effects achieved are also the same as those achieved by the above method embodiment.
[0102] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the above-mentioned digital twin data rendering method is implemented.
[0103] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0104] It is understood that all or some steps and systems in the disclosed method above can be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0105] The digital twin data rendering method, digital twin data rendering system, electronic device and storage medium provided in the embodiment of the present application dynamically acquire multiple data and acquire first parameter information, determine several groups of first grids according to the acquired first parameter information, and then aggregate the acquired multiple data according to the determined several groups of first grids to obtain several groups of first grids that complete data aggregation, and then. Statistically calculate and determine the first coefficient of data distribution in each first grid, the corresponding aggregation point and the corresponding aggregation value, render according to the first coefficient, aggregation value and aggregation point corresponding to each first grid calculated, and obtain the rendering result; dynamically acquire multiple data, determine the first grid according to the acquired first parameter information, aggregate the acquired multiple data according to the first grid, reduce the amount of data to be calculated and processed during subsequent rendering, and improve rendering efficiency; statistically obtain the amount of aggregated data and the corresponding aggregation point in each first grid, reduce the complexity of the data to be rendered, and improve rendering efficiency.
[0106] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A digital twin data rendering method, characterized in that: The method comprises: Dynamically obtain multiple data and first parameter information; wherein the first parameter information includes window size information and camera height information; Determine a plurality of groups of first grids according to the first parameter information, aggregate the data according to the plurality of groups of the first grids, determine aggregation points and aggregation values corresponding to the plurality of groups of the first grids, and determine a first coefficient according to data distribution in each of the first grids; Concatenate the aggregation value and the first coefficient with the corresponding aggregation point to obtain a target aggregation point; The target aggregation points are rendered in sequence to obtain rendering results.
2. The method according to claim 1, characterized in that: The determining of a plurality of groups of first grids according to the first parameter information specifically includes: Determine the window size information and the height information of the acquisition device according to the first parameter information; Acquire a preset coordinate system, and determine the target coordinate origin according to the height information and the preset coordinate system; wherein the preset coordinate system represents the intrinsic reference coordinate system of the acquisition device; A viewing area is determined according to the window size information and the target coordinate origin, and the viewing area is divided according to a preset step size to obtain a plurality of groups of first grids.
3. The method according to claim 1, characterized in that The aggregating the data according to the plurality of groups of the first grids specifically includes: determining a first coordinate set according to the first grid, and calculating a grid centroid of the first grid according to the first coordinate set; Determine several groups of first distances based on the data and several groups of grid centroids, sort the several groups of first distances, determine the minimum distance from all first distances based on the sorting result, and divide the data into the first grid corresponding to the minimum distance.
4. The method according to claim 1, characterized in that: The determining of the plurality of groups of aggregation points corresponding to the first grids is obtained by calculation using a first preset formula, wherein the first preset formula is as follows: Among them, the is the aggregation point of the jth grid, m is the total amount of data in the jth grid, a i is the weight of the i-th data in the j-th grid, P i is the i-th data in the j-th grid.
5. The method according to claim 1, characterized in that The rendering of the target aggregation points in sequence to obtain rendering results specifically includes: According to the aggregation value of the target aggregation point, the data icon corresponding to the aggregation value is matched with a preset table, wherein the data icon includes different sizes or colors; The data icons are processed in sequence according to the first coefficients of the target aggregation points to obtain a rendering result.
6. The method according to claim 1, characterized in that The method further comprises: Obtain a first instruction, and obtain the plurality of the data according to the first instruction; wherein the first instruction represents a rendering instruction, and the first instruction is generated by a terminal device or a software application according to an external operation.
7. The method according to claim 1, characterized in that The method further comprises: The rendering results are sent to the front-end device in sequence, so that the front-end device performs visual display according to the rendering results.
8. A digital twin data rendering system, characterized in that: include: A first module is used to dynamically obtain multiple data and first parameter information; wherein the first parameter information includes window size information and camera height information; A second module is used to determine a plurality of groups of first grids according to the first parameter information; aggregate the data according to the plurality of groups of the first grids, determine aggregation points and aggregation values corresponding to the plurality of groups of the first grids, and determine a first coefficient according to data distribution in each of the first grids; A third module is used to concatenate the aggregation value and the first coefficient with the corresponding aggregation point to obtain a target aggregation point; The fourth module is used to render the target aggregation points in sequence to obtain rendering results.
9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Mass data aggregation display method and system based on map, equipment and medium
CN110647608A
Mass data aggregation rendering method and system based on electronic map
CN111539871A
Method, device and equipment for automatically generating and rendering three-dimensional night scene light
CN112184878A
Marking point rendering method and device, computer equipment and storage medium
CN116883563A
System, method and computer program product for automatic optimization of 3D textured models for network transfer and real-time rendering
US20170228894A1
