Icon rendering method and device of high-definition map and electronic equipment

By acquiring task information in the target format and using a renderer to render multiple sub-tasks on the canvas, the problem of unclear rendering process in high-precision maps is solved, improving rendering efficiency and accuracy.

CN114187376BActive Publication Date: 2026-03-31BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-10
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

In the creation of high-precision maps, the icon rendering process in existing technologies is unclear, resulting in low rendering efficiency.

Method used

By acquiring task information in the target format, rendering information is determined, and multiple subtasks are rendered on the canvas according to the rendering information. The relationship between subtasks is represented by task information in tree or table format, and rendering is performed using a pre-created renderer.

Benefits of technology

The rendering process for multiple subtasks was clarified, which improved rendering efficiency and accuracy, reduced errors, and enhanced the rendering effect of the target icon.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114187376B_ABST
    Figure CN114187376B_ABST
Patent Text Reader

Abstract

The present disclosure provides an icon rendering method and device of a high-precision map and electronic equipment, relates to the field of computers, and particularly to the field of computer vision. The specific implementation scheme is as follows: task information of a main task is obtained, the main task includes multiple subtasks, and the task information is in a target format; rendering information corresponding to the task information is determined, the rendering information includes rendering operation information of the multiple subtasks on a canvas; and the multiple subtasks are rendered on the canvas according to the rendering information to obtain a target icon.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and more particularly to the field of computer vision technology, specifically to a method, apparatus, and electronic device for rendering icons for high-precision maps. Background Technology

[0002] Electronic maps are becoming increasingly widely used in people's lives, and people's requirements for the accuracy of electronic maps are also increasing. Currently, when creating high-precision maps, it is usually necessary to render multiple icons on a canvas. However, the rendering process for icons on a canvas is often not clearly defined. Summary of the Invention

[0003] This disclosure provides a method, apparatus, and electronic device for rendering icons in high-precision maps.

[0004] According to a first aspect of this disclosure, a method for rendering icons in a high-precision map is provided, comprising:

[0005] Obtain the task information of the main task, which includes multiple subtasks, and the task information is in a target format;

[0006] Determine the rendering information corresponding to the task information, wherein the rendering information includes the rendering operation information of the plurality of subtasks on the canvas;

[0007] The multiple subtasks are rendered on the canvas according to the rendering information to obtain the target icon.

[0008] According to a second aspect of this disclosure, a high-precision map icon rendering apparatus is provided, comprising:

[0009] The first acquisition module is used to acquire task information of the main task, wherein the main task includes multiple sub-tasks, and the task information is in a target format.

[0010] A determination module is used to determine the rendering information corresponding to the task information, wherein the rendering information includes the rendering operation information of the plurality of subtasks on the canvas;

[0011] The rendering module is used to render the multiple subtasks on the canvas according to the rendering information to obtain the target icon.

[0012] According to a third aspect of this disclosure, an electronic device is provided, comprising:

[0013] At least one processor; and

[0014] A memory that is communicatively connected to at least one processor; wherein,

[0015] The memory stores instructions that can be executed by at least one processor to enable the at least one processor to perform any of the methods in the first aspect.

[0016] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions for causing a computer to perform any of the methods in the first aspect.

[0017] According to a fifth aspect of this disclosure, a computer program product is provided, comprising a computer program that, when executed by a processor, implements any of the methods in the first aspect.

[0018] According to the technology disclosed herein, since multiple subtasks can be rendered on the canvas according to rendering information, the rendering process of multiple subtasks is clarified, thereby improving the rendering efficiency of multiple subtasks.

[0019] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0020] Figure 1 This is one of the flowcharts illustrating a high-precision map icon rendering method provided according to an embodiment of this disclosure;

[0021] Figure 2 This is a second schematic flowchart of the high-precision map icon rendering method provided in the embodiments of this disclosure;

[0022] Figure 3 This is a schematic diagram of the structure of the high-precision map icon rendering device provided according to an embodiment of the present disclosure;

[0023] Figure 4 This is a schematic block diagram of an example electronic device used to implement embodiments of the present disclosure. Detailed Implementation

[0024] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0025] See Figure 1 , Figure 1 A flowchart of a high-precision map icon rendering method provided in this disclosure is shown below. Figure 1 As shown, the above method includes the following steps:

