Thermodynamic diagram generation method and device, equipment, storage medium and program product

By determining the viewpoint information and view plane of the virtual camera during the heatmap generation process, filtering target texture points and projecting them, the problem of low computing power utilization in the existing technology is solved, and more efficient heatmap generation is achieved.

CN120931807APending Publication Date: 2025-11-11GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510794164.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

Existing technologies have low computational efficiency in heatmap generation, leading to excessive consumption of computing resources.

Method used

By responding to the operation commands of the 3D heatmap, the viewpoint information of the virtual camera is determined, a view plane is created, and target texture points within the view frustum are selected. Based on the influence radius of the target texture points, the texture data is projected onto the view plane to generate a 2D heatmap.

Benefits of technology

It improves computing power utilization, reduces the demand for computing equipment and resources, and increases the efficiency of heatmap generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120931807A_ABST
    Figure CN120931807A_ABST
Patent Text Reader

Abstract

The invention relates to a thermodynamic diagram generation method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the steps of determining viewpoint information of a virtual camera in response to an operation instruction for a three-dimensional thermodynamic diagram, creating a view plane according to the viewpoint information and a preset distance parameter, screening out a target texture point from texture points according to position coordinates of the texture points in the three-dimensional thermodynamic diagram, and displaying the target texture point in the three-dimensional thermodynamic diagram. And projecting texture data bound with the target texture point to a visual plane based on the influence radius of the target texture point, and generating a two-dimensional thermodynamic diagram based on the projected visual plane. By adopting the method, the computing power utilization rate in the thermodynamic diagram generation process can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of heatmap technology, and in particular to a method, apparatus, computer device, computer-readable storage medium, and computer program product for generating heatmaps. Background Technology

[0002] With the development of computer graphics systems, users have gradually begun to use computers to draw, edit, and view images. Computer graphics have many advantages, such as ease of modification, quick display, and convenient access. As computer graphics become more detailed, users are beginning to use them to achieve more functions, such as using color changes in heatmaps to represent the intensity or density of data values. The rendering and display of more detailed images also brings a higher load to computer hardware.

[0003] In existing technologies, when rendering detailed images, image generation is often achieved by increasing computing power or rendering time, which results in low computing power utilization. Summary of the Invention

[0004] Therefore, it is necessary to provide a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for generating heat maps that can improve the utilization rate of computing power during the heat map generation process, in response to the above-mentioned technical problems.

[0005] In a first aspect, this application provides a method for generating a heatmap, comprising:

[0006] In response to operation commands for the 3D heatmap, the viewpoint information of the virtual camera is determined, including viewpoint coordinates and view vector;

[0007] A view plane is created based on viewpoint information and preset distance parameters. The normal vector of the view plane is parallel to the view vector, and the view vector points to the center coordinates of the view plane.

[0008] Based on the position coordinates of each texture point in the 3D heat map, target texture points are selected from the texture points. The position coordinates of the target texture points are within the view frustum of the virtual camera.

[0009] Based on the influence radius of the target texture point, the texture data bound to the target texture point is projected onto the view plane, and a two-dimensional heat map is generated based on the projected view plane.

[0010] In one embodiment, creating a view plane based on viewpoint information and preset distance parameters includes:

[0011] The target vector is calculated based on the preset distance parameters and the view vector;

[0012] Use the endpoint coordinates of the target vector as the center coordinates of the view plane, and use the center coordinates as the starting point to create a normal vector. The direction of the normal vector is opposite to the direction of the view vector.

[0013] Create the view plane based on the normal vector and center coordinates.

[0014] In one embodiment, the target texture point is selected from the texture points based on their position coordinates in the three-dimensional heatmap, including:

[0015] The projection vector from each texture point to the view plane is obtained based on the position coordinates of each texture point;

[0016] Select the target projection vector whose direction is opposite to the view vector from each projection vector, and take the texture point corresponding to the target projection vector as the target texture point.

[0017] In one embodiment, projecting the texture data bound to the target texture point onto the view plane based on the influence radius of the target texture point includes:

[0018] Based on the length of the target projection vector corresponding to each target texture point, the target texture points are sorted to obtain the sorting result. The sorting priority of each target texture point is positively correlated with the length of the target projection vector corresponding to each target texture point.

[0019] Based on the sorting results, the texture data bound to each target texture point is projected onto the view plane according to the influence radius of each target texture point.

[0020] In one embodiment, the process of generating a three-dimensional heatmap includes:

[0021] In response to a command to view a 3D heatmap, obtain the position coordinates, influence radius, and texture data of each texture point in the 3D heatmap;

[0022] A 3D heatmap is rendered based on the position coordinates of each texture point, its radius of influence, and the texture data.

[0023] In one embodiment, the method further includes:

[0024] The power load of each region is determined based on the thermochromaticity of each region in the two-dimensional heat map, and the power load is positively correlated with the thermochromaticity.

[0025] Power control strategies are determined based on power load conditions.

[0026] Secondly, this application also provides an apparatus for generating a heat map, comprising:

[0027] An operation command response module is used to respond to operation commands for a three-dimensional heatmap and determine the viewpoint information of the virtual camera, wherein the viewpoint information includes viewpoint coordinates and view vector;

[0028] A view plane creation module is used to create a view plane based on the viewpoint information and preset distance parameters. The normal vector of the view plane is parallel to the view vector, and the view vector points to the center coordinates of the view plane.

[0029] The target texture point filtering module is used to filter out target texture points from the texture points according to the position coordinates of each texture point in the three-dimensional heat map, wherein the position coordinates of the target texture point are within the view frustum of the virtual camera;

[0030] The projection module is used to project the texture data bound to the target texture point onto the view plane based on the influence radius of the target texture point, and generate a two-dimensional heat map based on the projected view plane.

