Method and device for generating visual data

By obtaining the dependency resources and templates of the target equipment, and combining equipment information and work documents to generate visual data, the problems of high cost and low efficiency of visual business development are solved, and cost reduction and efficiency improvement are achieved.

CN114416081BActive Publication Date: 2025-08-22XINAO SHUNENG TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111660740.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2025-08-22
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

In the prior art, there are problems of high development costs and low development efficiency of visualization services.

Method used

Obtain target-dependent resources and visual target templates based on the scene to which the target device belongs, combine target device information, work documents and static resource information, and generate visual data through aggregation.

Benefits of technology

Reduces the development cost of visualization business and improves development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114416081B_ABST
    Figure CN114416081B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of visualization technology and provides a method and apparatus for generating visualization data. The method comprises: obtaining target dependent resources and a visualization target template corresponding to the scenario to which the target device belongs, based on the scenario to which the target device belongs; obtaining target device information and a target work order for the target device, obtaining target static resource information corresponding to the target device information and the target work order, and obtaining boundary data corresponding to the target static resource information; and aggregating the target device information, target work order, target static resource information, and boundary data using the target dependent resources and the visualization target template to generate visualization data corresponding to the target device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of visualization technology, and in particular to a method and device for generating visualization data. Background Art

[0002] Visualization is the theory, method, and technology that uses computer graphics and image processing technology to convert data into graphics or images, display them on the screen, and perform interactive processing. Because visualization is easy for people to view, it is widely used in various industries. However, the current methods for achieving visualization are to build a complete interface from scratch based on the data to be visualized, resulting in high development costs and low development efficiency for visualization services.

[0003] In the process of realizing the concept of the present disclosure, the inventors discovered that there are at least the following technical problems in the related art: the development cost of visualization services is high and the development efficiency is low. Summary of the Invention

[0004] In view of this, embodiments of the present disclosure provide a method, apparatus, electronic device, and computer-readable storage medium for generating visualization data to solve the problems of high development cost and low development efficiency of visualization services in the prior art.

[0005] A first aspect of an embodiment of the present disclosure provides a method for generating visual data, including: obtaining target dependent resources and a visual target template corresponding to the scene to which the target device belongs according to the scene to which the target device belongs; obtaining target device information and a target work order of the target device, obtaining target static resource information corresponding to the target device information and the target work order, and obtaining boundary data corresponding to the target static resource information; aggregating the target device information, target work order, target static resource information and boundary data through the target dependent resources and the visual target template to generate visual data corresponding to the target device.

[0006] A second aspect of an embodiment of the present disclosure provides a device for generating visual data, including: a first acquisition module, configured to acquire target dependent resources and a visual target template corresponding to the scenario to which the target device belongs according to the scenario to which the target device belongs; a second acquisition module, configured to acquire target device information and a target work order of the target device, acquire target static resource information corresponding to the target device information and the target work order, and acquire boundary data corresponding to the target static resource information; a generation module, configured to aggregate the target device information, the target work order, the target static resource information and the boundary data through the target dependent resources and the visual target template to generate visual data corresponding to the target device.

[0007] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0008] According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps of the above method are implemented.

[0009] Compared with the prior art, the disclosed embodiments have the following beneficial effects: according to the scenario to which the target device belongs, the target dependent resources and visualization target template corresponding to the scenario to which the target device belongs are obtained; the target device information and target work order of the target device are obtained, the target static resource information corresponding to the target device information and the target work order is obtained, and the boundary data corresponding to the target static resource information is obtained; through the target dependent resources and visualization target template, the target device information, target work order, target static resource information and boundary data are aggregated to generate visualization data corresponding to the target device. The above technical means can solve the problems of high development cost and low development efficiency of visualization business in the prior art, thereby reducing the development cost of visualization business and improving the development efficiency of visualization business. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0011] Figure 1 is a schematic diagram of an application scenario of an embodiment of the present disclosure;

[0012] Figure 2 is a flowchart of a method for generating visual data provided by an embodiment of the present disclosure;

[0013] Figure 3 is a structural diagram of a device for generating visual data provided by an embodiment of the present disclosure;

[0014] Figure 4 It is a structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0015] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present disclosure. However, it will be apparent to those skilled in the art that the present disclosure may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present disclosure with unnecessary detail.

[0016] A method and apparatus for generating visualization data according to an embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0017] Figure 1 FIG2 is a schematic diagram of an application scenario of an embodiment of the present disclosure. The application scenario may include terminal devices 1, 2, and 3, a server 4, and a network 5.

