Power distribution network design sketch conversion method and device, electronic equipment and storage medium

By identifying and converting the element, text and topological parameters in the distribution network design diagram, the file that complies with the CIM standard is generated, which solves the problem that CAD cannot be converted into CIM files, and supports the subsequent use of power grid projects.

CN120198933APending Publication Date: 2025-06-24GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510281793.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-11
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

In the prior art, CAD cannot be converted into a CIM file that can be exchanged in data, affecting the subsequent use of power grid projects.

Method used

By obtaining the distribution network design sketch submitted by the designer, input it into the identification model, identifying the element, text and topological parameters, generating a standard file that meets the standard format of the information model exchange, and generating a target wiring diagram based on the file.

Benefits of technology

It realizes the accurate format conversion of the distribution network design diagram, solves the problem that CAD cannot be converted into CIM files, and ensures the subsequent use of power grid projects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120198933A_ABST
    Figure CN120198933A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a power distribution network design diagram conversion method and device, electronic equipment and a storage medium. Obtaining a power distribution network design sketch submitted by a designer, and taking the power distribution network design sketch as a sketch to be identified; inputting a to-be-recognized sketch into the recognition model to obtain primitives, primitive coordinates, characters, character coordinates, topological parameters and topological coordinates; according to the primitives, the primitive coordinates, the characters, the character coordinates, the topological parameters and the topological coordinates, generating a standard file of the to-be-identified sketch meeting an information model exchange standard format; and generating a target wiring diagram conforming to the target format according to the standard file. According to the embodiment of the invention, accurate format conversion of the power distribution network design diagram is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to image processing technology, and in particular to a conversion method, device, electronic device and storage medium for a simplified diagram of a distribution network design. Background Art

[0002] Grid planning and design is the first stage of the implementation of a grid project. It requires planners and designers to draw a simplified diagram of the distribution network design through a drawing software.

[0003] In the prior art, designers usually draw pictures through CAD (a professional term, a drawing tool).

[0004] However, CAD cannot be converted into a power system computer-aided engineering data exchange format (Common Information Model, CIM) file that can be in a data exchange format, which affects the subsequent use of grid projects. Summary of the Invention

[0005] The present application provides a conversion method, device, electronic device and storage medium for a simplified diagram of a distribution network design to accurately convert the format of the simplified diagram of the distribution network design.

[0006] In a first aspect, an embodiment of the present application provides a conversion method for a simplified diagram of a distribution network design. The conversion method for the simplified diagram of the distribution network design includes:

[0007] Obtain the simplified diagram of the distribution network design submitted by the designer, and use the simplified diagram of the distribution network design as the diagram to be recognized;

[0008] Input the diagram to be recognized into the recognition model to obtain graphic elements, graphic element coordinates, text, text coordinates, topological parameters and topological coordinates;

[0009] Generate a standard file that conforms to the information model exchange standard format for the diagram to be recognized according to the graphic elements, graphic element coordinates, text, text coordinates, topological parameters and topological coordinates;

[0010] Generate a target wiring diagram that conforms to the target format according to the standard file.

[0011] In a second aspect, an embodiment of the present application further provides a conversion device for a simplified diagram of a distribution network design. The conversion device for the simplified diagram of the distribution network design includes:

[0012] A module for determining the diagram to be recognized, configured to obtain the simplified diagram of the distribution network design submitted by the designer, and use the simplified diagram of the distribution network design as the diagram to be recognized;

[0013] A module for recognizing the diagram to be recognized, configured to input the diagram to be recognized into the recognition model to obtain graphic elements, graphic element coordinates, text, text coordinates, topological parameters and topological coordinates;

[0014] A standard file generation module, configured to generate a standard file that conforms to the information model exchange standard format for the to-be-recognized simple diagram according to graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates;

[0015] A target wiring diagram generation module, configured to generate a target wiring diagram that conforms to the target format according to the standard file.

[0016] Thirdly, an embodiment of the present application further provides an electronic device, which includes:

[0017] One or more processors;

[0018] A storage device, configured to store one or more programs;

