Image drawing method and device, electronic equipment and storage medium

By automatically acquiring power equipment information and connection relationships, combined with the preset element library, efficient drawing and real-time updating of distribution system diagrams are achieved, solving the problems of low drawing efficiency and poor timeliness in the existing technology.

CN119359853APending Publication Date: 2025-01-24CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411677604.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In the prior art, the drawing efficiency of the distribution system diagram is low and cannot be updated in real time, so it is impossible to effectively manage the increase or decrease of power equipment in the distribution room.

Method used

Through automated means to obtain the power equipment information and connection relationship in the target area, use the preset map library to quickly match and apply the corresponding graphic information to draw the power distribution system diagram.

Benefits of technology

Improve the drawing speed and timeliness of the power distribution system diagram, and timely respond to changes in power equipment and update the power distribution system diagram in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119359853A_ABST
    Figure CN119359853A_ABST
Patent Text Reader

Abstract

The invention provides an image drawing method and device, electronic equipment and a storage medium, relates to the technical field of image automatic generation, and can solve the problems of low drawing efficiency and poor drawing timeliness of a power distribution system diagram. The method comprises the following steps: acquiring equipment information of power equipment in a target area, and acquiring a connection relationship between the power equipment; and drawing a power distribution system diagram in the target area based on the equipment information, the connection relationship and the primitive information corresponding to each piece of power equipment, the primitive information being primitive information in a preset primitive library. The efficiency of drawing the power distribution system diagram can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to an image rendering method, device, electronic device, and storage medium. Background Art

[0002] With the rapid development of communication technology, the number of power equipment in distribution rooms is increasing. In order to facilitate large-scale management of all equipment, each power equipment in the room is currently manually drawn, and the distribution system diagram corresponding to the distribution room is drawn according to the actual connection method of all power equipment to display power data.

[0003] However, this manual method of drawing the power distribution system diagram is inefficient and cannot update the power distribution system diagram in real time according to the increase or decrease of power equipment in the computer room. Summary of the Invention

[0004] The present application provides an image drawing method, device, electronic device and storage medium, which can solve the problems of low drawing efficiency and poor drawing timeliness of distribution system diagrams.

[0005] To achieve the above objectives, this application adopts the following technical solutions:

[0006] In the first aspect, the present application provides an image drawing method, which includes: obtaining equipment information of the power equipment in the target area, and obtaining the connection relationship between each power equipment; based on the equipment information, connection relationship, and graphic element information corresponding to each power equipment, drawing a distribution system diagram in the target area, where the graphic element information is graphic element information in a preset graphic element library.

[0007] The image drawing method provided in the embodiment of the present application obtains the power equipment information and its connection relationship in the target area through automated means, reducing the workload of manual input and verification, and then based on the preset graphic element library, it can quickly match and apply the corresponding graphic element information without manual drawing or adjustment, thereby improving the drawing speed of the distribution system diagram; at the same time, when the power equipment in the target area changes, the distribution system diagram can be updated in response to the changes in a timely manner, thereby improving the timeliness of the drawing of the distribution system diagram.

[0008] In combination with the above-mentioned first aspect, in a possible implementation method, the above-mentioned acquisition of equipment information of the power equipment in the target area includes: determining the equipment type and equipment code of the power equipment in the target area, and determining the equipment system type and equipment system code to which the power equipment belongs, the equipment code is the code carried by the power equipment itself, and the equipment system code is the code carried by the equipment system itself; determining the equipment type and equipment code, as well as the equipment system type and equipment system code as equipment information.

[0009] In combination with the first aspect above, in a possible implementation method, the above-mentioned acquisition of the connection relationship between each power device includes: determining the input contacts and output contacts of each power device; determining the contact code of each power device based on the input contacts and output contacts, where the contact code is the code carried by the contact itself; generating the connection relationship between each power device based on the input contacts, output contacts and contact code.

[0010] In combination with the above-mentioned first aspect, in a possible implementation method, the image drawing method provided by the embodiment of the present application may also include: determining a graphic element style that matches the device type of the power equipment from a preset graphic element library; determining the graphic element instance and graphic element code of the power equipment based on the input contacts and output contacts of the power equipment, as well as the graphic element style, the graphic element code being the code carried by the graphic element instance itself, and determining the graphic element instance and graphic element code as graphic element information.

[0011] In combination with the first aspect above, in a possible implementation method, the above-mentioned method of drawing a distribution system diagram corresponding to the target area based on the device information, connection relationship, and graphic element information corresponding to each power device includes: determining the target arrangement order based on the device system code, device code, contact code, and graphic element code, and the target arrangement order is used to indicate the drawing order of each power device; connecting each graphic element instance according to the target arrangement order to obtain the distribution system diagram.