[0018] The terminal devices 1, 2 and 3 can be hardware or software. When the terminal devices 1, 2 and 3 are hardware, they can be various electronic devices with display screens and supporting communication with the server 4, including but not limited to smart phones, tablet computers, laptop computers and desktop computers; when the terminal devices 1, 2 and 3 are software, they can be installed in the above electronic devices. The terminal devices 1, 2 and 3 can be implemented as multiple software or software modules, or as a single software or software module, and the embodiments of the present disclosure are not limited to this. Furthermore, various applications can be installed on the terminal devices 1, 2 and 3, such as data processing applications, instant messaging tools, social platform software, search applications, shopping applications, etc.

[0019] Server 4 can be a server that provides various services, for example, a backend server that receives requests sent by terminal devices that establish communication connections with it. The backend server can receive and analyze the requests sent by the terminal devices, and generate processing results. Server 4 can be a single server, a server cluster consisting of multiple servers, or a cloud computing service center, all of which are not limited in the present embodiment.

[0020] It should be noted that the server 4 can be either hardware or software. When the server 4 is hardware, it can be various electronic devices that provide various services to the terminal devices 1, 2, and 3. When the server 4 is software, it can be multiple software programs or software modules that provide various services to the terminal devices 1, 2, and 3, or it can be a single software program or software module that provides various services to the terminal devices 1, 2, and 3. This embodiment of the present disclosure does not limit this.

[0021] The network 5 can be a wired network connected by coaxial cable, twisted pair and optical fiber, or it can be a wireless network that can interconnect various communication devices without wiring, such as Bluetooth, Near Field Communication (NFC), infrared, etc. The embodiments of the present disclosure are not limited to this.

[0022] Users can establish a communication connection with the server 4 via the network 5 through the terminal devices 1, 2, and 3 to receive or send information, etc. It should be noted that the specific types, quantities, and combinations of the terminal devices 1, 2, and 3, the server 4, and the network 5 can be adjusted according to the actual needs of the application scenario, and the embodiments of the present disclosure are not limited thereto.

[0023] Figure 2 It is a flowchart of a method for generating visual data provided by an embodiment of the present disclosure. Figure 2 The method for generating visual data can be done by Figure 1 The terminal device or server executes. Figure 2 As shown, the method for generating the visualization data includes:

[0024] S201, according to the scene to which the target device belongs, obtaining target dependent resources and a visualization target template corresponding to the scene to which the target device belongs;

[0025] S202, obtaining target device information and a target work order of a target device, obtaining target static resource information corresponding to the target device information and the target work order, and obtaining boundary data corresponding to the target static resource information;

[0026] S203 , through target dependent resources and visualization target templates, target device information, target work order, target static resource information and boundary data are aggregated to generate visualization data corresponding to the target device.

[0027] The embodiment of the present disclosure is equivalent to providing a system for generating visual data, and the executing subject of the embodiment of the present disclosure is the generation system. The target device can be any type of device, such as an operation and maintenance device of the energy Internet of Things. For example, when the target device is an operation and maintenance device of the energy Internet of Things network, the scenario to which the target device belongs is the operation and maintenance scenario of the energy Internet of Things network, and "operation and maintenance" means operation and maintenance. The target work document is a work document for the target device, which is a simple maintenance or manufacturing plan consisting of one or more operations. The work document is the basis for the superior department to issue tasks and the subordinate department to accept tasks. The work document can be independent or part of a large project, and sub-work documents can be defined for the work document. The embodiment of the present disclosure realizes the aggregation of equipment and work order (work document) data, and integrates static resource information and area boundary data.

[0028] According to the technical solution provided by the embodiment of the present disclosure, according to the scenario to which the target device belongs, the target dependent resources and visualization target template corresponding to the scenario to which the target device belongs are obtained; the target device information and target work order of the target device are obtained, the target static resource information corresponding to the target device information and the target work order is obtained, and the boundary data corresponding to the target static resource information is obtained; through the target dependent resources and visualization target template, the target device information, target work order, target static resource information and boundary data are aggregated to generate visualization data corresponding to the target device. The above technical means can solve the problems of high development cost and low development efficiency of visualization business in the existing technology, thereby reducing the development cost of visualization business and improving the development efficiency of visualization business.

[0029] In step S201, according to the scenario to which the target device belongs, target dependent resources corresponding to the scenario to which the target device belongs are obtained, including: according to the scenario to which the target device belongs, obtaining multiple dependencies by global introduction; or according to the scenario to which the target device belongs, obtaining multiple dependencies by current dependency introduction; wherein, the target dependent resources include multiple dependencies, and the data types of the multiple dependencies include: scripting language and cascading style sheet.