[0026] Step S101: Obtain the task information of the main task, wherein the main task includes multiple sub-tasks, and the task information is in target format.

[0027] It should be noted that each step in the embodiments of this disclosure can be executed by the mapping management server.

[0028] The number of main tasks is not limited here. When there are multiple main tasks, each main task includes sub-tasks that can be rendered on the canvas according to the steps in the embodiments of this disclosure.

[0029] The relationship between multiple subtasks is not limited here. For example, the relationship between multiple subtasks can be sequential, or parallel. Alternatively, the relationship between multiple subtasks can be described as follows: some subtasks can be sequential, while others can be parallel. That is, the relationship between multiple subtasks includes both sequential and parallel relationships.

[0030] In addition, each main task can be broken down into multiple subtasks, which can be understood as the various sub-steps included in the steps corresponding to the main task.

[0031] The type of target format is not limited here. As an optional implementation, the target format is a tree format. In this way, since the task information in the tree format can accurately describe the dependencies (also known as associations) between various subtasks, multiple subtasks can be accurately and quickly rendered on the canvas based on the above dependencies to obtain the target icon, reducing the occurrence of rendering errors.

[0032] In addition, the target format can also be a table or flowchart, which enhances the diversity and flexibility of task information. Furthermore, the type of target format can be flexibly determined based on the content of the task information, thus making the task information format more diverse.

[0033] As an optional implementation, it also includes:

[0034] Obtain task information in its initial format;

[0035] The initial format of the task information is adjusted to obtain the target format of the task information.

[0036] The initial format and the target format are different. The task information in the initial format can refer to the task information before the format adjustment, while the task information in the target format can refer to the task information after the format adjustment.

[0037] In this embodiment, because the initial format task information cannot intuitively reflect the relationships between subtasks, it takes time to determine these relationships when rendering each subtask. The target format task information, however, can intuitively reflect these relationships, allowing for faster and more accurate rendering of related target icons. Furthermore, the target format task information improves query efficiency by demonstrating the relationships between subtasks.

[0038] It should be noted that the specific method for obtaining the initial format task information is not limited here.

[0039] As an optional implementation, obtaining the task information in the initial format includes:

[0040] Receive the task information in the initial format actively sent by the database server.

[0041] In this embodiment, the database server can proactively query task information in an initial format and proactively send the task information in the initial format to the cartographic management server, which can also be referred to as the cartographic management platform. This saves the computing resources of the cartographic management server, thereby improving the rendering efficiency of the target icon.

[0042] It should be noted that the database server can send task information in the initial format to the cartographic management server in real time. Of course, the database server can also send task information in the initial format to the cartographic management server at preset intervals. The specific method is not limited here.

[0043] As another optional implementation, obtaining the task information in the initial format includes: sending a request to the database server to request obtaining the task information in the initial format; and receiving the task information in the initial format from the database server in response to the request.

[0044] In this embodiment of the disclosure, the database server can reply with task information in an initial format to the request information sent by the cartographic management server. That is, the database server only replies with task information in an initial format to the cartographic management server when it receives the request information, thereby reducing the signaling overhead between the database server and the cartographic management server, avoiding repeated sending of task information in the initial format, and saving storage and computing resources on the cartographic management server.

[0045] Step S102: Determine the rendering information corresponding to the task information, wherein the rendering information includes the rendering operation information of the multiple sub-tasks on the canvas.

[0046] Since the main task includes multiple subtasks, the rendering operation information of any two subtasks on the canvas can be the same or different.

[0047] The type of rendering operation information is not limited here. As an optional implementation, the rendering operation information includes at least one of the following:

[0048] Node information corresponding to each subtask;

[0049] The edge information between the first subtask at the start position and the second subtask at the end position in the plurality of subtasks;

[0050] The process status color information for each subtask;

[0051] Scaling information for each subtask on the canvas;

[0052] Information about the subtask located at the center point of the canvas among the multiple subtasks.

[0053] In this embodiment of the disclosure, since the rendering operation information includes at least one of the above-mentioned information, the types of rendering operation information can be made more diverse and flexible. As a result, when the target icon is rendered on the canvas, the target icon can more accurately reflect the various rendering operation information of each sub-task, thereby making the content represented by the target icon richer.