[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement any of the distribution network design simple diagram conversion methods provided by the embodiments of the present application.

[0020] Fourthly, an embodiment of the present application further provides a storage medium including computer-executable instructions, and the computer-executable instructions are used to execute any of the distribution network design simple diagram conversion methods provided by the embodiments of the present application when executed by a computer processor.

[0021] The present application obtains a distribution network design simple diagram submitted by a designer and uses the distribution network design simple diagram as the to-be-recognized simple diagram; inputs the to-be-recognized simple diagram into an identification model to obtain graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates, accurately identifies the graphic elements, text labels, and topological logic in the distribution network design simple diagram, and improves the accuracy of subsequent standard files; generates a standard file that conforms to the information model exchange standard format for the to-be-recognized simple diagram according to the graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates. By using the standard file as an intermediate file, it is convenient for the power grid system to parse and obtain the graphic elements, text, and topological logic in the to-be-recognized simple diagram; generates a target wiring diagram that conforms to the target format according to the standard file, realizes accurate format conversion of the to-be-recognized simple diagram, and can accurately reproduce the distribution network design simple diagram. Therefore, through the technical solution of the present application, the problem that CAD cannot be converted into a CIM file in a data exchange format, which affects the subsequent use of power grid projects, is solved, and the effect of accurate format conversion of the distribution network design simple diagram is achieved. Description of the Drawings

[0022] Figure 1 is a flowchart of a distribution network design simple diagram conversion method in the first embodiment of the present application;

[0023] Figure 2 is a flowchart of a distribution network design simple diagram conversion method in the second embodiment of the present application;

[0024] Figure 3 It is a flowchart of a method for converting a simplified diagram of a distribution network design in Embodiment 3 of the present application;

[0025] Figure 4 It is a schematic structural diagram of a device for converting a simplified diagram of a distribution network design in Embodiment 4 of the present application;

[0026] Figure 5 It is a schematic structural diagram of an electronic device in Embodiment 5 of the present application. Detailed implementation manners

[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0028] It should be noted that the terms "first" and "second" etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily need to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0029] Embodiment 1

[0030] Figure 1 It is a flowchart of a method for converting a simplified diagram of a distribution network design provided in Embodiment 1 of the present application. This embodiment is applicable to the situation of converting a simplified diagram of a power grid design designed by a designer through CAD into a CIM file. This method can be executed by a device for converting a simplified diagram of a distribution network design. This device can be implemented by software and / or hardware and is specifically configured in a distribution network design platform.

[0031] See Figure 1 The method for converting a simplified diagram of a distribution network design shown, specifically includes the following steps:

[0032] S110. Obtain the simplified diagram of the distribution network design submitted by the designer, and use the simplified diagram of the distribution network design as the diagram to be recognized.

[0033] The schematic diagram of the distribution network design can be the schematic diagram of the distribution network drawn by designers using drawing software. The schematic diagram of the distribution network design can include power grid elements, text labels, and power grid topology connections. Exemplarily, the schematic diagram of the distribution network design can be in CAD format. Since CAD symbols do not have type characteristics and the symbols do not have the attributes of the power grid, the schematic diagram of the distribution network in CAD format cannot be converted into a CIM file in a data exchange format and cannot be integrated with the current power grid.

[0034] Therefore, it is necessary to identify the elements, text, and topological relationships in the schematic diagram of the distribution network design, and then perform format conversion on the schematic diagram of the distribution network design to convert it into a CIM file. Therefore, the schematic diagram of the distribution network design is used as the schematic diagram to be identified.

[0035] S120: Input the schematic diagram to be identified into the recognition model to obtain elements, element coordinates, text, text coordinates, topological parameters, and topological coordinates.

[0036] The recognition model can be a deep learning model that can recognize the elements, text, and topological parameters in the schematic diagram to be identified. Since it is necessary to recognize the elements, text, and topological parameters, the recognition model can include 3 models, which are respectively used for element recognition, text recognition, and topological parameter recognition. Different deep learning models are trained according to the characteristics of the elements, text, and topological parameters for recognition to improve the accuracy of recognition.

[0037] The element can be the identification image of the device; the text can be the device name, device parameters, etc.; the topological parameters can be the connected device name, connection method, etc. For example, the topological parameters can include logical topological relationships such as the electrical connection relationship between the transformer and the distribution line, the inclusion relationship between the pole tower and the line, the subordinate relationship between the substation building and the in-station busbar and the in-station distribution transformer, etc. And in order to accurately describe the positional relationships of the elements, text, and topological parameters, positioning is performed during the recognition process, that is, the element coordinates, text coordinates, and topological coordinates are recognized. Among them, the element and text coordinates can be positioned by a rectangular frame, so the element coordinates and text coordinates can be described by the vertex coordinates of the rectangular frame. Among them, the topological coordinates can be the coordinates at the connection points of two elements, so as to facilitate the description of the starting point positions of the two connection lines and improve the description accuracy of the relationship of the connection lines in the topological relationship. Exemplarily, in order to improve the standardization of the element coordinates, text coordinates, and topological coordinates, before inputting the schematic diagram to be identified into the recognition model, preprocessing is performed on the schematic diagram to be identified to improve the accuracy and efficiency of subsequent recognition steps. For example, the preprocessing can include operations such as image enhancement, denoising, and size adjustment to ensure the standardization of the basic data.

[0038] Exemplarily, the graphic elements and graphic element coordinates in the sketch to be recognized can be recognized through a graphic element recognition model, the text and text coordinates in the sketch to be recognized can be recognized through a text recognition model, and the topological parameters and topological coordinates in the sketch to be recognized can be recognized through a topological recognition model.