[0031] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described in the first aspect.

[0032] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect.

[0033] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in the first aspect.

[0034] The aforementioned heatmap generation method, apparatus, computer device, computer-readable storage medium, and computer program product, in response to an operation command for a three-dimensional heatmap, determine the viewpoint information of the virtual camera of the operator. The viewpoint information includes viewpoint coordinates and view vector. A view plane is created based on the viewpoint information and preset distance parameters. The normal vector of the view plane is parallel to the view vector, and the view vector points to the center coordinates of the view plane. By creating the view plane, the rendering of the three-dimensional heatmap is converted into the projection rendering of a two-dimensional plane. Based on the position coordinates of each texture point in the three-dimensional heatmap, target texture points whose position coordinates are within the view frustum range of the virtual camera are selected from the texture points. Based on the influence radius and / or position coordinates of the target texture points, the texture data bound to the target texture points is projected onto the view plane, and a two-dimensional heatmap is generated based on the projected view plane. By converting the rendering of a three-dimensional model with high spatial and temporal complexity into the projection of a two-dimensional plane to generate a heatmap, the demand for computing devices and / or computing resources is reduced, and the computing power utilization rate in the heatmap generation process is improved. Attached Figure Description

[0035] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0036] Figure 1 This is an application environment diagram of a heatmap generation method in one embodiment;

[0037] Figure 2 This is a flowchart illustrating a method for generating a heatmap in one embodiment;

[0038] Figure 3 This is a flowchart illustrating the process of generating a three-dimensional heat map in one embodiment;

[0039] Figure 4 This is a flowchart illustrating step 202 in one embodiment;

[0040] Figure 5 This is a flowchart illustrating step 203 in one embodiment;

[0041] Figure 6 This is a flowchart illustrating step 204 in one embodiment;

[0042] Figure 7 This is a flowchart illustrating the process of determining a power control strategy in one embodiment;

[0043] Figure 8 This is a schematic diagram of a two-dimensional heat map in a power scenario in one embodiment;

[0044] Figure 9 This is a flowchart illustrating a method for generating a heatmap in another embodiment;

[0045] Figure 10 This is a structural block diagram of a heat map generation device in one embodiment;

[0046] Figure 11 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0047] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0048] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.

[0049] The heatmap generation method provided in this application embodiment can be applied to, for example, Figure 1 The application environment shown includes at least terminal 101.

[0050] The terminal 101 is used to acquire operation instructions for the 3D heatmap, create a view plane based on the viewpoint information of the virtual camera, select target texture points from the texture points of the 3D heatmap, project the texture data bound to the target texture points onto the view plane, and generate a 2D heatmap based on the projected view plane. Furthermore, the terminal 101 can also install a configuration and / or viewing program for the heatmap to run and view the 2D and / or 3D heatmaps. The terminal 101 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, drones, IoT devices, and portable wearable devices. IoT devices can be smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc.

[0051] In addition, the application environment may also include a server 102, which can be used to store the position coordinates, influence radius, and / or texture data of each texture point in the 3D heatmap, and send the position coordinates, influence radius, and / or texture data of each texture point to the terminal according to the instructions of the terminal 101. The server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.

[0052] In one exemplary embodiment, such as Figure 2 As shown, a method for generating a heatmap is provided, which can be applied to... Figure 1 The following steps are used as an example of the terminal in the example, including steps 201 to 204.

[0053] Step 201: In response to the operation command for the three-dimensional heatmap, determine the viewpoint information of the virtual camera.

[0054] In this application, a heatmap is a graph used to characterize the distribution of data in a region. The density of data is usually represented by the intensity of color (chromaticity). For example, areas with darker colors (higher chromaticity) indicate higher data density, while areas with lighter colors indicate lower data density.

[0055] In practical applications, 3D heatmaps are also being used for three-dimensional scenes. A 3D heatmap is a map that uses the intensity (chromaticity) of colors to represent the density of data in a 3D modeling scene and / or a 3D map scene. For example, a heatmap corresponding to a city's top-down view can be used to observe the regional distribution of people in the city, while a heatmap corresponding to a city's front view can be used to observe the floor distribution of people in the city. 3D heatmaps include: 3D power heatmaps, 3D city heatmaps, 3D industrial heatmaps, and / or 3D pollution heatmaps; correspondingly, 2D heatmaps can also include 2D power heatmaps, 2D city heatmaps, 2D industrial heatmaps, and / or 2D pollution heatmaps.

[0056] This application retains the advantage of 3D heatmaps in viewing multi-dimensional data by converting the texture rendering of 3D heatmaps into the projection generation of 2D heatmaps. At the same time, it avoids the disadvantage of excessive consumption of computing resources caused by the need for texture rendering of 3D heatmaps every time the operator views them. This allows devices with lower computing power to view 3D heatmaps, thus improving computing power utilization.

[0057] In this context, a virtual camera refers to a software tool or technology used to simulate the behavior of a real-world camera, allowing users to observe and render 3D scenes from different perspectives. The virtual camera can be static or dynamic, representing the perspective of the operator and / or user. The viewpoint of the virtual camera refers to its position and orientation in 3D space, representing the perspective from which the operator and / or user ultimately observes the heatmap. Viewpoint information includes the virtual camera's line-of-sight coordinates and view vector. The line-of-sight coordinates represent the virtual camera's position in 3D space, and the view vector represents its orientation. Viewpoint information includes line-of-sight coordinates and / or view vectors.

[0058] During implementation, users and / or operators can view the 3D heatmap and manipulate it through rotation, translation, and / or scaling. This manipulation typically involves changing the viewpoint information of the virtual camera. Upon receiving the operation command, the terminal needs to redetermine the virtual camera's viewpoint information for rendering and displaying the heatmap. To address this, after receiving the externally input operation command for the 3D heatmap, the terminal first determines the virtual camera's viewpoint information. Responding to the operation command, it determines the virtual camera's viewpoint coordinates and view vector based on the operation parameters included in the command. These operation parameters can be the operation type (rotation, translation, and / or scaling) and operation data (rotation angle, translation distance, direction, and / or scaling ratio).