[0012] In combination with the first aspect above, in a possible implementation method, the above-mentioned target arrangement order is determined based on the equipment system code, equipment code, contact code, and graphic element code, including: determining the equipment system number according to the equipment system code, the equipment system number is the arrangement number of the equipment system in the distribution system diagram; determining the equipment number according to the equipment system number and the equipment code, the equipment number is the arrangement number of the power equipment in the distribution system diagram; determining the graphic element number according to the equipment number and the graphic element code, the graphic element number is the arrangement number of the graphic element instance in the distribution system; determining the contact number according to the graphic element number and the contact code, the contact number is the arrangement number of the contact in the distribution system; determining the target arrangement order according to the equipment system number, the equipment number, the graphic element number and the contact number.

[0013] In combination with the first aspect above, in a possible implementation method, the above-mentioned determination of the target arrangement order based on the equipment system number, equipment number, graphic element number and contact number includes: determining the first arrangement order of each equipment system based on the equipment system number; determining the second arrangement order of the graphic element instance corresponding to each power equipment based on the equipment number, contact number and graphic element number; and determining the target arrangement order based on the first arrangement order and the second arrangement order.

[0014] In the second aspect, the present application provides an image drawing device, which includes: an acquisition unit for acquiring equipment information of the power equipment in the target area, and acquiring the connection relationship between each power equipment; a processing unit for drawing a distribution system diagram in the target area based on the equipment information, connection relationship, and graphic element information corresponding to each power equipment, where the graphic element information is graphic element information in a preset graphic element library.

[0015] In combination with the above-mentioned second aspect, in a possible implementation method, the acquisition unit is specifically used to: determine the equipment type and equipment code of the power equipment in the target area, and determine the equipment system type and equipment system code to which the power equipment belongs, the equipment code is the code carried by the power equipment itself, and the equipment system code is the code carried by the equipment system itself; determine the equipment type and equipment code, as well as the equipment system type and equipment system code as equipment information.

[0016] In combination with the above-mentioned second aspect, in a possible implementation method, the acquisition unit is specifically used to: determine the input contacts and output contacts of each electrical device; determine the contact code of each electrical device based on the input contacts and output contacts, where the contact code is the code carried by the contact itself; and generate the connection relationship between each electrical device based on the input contacts, output contacts and contact code.

[0017] In combination with the above-mentioned second aspect, in a possible implementation method, the image drawing device provided by the embodiment of the present application also includes: a determination unit, used to determine a graphic element style that matches the equipment type of the power equipment from a preset graphic element library; based on the input contacts and output contacts of the power equipment, and the graphic element style, determine the graphic element instance and graphic element code of the power equipment, the graphic element code is the code carried by the graphic element instance itself, and the graphic element instance and graphic element code are determined as graphic element information.

[0018] In combination with the above-mentioned second aspect, in a possible implementation method, the processing unit is specifically used to: determine the target arrangement order based on the equipment system code, equipment code, contact code, and graphic element code, and the target arrangement order is used to indicate the drawing order of each power equipment; connect each graphic element instance according to the target arrangement order to obtain a distribution system diagram.

[0019] In combination with the above-mentioned second aspect, in a possible implementation method, the processing unit is specifically used to: determine the equipment system number according to the equipment system code, where the equipment system number is the arrangement number of the equipment system in the distribution system diagram; determine the equipment number according to the equipment system number and the equipment code, where the equipment number is the arrangement number of the power equipment in the distribution system diagram; determine the graphic element number according to the equipment number and the graphic element code, where the graphic element number is the arrangement number of the graphic element instance in the distribution system; determine the contact number according to the graphic element number and the contact code, where the contact number is the arrangement number of the contact in the distribution system; determine the target arrangement order according to the equipment system number, the equipment number, the graphic element number and the contact number.

[0020] In combination with the above-mentioned second aspect, in a possible implementation method, the processing unit is specifically used to: determine the first arrangement order of each equipment system according to the equipment system number; determine the second arrangement order of the graphic element instance corresponding to each power equipment according to the equipment number, contact number and graphic element number; determine the target arrangement order according to the first arrangement order and the second arrangement order.

[0021] In a third aspect, the present application provides an electronic device comprising: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the image drawing method described in the first aspect and any possible implementation of the first aspect.

[0022] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program or instructions. When the computer program or instructions are run on an electronic device, the electronic device executes the image drawing method described in the first aspect and any possible implementation of the first aspect.