[0054] The node information corresponding to each subtask may include at least one of the following: the node's display color, display shape, display size, etc.

[0055] The first and second subtasks mentioned above can be ordered according to the target parameters, and the types of target parameters are not limited here.

[0056] An optional implementation: The target parameter can be the execution order, where the subtask executed first is closer to the start position than the subtask executed later. For example, when the relationship between multiple subtasks is sequential, the first subtask is the first subtask executed, and the second subtask is the last subtask executed. That is, the first subtask can refer to the first subtask executed among multiple subtasks, and the second subtask can refer to the last subtask executed among multiple subtasks.

[0057] Another alternative implementation: The target parameter can be a ranking of importance. In this case, the subtask with higher importance is positioned closer to the start position than the subtask with lower importance. For example, when the relationship between multiple subtasks is sequential, the first subtask is the most important subtask among them, and the second subtask is the least important subtask.

[0058] Each subtask can display a corresponding process status color based on its current state, and the corresponding process status color can be different depending on the state of each subtask.

[0059] For example: when a subtask is in a completed state, the corresponding process status color information can be gray; when a subtask is in a not started state, the corresponding process status color information can be white; when a subtask is in an executing state, the corresponding process status color information can be red.

[0060] It should be noted that when a subtask fails to execute, it can be restarted or terminated, and it can generate and record the corresponding error log.

[0061] The scaling information for each subtask on the canvas refers to its display ratio within the canvas. Different subtasks may have the same or different scaling information. It's important to note that the scaling information for each subtask can be related to relevant parameters of the subtask. A higher correlation with these parameters results in a larger scaling information, and a lower correlation results in a smaller scaling information. The specific types of these relevant parameters are not limited here. For example, these parameters could refer to the importance of the subtask or its current state.

[0062] Among multiple subtasks, the information of the subtask located at the center point of the canvas can be called the center point information. Similarly, the subtask located at the center point of the canvas can also be determined based on the relevant parameters of each subtask.

[0063] For example, the more important a subtask is, or the more it is in the execution state, the more likely it is to be placed at the center of the canvas.

[0064] Step S103: Render the multiple subtasks on the canvas according to the rendering information to obtain the target icon.

[0065] The correspondence between subtasks and target icons is not limited here. For example, there can be a one-to-one correspondence between subtasks and target icons, that is, each subtask can correspond to one target icon; or, there can be a many-to-one relationship between subtasks and target images, that is, multiple subtasks can be rendered as one target icon on the canvas; or, there can be a one-to-many relationship between subtasks and target images, that is, one subtask can be rendered as multiple target icons on the canvas.

[0066] It should be noted that when there is a one-to-one correspondence between subtasks and target icons, since the target icons are rendered based on rendering information, the target icons can accurately reflect the execution order and execution flow of multiple subtasks. At the same time, they can also accurately reflect the execution status and execution result of each subtask.

[0067] As an optional implementation, rendering the plurality of subtasks on the canvas according to the rendering information to obtain the target icon includes:

[0068] The renderer is controlled to render the multiple subtasks on the canvas according to the rendering information to obtain the target icon; wherein the renderer is a pre-created renderer, or the renderer is a renderer created by the main task.

[0069] In this embodiment of the disclosure, the renderer can be a pre-created renderer, that is, the renderer can be reused, thereby reducing renderer waste and improving resource reuse rate; the renderer is a renderer created for the main task, thereby making the renderer more compatible with the main task and the rendering effect better.

[0070] In addition, by controlling the renderer to render multiple subtasks on the canvas, the rendering efficiency and rendering effect of the target icon can be improved due to the high rendering efficiency and good rendering effect of the renderer.

[0071] In this embodiment of the disclosure, according to steps S101 to S103, since multiple sub-tasks can be rendered on the canvas according to the rendering information, the rendering process of multiple sub-tasks is clarified, thereby improving the rendering efficiency of multiple sub-tasks.

[0072] It should be noted that, in order to more clearly illustrate the embodiments of this disclosure, a specific embodiment is used below as an example. See [link to example]. Figure 2 , Figure 2 A flowchart illustrating another high-precision map icon rendering method provided in this embodiment of the disclosure. Figure 2 As shown, it includes the following steps:

[0073] Step S201: Data query.

[0074] Among them, data query can be the task information in the initial format obtained from the database server in the above embodiment.