[0059] During execution, the terminal can determine the viewpoint information of the virtual camera based on the operation parameters contained in the operation instruction; the terminal can determine the calculation strategy based on the operation type contained in the operation instruction, and calculate the viewpoint information of the virtual camera after the operation based on the operation data and the original viewpoint information of the virtual camera before the operation instruction is received, according to the calculation strategy.

[0060] For example, when the operation type is translation, the calculation strategy is determined according to the translation type as follows: planar movement strategy. Based on the translation distance, translation direction and the original viewpoint coordinates in the original viewpoint information, the translated viewpoint coordinates are calculated. At the same time, the viewpoint coordinates are used as the starting point of the view vector, and the translated viewpoint coordinates and view vector are used as the viewpoint information of the virtual camera.

[0061] For example, when the operation type is rotation, the calculation strategy is determined according to the rotation type as follows: rotation-movement strategy, calculate the rotated viewpoint coordinates based on the rotation angle and the original viewpoint coordinates in the original viewpoint information, and use the viewpoint coordinates as the starting point of the view vector, and use the rotated viewpoint coordinates and view vector as the viewpoint information of the virtual camera.

[0062] Step 202: Create a view plane based on viewpoint information and preset distance parameters.

[0063] The view plane is an imaginary plane used by the virtual camera to generate 2D images. It is located a certain distance in front of the virtual camera and perpendicular to the camera's line of sight. The rendered content on the view plane is visible to the user and / or operator. This distance can be pre-configured using preset distance parameters; that is, the distance parameter represents the distance between the view plane and the virtual camera. Here, the normal vector of the view plane is parallel to the view vector, and the view vector of the virtual camera points to the center coordinates of the view plane. This distance parameter can also be dynamically adjusted in real time, and the user can control this distance parameter by adjusting the view.

[0064] This application converts the rendering of a three-dimensional heatmap into a projection of a two-dimensional heatmap, that is, projection is performed in the view plane. After the user and / or operator operates on the three-dimensional heatmap, the position of the view plane will also change, so the view plane needs to be recreated.

[0065] During implementation, the terminal obtains the preset distance parameters of the virtual camera relative to the view plane, determines the view plane information based on the distance parameters and the viewpoint information of the virtual camera, and creates the view plane based on the view plane information.

[0066] During execution, the terminal can create a view plane using the view vector and distance parameters in the viewpoint information. The terminal can obtain a vector pointing to the view plane by multiplying the view vector by the distance parameters, take the endpoint of the vector as the center coordinate of the view plane, and take the inverse vector as the normal vector of the view plane. The view plane is created based on the normal vector and the center coordinate. In addition, the terminal can create a target plane using the view vector as the normal vector and the viewpoint coordinates as the center coordinates, and translate the target plane along the direction of the view vector according to the preset distance parameters. The translated plane is then taken as the view plane.

[0067] For example, based on the position of the virtual camera and the normal vector N, a dynamic plane Plane is created that always faces the virtual camera and has the virtual camera lens as its center point. The normal vector N always faces the virtual camera. The plane can be represented as N(P-P0)=0, where P0 is the virtual machine position. The plane can eventually be displayed on a visualization screen for projection.

[0068] Step 203: Based on the position coordinates of each texture point in the 3D heat map, select the target texture point from the texture points. The position coordinates of the target texture point are within the view frustum of the virtual camera.

[0069] In practical applications, a 3D model (gray model) is usually created in a 3D heatmap. Texture data is bound to each point of the 3D model to render the texture data of that point on the surface of the 3D model. The points in the 3D model are called texture points. Texture points are used to define how each vertex on the surface of the 3D model is mapped to a 2D texture image. That is, they are used to wrap the 2D image (texture) on the surface of the 3D model so that the surface of the model can display patterns without adding extra geometric complexity.

[0070] The view frustum of a virtual camera refers to the area that a virtual camera can "see" when observing a scene in a 3D heatmap. It can be a planar area. The view frustum can be a perspective projection view frustum, in which the view frustum appears as a truncated pyramid, narrower closer to the camera and wider further away, simulating the effect of the human visual system or a real camera lens—the perspective effect of objects appearing larger when closer and smaller when farther away. The view frustum can also be an orthographic projection view frustum, in which case the view frustum is a cuboid, and all objects, regardless of their distance from the camera, are displayed at the same size, without any perspective scaling effect.

[0071] During implementation, the terminal selects the target texture points that the virtual camera can see from each texture point based on the position coordinates of each texture point in the 3D heat map and the viewpoint information and / or view plane information of the virtual camera; wherein the position coordinates of the target texture points are within the view frustum of the virtual camera.

[0072] During implementation, based on the two methods for creating view planes provided above, the vectors from each texture point to the view plane can be calculated, a target vector whose direction is opposite to the view vector of the virtual camera can be selected, and the texture point corresponding to the target vector can be selected as the target texture point. In addition, the vectors from each texture point to the target plane can be calculated, a target vector whose length is greater than a preset distance parameter can be selected, and the texture point corresponding to the target vector can be selected as the target texture point.

[0073] Step 204: Project the texture data bound to the target texture point onto the view plane based on the influence radius and / or position coordinates of the target texture point, and generate a two-dimensional heat map based on the projected view plane.

[0074] The influence radius of a texture point refers to the range of texture data that the texture point can project. The texture point only projects texture data within the influence radius. For example, if the influence radius of a texture point is x, then in the 3D model of the 3D heatmap, regardless of the original rendering size of the texture data of the texture point, the radius of the pattern rendered on the surface of the 3D model is fixed at x.