[0023] In a fifth aspect, the present application provides a computer program product comprising a computer program or instructions, which, when executed on an electronic device, enables the electronic device to execute the image drawing method as described in the first aspect and any possible implementation of the first aspect.

[0024] In a sixth aspect, the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the image drawing method described in the first aspect and any possible implementation of the first aspect.

[0025] Specifically, the chip provided in this application also includes a memory for storing computer programs or instructions.

[0026] It should be noted that the above-mentioned computer program or instructions may be stored in whole or in part on a computer-readable storage medium. The computer-readable storage medium may be packaged together with the processor of the device or separately from the processor of the device, and this application does not limit this.

[0027] In a seventh aspect, the present application provides an image drawing system, comprising: an image drawing device and a data server, wherein the image drawing device is used to execute the image drawing method as described in the first aspect and any possible implementation manner of the first aspect.

[0028] The descriptions of the second to seventh aspects of this application can refer to the detailed description of the first aspect; and the beneficial effects of the descriptions of the second to seventh aspects can refer to the analysis of the beneficial effects of the first aspect, which will not be repeated here.

[0029] In this application, the name of the image rendering device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they are within the scope of the claims of this application and their equivalents.

[0030] These and other aspects of the present application will become more readily apparent from the following description.

[0031] The above scheme brings at least the following beneficial effects: Based on the above technical scheme, the image drawing method provided by this application obtains the power equipment information and its connection relationship in the target area through automated means, reducing the workload of manual input and verification, and then based on the preset graphic element library, it can quickly match and apply the corresponding graphic element information without manual drawing or adjustment, thereby improving the drawing speed of the distribution system diagram; at the same time, when the power equipment in the target area changes, the distribution system diagram can be updated in time to respond to the changes, thereby improving the timeliness of the drawing of the distribution system diagram. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of the architecture of an image rendering system provided in an embodiment of the present application;

[0033] Figure 2 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0034] Figure 3 A flowchart of an image drawing method provided in an embodiment of the present application;

[0035] Figure 4 A power distribution system diagram provided in an embodiment of the present application;

[0036] Figure 5Another power distribution system diagram provided in an embodiment of the present application;

[0037] Figure 6 Another power distribution system diagram provided in an embodiment of the present application;

[0038] Figure 7 Another power distribution system diagram provided in an embodiment of the present application;

[0039] Figure 8 A flowchart of another image drawing method provided in an embodiment of the present application;

[0040] Figure 9 A schematic structural diagram of an image drawing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0042] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0043] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0044] Furthermore, the terms "including," "having," and any variations thereof, as used in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to the process, method, product, or apparatus.

[0045] It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being more preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0046] In the description of the present application, unless otherwise specified, “plurality” means two or more.

[0047] In the operation and maintenance management of communication core rooms or data center rooms, in order to troubleshoot and handle power equipment failures or estimate capacity addition and subtraction, it is usually necessary to consult the distribution system diagram to obtain information such as the topology, capacity, and switch links of the distribution system.

[0048] In the related art, when designing and planning a power distribution system, there are two schemes for drawing a power distribution system diagram:

[0049] (1) Professionals will draw a power distribution system diagram for use during power construction. Specifically, the diagram will typically include information such as the equipment system name, serial number, and switch capacity. Furthermore, if two equipment systems with direct input and output relationships cannot be drawn on the same diagram, the input source and output destination must be separately labeled on the connecting lines for easy reference by construction and maintenance personnel.

[0050] (2) Distribution system diagrams drawn directly using a single-line diagram editor. Specifically, this can be manually drawn using the built-in single-line diagram tool in the power management system or data center infrastructure management (DCIM) system, with the equipment elements and connections manually laid out, or by directly pasting a diagram to display power data.

[0051] However, both of the above solutions require manual drawing, resulting in low drawing efficiency. At the same time, both solutions can only display power data on the layer. Various information on the distribution system diagram only exists on the front end and lacks structured data on the back end. When the actual power equipment changes, the distribution system diagram cannot be updated in real time, resulting in low timeliness of the drawing.

[0052] In view of this, an embodiment of the present application provides an image drawing method that can be applied to the scenario of automatically drawing a distribution system diagram. Among them, this method obtains the power equipment information and its connection relationship in the target area through automated means, reducing the workload of manual input and verification. Then, based on a preset graphic element library, it can quickly match and apply the corresponding graphic element information without manual drawing or adjustment, thereby improving the drawing speed of the distribution system diagram. At the same time, when the power equipment in the target area changes, the distribution system diagram can be updated in response to the changes in a timely manner, improving the timeliness of the distribution system diagram drawing.