[0030] Dependencies can be understood as open-source library functions or plugins that support visualization target templates, aggregation of target device information, target work orders, target static resource information, and boundary data. The current dependency import method is the same as the current plugin import method. Since global import and current plugin import are common resource call methods, they will not be detailed here.

[0031] In step S202, target device information of the target device is obtained, including: loading a map of the environment where the target device is located; and determining distribution information of the target device according to the map, wherein the target device information includes distribution information.

[0032] The distribution information can be understood as the location of the target device. The target device information includes: distribution information and detailed information of the target device. The detailed information of the target device can include the device type of the target device, the function of the device, the status of the device, etc.

[0033] In step S202, target static resource information corresponding to target device information and target work order is obtained, including: obtaining basic information of target static resource information corresponding to target device information and target work order from a relational database; and obtaining target static resource information from a file database based on the basic information.

[0034] The disclosed embodiments can be understood as obtaining basic information corresponding to target device information and target work orders from a relational database, and then obtaining target static resource information from a file database based on the basic information. The basic information is information related to the target static resource information. The target static resource information can be found based on the basic information.

[0035] Before executing step S202, that is, before obtaining the target static resource information corresponding to the target device information and the target work document, the method also includes: obtaining the device information and work documents of multiple devices; determining the icon group corresponding to the device information and work document of each device from the icon database to obtain the static resource information corresponding to the device information and work document of each device.

[0036] Both the equipment information and the work document include multiple attributes or multiple types of information. Each attribute or each type of information corresponds to an icon, and all icons form an icon group.

[0037] In step S203, the target device information, target work document, target static resource information and boundary data are aggregated through the target dependent resources and the visualization target template to generate visualization data corresponding to the target device, including: using the target dependent resources to provide support for the visualization target template, aggregating the target icon group corresponding to the target device information and the target work document onto the visualization target template through the visualization target template, loading the target device information and the target work document onto the target icon group, determining the administrative boundaries of multiple target icons in the target icon group in the visualization target template based on the boundary data, and obtaining visualization data corresponding to the target device; wherein, the target static resource information includes the target icon group.

[0038] The visualization data corresponding to the target device can be understood as a visualization target template after all information is loaded and processed. The administrative boundary is the boundary between multiple target icons on the visualization target template.

[0039] After executing step S203, that is, after generating visualization data corresponding to the target device by aggregating target device information, target work documents, target static resource information and boundary data through target dependent resources and visualization target templates, the method further includes: in the case of receiving a code request: performing template semantic operations on the visualization data to obtain code corresponding to the visualization data; sending the code to the requester so that the code is integrated into the target project through the requester, wherein the code request is sent by the requester.

[0040] Through the embodiment of the present disclosure, the code of the visualization data corresponding to the target device can be obtained, and then the target project can be obtained through the code. The target project is a visualization project of multiple devices.

[0041] All of the above optional technical solutions can be combined in any way to form optional embodiments of the present application, and will not be described in detail here.

[0042] The following are embodiments of the apparatus disclosed herein, which can be used to implement the method embodiments disclosed herein. For details not disclosed in the apparatus embodiments disclosed herein, please refer to the method embodiments disclosed herein.

[0043] Figure 3 Schematic diagram of a device for generating visual data provided by an embodiment of the present disclosure. Figure 3 As shown, the visualization data generating device includes:

[0044] The first acquisition module 301 is configured to acquire target dependent resources and a visualization target template corresponding to the scenario to which the target device belongs according to the scenario to which the target device belongs;

[0045] The second acquisition module 302 is configured to acquire target device information and a target work order of a target device, acquire target static resource information corresponding to the target device information and the target work order, and acquire boundary data corresponding to the target static resource information;

[0046] The generation module 303 is configured to aggregate target device information, target work order, target static resource information and boundary data through target dependent resources and visualization target templates to generate visualization data corresponding to the target device.

[0047] The embodiment of the present disclosure is equivalent to providing a system for generating visual data, and the executing subject of the embodiment of the present disclosure is the generating system. The target device can be any kind of device, for example, it can be an operation and maintenance device of the energy Internet of Things. For example, when the target device is an operation and maintenance device of the energy Internet of Things network, then the scenario to which the target device belongs is the operation and maintenance scenario of the energy Internet of Things network, and "operation and maintenance" means operation and maintenance. The target work document is a simple maintenance or manufacturing plan consisting of one or more operations for the target device. The work document is the basis for the superior department to issue tasks and the subordinate department to accept tasks. The work document can be independent or part of a large project, and sub-work documents can be defined for the work document.