[0075] During implementation, the terminal acquires the texture data bound to the target texture point, projects the texture data onto the view plane according to the influence radius of the target texture point, and renders the projected view plane to obtain a two-dimensional heatmap, which is then displayed to the user and / or operator. Optionally, there can be multiple target texture points.

[0076] During execution, the terminal can sort the target texture points according to their distance from the view plane and project them according to the sorting results; or, it can determine the execution order of the projection process corresponding to the target texture point according to its distance from the view plane and execute the projection process of the target projection point according to the execution order.

[0077] It should be noted that the heat map generation method provided in this application can also be applied to a server. When applied to a server, the heat map can be a heat map for managing large areas, such as: power heat map, urban heat map and / or industrial heat map. The user and / or operator can be an administrator who submits operation instructions to the server through a terminal. After the server generates the two-dimensional heat map, it sends the generated two-dimensional heat map to the terminal for display. That is, the steps executed by the terminal in this embodiment can also be executed by the server. The server can refer to the execution process of the terminal when performing specific operations, which will not be described again hereafter.

[0078] In the above-mentioned method for generating heatmaps, in response to an operation command for a 3D heatmap, the viewpoint information of the virtual camera of the operator is determined. The viewpoint information includes viewpoint coordinates and view vector. A view plane is created based on the viewpoint information and preset distance parameters. The normal vector of the view plane is parallel to the view vector, and the view vector points to the center coordinates of the view plane. By creating the view plane, the rendering of the 3D heatmap is converted into the projection rendering of a 2D plane, which improves the rendering efficiency. Based on the position coordinates of each texture point in the 3D heatmap, target texture points whose position coordinates are within the view frustum of the virtual camera are selected from the texture points. Based on the influence radius and / or position coordinates of the target texture points, the texture data bound to the target texture points is projected onto the view plane, and a 2D heatmap is generated based on the projected view plane. By converting the rendering of a 3D model with high spatial and temporal complexity into the projection of a 2D plane to generate a heatmap, the demand for computing devices and / or computing resources is reduced, and the computing power utilization rate in the heatmap generation process is improved.

[0079] Based on the above exemplary embodiment, the following provides a method for generating a heatmap in one or more exemplary embodiments, which can be applied to... Figure 1 Taking the terminal in the example, the explanation includes the following content.

[0080] In practical applications, before operating on a 3D heatmap, that is, before the terminal receives the operation command, it can render and / or generate the 3D heatmap, or it can create a 3D heatmap according to the external input command. For the initial 3D heatmap, there is usually a default rendering position to be displayed to the operator of the 3D heatmap.

[0081] In the process of generating a 3D heatmap, rendering information of each texture point in the 3D heatmap can be obtained according to the rendering method of the 3D model. The 3D heatmap is then rendered based on this rendering information. Optionally, the rendering information includes position coordinates, influence radius, and / or texture data. In one optional implementation provided in this application, such as... Figure 3As shown, the process of generating a three-dimensional heatmap includes steps 301 to 302:

[0082] Step 301: In response to the command to view the 3D heatmap, obtain the position coordinates, influence radius and texture data of each texture point in the 3D heatmap.

[0083] During implementation, the terminal receives external input commands to generate and / or view a 3D heatmap, and in response to these commands, acquires the position coordinates, influence radius, and / or texture data of each texture point in the 3D heatmap.

[0084] For example, obtain a 3D texture point Point(x,y,z,w) with weight attributes, where (x,y,z) are spatial coordinates and w is the weight (default 1), which determines the radius of influence during rendering, representing the thermal influence range of the point; the projection of spherical textures onto the plane uniformly adopts circular plane projection, which is bound through the data acquisition stage and rendered on the view plane after the projection stage is completed.

[0085] Step 302: Render a 3D heatmap based on the position coordinates, influence radius, and texture data of each texture point.

[0086] During implementation, the terminal renders the texture data onto the surface of the 3D model in the 3D heatmap based on the position coordinates of each texture point and the texture data, according to the influence radius of each texture point, thus generating the 3D heatmap.

[0087] Furthermore, the rendering data of the 3D heatmap can be sent to the operator's terminal to display the 3D heatmap on the terminal.

[0088] It should be noted that a three-dimensional heatmap can also be created. That is, step 301 can be replaced by: in response to the command to generate the three-dimensional heatmap, creating multiple texture points, configuring the position coordinates and influence radius of each texture point, and binding the texture point with the corresponding texture data; during implementation, the terminal can receive external input commands to generate and / or view the three-dimensional heatmap, and in response to the command, create multiple texture points. For each texture point, according to the position coordinates, influence radius, and / or texture data contained in the command, configure the position coordinates and influence radius of the texture point, and bind the texture point with the corresponding texture data.

[0089] It should also be noted that steps 301 to 302 can be performed before step 201.

[0090] One optional implementation method provided in this application creates and renders a three-dimensional heat map through three-dimensional modeling, allowing the operator to view the three-dimensional heat map data. At the same time, a two-dimensional heat map is displayed to the operator through two-dimensional projection. This reduces the computational burden on the device while allowing the operator to view data in more dimensions, saves computing resources, and improves the rendering efficiency of the three-dimensional heat map.

[0091] During the creation of the view plane, the normal vector and center coordinates of the view plane can be determined using the viewpoint information of the virtual camera, and the view plane is created using the normal vector and center coordinates; in one optional implementation provided in this application, such as Figure 4 As shown, step 202 includes steps 401 to 403.

[0092] Step 401: Calculate the target vector based on the preset distance parameters and view vector.

[0093] The target vector is intermediate data used to determine the center coordinates of the view plane, and can be used to determine the center coordinates of the view plane and / or the normal vector of the view plane.