[0053] The following will describe in detail the implementation of the embodiment of the present application in conjunction with the accompanying drawings.

[0054] Figure 1 This is a schematic diagram of the architecture of an image rendering system provided in an embodiment of the present application. Figure 1As shown, the image drawing system 100 includes an image drawing device 101 and a data server 102 .

[0055] The image drawing device 101 and the data server 102 may be one or more. For ease of understanding, Figure 1 Only one image rendering device and one data server are shown.

[0056] The image drawing device 101 and the data server 102 are connected via a communication link. The communication link can be a wired communication link or a wireless communication link, which is not limited in this application.

[0057] In some embodiments, the image drawing device 101 can obtain the equipment information of the power equipment in the target area, and obtain the connection relationship between each power equipment, and draw the distribution system diagram corresponding to the target area based on the equipment information, connection relationship, and graphic element information corresponding to each power equipment.

[0058] In some embodiments, the data server 102 stores a preset graphic element library for providing the image drawing device 101 with the acquired graphic element information corresponding to the electric power equipment.

[0059] When implemented by hardware, the modules in the image drawing apparatus 101 can be integrated into Figure 2 Specifically, Figure 2 As shown, the basic hardware structure of electronic equipment is introduced.

[0060] Figure 2 This is a hardware structure diagram of an electronic device provided in an embodiment of the present application. Figure 2 As shown, the electronic device includes at least one processor 201, a communication line 202, and at least one communication interface 204, and may further include a memory 203. The processor 201, the memory 203 and the communication interface 204 may be connected via the communication line 202.

[0061] The processor 201 can be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs).

[0062] The communication link 202 may include a pathway for transmitting information between the aforementioned components.

[0063] The communication interface 204 is used to communicate with other devices or communication networks and can use any transceiver-like device, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.

[0064] The memory 203 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to include or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0065] In one possible design, the memory 203 can exist independently of the processor 201, that is, the memory 203 can be a memory external to the processor 201. In this case, the memory 203 can be connected to the processor 201 via the communication line 202 to store execution instructions or application code, and the execution is controlled by the processor 201 to implement the image rendering method provided in the following embodiments of this application. In another possible design, the memory 203 can also be integrated with the processor 201, that is, the memory 203 can be the internal memory of the processor 201. For example, the memory 203 is a high-speed cache that can be used to temporarily store some data and instruction information.

[0066] As a possible implementation, the processor 201 may include one or more CPUs, such as Figure 2 As another possible implementation, the electronic device may include multiple processors, such as Figure 2 As another possible implementation, the electronic device may further include an output device 205 and an input device 206.

[0067] It should be pointed out that the various embodiments of the present application can refer to each other, for example, the same or similar steps, method embodiments, system embodiments and device embodiments can refer to each other without limitation.

[0068] Figure 3 This is a flowchart of an image drawing method provided in an embodiment of the present application. The subject of executing the method may be as follows: Figure 1 The image drawing device 101 shown may also be various units / modules in the image drawing device 101, such as an integrated circuit or a chip, which is not specifically limited in the embodiment of the present application.

[0069] For example, Figure 3 As shown, the image drawing method provided in the embodiment of the present application includes the following steps:

[0070] S301: Acquire device information of power devices in a target area, and acquire connection relationships between each power device.

[0071] The target area may be an area selected by the user, for example, a computer room, a power distribution room, an equipment workshop, etc.

[0072] In the embodiment of the present application, the device information includes the device type, device code, device system type and device code.

[0073] In some embodiments, the device type and device code of the power equipment in the target area can be determined first, as well as the device system type and device system code to which the power equipment belongs; and then the device type and device code, as well as the device system type and device system code are determined as device information.

[0074] The device code is the code carried by the power equipment itself, and the device system code is the code carried by the device system itself.

[0075] For example, all the electrical equipment in the computer room may be traversed to determine the type of each electrical equipment and encode each electrical equipment; at the same time, the equipment system to which each electrical equipment belongs may be classified and each equipment system may be encode.

[0076] In other embodiments, it is also possible to determine a graphic element style that matches the device type of the power equipment from a preset graphic element library, and then determine the graphic element instance and graphic element code of the power equipment based on the input contacts and output contacts of the power equipment, as well as the graphic element style, and determine the graphic element instance and graphic element code as graphic element information.

[0077] The primitive code is the code carried by the primitive instance itself, and the primitive style can also be called primitive selection. Different primitive selections correspond to different serial numbers.

[0078] In the embodiment of the present application, the input contacts and the output contacts may be circuit breakers between the power devices, or fuses between the power devices, or connection points between the power devices.