[0048] According to the technical solution provided by the embodiment of the present disclosure, according to the scenario to which the target device belongs, the target dependent resources and visualization target template corresponding to the scenario to which the target device belongs are obtained; the target device information and target work order of the target device are obtained, the target static resource information corresponding to the target device information and the target work order is obtained, and the boundary data corresponding to the target static resource information is obtained; through the target dependent resources and visualization target template, the target device information, target work order, target static resource information and boundary data are aggregated to generate visualization data corresponding to the target device. The above technical means can solve the problems of high development cost and low development efficiency of visualization business in the existing technology, thereby reducing the development cost of visualization business and improving the development efficiency of visualization business.

[0049] Optionally, the first acquisition module 301 is further configured to obtain multiple dependencies by global introduction according to the scenario to which the target device belongs; or to obtain multiple dependencies by current dependency introduction according to the scenario to which the target device belongs; wherein the target dependency resource includes multiple dependencies, and the data types of the multiple dependencies include: scripting language and cascading style sheets.

[0050] Dependencies can be understood as open-source library functions or plugins that support visualization target templates, aggregation of target device information, target work orders, target static resource information, and boundary data. The current dependency import method is the same as the current plugin import method. Since global import and current plugin import are common resource call methods, they will not be detailed here.

[0051] Optionally, the second acquisition module 302 is further configured to load a map of the environment where the target device is located; and determine distribution information of the target device according to the map, wherein the target device information includes distribution information.

[0052] The distribution information can be understood as the location of the target device. The target device information includes: distribution information and detailed information of the target device. The detailed information of the target device can include the device type of the target device, the function of the device, the status of the device, etc.

[0053] Optionally, the second acquisition module 302 is further configured to acquire basic information of the target static resource information corresponding to the target device information and the target work order from a relational database; and acquire the target static resource information from a file database based on the basic information.

[0054] The disclosed embodiments can be understood as obtaining basic information corresponding to target device information and target work orders from a relational database, and then obtaining target static resource information from a file database based on the basic information. The basic information is information related to the target static resource information. The target static resource information can be found based on the basic information.

[0055] Optionally, the second acquisition module 302 is further configured to obtain device information and work documents of multiple devices; determine the icon group corresponding to the device information and work document of each device from the icon database to obtain static resource information corresponding to the device information and work document of each device.

[0056] Both the equipment information and the work document include multiple attributes or multiple types of information. Each attribute or each type of information corresponds to an icon, and all icons form an icon group.

[0057] Optionally, the generation module 303 is also configured to utilize target-dependent resources to provide support for the visualization target template, aggregate the target device information and the target icon group corresponding to the target work document onto the visualization target template through the visualization target template, load the target device information and the target work document onto the target icon group, determine the administrative boundaries of multiple target icons in the target icon group in the visualization target template based on the boundary data, and obtain visualization data corresponding to the target device; wherein, the target static resource information includes the target icon group.

[0058] The visualization data corresponding to the target device can be understood as a visualization target template after all information is loaded and processed. The administrative boundary is the boundary between multiple target icons on the visualization target template.

[0059] Optionally, the generation module 303 is also configured to, upon receiving a code request: perform template semantic operations on the visualization data to obtain code corresponding to the visualization data; and send the code to the requester so that the code can be integrated into the target project through the requester, wherein the code request is sent by the requester.

[0060] Through the embodiment of the present disclosure, the code of the visualization data corresponding to the target device can be obtained, and then the target project can be obtained through the code. The target project is a visualization project of multiple devices.

[0061] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.

[0062] Figure 4 FIG. 4 is a schematic diagram of an electronic device 4 provided in an embodiment of the present disclosure. Figure 4 As shown, the electronic device 4 of this embodiment includes: a processor 401, a memory 402, and a computer program 403 stored in the memory 402 and executable by the processor 401. When the processor 401 executes the computer program 403, the steps of the above-described method embodiments are implemented. Alternatively, when the processor 401 executes the computer program 403, the functions of the modules / units in the above-described device embodiments are implemented.

[0063] For example, computer program 403 may be divided into one or more modules / units, which are stored in memory 402 and executed by processor 401 to implement the present disclosure. One or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of computer program 403 in electronic device 4.

[0064] The electronic device 4 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 4 may include but is not limited to a processor 401 and a memory 402. Those skilled in the art will appreciate that Figure 4 It is only an example of the electronic device 4 and does not constitute a limitation of the electronic device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.