[0094] During implementation, the distance between the virtual camera and the view plane can be represented by a preset distance parameter. The terminal can multiply the distance parameter with the view vector to obtain the target vector, and the endpoint coordinates of the target vector are the center coordinates of the view plane.

[0095] Step 402: Use the endpoint coordinates of the target vector as the center coordinates of the view plane, and use the center coordinates as the starting point to create a normal vector.

[0096] During implementation, the terminal uses the endpoint coordinates of the target vector as the center coordinates of the view plane. Simultaneously, the view plane must always be parallel to the target plane where the virtual camera is located. Therefore, a vector opposite to the view vector and / or target vector can be created starting from the center coordinates, and this vector is used as the normal vector of the view plane. The direction of the normal vector is opposite to the direction of the view vector and / or target vector.

[0097] Step 403: Create the view plane based on the normal vector and center coordinates.

[0098] During implementation, the terminal can create a plane perpendicular to the normal vector and configure the center coordinates of the plane as the calculated center coordinates. This plane is used as the view plane. Furthermore, the area of ​​the view plane can be configured by predicting its length and width, which can represent the area that the operator can view. The length and width of the view plane can be calculated by the view frustum and / or viewpoint parameters of the virtual camera.

[0099] One optional implementation provided in this application creates the view plane through vector computation, which improves the accuracy and reliability of the view plane. At the same time, vector computation avoids the use of complex algorithms and improves the rendering efficiency of the two-dimensional heatmap.

[0100] In the process of filtering target texture points, filtering can be performed by considering the direction of the projection vector of each target texture point onto the view plane, selecting texture points whose projection direction is opposite to the view vector as target texture points; in one optional implementation provided in this application, such as Figure 5 As shown, step 203 involves selecting the target texture point from each texture point based on its position coordinates in the three-dimensional heat map, including steps 501 to 502.

[0101] Step 501: Obtain the projection vector of each texture point to the view plane based on the position coordinates of each texture point.

[0102] During implementation, for each texture point, the terminal can use the texture point's position coordinates as the starting point and calculate the projection vector with the endpoint in the view plane and perpendicular to the view plane. This projection vector is used to characterize the projection distance and projection direction of each texture point from the view plane.

[0103] Step 502: Select the target projection vector whose direction is opposite to the view vector from each projection vector, and take the texture point corresponding to the target projection vector as the target texture point.

[0104] During implementation, the terminal filters out the target projection vector that is opposite to the view vector based on the direction of each projection vector. That is, it filters out the target projection vector that is opposite to the view direction of the operator, and uses the texture point corresponding to the target projection vector as the target texture point to filter out the texture points that can be viewed by the operator.

[0105] One optional implementation provided in this application filters texture points by filtering the projection vectors of texture points onto the view plane. Vector operations improve data processing efficiency, thereby improving the rendering efficiency of the two-dimensional heatmap. At the same time, vector calculations also improve the accuracy of the filtering results.

[0106] During projection, models closer to the virtual camera in the 3D heatmap may obscure the textures of distant models, preventing the virtual camera (operator) from viewing the textures of the distant models. To address this, target texture points can be sorted according to their distance from the view plane, and the projection order can be determined based on the sorting result. Projection is then performed sequentially based on the influence radius, position coordinates, and / or texture data of the target texture points according to this projection order. In one optional implementation provided by this application, such as... Figure 6 As shown, step 204 includes steps 601 to 602:

[0107] Step 601: Sort the target texture points based on the length of the target projection vector corresponding to each target texture point to obtain the sorting result.

[0108] The number of target texture points is multiple; the sorting priority of each target texture point is positively correlated with the length of the target projection vector corresponding to each target texture point.

[0109] During implementation, the terminal first sorts the target texture points in descending order based on the length of the target projection vectors corresponding to each target texture point to obtain the sorting result; here, the sorting result is the projection order.

[0110] For example, calculate the position and distance of the target texture point projected onto the view plane, and sort them from farthest to closest according to the distance. At the same time, based on the direction of the target projection vector, exclude texture points located behind the virtual camera. That is, the target projection vector of the target texture point onto the view plane should be consistent with the direction of the normal vector of the view plane.

[0111] Step 602: According to the sorting results, the texture data bound to each target texture point is projected onto the view plane in sequence based on the influence radius and / or position coordinates of each target texture point.

[0112] During implementation, the terminal uses the sorting result as the projection order. First, it projects the texture points that appear earlier in the sorting result. For any target texture point, the texture data bound to the target texture point is projected onto the view plane according to the influence radius and / or position coordinates of the target texture point. This texture can cover the texture of the target texture point that was projected earlier, or it can be covered by the texture of the target texture point that was projected later. The light in the projection process is parallel light, that is, the projection light of the cylinder is constructed according to the influence radius.

[0113] For example, texture points are projected onto the view plane to generate a 2D heatmap. Projected points are added sequentially according to the order of the sorting stages. Each time a projected point is added, a cylindrical structure with a radius of w and an endpoint at the view plane is added.

[0114] One optional implementation provided in this application simulates the perspective projection relationship in a three-dimensional heatmap by sorting and projecting the target texture points. It simulates a three-dimensional perspective view by using two-dimensional projection, which saves computing resources and improves the rendering efficiency of the heatmap while retaining the data of the three-dimensional heatmap. At the same time, the sorted projection method avoids errors in perspective relationship and improves the accuracy of the two-dimensional heatmap.

[0115] In practical applications, heat maps can be used to view power load in power scenarios, to view pedestrian and / or vehicle traffic in urban management scenarios, and to view pollution levels in environmental scenarios; one optional implementation provided in this application is as follows: Figure 7As shown, it also includes steps 701 to 702.