[0075] Step S202: Adjust the data format.

[0076] In this step, you can refer to the above embodiment to adjust the initial format of the task information to the target format.

[0077] Step S203: Configure the canvas.

[0078] The information used to set the canvas in this step may include the scaling ratio information of each subtask in the canvas in the above embodiments, the node information corresponding to each subtask, and the edge information between the first subtask at the start position and the second subtask at the end position among the multiple subtasks.

[0079] Step S204: Set the corresponding process status and location information.

[0080] In this step, the process status set can refer to the process status color information in the above embodiments, and the position can refer to the information of the subtask located at the center point of the canvas among the multiple subtasks in the above embodiments. Of course, the position can also include the position information of each subtask in the canvas.

[0081] It should be noted that there is no specific order of execution between steps S203 and S204. The two steps can be executed simultaneously, or S203 can be executed before S204, or S203 can be executed after S204.

[0082] Step S205: Run the renderer.

[0083] The renderer can be referred to as the identifier in the above embodiments, that is, the renderer can be a pre-created renderer, or the renderer can be a renderer created by the main task.

[0084] Step S206: Draw the final icon.

[0085] The final icon mentioned above may refer to the target icon in the above embodiments. For details, please refer to the relevant description of the target icon, which will not be repeated here.

[0086] In this embodiment of the disclosure, since multiple subtasks can be rendered on the canvas according to the rendering information, the rendering process of multiple subtasks is clarified, thereby improving the rendering efficiency of multiple subtasks.

[0087] See Figure 3 This disclosure provides a schematic diagram of the structure of a high-precision map icon rendering device, such as... Figure 3 As shown, the high-precision map icon rendering device 300 includes:

[0088] The first acquisition module 301 is used to acquire task information of the main task, wherein the main task includes multiple sub-tasks, and the task information is in a target format.

[0089] The determining module 302 is used to determine the rendering information corresponding to the task information, wherein the rendering information includes the rendering operation information of the plurality of subtasks on the canvas;

[0090] The rendering module 303 is used to render the multiple subtasks on the canvas according to the rendering information to obtain the target icon.

[0091] Optionally, the rendering operation information includes at least one of the following:

[0092] Node information corresponding to each subtask;

[0093] The edge information between the first subtask at the start position and the second subtask at the end position in the plurality of subtasks;

[0094] The process status color information for each subtask;

[0095] Scaling information for each subtask on the canvas;

[0096] Information about the subtask located at the center point of the canvas among the multiple subtasks.

[0097] Optionally, the high-precision map icon rendering device 300 also includes:

[0098] The second acquisition module is used to acquire task information in an initial format.

[0099] The adjustment module is used to adjust the format of the initial format task information to obtain the target format task information.

[0100] Optionally, the second acquisition module includes:

[0101] A receiving submodule is used to receive the task information in the initial format actively sent by the database server; or,

[0102] The sending and receiving submodule is used to send a request to the database server for obtaining the task information in the initial format; and to receive the task information in the initial format from the database server in response to the request.

[0103] Optionally, the rendering module 303 is further configured to control the renderer to render the plurality of subtasks on the canvas according to the rendering information to obtain the target icon; wherein the renderer is a pre-created renderer, or the renderer is a renderer created by the main task.

[0104] Optionally, the target format is a tree format.

[0105] The high-precision map icon rendering device 300 provided in this disclosure can implement all the processes implemented in the high-precision map icon rendering method embodiment and can achieve the same beneficial effects. To avoid repetition, it will not be described again here.

[0106] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0107] Figure 4 A schematic block diagram of an example electronic device 400 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0108] like Figure 4 As shown, device 400 includes a computing unit 401, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 402 or a computer program loaded from storage unit 408 into random access memory (RAM) 403. RAM 403 may also store various programs and data required for the operation of device 400. The computing unit 401, ROM 402, and RAM 403 are interconnected via bus 404. Input / output (I / O) interface 405 is also connected to bus 404.