[0079] For example, after determining the device type of each electrical device, the graphic element style corresponding to the device type can be filtered from the preset graphic element library according to the device type, and then the corresponding input contacts and output contacts are set for the graphic element style to obtain the graphic element instance, and each graphic element instance is encoded.

[0080] In an embodiment of the present application, a preset graphic element library can be constructed based on a professional power distribution system diagram. Specifically, all graphic elements in the professional power distribution system diagram can be parsed to determine the graphic element style of each graphic element, as well as its corresponding power equipment and device type, and then a preset graphic element library can be constructed for screening based on device type.

[0081] The preset graphic element library stores graphic element styles corresponding to various devices.

[0082] For example, as shown in Table 1, it is a table of coding systems corresponding to the above-mentioned equipment systems, power equipment, and graphic elements. The coding system table only shows the coding systems corresponding to some equipment systems, power equipment, and graphic elements. The actual scenario may also include more or fewer coding systems corresponding to equipment systems, power equipment, and graphic elements, which are not listed one by one here.

[0083] Table 1

[0084]

[0085] In other embodiments, the input contacts and output contacts of each electrical device can be determined first, and then the contact code of each electrical device can be determined based on the input contacts and output contacts. Finally, the connection relationship between each electrical device can be generated based on the input contacts, output contacts and contact codes.

[0086] The contact code is the code carried by the contact itself.

[0087] In an embodiment of the present application, the connection relationship refers to the connection relationship between the input contact of an electrical device and the output contact of other electrical devices (upper-level nodes); or refers to the connection relationship between the output contact of an electrical device and the input contact of other electrical devices (lower-level nodes).

[0088] For example, the number of contacts of the graphic primitive style corresponding to each power device and the type of the contacts can be determined according to the connection status of the input contacts and output contacts between the power devices in the machine room, and each contact can be coded.

[0089] For example, as shown in Table 2, it is an expression rule table corresponding to the above-mentioned input contacts. The expression rule table only shows the expression rules of the input contacts corresponding to some equipment systems, power equipment, and graphic elements. The actual scenario may also include more or fewer expression rules for the input contacts corresponding to equipment systems, power equipment, and graphic elements. Examples are not given one by one here.

[0090] Table 2

[0091]

[0092] Optionally, when actually drawing the same primitive type, different primitive instances may be formed due to differences in input contacts and output contacts.

[0093] For example, when drawing a low-voltage distribution cabinet, you can Figure 4 The power can be transmitted from left to right as shown in (a) in the figure, or it can be transmitted from left to right as shown in Figure 4 As shown in (b), power is transmitted from right to left.

[0094] Optionally, for electrical equipment with a non-fixed number of contacts, automatic adaptation can be performed during actual drawing according to the actual number of input contacts and output contacts to ensure that the drawn primitive instance is consistent with the actual number of input contacts and output contacts.

[0095] For example, Figure 5 As shown in the figure, the number of output contacts of the circuit breaker must be consistent with the actual number of 7 output contacts.

[0096] Optionally, for an electric device with unfixed input contacts and output contacts, a special definition of the graphic element type corresponding to the electric device is required.

[0097] For example, Figure 6 As shown in the figure, taking a low-voltage contactor cabinet as an example, the contact numbers for the fixed element are 01 and 02. Both 01 and 02 can function as both output and input contacts. When 01 is an input contact, 02 is an output contact; when 01 is an output contact, 02 is an input contact.

[0098] S302: Draw a power distribution system diagram corresponding to the target area based on the device information, connection relationship, and graphic element information corresponding to each power device.

[0099] The graphic element information is the graphic element information in the preset graphic element library.

[0100] In some embodiments, the target arrangement order may be determined based on the device system code, device code, contact code, and graphic element code, and then each graphic element instance may be connected according to the target arrangement order to obtain a power distribution system diagram.

[0101] The target arrangement order is used to indicate the drawing order of each power device.

[0102] Optionally, unique numbers may be created for the device system, power equipment, input contacts, output contacts, and graphic element instances based on the device system code, device code, contact code, and graphic element code to form a one-to-one correspondence.

[0103] In some embodiments, the device system number can be determined based on the device system code, wherein the device system number is the arrangement sequence of the device system in the power distribution system diagram.

[0104] Exemplarily, the device system number = the device system code + the device system sequence number.

[0105] Furthermore, in some embodiments, after the device system number is determined, the first arrangement order of each device system may be determined according to the device system number.

[0106] For example, the equipment system with a smaller equipment system number may be arranged at the front, and the equipment system with a larger equipment system number may be arranged at the back.