[0116] Step 701: Determine the power load of each region based on the thermal colorimetry of each region in the two-dimensional heat map.

[0117] In practical applications, heat maps represent the distribution of data by the color intensity of heat in a region. Generally, the higher the color intensity, the denser the data. Electricity load is positively correlated with thermal color intensity.

[0118] During implementation, the terminal performs image recognition on the two-dimensional heat map and determines the data density of each area based on the thermal color of each area in the heat map, i.e., the power load status.

[0119] Step 702: Determine the power control strategy based on the power load situation.

[0120] During implementation, the terminal can determine the power control strategy based on the power load of each region. It can generate strategies to allocate power from regions with low power load to regions with high power load, or it can generate strategies to increase the power output to regions with high power load.

[0121] Furthermore, the power control strategy can be sent to the operator's terminal so that the operator can submit power control instructions according to the power control strategy, or, with authorization, directly carry out power control according to the power control strategy.

[0122] For example, such as Figure 8 As shown, the power in the blue area can be redirected to the red area.

[0123] One optional implementation provided in this application applies heat maps to power scenarios, uses two-dimensional heat maps to represent power load conditions, and uses the color of the two-dimensional heat map to determine the power load conditions of a region, thereby improving the timeliness of power regulation. At the same time, the method of using heat maps to represent power load conditions enhances the perception of power management parties, and the use of image processing avoids the need for devices to process complex power data, thereby improving the efficiency of generating power regulation strategies.

[0124] In one embodiment, see Figure 9 It illustrates a flowchart of a method for generating a heat map according to an embodiment of this application, which can be applied to... Figure 1 In the terminal shown. For example... Figure 9 As shown, the method for generating this heatmap may include the following steps:

[0125] Step 901: In response to the command to generate a 3D heatmap, obtain the position coordinates and influence radius of multiple texture points, and obtain the corresponding texture data bound to the multiple texture points.

[0126] Step 902: Render a 3D heatmap based on the position coordinates, influence radius, and texture data of each texture point.

[0127] Step 903: In response to the operation command for the three-dimensional heatmap, determine the viewpoint information of the virtual camera.

[0128] Step 904: Calculate the target vector based on the preset distance parameters and view vector, use the endpoint coordinates of the target vector as the center coordinates of the view plane, and use the center coordinates as the starting point to create a normal vector.

[0129] Step 905: Create the view plane based on the normal vector and center coordinates.

[0130] Step 906: Obtain the projection vector of each texture point to the view plane based on the position coordinates of each texture point.

[0131] Step 907: Select the target projection vector whose direction is opposite to the view vector from each projection vector, and take the texture point corresponding to the target projection vector as the target texture point.

[0132] Step 908: Sort the target texture points based on the length of the target projection vector corresponding to each target texture point to obtain the sorting result.

[0133] Step 909: According to the sorting results, project the texture data bound to each target texture point onto the view plane in turn based on the influence radius of each target texture point.

[0134] Step 910: Determine the power load of each region based on the thermal colorimetry of each region in the two-dimensional heat map, and determine the power control strategy based on the power load.

[0135] It should be noted that any one or more of steps 901 to 910 can be combined to form a new implementation method according to the needs of implementation and deployment. Furthermore, any one or more technical features in the technical solution composed of steps 901 to 910 can also be combined to form a new implementation method according to the actual deployment needs, or technical features in one or more optional implementations provided by one or more of the above embodiments can be combined to form a new implementation method. These will not be elaborated on here.

[0136] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.

[0137] Based on the same inventive concept, this application also provides a heat map generation apparatus for implementing the heat map generation method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations of one or more heat map generation apparatus embodiments provided below can be found in the limitations of the heat map generation method described above, and will not be repeated here.

[0138] In one exemplary embodiment, such as Figure 10 As shown, a heatmap generation apparatus is provided, comprising: an operation command response module 1001, a view plane creation module 1002, a target texture point filtering module 1003, and a projection module 1004, wherein:

[0139] The operation command response module 1001 is used to determine the viewpoint information of the virtual camera in response to the operation command for the three-dimensional heat map, wherein the viewpoint information includes viewpoint coordinates and view vector.

[0140] The view plane creation module 1002 is used to create a view plane based on the viewpoint information and preset distance parameters, wherein the normal vector of the view plane is parallel to the view vector, and the view vector points to the center coordinates of the view plane;

[0141] The target texture point filtering module 1003 is used to filter out target texture points from each texture point according to the position coordinates of each texture point in the three-dimensional heat map, wherein the position coordinates of the target texture point are within the view frustum of the virtual camera;

[0142] The projection module 1004 is used to project the texture data bound to the target texture point onto the view plane based on the influence radius of the target texture point, and generate a two-dimensional heat map based on the projected view plane.

[0143] In one embodiment, the view plane creation module 1002 includes: a target vector calculation unit, a normal vector creation unit, and a view plane creation unit, wherein:

[0144] The target vector calculation unit is used to calculate the target vector based on preset distance parameters and view vectors;

[0145] The normal vector creation unit is used to create a normal vector by taking the endpoint coordinates of the target vector as the center coordinates of the view plane and taking the center coordinates as the starting point. The direction of the normal vector is opposite to the direction of the view vector.

[0146] The view plane creation unit is used to create a view plane based on the normal vector and center coordinates.

[0147] In one embodiment, the target texture point filtering module 1003 includes: a projection vector acquisition unit and a target texture point filtering unit, wherein:

[0148] The projection vector acquisition unit is used to obtain the projection vector from each texture point to the view plane based on the position coordinates of each texture point;

[0149] The target texture point filtering unit is used to filter out the target projection vectors whose direction is opposite to the view vector from each projection vector, and take the texture point corresponding to the target projection vector as the target texture point.

[0150] In one embodiment, the number of target texture points is multiple, and the projection module 1004 includes: a sorting unit and a projection unit, wherein:

[0151] The sorting unit is used to sort the target texture points based on the length of the target projection vector corresponding to each target texture point to obtain the sorting result. The sorting priority of each target texture point is positively correlated with the length of the target projection vector corresponding to each target texture point.

[0152] The projection unit is used to project the texture data bound to each target texture point onto the view plane according to the sorting result and based on the influence radius of each target texture point.

[0153] In one embodiment, the apparatus further includes a texture point creation module and a rendering module, wherein:

[0154] The texture point creation module is used to respond to viewing commands for a 3D heatmap and obtain the position coordinates, influence radius, and texture data of each texture point in the 3D heatmap.

[0155] The rendering module is used to render a 3D heatmap based on the position coordinates, influence radius, and texture data of each texture point.

[0156] In one embodiment, the apparatus further includes: a power load condition determination module and a power control strategy determination module, wherein:

[0157] The power load determination module is used to determine the power load of each region based on the thermal chromaticity of each region in the two-dimensional heat map. The power load is positively correlated with the thermal chromaticity.

[0158] The power control strategy determination module is used to determine the power control strategy based on the power load situation.

[0159] Each module in the aforementioned heatmap generation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0160] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 11 As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When executed by the processor, the computer program implements a method for generating a heatmap. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0161] Those skilled in the art will understand that Figure 11The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0162] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0163] In response to operation commands for the 3D heatmap, the viewpoint information of the virtual camera is determined, including viewpoint coordinates and view vector;

[0164] A view plane is created based on viewpoint information and preset distance parameters. The normal vector of the view plane is parallel to the view vector, and the view vector points to the center coordinates of the view plane.

[0165] Based on the position coordinates of each texture point in the 3D heat map, target texture points are selected from the texture points. The position coordinates of the target texture points are within the view frustum of the virtual camera.

[0166] Based on the influence radius of the target texture point, the texture data bound to the target texture point is projected onto the view plane, and a two-dimensional heat map is generated based on the projected view plane.

[0167] In one embodiment, the processor executes the following steps when executing a computer program:

[0168] The target vector is calculated based on the preset distance parameters and the view vector;

[0169] Use the endpoint coordinates of the target vector as the center coordinates of the view plane, and use the center coordinates as the starting point to create a normal vector. The direction of the normal vector is opposite to the direction of the view vector.

[0170] Create the view plane based on the normal vector and center coordinates.

[0171] In one embodiment, the processor executes the following steps when executing a computer program:

[0172] The projection vector from each texture point to the view plane is obtained based on the position coordinates of each texture point;

[0173] Select the target projection vector whose direction is opposite to the view vector from each projection vector, and take the texture point corresponding to the target projection vector as the target texture point.

[0174] In one embodiment, the processor executes the following steps when executing a computer program:

[0175] Based on the length of the target projection vector corresponding to each target texture point, the target texture points are sorted to obtain the sorting result. The sorting priority of each target texture point is positively correlated with the length of the target projection vector corresponding to each target texture point.

[0176] Based on the sorting results, the texture data bound to each target texture point is projected onto the view plane according to the influence radius of each target texture point.

[0177] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0178] In response to a command to view a 3D heatmap, obtain the position coordinates, influence radius, and texture data of each texture point in the 3D heatmap;

[0179] A 3D heatmap is rendered based on the position coordinates of each texture point, its radius of influence, and the texture data.

[0180] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0181] The power load of each region is determined based on the thermochromaticity of each region in the two-dimensional heat map, and the power load is positively correlated with the thermochromaticity.

[0182] Power control strategies are determined based on power load conditions.

[0183] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0184] In response to operation commands for the 3D heatmap, the viewpoint information of the virtual camera is determined, including viewpoint coordinates and view vector;

[0185] A view plane is created based on viewpoint information and preset distance parameters. The normal vector of the view plane is parallel to the view vector, and the view vector points to the center coordinates of the view plane.

[0186] Based on the position coordinates of each texture point in the 3D heat map, target texture points are selected from the texture points. The position coordinates of the target texture points are within the view frustum of the virtual camera.

[0187] Based on the influence radius of the target texture point, the texture data bound to the target texture point is projected onto the view plane, and a two-dimensional heat map is generated based on the projected view plane.

[0188] In one embodiment, when a computer program is executed by a processor, it specifically implements the following steps:

[0189] The target vector is calculated based on the preset distance parameters and the view vector;

[0190] Use the endpoint coordinates of the target vector as the center coordinates of the view plane, and use the center coordinates as the starting point to create a normal vector. The direction of the normal vector is opposite to the direction of the view vector.

[0191] Create the view plane based on the normal vector and center coordinates.

[0192] In one embodiment, when a computer program is executed by a processor, it specifically implements the following steps:

[0193] The projection vector from each texture point to the view plane is obtained based on the position coordinates of each texture point;

[0194] Select the target projection vector whose direction is opposite to the view vector from each projection vector, and take the texture point corresponding to the target projection vector as the target texture point.

[0195] In one embodiment, when a computer program is executed by a processor, it specifically implements the following steps:

[0196] Based on the length of the target projection vector corresponding to each target texture point, the target texture points are sorted to obtain the sorting result. The sorting priority of each target texture point is positively correlated with the length of the target projection vector corresponding to each target texture point.

[0197] Based on the sorting results, the texture data bound to each target texture point is projected onto the view plane according to the influence radius of each target texture point.

[0198] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0199] In response to a command to view a 3D heatmap, obtain the position coordinates, influence radius, and texture data of each texture point in the 3D heatmap;

[0200] A 3D heatmap is rendered based on the position coordinates of each texture point, its radius of influence, and the texture data.

[0201] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0202] The power load of each region is determined based on the thermochromaticity of each region in the two-dimensional heat map, and the power load is positively correlated with the thermochromaticity.