[0039] S130. Generate a standard file for the sketch to be recognized that conforms to the standard format of information model exchange according to the graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates.

[0040] As a general standard format for information model exchange, CIM is the soul of the IEC-61970 (a professional term, a standard). CIM is an abstract model that represents all the main objects of a power enterprise contained in the information model of an EMS (a professional term, an energy management system). CIM provides a standard method for representing power system resources using object classes, attributes, and the relationships between them. Among the 9 packages included in CIM, the main parts related to the establishment of the topological model are in the Core Package, Topology Package, and part of the Measurement Package. Therefore, the Core Package, Topology Package, and Measurement Package can be called to generate a standard file for the sketch to be recognized that conforms to the standard format of information model exchange according to the graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates. Exemplarily, a program for generating the standard file can be written in a programming language, and the graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates are input into the program for generating the standard file. The program for generating the standard file calls the Core Package, Topology Package, and Measurement Package, etc., to generate a standard file for the sketch to be recognized that conforms to the standard format of information model exchange.

[0041] S140. Generate a target wiring diagram that conforms to the target format according to the standard file.

[0042] The target wiring diagram can be an image stored in the power grid and used as a basis for subsequent construction. The format of the target wiring diagram can be adjusted according to needs. The standard file can be used as an intermediate file for conversion. The power grid system can read and parse the standard file, and then generate a target wiring diagram that conforms to the storage format of the power grid through the equipment and the topological relationships between the equipment obtained by parsing. Exemplarily, the target objects can be constructed by first parsing the objects in the standard file, and then the coordinates of the target objects are parsed to layout the positions of point-like and area-like equipment. Exemplarily, the construction of the target objects can include the following objects:

[0043] 1. Parse the line information in the standard file to construct a line object.

[0044] 2. Parse the line segment information in the standard file to construct a line segment object.

[0045] 3. Parse the line segment port information in the standard file to construct a line segment port object.

[0046] 4. Analyze the device information in the standard file and construct a device object.

[0047] 5. Analyze the device port information in the standard file and construct a device port object.

[0048] Exemplarily, laying out the positions of dot-shaped and surface-shaped devices may include the following steps:

[0049] 1. Generate an empty canvas;

[0050] 2. Generate key positions (dot and surface-shaped devices), and perform drawing layout on the blank canvas according to the coordinates in the power grid object and the rotation angle of the device.

[0051] 3. Generate a graphic of a linear device, perform preliminary drawing according to the line coordinates of the linear power grid object, and generate a target wiring diagram that conforms to the target format.

[0052] In an alternative embodiment, generating a target wiring diagram that conforms to the target format according to the standard file includes: parsing out the primitive coordinates and topological coordinates according to the standard file; correcting the topological coordinates according to the primitive coordinates to obtain connection coordinates; connecting each primitive according to the connection coordinates, and adding text to the corresponding position according to the text coordinates to obtain a target wiring diagram that conforms to the target format.

[0053] The primitive coordinates may include primitive box coordinates and connection point coordinates. The primitive box coordinates may be the coordinates of the rectangular box for positioning the primitive. The primitive is generally a device identifier and is generally rectangular, so the position of the primitive is located by the rectangular box. The topological coordinates may be the position coordinates of the connection lines between primitives, and may include the connected primitives, as well as the connection point coordinates, transfer point coordinates, and intersection point coordinates with the primitive, etc. The connection point coordinates may be the position coordinates of the wiring of the primitive. By parsing the standard file, the primitive coordinates and topological coordinates can be obtained, but due to the problem of recognition accuracy, there may be coordinate errors, resulting in topological breaks. Therefore, the topological coordinates are corrected according to the primitive coordinates to obtain connection coordinates. Correcting the topological coordinates according to the primitive coordinates means judging whether the connection point coordinates of the topological line connected to the primitive in the topological coordinates are consistent with the connection point coordinates in the corresponding primitive. If not, the connection point coordinates in the primitive are used as the connection coordinates to ensure that there are no topological breaks. Connecting each primitive according to the connection coordinates to obtain a target wiring diagram that conforms to the target format, and at this time, there will be no topological breaks, ensuring the standardization of the target wiring diagram. Adding text to the corresponding position according to the text coordinates to add text annotations to the primitives.

[0054] By parsing the primitive coordinates and topological coordinates according to the standard file; correcting the topological coordinates according to the primitive coordinates to obtain connection coordinates; connecting each primitive according to the connection coordinates, and adding text to the corresponding position according to the text coordinates, a target wiring diagram meeting the target format is obtained, ensuring that the topological relationship between primitives will not be broken and ensuring the standardization and accuracy of the target wiring diagram.

[0055] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data comply with the relevant laws, regulations, and standards of the relevant regions.