[0065] The processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0066] Memory 402 can be an internal storage unit of electronic device 4, such as a hard drive or memory of electronic device 4. Memory 402 can also be an external storage device of electronic device 4, such as a plug-in hard drive, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. equipped on electronic device 4. Furthermore, memory 402 can include both an internal storage unit of electronic device 4 and an external storage device. Memory 402 is used to store computer programs and other programs and data required by the electronic device. Memory 402 can also be used to temporarily store data that has been output or is about to be output.

[0067] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

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

[0069] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.

[0070] In the embodiments provided in the present disclosure, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of modules or units is merely a logical function division. In actual implementation, there may be other division methods. Multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, which may be electrical, mechanical or other forms.

[0071] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0072] In addition, the functional units in the various embodiments of the present disclosure may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0073] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present disclosure implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0074] The above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present disclosure, and should all be included in the scope of protection of the present disclosure.

Claims

1. A method for generating visual data, characterized in that: include: According to the scenario to which the target device belongs, obtaining target dependent resources and visualization target templates corresponding to the scenario to which the target device belongs; Acquire target device information and a target work order of the target device, acquire target static resource information corresponding to the target device information and the target work order, and acquire boundary data corresponding to the target static resource information; Aggregating the target device information, the target work order, the target static resource information, and the boundary data through the target dependent resources and the visualization target template to generate visualization data corresponding to the target device; Among them, the target device information, the target work document, the target static resource information and the boundary data are aggregated through the target dependent resources and the visual target template to generate visual data corresponding to the target device, including: using the target dependent resources to provide support for the visual target template, aggregating the target device information and the target icon group corresponding to the target work document onto the visual target template through the visual target template, loading the target device information and the target work document onto the target icon group, determining the administrative boundaries of multiple target icons in the target icon group in the visual target template based on the boundary data, and obtaining visual data corresponding to the target device; wherein, the target static resource information includes the target icon group.

2. The method according to claim 1, characterized in that The acquiring, according to the scenario to which the target device belongs, target dependent resources corresponding to the scenario to which the target device belongs includes: Obtain multiple dependencies by globally importing them, depending on the scenario of the target device; or According to the scenario to which the target device belongs, multiple dependencies are obtained by introducing the current dependencies; The target dependent resource includes a plurality of the dependent items, and the data types of the plurality of the dependent items include: scripting language and cascading style sheets.

3. The method according to claim 1, characterized in that The acquiring target device information of the target device includes: Loading a map of the environment in which the target device is located; The distribution information of the target device is determined according to the map, wherein the target device information includes the distribution information.

4. The method according to claim 1, wherein The acquiring of the target device information and the target static resource information corresponding to the target work order includes: Obtaining basic information of the target equipment information and the target static resource information corresponding to the target work order from a relational database; The target static resource information is obtained from a file database according to the basic information.

5. The method according to claim 1, characterized in that Before obtaining the target device information and the target static resource information corresponding to the target work document, the method further includes: Obtain equipment information and work orders for multiple devices; The icon group corresponding to the device information of each device and the work order is determined from the icon database to obtain the static resource information corresponding to the device information of each device and the work order.

6. The method according to claim 1, characterized in that After generating visualization data corresponding to the target device by aggregating the target device information, the target work order, the target static resource information, and the boundary data through the target dependent resource and the visualization target template, the method further includes: Upon receiving a code request: Performing template semantic operation on the visualization data to obtain code corresponding to the visualization data; The code is sent to a requester so that the code is integrated into a target project by the requester, wherein the code request is sent by the requester.

7. A device for generating visual data, characterized in that: include: A first acquisition module is configured to acquire target dependent resources and a visualization target template corresponding to the scenario to which the target device belongs according to the scenario to which the target device belongs; A second acquisition module is configured to acquire target device information and a target work order of the target device, acquire target static resource information corresponding to the target device information and the target work order, and acquire boundary data corresponding to the target static resource information; a generating module configured to aggregate the target device information, the target work order, the target static resource information, and the boundary data through the target dependent resources and the visualization target template to generate visualization data corresponding to the target device; The generation module is also configured to utilize the target dependent resources to provide support for the visual target template, aggregate the target device information and the target icon group corresponding to the target work document onto the visual target template through the visual target template, load the target device information and the target work document onto the target icon group, determine the administrative boundaries of the multiple target icons in the target icon group in the visual target template based on the boundary data, and obtain the visual data corresponding to the target device; wherein, the target static resource information includes the target icon group.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Equipment management interface generation method and device and terminal

    CN113296770A

  • Physical location-based audio and video equipment state graphical display equipment and method

    CN113407764A