[0203] Power control strategies are determined based on power load conditions.

[0204] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0205] In response to operation commands for the 3D heatmap, the viewpoint information of the virtual camera is determined, including viewpoint coordinates and view vector;

[0206] A view plane is created based on viewpoint information and preset distance parameters. The normal vector of the view plane is parallel to the view vector, and the view vector points to the center coordinates of the view plane.

[0207] Based on the position coordinates of each texture point in the 3D heat map, target texture points are selected from the texture points. The position coordinates of the target texture points are within the view frustum of the virtual camera.

[0208] Based on the influence radius of the target texture point, the texture data bound to the target texture point is projected onto the view plane, and a two-dimensional heat map is generated based on the projected view plane.

[0209] In one embodiment, when a computer program is executed by a processor, it specifically implements the following steps:

[0210] The target vector is calculated based on the preset distance parameters and the view vector;

[0211] Use the endpoint coordinates of the target vector as the center coordinates of the view plane, and use the center coordinates as the starting point to create a normal vector. The direction of the normal vector is opposite to the direction of the view vector.

[0212] Create the view plane based on the normal vector and center coordinates.

[0213] In one embodiment, when a computer program is executed by a processor, it specifically implements the following steps:

[0214] The projection vector from each texture point to the view plane is obtained based on the position coordinates of each texture point;

[0215] Select the target projection vector whose direction is opposite to the view vector from each projection vector, and take the texture point corresponding to the target projection vector as the target texture point.

[0216] In one embodiment, when a computer program is executed by a processor, it specifically implements the following steps:

[0217] Based on the length of the target projection vector corresponding to each target texture point, the target texture points are sorted to obtain the sorting result. The sorting priority of each target texture point is positively correlated with the length of the target projection vector corresponding to each target texture point.

[0218] Based on the sorting results, the texture data bound to each target texture point is projected onto the view plane according to the influence radius of each target texture point.

[0219] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0220] In response to a command to view a 3D heatmap, obtain the position coordinates, influence radius, and texture data of each texture point in the 3D heatmap;

[0221] A 3D heatmap is rendered based on the position coordinates of each texture point, its radius of influence, and the texture data.

[0222] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0223] The power load of each region is determined based on the thermochromaticity of each region in the two-dimensional heat map, and the power load is positively correlated with the thermochromaticity.

[0224] Power control strategies are determined based on power load conditions.

[0225] 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, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0226] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0227] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above 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 application.

[0228] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for generating a heatmap, characterized in that, The method includes: In response to an operation command for a three-dimensional heatmap, the viewpoint information of the virtual camera is determined, the viewpoint information including viewpoint coordinates and view vector; A view plane is created based on the viewpoint information and preset distance parameters. The normal vector of the view plane is parallel to the view vector, and the view vector points to the center coordinates of the view plane. Based on the position coordinates of each texture point in the three-dimensional heat map, a target texture point is selected from the texture points, and the position coordinates of the target texture point are within the view frustum of the virtual camera; Based on the influence radius of the target texture point, the texture data bound to the target texture point is projected onto the view plane, and a two-dimensional heat map is generated based on the projected view plane.

2. The method according to claim 1, characterized in that, Creating a view plane based on the viewpoint information and preset distance parameters includes: Calculate the target vector based on the preset distance parameters and the view vector; The endpoint coordinates of the target vector are used as the center coordinates of the view plane, and the center coordinates are used as the starting point to create the normal vector, the direction of the normal vector being opposite to the direction of the view vector; The view plane is created based on the normal vector and the center coordinates.

3. The method according to claim 1, characterized in that, The step of selecting target texture points from the texture points based on their position coordinates in the three-dimensional heatmap includes: The projection vector of each texture point to the view plane is obtained based on the position coordinates of each texture point; Select the target projection vector whose direction is opposite to the view vector from each of the projection vectors, and take the texture point corresponding to the target projection vector as the target texture point.

4. The method according to claim 3, characterized in that, The step of projecting the texture data bound to the target texture point onto the view plane based on the influence radius of the target texture point includes: Based on the length of the target projection vector corresponding to each target texture point, the target texture points are sorted to obtain a sorting result. The sorting priority of each target texture point is positively correlated with the length of the target projection vector corresponding to each target texture point. According to the sorting result, the texture data bound to each target texture point is projected onto the view plane sequentially based on the influence radius of each target texture point.

5. The method according to claim 1, characterized in that, The process of generating the three-dimensional heat map includes: In response to a viewing command for the three-dimensional heatmap, the position coordinates, influence radius, and texture data of each texture point in the three-dimensional heatmap are obtained; The three-dimensional heatmap is rendered based on the position coordinates, influence radius, and texture data of each texture point.

6. The method according to claim 1, characterized in that, The method further includes: The power load of each region is determined based on the thermochromaticity of each region in the two-dimensional heat map, and the power load is positively correlated with the thermochromaticity. The power control strategy is determined based on the power load conditions.

7. A device for generating a heat map, characterized in that, The device includes: An operation command response module is used to respond to operation commands for a three-dimensional heatmap and determine the viewpoint information of the virtual camera, wherein the viewpoint information includes viewpoint coordinates and view vector; A view plane creation module is used to create a view plane based on the viewpoint information and preset distance parameters. The normal vector of the view plane is parallel to the view vector, and the view vector points to the center coordinates of the view plane. The target texture point filtering module is used to filter out target texture points from the texture points according to the position coordinates of each texture point in the three-dimensional heat map, wherein the position coordinates of the target texture point are within the view frustum of the virtual camera; The projection module is used to project the texture data bound to the target texture point onto the view plane based on the influence radius of the target texture point, and generate a two-dimensional heat map based on the projected view plane.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.