[0056] The technical solution of this embodiment is as follows: By obtaining the preliminary distribution network design diagram submitted by the designer and using it as the diagram to be recognized; inputting the diagram to be recognized into the recognition model to obtain primitives, primitive coordinates, text, text coordinates, topological parameters, and topological coordinates, accurately recognizing the primitives, text labels, and topological logic in the preliminary distribution network design diagram, and improving the accuracy of the subsequent standard file; generating a standard file that meets the information model exchange standard format for the diagram to be recognized according to the primitives, primitive coordinates, text, text coordinates, topological parameters, and topological coordinates. Using the standard file as an intermediate file can facilitate the power grid system to parse and obtain the primitives, text, and topological logic in the diagram to be recognized; generating a target wiring diagram that meets the target format according to the standard file, realizing accurate format conversion of the diagram to be recognized, and accurately reproducing the preliminary distribution network design diagram. Therefore, through the technical solution of this application, the problem that CAD cannot be converted into a CIM file in a data exchange format, which affects the subsequent use of power grid projects, is solved, and the effect of accurate format conversion of the preliminary distribution network design diagram is achieved.

[0057] Embodiment 2

[0058] Figure 2 This is a flowchart of a method for converting a preliminary distribution network design diagram provided in Embodiment 2 of this application. The technical solution of this embodiment is further refined on the basis of the above technical solution.

[0059] Furthermore, "generating a standard file that meets the information model exchange standard format for the diagram to be recognized according to the primitives, primitive coordinates, text, text coordinates, topological parameters, and topological coordinates" is refined to: "Generating a standard file that meets the information model exchange standard format for the diagram to be recognized according to the toolkit in the information model exchange standard format, based on the primitives, primitive coordinates, text, text coordinates, topological parameters, and topological coordinates; the toolkit at least includes a core package, a topology package, and a measurement package", so as to automatically generate a standard file that meets the information model exchange standard format for the diagram to be recognized.

[0060] See Figure 2 A method for converting a simplified diagram of a distribution network design as shown, including:

[0061] S210. Obtain the simplified diagram of the distribution network design submitted by the designer, and use the simplified diagram of the distribution network as the diagram to be recognized.

[0062] S220. Input the diagram to be recognized into the recognition model to obtain graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates.

[0063] S230. According to the toolkit in the standard format of information model exchange, generate a standard file that conforms to the standard format of information model exchange for the diagram to be recognized based on the graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates.

[0064] The standard format of information model exchange includes 9 toolkits. The toolkit can be a packaged and standardized CIM program package, which can be used to generate a standard file that conforms to the standard format of information model exchange. The toolkit can be called by writing a program. According to the toolkit in the standard format of information model exchange, a standard file can be generated based on the graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates. The toolkit includes at least a core package, a topology package, and a measurement package.

[0065] The core package mainly describes the hierarchical relationship of devices. The relationship between the core package and the topology package is that the conducting equipment in a set of topology packages constitutes a bay class in a core package, and at the same time, different conducting equipment belongs to different voltage level classes.

[0066] The topology package defines the classes of power grid topology relationships. The description of the original topology connection relationship of the power grid mainly involves the following 5 classes, namely power grid equipment, terminal (Termina1), connectivity node, topological node, and topological island.

[0067] Exemplarily, through a programming language, a program module can be written to call the relevant toolkit in the standard format of information model exchange. Based on the input graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates, a standard file that conforms to the standard format of information model exchange for the diagram to be recognized can be generated. Specifically, the graphic elements correspond to electronic devices. Through the recognized graphic elements and text, all the recognized device type symbols form the power grid equipment and terminals. Through the topological parameters of the recognized power grid equipment and other equipment, the connectivity nodes, topological nodes, and topological islands are formed. The structured expression of the recognition results is realized by the program module calling the toolkit, and a standard file that conforms to the standard format of information model exchange is formed.

[0068] In an optional embodiment, after generating a standard file in which the sketch to be recognized conforms to the standard format of information model exchange, the following steps are further included: performing a quality check on the standard file; the quality check includes at least one of data integrity check, model compliance check, key attribute check, and topological island check; if there are quality problems with the standard file, modify the standard file according to the quality problems, or re-recognize the sketch to be recognized and then modify the standard file.

[0069] To ensure the standardization and accuracy of the standard file, it is necessary to perform a quality check on the standard file after generating it. The quality check includes at least one of data integrity check, model compliance check, key attribute check, and topological island check.

[0070] The data specifications of CIM include the following aspects:

[0071] 1) Uniqueness of equipment identification

[0072] The unique identifier FL_ID in the model file is guaranteed to be unique within the entire range of power system information and is not allowed to be modified without authorization.

[0073] 2) Equipment hierarchical relationship