[0109] Multiple components in device 400 are connected to I / O interface 405, including: input unit 406, such as keyboard, mouse, etc.; output unit 407, such as various types of monitors, speakers, etc.; storage unit 408, such as disk, optical disk, etc.; and communication unit 409, such as network card, modem, wireless transceiver, etc. Communication unit 409 allows device 400 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0110] The computing unit 401 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above, such as the high-definition map icon rendering method. For example, in some embodiments, the high-definition map icon rendering method can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as storage unit 408. In some embodiments, part or all of the computer program can be loaded and / or installed on device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by the computing unit 401, one or more steps of the high-definition map icon rendering method described above can be performed. Alternatively, in other embodiments, computing unit 401 may be configured to perform an icon rendering method for a high-precision map by any other suitable means (e.g., by means of firmware).

[0111] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0112] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0113] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0114] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0115] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0116] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.

[0117] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0118] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A high-precision map icon rendering method, comprising: obtaining task information of a main task, the main task comprising a plurality of subtasks, the task information being in a target format, the plurality of subtasks being in a parallel relationship; determining rendering information corresponding to the task information, the rendering information comprising rendering operation information of the plurality of subtasks on a canvas, the rendering operation information comprising information of a subtask of the plurality of subtasks located at a center point of the canvas; rendering the plurality of subtasks on the canvas according to the rendering information to obtain a target icon; the rendering operation information comprising at least one of the following: node information corresponding to each subtask, the node information comprising at least one of a display color, a display shape, and a display size of a node; edge information corresponding to a first subtask located at a start position to a second subtask located at an end position among the plurality of subtasks; flow state color information corresponding to each subtask; scaling ratio information of each subtask in the canvas.

2. The method of claim 1, further comprising: obtaining task information in an initial format; format adjusting the task information in the initial format to obtain the task information in the target format.

3. The method of claim 2, wherein, the obtaining of the task information in the initial format comprising: receiving the task information in the initial format sent by a database server actively; or sending request information for requesting to obtain the task information in the initial format to the database server, and receiving the task information in the initial format replied by the database server to the request information.

4. The method of claim 1, wherein, the rendering of the plurality of subtasks on the canvas according to the rendering information to obtain the target icon comprising: controlling a renderer to render the plurality of subtasks on the canvas according to the rendering information to obtain the target icon, wherein the renderer is a pre-created renderer, or the renderer is a renderer created by the main task.

5. The method of any one of claims 1 to 4, wherein, the target format is a tree format.

6. A high-precision map icon rendering device, comprising: a first obtaining module configured to obtain task information of a main task, the main task comprising a plurality of subtasks, the task information being in a target format, the plurality of subtasks being in a parallel relationship; a determining module configured to determine rendering information corresponding to the task information, the rendering information comprising rendering operation information of the plurality of subtasks on a canvas, the rendering operation information comprising information of a subtask of the plurality of subtasks located at a center point of the canvas; a rendering module configured to render the plurality of subtasks on the canvas according to the rendering information to obtain a target icon; the rendering operation information comprising at least one of the following: node information corresponding to each subtask, the node information comprising at least one of a display color, a display shape, and a display size of a node; edge information corresponding to a first subtask located at a start position to a second subtask located at an end position among the plurality of subtasks; flow state color information corresponding to each subtask; scaling ratio information of each subtask in the canvas.

7. The apparatus of claim 6, further comprising: a second obtaining module, configured to obtain task information in an initial format; an adjusting module, configured to adjust the task information in the initial format to obtain the task information in the target format.

8. The apparatus of claim 7, wherein, The second obtaining module comprises: a receiving sub-module, configured to receive the task information in the initial format sent by a database server actively; or a sending and receiving sub-module, configured to send request information for requesting to obtain the task information in the initial format to the database server, and receive the task information in the initial format replied by the database server to the request information.

9. The apparatus of claim 6, wherein, The rendering module is further configured to control a renderer to render the plurality of sub-tasks on the canvas according to the rendering information to obtain a target icon, wherein the renderer is a pre-created renderer, or the renderer is a renderer created by the main task.

10. The apparatus of any one of claims 6-9, wherein, The target format is a tree format.

11. An electronic device, comprising: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.

12. A non-transitory computer readable storage medium having stored thereon computer instructions, wherein, The computer instructions are used to enable the computer to perform the method of any one of claims 1-5.

13. A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-5.

Citation Information

Patent Citations

  • Visualization method, device and system for dependence relation of global task nodes

    CN106293928A

  • Data rendering method and device, terminal and storage medium

    CN110796725A