[0107] For example, Table 3 is a table showing the arrangement order of device systems. This table only shows the arrangement order of some device systems. In actual scenarios, more or fewer arrangement orders of device systems may be included, which are not listed here one by one.

[0108] Table 3

[0109]

[0110] Further optionally, after determining the equipment system number, the equipment number can be determined according to the equipment system number and the equipment code, wherein the equipment number is the arrangement sequence number of the power equipment in the power distribution system diagram.

[0111] For example, the device number = the system number to which the device belongs + the device code + the device sequence number.

[0112] Furthermore, after the device number is determined, the primitive number can be determined according to the device number and the primitive code, wherein the primitive number is the sequence number of the primitive instance in the power distribution system.

[0113] Exemplarily, the graphic element number = device number + graphic element code + graphic element selection sequence number.

[0114] Furthermore, after the primitive number is determined, the contact number can be determined based on the primitive number and the contact number, wherein the contact number is the arrangement sequence of the contact in the power distribution system.

[0115] Exemplarily, contact number=element number+contact code+contact sequence number.

[0116] Furthermore, in some embodiments, after the device number, the primitive number, and the contact number are determined, a second arrangement order of the primitive instances corresponding to each electrical device may be determined according to the device number, the primitive number, and the contact number.

[0117] For example, the primitive instances may be arranged from left to right according to the size of the device number and the primitive number, and then the primitive instances may be connected according to the contact number.

[0118] In some embodiments, after the first arrangement order and the second arrangement order are determined, a target arrangement order may be determined according to the first arrangement order and the second arrangement order.

[0119] In an optional implementation, for devices in the same device system, a topological relationship (i.e., target arrangement order) can be generated based on the device number, graphic element number, and processing number of each power device, and lines can be connected according to the topological relationship to connect the graphic element instances corresponding to each power device.

[0120] In another optional implementation method, for the case where different equipment systems are drawn synchronously (such as two equipment systems are drawn on the same diagram), the position of the equipment system can be determined first according to the first arrangement order of the equipment system, and then a topological relationship (i.e., the target arrangement order) can be generated according to the second arrangement order of the power equipment in each equipment system, and lines can be connected according to the topological relationship to connect the graphic element instances corresponding to each power equipment.

[0121] In another optional implementation, for the case where different device systems are drawn asynchronously (such as two device systems are drawn on different diagrams), the input connection of the first device system can be determined based on the input contact number of the first device system, and the output connection of the second device system can be determined based on the output contact number of the second device system.

[0122] For example, a low voltage power distribution system and an uninterruptible power supply (UPS) system are drawn on two diagrams. Figure 7 As shown in (a) in FIG, the first input contact A, the second input contact B and the third input contact C can be drawn in the power distribution system diagram corresponding to the low-voltage power distribution system; Figure 7 As shown in (b) in FIG. 5 , a first output contact A1 , a second output contact B1 and a third output contact C1 may be drawn in a power distribution system diagram corresponding to the UPS system.

[0123] In the image drawing method provided in the embodiment of the present application, the information of the power equipment in the target area and its connection relationship are obtained by automated means, which reduces the workload of manual input and verification. Then, based on the preset graphic element library, the corresponding graphic element information can be quickly matched and applied without manual drawing or adjustment, thereby improving the drawing speed of the distribution system diagram; at the same time, when the power equipment in the target area changes, the distribution system diagram can be updated in time to respond to the changes, thereby improving the timeliness of the drawing of the distribution system diagram.

[0124] The following is an exemplary description of the complete process of the image drawing method provided in the embodiment of the present application.

[0125] For example, Figure 8 As shown, the complete process of the image drawing method may include:

[0126] S801. On-site investigation.

[0127] In some embodiments, the actual situation of the power equipment can be obtained by manual on-site traversal.

[0128] S802: Data collection.

[0129] In some embodiments, the actual situation of the power equipment obtained through manual on-site traversal can be filled into the corresponding collection list.

[0130] S803, import system.

[0131] In some embodiments, a professional power distribution system diagram may be parsed to obtain basic data such as equipment systems, power equipment, input contacts, output contacts, and graphic elements.

[0132] S804, automatic drawing.

[0133] In some embodiments, the actual situation of the power equipment can be collected first, and the corresponding graphic element style can be matched from the preset graphic element library; then the graphic element instance can be determined based on the input contacts and output contacts; then the numbers of each equipment system and power equipment can be determined, and the arrangement order can be determined based on the numbers; finally, each graphic element instance can be connected according to the arrangement order.

[0134] S805: Generate a power distribution system diagram.