[0074] All equipment in the distribution substation should belong to the distribution substation (switching station or box substation, etc.) or the feeder itself, and the distribution substation should belong to the feeder. Equipment can indicate its association with the distribution substation or line to which it belongs through the "Equipment.MemberOf_EquipmentContainer" (a professional term, an attribute) attribute. The distribution substation can indicate its association with the feeder and the line branch (main or branch) to which it belongs through the "Substation.MemberOf_Circuit" (a professional term, an attribute) and "Substation.MemberOf_CircuitSection" (a professional term, an attribute) attributes. Currently, it is recommended that distribution substations, platform transformers, and box substations also use the Substation (a professional term, a class) class for modeling, be separated from the substation through PSRType (a professional term, a class), and use the "Substation.MemberOf_Circuit" (a professional term, an attribute) to indicate the associated feeder. The feeder is associated with the substation through Circuit.SourceSubst (a professional term, an attribute).

[0075] 3) Hierarchical relationship of lines, conductors, and line segments

[0076] A circuit (cim:CircuitSection) consists of one or more segments of wire (cim:SegmentGroup). A segment of wire (cim:SegmentGroup) consists of one or more graphic line segments. The wire object corresponds to the equipment asset, and the graphic line segment represents the graphic topology. Each graphic line segment has two terminals at its beginning and end to represent the topological relationship. In the case of an overhead line, there is a line segment between two poles, and there is a topological relationship between the line segment and the logical pole. In the case of a cable line, there is a line segment between two intermediate joints, and there is a topological relationship between the line segment and the intermediate joint. When exporting CIM, the wire object will export MemberOf_CircuitSection (a technical term, an attribute) to represent the circuit it belongs to, and the line segment object will export MemberOf_SegmentGroup (a technical term, an attribute) to represent the wire it belongs to.

[0077] 4) Relationship between busbar and busbar segment

[0078] A busbar (cim:BusbarSection) consists of one or more segments of busbar (cim:BusbarSegment). The busbar segment is a graphic line segment, and each busbar segment has two terminals at its beginning and end to represent the topological relationship. There is a topological relationship between the in-station equipment and the busbar segment. When exporting CIM, the busbar segment object will export MemberOf_BusbarSection (a technical term, an attribute) to represent the busbar it belongs to.

[0079] 5) Relationship between physical pole and logical pole

[0080] In the case of multiple circuits sharing the same pole, one physical pole (cim:Pole) corresponds to two or more operating poles (cim:PoleSite). When exporting CIM, all the operating poles (cim:PoleSite) of the current physical pole will be generated.

[0081] 6) Relationship between substation and substation terminal

[0082] In the case of multiple circuits connecting to a substation, one substation (cim:Substation) will have multiple terminals (cim:Terminal). When exporting CIM, all the terminals of the current substation will be generated.

[0083] 7) Internal and external connection relationship of substation equipment

[0084] The equipment inside and outside the substation building is connected inside and outside the substation through the connection points inside and outside the station (cim:HyperGadget). The ID (a professional term, a unique code) of the connection points inside and outside the station is recorded in the substation terminal in the power distribution room. The connection points inside and outside the station are single-ended devices and establish a topological relationship with the equipment inside the station. When exporting CIM, the connection point object inside and outside the station will export Equipment.MemberOf_Terminal (a professional term, an attribute) indicating the terminal connected to the outside of the station.

[0085] Exemplarily, Table 1 shows the content of quality inspection:

[0086] Table 1 Content Table of Quality Inspection

[0087]

[0088] If there are quality problems in the standard file, then according to the quality problems, check whether there are errors in the process of structuring the identified results based on the toolkit. If so, modify the standard file. Otherwise, it is considered that there are errors in the identification process of the identification model, and the sketch to be identified is re-input into the identification model for identification, after obtaining the identification results.

[0089] By performing quality inspection on the standard file; the quality inspection includes at least one of data integrity inspection, model compliance inspection, key attribute inspection, and topological island inspection, and conducts quality inspection on the standard file from multiple perspectives to ensure the comprehensiveness of quality inspection; if there are quality problems in the standard file, then modify the standard file according to the quality problems, or re-identify the sketch to be identified and then modify the standard file to ensure the accuracy and standardization of the standard file.

[0090] S240. Generate a target wiring diagram that conforms to the target format according to the standard file.

[0091] The technical solution of this embodiment generates a standard file in the information model exchange standard format for the sketch to be identified according to the toolkit in the information model exchange standard format, based on the graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates; the toolkit includes at least a core package, a topology package, and a measurement package, and structures the identified results based on the toolkit to obtain a standard file, which is a format that can be recognized and parsed in the power grid system, facilitating the power grid system to parse and use.

[0092] Embodiment III

[0093] Figure 3 This is a flowchart of a method for converting a distribution network design sketch provided in Embodiment III of this application. The technical solution of this embodiment is further refined on the basis of the above technical solution.

[0094] Further, the step of "inputting the sketch to be recognized into the recognition model to obtain graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates" is refined to: "inputting the sketch to be recognized into the trained text extraction model to recognize text and text coordinates, inputting the sketch to be recognized into the trained graphic element recognition model to recognize graphic elements and graphic element coordinates, and inputting the sketch to be recognized into the trained large model to recognize topological parameters and topological coordinates", so as to obtain graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates.

[0095] See Figure 3 A method for converting a distribution network design sketch as shown, including:

[0096] S310. Obtain the distribution network design sketch submitted by the designer, and use the distribution network design sketch as the sketch to be recognized.

[0097] S320. Input the sketch to be recognized into the trained text extraction model to recognize text and text coordinates, input the sketch to be recognized into the trained graphic element recognition model to recognize graphic elements and graphic element coordinates, and input the sketch to be recognized into the trained large model to recognize topological parameters and topological coordinates.

[0098] The trained text extraction model can be a deep learning network for positioning and recognizing text in the sketch to be recognized. Input the sketch to be recognized into the trained text extraction model, and the output is text and text coordinates. Exemplarily, the text extraction model can be a neural network model. For example, the text extraction model can be a convolutional recurrent neural network. The sketch to be recognized includes a large number of device names and parameter annotations, etc. The text in the sketch sample to be recognized can be manually annotated as labels to obtain labeled samples, and the text extraction model is supervised and trained through the labeled samples to obtain the trained text extraction model.

[0099] The trained graphic element recognition model can be a deep learning network for positioning and recognizing graphic elements in the sketch to be recognized. Input the sketch to be recognized into the trained graphic element recognition model, and the output is graphic elements and graphic element coordinates. Exemplarily, the graphic element recognition model can be a deep learning model. For example, the graphic element recognition model can be a convolutional neural network. The sketch sample to be recognized can be annotated according to the device graphic element symbol library to obtain labeled samples, and the graphic element recognition model is supervised and trained through the labeled samples to obtain the trained graphic element recognition model.

[0100] The topological parameters are the core information in the sketch to be recognized, indicating the electrical connection situation between devices. The large model has powerful learning ability and can learn the topological parameters in the sketch to be recognized and locate the topological coordinates. Input the sketch to be recognized into the trained large model, and the output is topological parameters and topological coordinates.

[0101] In an alternative embodiment, before inputting the sketch to be recognized into the trained large model to recognize topological parameters and topological coordinates, it further includes: training the initial large model through the electrical wiring rule library of the power grid to obtain the trained large model.

[0102] The electrical wiring rule library can be the rule library in the power grid system, including comprehensive topological relationships. Therefore, training the initial large model through the electrical wiring rule library of the power grid can enable the large model to fully learn topological parameter knowledge and obtain the trained large model.

[0103] Training the initial large model through the electrical wiring rule library of the power grid to obtain the trained large model. Training the large model through the electrical wiring rule library of the power grid can enable the large model to learn the topological knowledge in the electrical wiring knowledge of the power grid. The trained large model can accurately recognize the topological parameters in the sketch to be recognized.

[0104] The text extraction model, the graphic element recognition model, and the large model can be distributed in different computers. The training data is distributed to different computers for a large number of distributed model trainings to obtain the trained text extraction model, the trained graphic element recognition model, and the trained large model, that is, the trained recognition model. A large number of recognition tasks are distributed to different computers for recognition, improving the recognition efficiency of the sketch to be recognized.

[0105] S330. Generate a standard file that conforms to the information model exchange standard format for the sketch to be recognized based on the graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates.

[0106] S340. Generate a target wiring diagram that conforms to the target format based on the standard file.

[0107] The technical solution of this embodiment inputs the sketch to be recognized into the trained text extraction model to recognize the text and text coordinates, inputs the sketch to be recognized into the trained graphic element recognition model to recognize the graphic elements and graphic element coordinates, and inputs the sketch to be recognized into the trained large model to recognize the topological parameters and topological coordinates. The recognition of text and text coordinates, graphic elements and graphic element coordinates, and topological parameters and topological coordinates is divided into three modules respectively, reducing the complexity of the model, reducing the requirements for computer parameters, and improving the recognition efficiency and accuracy.

[0108] Embodiment 4

[0109] Figure 4 The following shows a schematic structural diagram of a distribution network design sketch conversion device provided by Embodiment 4 of the present application. This embodiment is applicable to the situation of converting the power grid design sketch designed by the designer through CAD into a CIM file. The specific structure of the distribution network design sketch conversion device is as follows:

[0110] The to-be-recognized sketch determination module 410 is configured to obtain the distribution network design sketch submitted by the designer and use the distribution network design sketch as the to-be-recognized sketch;

[0111] The to-be-recognized sketch recognition module 420 is configured to input the to-be-recognized sketch into the recognition model to obtain graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates;