[0135] In this way, the present application can parameterize, graphicize, and algorithmically process the input and output relationships, topological relationships, capacity, switch links, etc. of high-voltage distribution, low-voltage distribution, AC uninterruptible power supply, switching power supply, cabinet and other distribution equipment in the traditional distribution system diagram, so as to standardize and automate the data collection and drawing of the distribution system diagram, and realize that the system can automatically complete the drawing of the distribution system diagram by only collecting the input contacts and output contacts of the actual distribution equipment; at the same time, due to the support of background data, the generated distribution system diagram can be automatically updated according to the real-time changes of the background data, thereby improving timeliness.

[0136] In the embodiment of the present application, the image rendering device can be divided into functional modules or functional units according to the above method example. For example, each functional module or functional unit can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. The division of modules or units in the embodiment of the present application is schematic and is only a logical functional division. In actual implementation, other division methods may be used.

[0137] like Figure 9 , which is a structural diagram of an image drawing device 900 provided in an embodiment of the present application, the image drawing device 900 includes: an acquisition unit 901 and a processing unit 902 .

[0138] Among them, the acquisition unit 901 is used to obtain the equipment information of the power equipment in the target area, and obtain the connection relationship between each power equipment; the processing unit 902 is used to draw the distribution system diagram in the target area based on the equipment information, connection relationship, and the graphic element information corresponding to each power equipment, and the graphic element information is the graphic element information in the preset graphic element library.

[0139] In one possible implementation, the acquisition unit 901 is specifically used to: determine the equipment type and equipment code of the power equipment in the target area, and determine the equipment system type and equipment system code to which the power equipment belongs, where the equipment code is the code carried by the power equipment itself, and the equipment system code is the code carried by the equipment system itself; determine the equipment type and equipment code, as well as the equipment system type and equipment system code as equipment information.

[0140] In one possible implementation, the acquisition unit 901 is specifically used to: determine the input contacts and output contacts of each electrical device; determine the contact code of each electrical device based on the input contacts and output contacts, where the contact code is the code carried by the contact itself; and generate the connection relationship between each electrical device based on the input contacts, output contacts and contact code.

[0141] In one possible implementation, the image drawing device 900 further includes a determination unit for determining a graphic element style that matches the device type of the power equipment from a preset graphic element library; determining a graphic element instance and graphic element code of the power equipment based on the input contacts and output contacts, as well as the graphic element style, where the graphic element code is a code carried by the graphic element instance itself, and the graphic element instance and graphic element code are determined as graphic element information.

[0142] In one possible implementation, the processing unit 902 is specifically used to: determine a target arrangement order based on the device system code, device code, contact code, and graphic element code, where the target arrangement order is used to indicate the drawing order of each power device; and connect each graphic element instance according to the target arrangement order to obtain a distribution system diagram.

[0143] In one possible implementation, the processing unit 902 is specifically used to: determine the equipment system number based on the equipment system code, where the equipment system number is the arrangement number of the equipment system in the power distribution system diagram; determine the equipment number based on the equipment system number and the equipment code, where the equipment number is the arrangement number of the power equipment in the power distribution system diagram; determine the graphic element number based on the equipment number and the graphic element code, where the graphic element number is the arrangement number of the graphic element instance in the power distribution system; determine the contact number based on the graphic element number and the contact code, where the contact number is the arrangement number of the contact in the power distribution system; and determine the target arrangement order based on the equipment system number, the equipment number, the graphic element number and the contact number.

[0144] In one possible implementation, the processing unit 902 is specifically used to: determine a first arrangement order of each device system based on the device system number; determine a second arrangement order of the graphic element instance corresponding to each power device based on the device number, contact number and graphic element number; and determine a target arrangement order based on the first arrangement order and the second arrangement order.

[0145] In the image drawing device provided in the embodiment of the present application, the information of the power equipment in the target area and its connection relationship are obtained by automated means, which reduces the workload of manual input and verification. Then, based on the preset graphic element library, the corresponding graphic element information can be quickly matched and applied without manual drawing or adjustment, thereby improving the drawing speed of the distribution system diagram; at the same time, when the power equipment in the target area changes, the distribution system diagram can be updated in time to respond to the changes, thereby improving the timeliness of the drawing of the distribution system diagram.

[0146] In a possible implementation, the image drawing apparatus 900 may further include a storage unit 903 ( Figure 9The storage unit 903 stores a program or instruction. When the acquisition unit 901 and the processing unit 902 execute the program or instruction, the image drawing device 900 can execute the image drawing method described in the above method embodiment.

[0147] Through the description of the above embodiments, those skilled in the art will clearly understand that for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0148] An embodiment of the present application provides a computer program product comprising instructions. When the computer program product is run on a computer, the computer is enabled to execute the image drawing method in the above method embodiment.