[0112] The standard file generation module 430 is configured to generate a standard file in a standard format conforming to the information model exchange standard for the to-be-recognized sketch according to the graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates;

[0113] The target wiring diagram generation module 440 is configured to generate a target wiring diagram in a target format according to the standard file.

[0114] The technical solution of this embodiment obtains the distribution network design sketch submitted by the designer and uses the distribution network design sketch as the to-be-recognized sketch; inputs the to-be-recognized sketch into the recognition model to obtain graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates, accurately recognizes the graphic elements, text labels, and topological logic in the distribution network design sketch, and improves the accuracy of subsequent standard files; generates a standard file in a standard format conforming to the information model exchange standard for the to-be-recognized sketch according to the graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates. By using the standard file as an intermediate file, it is convenient for the power grid system to parse and obtain the graphic elements, text, and topological logic in the to-be-recognized sketch; generates a target wiring diagram in a target format according to the standard file, realizes accurate format conversion of the to-be-recognized sketch, and can accurately reproduce the distribution network design sketch. Therefore, through the technical solution of this application, the problem that CAD cannot be converted into a CIM file in a data exchange format, which affects the subsequent use of power grid projects, is solved, and the effect of accurate format conversion of the distribution network design sketch is achieved.

[0115] Optionally, the standard file generation module 430 includes:

[0116] The standard file generation unit is configured to generate a standard file in a standard format conforming to the information model exchange standard for the to-be-recognized sketch according to the toolkit in the information model exchange standard format, according to the graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates; the toolkit includes at least a core package, a topology package, and a measurement package.

[0117] Optionally, the distribution network design sketch conversion device further includes:

[0118] The standard file quality inspection module is configured to perform quality inspection on the standard file; the quality inspection includes at least one of data integrity inspection, model compliance inspection, key attribute inspection, and topological island inspection;

[0119] A standard file modification module, which is used to modify the standard file according to quality problems if the standard file has quality problems, or to modify the standard file after re-identifying the sketch to be recognized.

[0120] Optionally, the sketch to be recognized identification module 420 includes:

[0121] A sketch to be recognized identification unit, which is used to input the sketch to be recognized into a trained text extraction model to recognize text and text coordinates, input the sketch to be recognized into a trained primitive recognition model to recognize primitives and primitive coordinates, and input the sketch to be recognized into a trained large model to recognize topological parameters and topological coordinates.

[0122] Optionally, the distribution network design sketch conversion device further includes:

[0123] A large model training module, which is used to train an initial large model through an electrical wiring rule library of the power grid to obtain a trained large model.

[0124] Optionally, the target wiring diagram generation module 440 includes:

[0125] A standard file parsing unit, which is used to parse out primitive coordinates and topological coordinates according to the standard file;

[0126] A topological coordinate correction unit, which is used to correct topological coordinates according to primitive coordinates to obtain connection coordinates;

[0127] A primitive connection unit, which is used to connect each primitive according to the connection coordinates and add text to the corresponding position according to the text coordinates to obtain a target wiring diagram that conforms to the target format.

[0128] The distribution network design sketch conversion device provided by the embodiment of the present application can execute the distribution network design sketch conversion method provided by any embodiment of the present application, and has corresponding functional modules and beneficial effects for executing the distribution network design sketch conversion method.

[0129] According to an embodiment of the present invention, the present invention also provides an electronic device, a readable storage medium, and a computer program product.

[0130] Embodiment Five

[0131] Figure 5 As shown in the structure diagram of an electronic device provided for Embodiment Five of the present application, Figure 5 as shown, the electronic device includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of processors 510 in the electronic device can be one or more, Figure 5Take a processor 510 as an example; the processor 510, memory 520, input device 530, and output device 540 in the electronic device can be connected through a bus or other means. Figure 5 Take the connection through the bus as an example.

[0132] The memory 520, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the distribution network design sketch conversion method in the embodiments of the present application (for example, the to-be-recognized sketch determination module 410, the to-be-recognized sketch recognition module 420, the standard file generation module 430, and the target wiring diagram generation module 440). The processor 510 executes various functional applications and data processing of the electronic device by running the software programs, instructions, and modules stored in the memory 520, that is, implements the above-mentioned distribution network design sketch conversion method.

[0133] The memory 520 may mainly include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some instances, the memory 520 may further include a memory remotely set relative to the processor 510, and these remote memories can be connected to the electronic device through a network. Examples of the above network include but are not limited to the Internet, enterprise intranet, local area network, mobile communication network, and their combinations.

[0134] The input device 530 can be used to receive input character information and generate key signal inputs related to the user settings and function controls of the electronic device. The output device 540 may include a display device such as a display screen.

[0135] Embodiment Six

[0136] Embodiment Six of the present application further provides a storage medium containing computer-executable instructions. The computer-executable instructions are used to execute a distribution network design sketch conversion method when executed by a computer processor. The method includes: obtaining a distribution network design sketch submitted by a designer and using the distribution network design sketch as a to-be-recognized sketch; inputting the to-be-recognized sketch into an identification model to obtain graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates; generating a standard file in a standard format that conforms to the information model exchange standard for the to-be-recognized sketch according to the graphic elements, graphic element coordinates, text, text coordinates, topological parameters, and topological coordinates; and generating a target wiring diagram in a target format according to the standard file.

[0137] Certainly, for a storage medium containing computer-executable instructions provided in the embodiments of the present application, the computer-executable instructions are not limited to the method operations described above, and can also execute relevant operations in the distribution network design sketch conversion method provided in any embodiment of the present application.

[0138] From the above description of the embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software and necessary general-purpose hardware. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk, or optical disc of a computer, etc., including several instructions for causing an electronic device (which can be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.

[0139] It should be noted that in the embodiments of the above distribution network design sketch conversion device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the present application.

[0140] Note that the above is only the preferred embodiment of the present application and the applied technical principle. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein. Various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in more detail through the above embodiments, the present application is not limited to the above embodiments. Without departing from the concept of the present application, more other equivalent embodiments can be included, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A method for converting a distribution network design diagram, characterized in that: include: Obtaining a distribution network design schematic diagram submitted by a designer, and using the distribution network design schematic diagram as a schematic diagram to be identified; Inputting the to-be-recognized diagram into a recognition model to obtain graphic primitives, graphic primitive coordinates, text, text coordinates, topological parameters and topological coordinates; Generate a standard file of the schematic diagram to be identified that complies with the standard format of information model exchange according to the graphic element, the graphic element coordinates, the text, the text coordinates, the topological parameters and the topological coordinates; A target wiring diagram conforming to a target format is generated according to the standard file.

2. The method according to claim 1, characterized in that The step of generating a standard file of the to-be-identified diagram in accordance with the graphic element, the graphic element coordinates, the text, the text coordinates, the topological parameters and the topological coordinates, which file complies with the standard format of information model exchange, comprises: According to the toolkit in the standard format of information model exchange, a standard file conforming to the standard format of information model exchange is generated according to the graphic elements, the graphic element coordinates, the text, the text coordinates, the topological parameters and the topological coordinates. The toolkit includes at least a core package, a topological package and a measurement package.

3. The method according to claim 1, characterized in that After generating the standard file of the simplified diagram to be identified in accordance with the standard format of the information model exchange, the method further includes: Performing a quality check on the standard file; the quality check includes at least one of a data integrity check, a model compliance check, a key attribute check, and a topology island check; If there are quality problems with the standard file, the standard file is modified according to the quality problems, or the standard file is modified after re-identifying the schematic diagram to be identified.

4. The method according to claim 1, characterized in that The step of inputting the to-be-recognized diagram into a recognition model to obtain graphic primitives, graphic primitive coordinates, text, text coordinates, topological parameters and topological coordinates includes: The simple diagram to be identified is input into a trained text extraction model to identify the text and text coordinates, the simple diagram to be identified is input into a trained primitive recognition model to identify the primitives and primitive coordinates, and the simple diagram to be identified is input into a trained large model to identify the topological parameters and topological coordinates.

5. The method according to claim 3, characterized in that: Before inputting the to-be-recognized diagram into the trained large model to recognize the topological parameters and topological coordinates, the method further includes: The initial large model is trained through the electrical wiring rule library of the power grid to obtain a trained large model.

6. The method according to claim 1, characterized in that The step of generating a target wiring diagram conforming to a target format according to the standard file comprises: According to the standard file, the primitive coordinates and the topological coordinates are parsed; Correct the topological coordinates according to the primitive coordinates to obtain the connection coordinates; The graphic elements are connected according to the connection coordinates, and the text is added to the corresponding position according to the text coordinates to obtain a target wiring diagram that conforms to the target format.

7. A distribution network design diagram conversion device, characterized in that: include: A module for determining a simplified diagram to be identified, used to obtain a simplified diagram of a distribution network design submitted by a designer, and use the simplified diagram of the distribution network design as a simplified diagram to be identified; A simple diagram recognition module to be recognized, used for inputting the simple diagram to be recognized into a recognition model to obtain graphic elements, graphic element coordinates, text, text coordinates, topological parameters and topological coordinates; A standard file generation module, used for generating a standard file of the to-be-identified diagram in accordance with the graphic element, the graphic element coordinates, the text, the text coordinates, the topological parameters and the topological coordinates, in which the standard file conforms to the information model exchange standard format; The target wiring diagram generation module is used to generate a target wiring diagram that complies with the target format according to the standard file.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the distribution network design diagram conversion method as described in any one of claims 1-6 is implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the distribution network design diagram conversion method as described in any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the method for converting a power distribution network design diagram according to any one of claims 1 to 6.