[0149] An embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the image drawing method in the method flow shown in the above method embodiment.

[0150] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a register, a hard disk, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0151] Since the image drawing device, computer-readable storage medium, and computer program product in the embodiments of the present application can be applied to the above method, the technical effects that can be obtained can also refer to the above method embodiments, and the embodiments of the present application will not be repeated here.

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

[0153] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions of this disclosure can be achieved. This application is not limited here.

[0154] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the scope of protection of this disclosure.

[0155] The units described as separate components may or may not be physically separate, and the 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.

[0156] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0157] The above are only specific embodiments of the present application, but the scope of protection of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. An image drawing method, characterized in that: The method comprises: Obtaining device information of power devices in a target area, and obtaining a connection relationship between each power device; Based on the equipment information, the connection relationship, and the graphic element information corresponding to each electric power equipment, a power distribution system diagram corresponding to the target area is drawn, and the graphic element information is the graphic element information in a preset graphic element library.

2. The method according to claim 1, characterized in that The obtaining of equipment information of electric power equipment in the target area includes: Determine the device type and device code of the power equipment in the target area, and determine the device system type and device system code to which the power equipment belongs, wherein the device code is the code carried by the power equipment itself, and the device system code is the code carried by the device system itself; The device type and the device code, and the device system type and the device system code are determined as the device information.

3. The method according to claim 2, characterized in that The obtaining of the connection relationship between each power device includes: Determine the input contacts and output contacts of each electrical device; Determine the contact code of each electrical device according to the input contact and the output contact, wherein the contact code is the code carried by the contact itself; A connection relationship between each power device is generated according to the input contacts, the output contacts and the contact codes.

4. The method according to claim 3, characterized in that The method further comprises: Determining a graphic element style matching the device type of the electric power device from the preset graphic element library; Determine a primitive instance and a primitive code of the power device according to the input contacts and the output contacts of the power device and the primitive style, wherein the primitive code is a code carried by the primitive instance itself; The primitive instance and the primitive code are determined as the primitive information.

5. The method according to claim 4, characterized in that Drawing a power distribution system diagram corresponding to the target area based on the device information, the connection relationship, and the graphic element information corresponding to each power device includes: Determine a target arrangement order based on the device system code, the device code, the contact code, and the graphic element code, wherein the target arrangement order is used to indicate a drawing order of each power device; Each primitive instance is connected in the target arrangement order to obtain the power distribution system diagram.

6. The method according to claim 5, characterized in that The determining of the target arrangement order based on the device system code, the device code, the contact code, and the graphic element code includes: Determine the equipment system number according to the equipment system code, where the equipment system number is the arrangement sequence number of the equipment system in the power distribution system diagram; Determine the equipment number according to the equipment system number and the equipment code, wherein the equipment number is the arrangement sequence number of the power equipment in the power distribution system diagram; Determine a graphic element number according to the device number and the graphic element code, wherein the graphic element number is an arrangement sequence number of the graphic element instance in the power distribution system; Determine the contact number according to the graphic element number and the contact code, wherein the contact number is the arrangement sequence number of the contact in the power distribution system; The target arrangement order is determined according to the device system number, the device number, the primitive number and the contact number.

7. The method according to claim 6, characterized in that The step of determining the target arrangement order according to the device system number, the device number, the primitive number and the contact number includes: Determine a first arrangement order of each equipment system according to the equipment system number; Determine a second arrangement order of the graphic element instances corresponding to each power device according to the device number, the contact number and the graphic element number; The target arrangement order is determined according to the first arrangement order and the second arrangement order.

8. An image drawing device, characterized in that: The device comprises: An acquisition unit, used to acquire device information of power devices in a target area, and to acquire a connection relationship between each power device; A processing unit is used to draw a power distribution system diagram in the target area based on the equipment information, the connection relationship, and the graphic element information corresponding to each power equipment, wherein the graphic element information is the graphic element information in a preset graphic element library.

9. An electronic device, characterized in that: include: A processor and a communication interface; the communication interface is coupled to the processor, and the processor is used to run a computer program or instruction to implement the image drawing method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program or an instruction. When an electronic device executes the computer program or the instruction, the electronic device executes the image drawing method according to any one of claims 1 to 7.

11. A computer program product, characterized in that The computer program product comprises a computer program or instructions, and when the computer program or instructions are executed on an electronic device, the electronic device executes the image drawing method according to any one of claims 1 to 7.