CN117113600A - Intelligent conversion method for power grid station wiring diagram - Google Patents
Intelligent conversion method for power grid station wiring diagram Download PDFInfo
- Publication number
- CN117113600A CN117113600A CN202311077347.1A CN202311077347A CN117113600A CN 117113600 A CN117113600 A CN 117113600A CN 202311077347 A CN202311077347 A CN 202311077347A CN 117113600 A CN117113600 A CN 117113600A
- Authority
- CN
- China
- Prior art keywords
- text
- character
- elements
- wiring diagram
- power grid
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/18—Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/232—Orthographic correction, e.g. spell checking or vowelisation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/40—Document-oriented image-based pattern recognition
- G06V30/42—Document-oriented image-based pattern recognition based on the type of document
- G06V30/422—Technical drawings; Geographical maps
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2113/00—Details relating to the application field
- G06F2113/04—Power grid distribution networks
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Artificial Intelligence (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- Evolutionary Computation (AREA)
- Computer Hardware Design (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- Mathematical Analysis (AREA)
- Health & Medical Sciences (AREA)
- Computational Mathematics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域Technical field
本发明涉及电力系统领域,具体涉及一种电网厂站接线图智能转换方法。The invention relates to the field of power systems, and in particular to a method for intelligent conversion of power grid plant and station wiring diagrams.
背景技术Background technique
对新投运的变电站,调度人员需要参考一次电网厂站接线图设计原图在电力调度自动化系统中手动绘制接线图,将设备信息和变电站监控信息手动录入电力调度自动化系统数据库,并完成变电站监控信息与接线图的绑定,以便调度人员实时监控。For newly put into operation substations, dispatchers need to refer to the original wiring diagram design of the primary power grid station to manually draw the wiring diagram in the power dispatch automation system, manually enter the equipment information and substation monitoring information into the power dispatch automation system database, and complete the substation monitoring The information is bound to the wiring diagram so that dispatchers can monitor it in real time.
目前,调度运维人员需要参考电网厂站接线图设计原图(bmp,jpg,png等位图格式)人工绘制CIM/G画面,但由于接线图图形样式复杂,设备类型众多,导致维护工作繁琐,同时极易出现属性缺失、关联错误、连接线虚接等问题,使得手动绘制接线图费时费力。At present, dispatching and operation and maintenance personnel need to manually draw CIM/G pictures with reference to the original power grid plant and station wiring diagram design (bmp, jpg, png and other bitmap formats). However, due to the complex graphic style of the wiring diagram and the numerous types of equipment, the maintenance work is cumbersome. At the same time, problems such as missing attributes, association errors, and virtual connections are easily encountered, making manual drawing of wiring diagrams time-consuming and laborious.
发明内容Contents of the invention
针对现有技术中的上述不足,本发明提供的一种电网厂站接线图智能转换方法解决了手动绘制接线图费时费力的问题。In view of the above-mentioned deficiencies in the prior art, the present invention provides an intelligent conversion method for power grid station wiring diagrams, which solves the time-consuming and labor-intensive problem of manually drawing wiring diagrams.
为了达到上述发明目的,本发明采用的技术方案为:In order to achieve the above-mentioned object of the invention, the technical solutions adopted by the present invention are:
提供一种电网厂站接线图智能转换方法,其包括以下步骤:An intelligent conversion method for power grid station wiring diagrams is provided, which includes the following steps:
S1、通过目标检测算法识别电网厂站接线图中的图元,并输出图元的类别、位置矩形框和角度;S1. Use the target detection algorithm to identify the graphics elements in the power grid plant station wiring diagram, and output the category, position rectangle and angle of the graphics elements;
S2、通过OCR算法识别电网厂站接线图中的文本,输出文本字符串和文本矩形框;其中文本包括编号字符串;S2. Use the OCR algorithm to identify the text in the power grid station wiring diagram, and output text strings and text rectangular boxes; the text includes numbered strings;
S3、基于图元的类别、位置矩形框和角度,通过连通域分析,识别连接线与图元之间的连接关系,输出图元间的拓扑关系和连接线坐标;S3. Based on the category, position rectangular frame and angle of the primitive, identify the connection relationship between the connection line and the primitive through connected domain analysis, and output the topological relationship and connection line coordinates between the primitives;
S4、基于最近距离匹配原则,匹配图元和文本;S4. Based on the nearest distance matching principle, match primitives and text;
S5、基于已匹配的图元和文本的关联关系,对编号字符串进行纠错,输出纠错后的文本;S5. Based on the relationship between the matched graphic elements and the text, correct the numbered string and output the corrected text;
S6、基于图元间的拓扑关系和连接线坐标,对新的接线图中可展示元素进行布局,输出CIM/G文件,完成电网厂站接线图智能转换;其中可展示元素包括图元、文本和连接线。S6. Based on the topological relationship between graphics elements and the connection line coordinates, layout the displayable elements in the new wiring diagram, output the CIM/G file, and complete the intelligent conversion of the power grid plant and station wiring diagram; the displayable elements include graphics primitives, text and connecting lines.
进一步地,步骤S5的具体方法包括以下子步骤:Further, the specific method of step S5 includes the following sub-steps:
S5-1、以电网厂站接线图中母线为起点,进行图元拓扑搜索,当遇到母线或主变压器时停止向下搜索,得到包含图元、连接线以及图元对应的文本的集合,并将每个集合视为一个间隔;S5-1. Use the busbar in the power grid station wiring diagram as the starting point to search for the topology of primitives. When encountering a busbar or main transformer, stop searching downwards and obtain a collection containing primitives, connecting lines and text corresponding to the primitives. and treat each set as an interval;
S5-2、根据间隔所连接母线的电压等级、单个间隔内图元的类型和个数进行聚类,得到同类间隔;S5-2. Cluster according to the voltage level of the bus connected to the bay and the type and number of graphics elements in a single bay to obtain similar bays;
S5-3、获取同一个间隔内任一元素位置矩形框坐标(x1,y1,x2,y2),统计该间隔内所有元素位置矩形框的横坐标的最小值xmin和纵坐标的最小值ymin,将坐标(xmin,ymin)作为原点,将该元素位置矩形框坐标表示为相对坐标(x1-xmin,y1-ymin,x2-xmin,y2-ymin);若两个同类间隔中,以相对坐标表示的两个同类图元位置矩形框重合,则认定该两个图元的位置相同;S5-3. Obtain the coordinates (x1, y1, x2, y2) of the rectangular frame of any element position in the same interval, and count the minimum value xmin and the minimum value ymin of the ordinate coordinate of the rectangular frame of all element positions in the interval. Use coordinates (xmin, ymin) as the origin, and express the coordinates of the rectangular frame of the element position as relative coordinates (x1-xmin, y1-ymin, x2-xmin, y2-ymin); if two similar intervals are in the same interval, express them as relative coordinates If the position rectangular frames of two similar primitives overlap, then the positions of the two primitives are deemed to be the same;
S5-4、将同类间隔中位置相同的图元对应的编号字符串作为同类编号字符串,对同类间隔中同类编号字符串的每个位置进行统计,判断是否存在频率大于0.5的任一字符A,若存在则判定该位置上的字符为类型字符,同时判定字符A为该类型编号字符串中该位置上的类型字符值;否则判定该位置上的字符为命名字符;S5-4. Use the numbered strings corresponding to the graphics elements with the same position in the same interval as the same numbered string. Statistics are made on each position of the same numbered string in the same interval to determine whether there is any character A with a frequency greater than 0.5. , if it exists, the character at this position is determined to be a type character, and character A is determined to be the type character value at this position in the type number string; otherwise, the character at this position is determined to be a named character;
S5-5、对于每个编号字符串,若其类型字符位置处的值与类型字符值不同,则修改为类型字符值,并根据其他的同类编号字符串的命名字符值获取其对应位置处的命名字符值,完成文本纠错,输出纠错后的文本。S5-5. For each numbered string, if the value at the type character position is different from the type character value, modify it to the type character value, and obtain the value at the corresponding position based on the named character values of other similar numbered strings. Name the character value, complete the text error correction, and output the corrected text.
进一步地,步骤S5-5中根据其他的同类编号字符串的命名字符值获取其对应位置处的命名字符值的具体方法包括以下子步骤:Further, in step S5-5, the specific method of obtaining the named character value at the corresponding position based on the named character value of other similar numbered strings includes the following sub-steps:
S5-5-1、将其他的同类编号字符串按照文本框位置依次排列为列表TEXT_LIST,获取命名字符值的变化规律;S5-5-1. Arrange other similar numbered strings into a list TEXT_LIST according to the position of the text box, and obtain the changing rules of named character values;
S5-5-2、对于待纠错的编号字符串TEXT_A中的命名字符CHAR_A,找到距离其最近的正常识别的编号字符串TEXT_B的命名字符值CHAR_B;S5-5-2. For the named character CHAR_A in the numbered string TEXT_A to be corrected, find the named character value CHAR_B of the nearest normally recognized numbered string TEXT_B;
S5-5-3、获取命名字符TEXT_A在列表TEXT_LIST中的序号INDEX_A,获取命名字符TEXT_B在列表TEXT_LIST中的序号INDEX_B;S5-5-3. Get the serial number INDEX_A of the named character TEXT_A in the list TEXT_LIST, and get the serial number INDEX_B of the named character TEXT_B in the list TEXT_LIST;
S5-5-4、当命名字符值的规律为递增时,根据公式:S5-5-4. When the rule of naming character values is increasing, according to the formula:
CHAR_A=CHAR_B+(INDEX_A-INDEX_B)CHAR_A=CHAR_B+(INDEX_A-INDEX_B)
获取待纠错的编号字符串TEXT_A中的命名字符CHAR_A的具体值;Get the specific value of the named character CHAR_A in the numbered string TEXT_A to be corrected;
当命名字符值的规律为递减时,根据公式:When the rule of named character values is decreasing, according to the formula:
CHAR_A=CHAR_B-(INDEX_A-INDEX_B)CHAR_A=CHAR_B-(INDEX_A-INDEX_B)
获取待纠错的编号字符串TEXT_A中的命名字符CHAR_A的具体值。Get the specific value of the named character CHAR_A in the numbered string TEXT_A to be corrected.
进一步地,步骤S6的具体方法包括以下子步骤:Further, the specific method of step S6 includes the following sub-steps:
S6-1、对间隔进行划分,得到不同间隔的类型;S6-1. Divide the intervals to obtain different interval types;
S6-2、对每类间隔的可展示元素进行布局;S6-2. Lay out the displayable elements of each type of interval;
S6-3、在CIM/G文件中新增遥测信号展示元素;S6-3. Add telemetry signal display elements to the CIM/G file;
S6-4、以一定间距排列间隔,根据间隔总宽度确定对应的母线的长度;S6-4. Arrange the intervals at a certain distance, and determine the length of the corresponding bus bar according to the total width of the intervals;
S6-5、将连接于相同母线的间隔组成子区域,将主变压器所在区域作为子区域,根据原图中各子区域的拓扑关系,将各个子区域进行组合,得到布局后的图像,输出CIM/G文件,完成电网厂站接线图智能转换。S6-5. Organize the intervals connected to the same busbar into sub-areas, take the area where the main transformer is located as a sub-area, combine the sub-areas according to the topological relationship of each sub-area in the original image, obtain the layout image, and output the CIM /G file to complete the intelligent conversion of power grid plant and station wiring diagrams.
进一步地,步骤S6-2的具体方法为:Further, the specific method of step S6-2 is:
使用有向无环图表示间隔内图元和连接线的拓扑关系,采用拓扑排序算法,将有向无环图转换为单向链表;Use a directed acyclic graph to represent the topological relationship between primitives and connecting lines within the interval, and use a topological sorting algorithm to convert the directed acyclic graph into a one-way linked list;
遍历单向链表,在保证单向链表中已遍历的图元和连接线位置不变的情况下,将当前图元替换为CIM/G标准图元;从有向无环图中获取以当前图元为源点的诱导子图,根据CIM/G标准图元的大小,调整诱导子图中顶点集合中的其他图元和连接线的位置,以保证拓扑关系不变;Traverse the one-way linked list, and replace the current graphic element with the CIM/G standard graphic element while ensuring that the positions of the traversed graphic elements and connecting lines in the one-way linked list remain unchanged; obtain the current graphic element from the directed acyclic graph For an induced subgraph whose element is the source point, adjust the positions of other primitives and connecting lines in the vertex set in the induced subgraph according to the size of the CIM/G standard primitive to ensure that the topological relationship remains unchanged;
采用碰撞检测的方法,将图元对应的文本放置到间隔内空白的地方,并使文本紧邻其对应的图元。Using the collision detection method, the text corresponding to the graphic element is placed in the blank space within the interval, and the text is placed close to its corresponding graphic element.
进一步地,步骤S6-3的具体方法为:Further, the specific method of step S6-3 is:
确定图元对应的需要展示的遥测值,并新增动态文本元素进行展示;Determine the telemetry value corresponding to the graphic element that needs to be displayed, and add a dynamic text element for display;
若需要对母线新增遥测值,则在母线两端处放置新增元素,从母线的两个端点向垂直于母线并远离母线的方向调整新增元素的位置,使其不与母线间隔中已有的元素重叠;If you need to add telemetry values to the bus, place the new elements at both ends of the bus, and adjust the position of the new elements from the two end points of the bus in a direction perpendicular to the bus and away from the bus so that it is not separated from the bus. Some elements overlap;
若需要对主变压器本体新增遥测值,则在主变压器本体的左右两侧放置新增元素,从主变压器的左右两侧向远离主变压器的方向调整新增元素的位置,使其不与主变压器区域中已有的元素重叠;If you need to add new telemetry values to the main transformer body, place the new elements on the left and right sides of the main transformer body, and adjust the position of the new elements from the left and right sides of the main transformer away from the main transformer so that they are not in line with the main transformer. Overlap of existing elements in the transformer area;
若需要对主变压器的高/中/低压侧绕组新增遥测值,则在对应间隔中开关两侧放置新增元素,从开关的两侧向远离开关的方向调整新增元素的位置,使其不与间隔中已有的元素重叠;当开关竖向放置时,开关两侧为左右两侧;当开关横向放置时,开关两侧为上下两侧;If you need to add new telemetry values to the high/medium/low voltage side windings of the main transformer, place new elements on both sides of the switch in the corresponding interval, and adjust the position of the new elements from both sides of the switch away from the switch so that they Do not overlap with existing elements in the interval; when the switch is placed vertically, the two sides of the switch are the left and right sides; when the switch is placed horizontally, the two sides of the switch are the upper and lower sides;
若需要对其他间隔新增元素,则在间隔中远离母线的方向上增加元素,从间隔中距离母线最远的元素位置开始,向远处调整新增元素的位置,使其不与间隔中已有的元素重叠。If you need to add elements to other intervals, add elements in the direction away from the bus in the interval. Starting from the position of the element farthest from the bus in the interval, adjust the position of the new element farther away so that it is not in line with the existing elements in the interval. Some elements overlap.
本发明的有益效果为:本发明通过自动识别电网厂站接线图,提取图元、文本、连接线、图元之间的拓扑关系(包括间隔信息),图元和文本之间的对应关系等信息,并自动转换为CIM/G格式文件,可以大幅减少绘制电网厂站接线图的时间,提高工作效率。The beneficial effects of the present invention are: by automatically identifying the power grid plant station wiring diagram, the present invention extracts topological relationships (including interval information) between graphic elements, text, connecting lines, graphic elements, and the correspondence between graphic elements and text, etc. information and automatically converted into CIM/G format files, which can greatly reduce the time of drawing power grid plant and station wiring diagrams and improve work efficiency.
附图说明Description of drawings
图1为本方法的流程示意图;Figure 1 is a schematic flow chart of this method;
图2为实施例中电网厂站接线图的局部设计原图;Figure 2 is a partial original design diagram of the power grid plant wiring diagram in the embodiment;
图3为实施例中CIM/G文件的局部渲染成图的效果示意图;Figure 3 is a schematic diagram of the partial rendering effect of the CIM/G file in the embodiment;
图4为实施例中的间隔原图;Figure 4 is the original diagram of the interval in the embodiment;
图5为实施例中的使用有向无环图表示间隔内的拓扑关系的示意图;Figure 5 is a schematic diagram of using a directed acyclic graph to represent topological relationships within an interval in an embodiment;
图6为实施例中间隔内图元和连接线进行布局的示意图;Figure 6 is a schematic diagram of the layout of graphics elements and connecting lines within intervals in the embodiment;
图7为实施例中间隔内文本进行布局的示意图;Figure 7 is a schematic diagram of the layout of text within intervals in the embodiment;
图8为实施例中间隔内新增遥测信号展示元素布局示意图;Figure 8 is a schematic diagram of the layout of new telemetry signal display elements within intervals in the embodiment;
图9为实施例中确定母线长度的示意图;Figure 9 is a schematic diagram for determining the length of the busbar in the embodiment;
图10为实施例中各子区域组成完整接线图的示意图。Figure 10 is a schematic diagram of a complete wiring diagram composed of each sub-area in the embodiment.
具体实施方式Detailed ways
下面对本发明的具体实施方式进行描述,以便于本技术领域的技术人员理解本发明,但应该清楚,本发明不限于具体实施方式的范围,对本技术领域的普通技术人员来讲,只要各种变化在所附的权利要求限定和确定的本发明的精神和范围内,这些变化是显而易见的,一切利用本发明构思的发明创造均在保护之列。The specific embodiments of the present invention are described below to facilitate those skilled in the art to understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific embodiments. For those of ordinary skill in the technical field, as long as various changes These changes are obvious within the spirit and scope of the invention as defined and determined by the appended claims, and all inventions and creations utilizing the concept of the invention are protected.
如图1所示,该电网厂站接线图智能转换方法包括以下步骤:As shown in Figure 1, the intelligent conversion method of the power grid station wiring diagram includes the following steps:
S1、通过目标检测算法识别电网厂站接线图中的图元,并输出图元的类别、位置矩形框和角度;S1. Use the target detection algorithm to identify the graphics elements in the power grid plant station wiring diagram, and output the category, position rectangle and angle of the graphics elements;
S2、通过OCR算法识别电网厂站接线图中的文本,输出文本字符串和文本矩形框;其中文本包括编号字符串;S2. Use the OCR algorithm to identify the text in the power grid station wiring diagram, and output text strings and text rectangular boxes; the text includes numbered strings;
S3、基于图元的类别、位置矩形框和角度,通过连通域分析,识别连接线与图元之间的连接关系,输出图元间的拓扑关系和连接线坐标;S3. Based on the category, position rectangular frame and angle of the primitive, identify the connection relationship between the connection line and the primitive through connected domain analysis, and output the topological relationship and connection line coordinates between the primitives;
S4、基于最近距离匹配原则,匹配图元和文本;S4. Based on the nearest distance matching principle, match primitives and text;
S5、基于已匹配的图元和文本的关联关系,对编号字符串进行纠错,输出纠错后的文本;S5. Based on the relationship between the matched graphic elements and the text, correct the numbered string and output the corrected text;
S6、基于图元间的拓扑关系和连接线坐标,对新的接线图中可展示元素进行布局,输出CIM/G文件,完成电网厂站接线图智能转换;其中可展示元素包括图元、文本和连接线。S6. Based on the topological relationship between graphics elements and the connection line coordinates, layout the displayable elements in the new wiring diagram, output the CIM/G file, and complete the intelligent conversion of the power grid plant and station wiring diagram; the displayable elements include graphics primitives, text and connecting lines.
步骤S5的具体方法包括以下子步骤:The specific method of step S5 includes the following sub-steps:
S5-1、以电网厂站接线图中母线为起点,进行图元拓扑搜索,当遇到母线或主变压器时停止向下搜索,得到包含图元、连接线以及图元对应的文本的集合,并将每个集合视为一个间隔;S5-1. Use the busbar in the power grid station wiring diagram as the starting point to search for the topology of primitives. When encountering a busbar or main transformer, stop searching downwards and obtain a collection containing primitives, connecting lines and text corresponding to the primitives. and treat each set as an interval;
S5-2、根据间隔所连接母线的电压等级、单个间隔内图元的类型和个数进行聚类,得到同类间隔;S5-2. Cluster according to the voltage level of the bus connected to the bay and the type and number of graphics elements in a single bay to obtain similar bays;
S5-3、获取同一个间隔内任一元素位置矩形框坐标(x1,y1,x2,y2),统计该间隔内所有元素位置矩形框的横坐标的最小值xmin和纵坐标的最小值ymin,将坐标(xmin,ymin)作为原点,将该元素位置矩形框坐标表示为相对坐标(x1-xmin,y1-ymin,x2-xmin,y2-ymin);若两个同类间隔中,以相对坐标表示的两个同类图元位置矩形框重合,则认定该两个图元的位置相同;S5-3. Obtain the coordinates (x1, y1, x2, y2) of the rectangular frame of any element position in the same interval, and count the minimum value xmin and the minimum value ymin of the ordinate coordinate of the rectangular frame of all element positions in the interval. Use coordinates (xmin, ymin) as the origin, and express the coordinates of the rectangular frame of the element position as relative coordinates (x1-xmin, y1-ymin, x2-xmin, y2-ymin); if two similar intervals are in the same interval, express them as relative coordinates If the position rectangular frames of two similar primitives overlap, then the positions of the two primitives are deemed to be the same;
S5-4、将同类间隔中位置相同的图元对应的编号字符串作为同类编号字符串,对同类间隔中同类编号字符串的每个位置进行统计,判断是否存在频率大于0.5的任一字符A,若存在则判定该位置上的字符为类型字符,同时判定字符A为该类型编号字符串中该位置上的类型字符值;否则判定该位置上的字符为命名字符;S5-4. Use the numbered strings corresponding to the graphics elements with the same position in the same interval as the same numbered string. Statistics are made on each position of the same numbered string in the same interval to determine whether there is any character A with a frequency greater than 0.5. , if it exists, the character at this position is determined to be a type character, and character A is determined to be the type character value at this position in the type number string; otherwise, the character at this position is determined to be a named character;
S5-5、对于每个编号字符串,若其类型字符位置处的值与类型字符值不同,则修改为类型字符值,并根据其他的同类编号字符串的命名字符值获取其对应位置处的命名字符值,完成文本纠错,输出纠错后的文本。S5-5. For each numbered string, if the value at the type character position is different from the type character value, modify it to the type character value, and obtain the value at the corresponding position based on the named character values of other similar numbered strings. Name the character value, complete the text error correction, and output the corrected text.
步骤S5-5中根据其他的同类编号字符串的命名字符值获取其对应位置处的命名字符值的具体方法包括以下子步骤:In step S5-5, the specific method of obtaining the named character value at the corresponding position based on the named character value of other similar numbered strings includes the following sub-steps:
S5-5-1、将其他的同类编号字符串按照文本框位置依次排列为列表TEXT_LIST,获取命名字符值的变化规律;S5-5-1. Arrange other similar numbered strings into a list TEXT_LIST according to the position of the text box, and obtain the changing rules of named character values;
S5-5-2、对于待纠错的编号字符串TEXT_A中的命名字符CHAR_A,找到距离其最近的正常识别的编号字符串TEXT_B的命名字符值CHAR_B;S5-5-2. For the named character CHAR_A in the numbered string TEXT_A to be corrected, find the named character value CHAR_B of the nearest normally recognized numbered string TEXT_B;
S5-5-3、获取命名字符TEXT_A在列表TEXT_LIST中的序号INDEX_A,获取命名字符TEXT_B在列表TEXT_LIST中的序号INDEX_B;S5-5-3. Get the serial number INDEX_A of the named character TEXT_A in the list TEXT_LIST, and get the serial number INDEX_B of the named character TEXT_B in the list TEXT_LIST;
S5-5-4、当命名字符值的规律为递增时,根据公式:S5-5-4. When the rule of naming character values is increasing, according to the formula:
CHAR_A=CHAR_B+(INDEX_A-INDEX_B)CHAR_A=CHAR_B+(INDEX_A-INDEX_B)
获取待纠错的编号字符串TEXT_A中的命名字符CHAR_A的具体值;Get the specific value of the named character CHAR_A in the numbered string TEXT_A to be corrected;
当命名字符值的规律为递减时,根据公式:When the rule of named character values is decreasing, according to the formula:
CHAR_A=CHAR_B-(INDEX_A-INDEX_B)CHAR_A=CHAR_B-(INDEX_A-INDEX_B)
获取待纠错的编号字符串TEXT_A中的命名字符CHAR_A的具体值。Get the specific value of the named character CHAR_A in the numbered string TEXT_A to be corrected.
步骤S6的具体方法包括以下子步骤:The specific method of step S6 includes the following sub-steps:
S6-1、对间隔进行划分,得到不同间隔的类型;S6-1. Divide the intervals to obtain different interval types;
S6-2、对每类间隔的可展示元素进行布局;S6-2. Lay out the displayable elements of each type of interval;
S6-3、在CIM/G文件中新增遥测信号展示元素;S6-3. Add telemetry signal display elements to the CIM/G file;
S6-4、以一定间距排列间隔,根据间隔总宽度确定对应的母线的长度;S6-4. Arrange the intervals at a certain distance, and determine the length of the corresponding bus bar according to the total width of the intervals;
S6-5、将连接于相同母线的间隔组成子区域,将主变压器所在区域作为子区域,根据原图中各子区域的拓扑关系,将各个子区域进行组合,得到布局后的图像,输出CIM/G文件,完成电网厂站接线图智能转换。S6-5. Organize the intervals connected to the same busbar into sub-areas, take the area where the main transformer is located as a sub-area, combine the sub-areas according to the topological relationship of each sub-area in the original image, obtain the layout image, and output the CIM /G file to complete the intelligent conversion of power grid plant and station wiring diagrams.
步骤S6-2的具体方法为:The specific method of step S6-2 is:
使用有向无环图表示间隔内图元和连接线的拓扑关系,采用拓扑排序算法,将有向无环图转换为单向链表;Use a directed acyclic graph to represent the topological relationship between primitives and connecting lines within the interval, and use a topological sorting algorithm to convert the directed acyclic graph into a one-way linked list;
遍历单向链表,在保证单向链表中已遍历的图元和连接线位置不变的情况下,将当前图元替换为CIM/G标准图元;从有向无环图中获取以当前图元为源点的诱导子图,根据CIM/G标准图元的大小,调整诱导子图中顶点集合中的其他图元和连接线的位置,以保证拓扑关系不变;Traverse the one-way linked list, and replace the current graphic element with the CIM/G standard graphic element while ensuring that the positions of the traversed graphic elements and connecting lines in the one-way linked list remain unchanged; obtain the current graphic element from the directed acyclic graph For an induced subgraph whose element is the source point, adjust the positions of other primitives and connecting lines in the vertex set in the induced subgraph according to the size of the CIM/G standard primitive to ensure that the topological relationship remains unchanged;
采用碰撞检测的方法,将图元对应的文本放置到间隔内空白的地方,并使文本紧邻其对应的图元。Using the collision detection method, the text corresponding to the graphic element is placed in the blank space within the interval, and the text is placed close to its corresponding graphic element.
电网厂站接线图使用文本(Text)类型展示遥测类型,如P(有功值)、Q(无功值)和I(电流值)等,使用动态文本(DText)类型展示遥测值,动态文本是一种特殊的文本,在电力调度自动化系统运行时,动态文本随遥测值的变化而变化。不同的图元对应不同的遥测类型,例如:负荷图元需要展示P(有功值)、Q(无功值)和I(电流值),电容器图元需要展示Q(无功值)和I(电流值)。基于此,步骤S6-3的具体方法为:The power grid station wiring diagram uses the text (Text) type to display the telemetry type, such as P (active power value), Q (reactive power value) and I (current value), etc., and uses the dynamic text (DText) type to display the telemetry value. The dynamic text is A special kind of text that changes as the telemetry value changes when the power dispatch automation system is running. Different graphic elements correspond to different telemetry types. For example: the load graphic element needs to display P (active power value), Q (reactive power value) and I (current value), and the capacitor graphic element needs to display Q (reactive power value) and I ( current value). Based on this, the specific method of step S6-3 is:
确定图元对应的需要展示的遥测值,并新增动态文本元素进行展示;Determine the telemetry value corresponding to the graphic element that needs to be displayed, and add a dynamic text element for display;
若需要对母线新增遥测值,则在母线两端处放置新增元素,从母线的两个端点向垂直于母线并远离母线的方向调整新增元素的位置,使其不与母线间隔中已有的元素重叠;If you need to add telemetry values to the bus, place the new elements at both ends of the bus, and adjust the position of the new elements from the two end points of the bus in a direction perpendicular to the bus and away from the bus so that it is not separated from the bus. Some elements overlap;
若需要对主变压器本体新增遥测值,则在主变压器本体的左右两侧放置新增元素,从主变压器的左右两侧向远离主变压器的方向调整新增元素的位置,使其不与主变压器区域中已有的元素重叠;If you need to add new telemetry values to the main transformer body, place the new elements on the left and right sides of the main transformer body, and adjust the position of the new elements from the left and right sides of the main transformer away from the main transformer so that they are not in line with the main transformer. Overlap of existing elements in the transformer area;
若需要对主变压器的高/中/低压侧绕组新增遥测值,则在对应间隔中开关两侧放置新增元素,从开关的两侧向远离开关的方向调整新增元素的位置,使其不与间隔中已有的元素重叠;当开关竖向放置时,开关两侧为左右两侧;当开关横向放置时,开关两侧为上下两侧;If you need to add new telemetry values to the high/medium/low voltage side windings of the main transformer, place new elements on both sides of the switch in the corresponding interval, and adjust the position of the new elements from both sides of the switch away from the switch so that they Do not overlap with existing elements in the interval; when the switch is placed vertically, the two sides of the switch are the left and right sides; when the switch is placed horizontally, the two sides of the switch are the upper and lower sides;
若需要对其他间隔新增元素,则在间隔中远离母线的方向上增加元素,从间隔中距离母线最远的元素位置开始,向远处调整新增元素的位置,使其不与间隔中已有的元素重叠。If you need to add elements to other intervals, add elements in the direction away from the bus in the interval. Starting from the position of the element farthest from the bus in the interval, adjust the position of the new element farther away so that it is not in line with the existing elements in the interval. Some elements overlap.
在本发明的一个实施例中,电网厂站接线图的局部设计原图如图2所示,在通过OCR算法识别电网厂站接线图中的文本后,10kV负荷间隔中有两种类型的编号字符串;将识别到的编号字符串按照文本框位置依次排列,其中A类编号字符串的编号列表为(921,922,923),B类编号字符串的编号列表为(92160,192260,92360)。经过对同类间隔中同类编号字符串的每个位置进行统计,可以得到A类编号字符串中,第一位“9”、第二位“2”为类型字符,第三位字符为命名字符;B类编号字符串中第一位“9”、第二位“2”、第四位“6”和第五位“0”均为类型字符,第三位字符为命名字符。可以看出,B类编号字符串中第二个文本编号192260,其类型字符位置处的值与类型字符值不同,需要进行纠错;此时将统计得到的类型字符值作为待纠错字符串中对应位置处的字符值,即B类编号字符串中第二个文本编号的第一位、第二位、第四位、第五位、分别确定为“9”、“2”、“6”和“0”;发现B类编号字符串的命名字符存在递增规律,找到距离待纠错编号字符串最近的正常识别字符串,即B类编号字符串中第一个文本编号,其命名字符为1;带入公式CHAR_A=CHAR_B+(INDEX_A-INDEX_B)=1+(2-1)=2。因此确定B类编号字符串中第二个文本编号的第三位为“2”,即纠错后的B类编号字符串中第二个文本编号为92260。In one embodiment of the present invention, the partial design original diagram of the power grid station wiring diagram is shown in Figure 2. After identifying the text in the power grid station wiring diagram through the OCR algorithm, there are two types of numbers in the 10kV load interval. String; Arrange the identified numbering strings in order according to the position of the text box. The numbering list of type A numbering strings is (921,922,923), and the numbering list of type B numbering strings is (92160,192260,92360). By counting each position of the same numbered string in the same interval, it can be obtained that in the Class A numbered string, the first "9" and the second "2" are the type characters, and the third character is the naming character; The first "9", the second "2", the fourth "6" and the fifth "0" in the Class B number string are all type characters, and the third character is the naming character. It can be seen that the second text number 192260 in the Class B number string has a value at the type character position that is different from the type character value, and needs to be corrected; at this time, the type character value obtained by statistics is used as the string to be corrected The character values at the corresponding positions in , that is, the first, second, fourth, and fifth digits of the second text number in the Class B number string are determined to be "9", "2", and "6" respectively. " and "0"; it is found that there is an increasing pattern in the naming characters of Class B numbering strings, and the normal recognition string closest to the numbering string to be corrected is found, that is, the first text number in the Class B numbering string, and its naming characters is 1; enter the formula CHAR_A=CHAR_B+(INDEX_A-INDEX_B)=1+(2-1)=2. Therefore, it is determined that the third digit of the second text number in the Class B number string is "2", that is, the second text number in the Class B number string after error correction is 92260.
在本发明的一个实施例中,间隔原图如图4所示,使用有向无环图表示间隔内图元和连接线的拓扑关系,有向无环图如图5所示,采用拓扑排序算法,将有向无环图转换为单向链表,其中一种单向链表为(A,B,C,D,E,F,G,H,I,J);遍历单向链表,处理图元B时,保持已遍历的连接线A位置不变,将图元B替换为CIM/G标准图元,可以看到替换后的图元尺寸小于原来的图元;然后,从有向无环图中获取以当前图元B为源点的诱导子图,诱导子图的顶点集合为(C,D,E,F,G,H,I,J),根据CIM/G标准图元的大小,诱导子图的顶点集合中的图元和连接线整体向下移动,以保证图元的拓扑关系不变,处理效果如图6所示。In one embodiment of the present invention, the original graph of the interval is shown in Figure 4. A directed acyclic graph is used to represent the topological relationship between the primitives and connecting lines in the interval. The directed acyclic graph is shown in Figure 5 and topological sorting is used. Algorithm, convert a directed acyclic graph into a one-way linked list, one of which is (A, B, C, D, E, F, G, H, I, J); traverse the one-way linked list and process the graph When entering element B, keep the position of the traversed connection line A unchanged, replace element B with the CIM/G standard element, you can see that the size of the replaced element is smaller than the original element; then, from directed acyclic Obtain the induced subgraph with the current primitive B as the source point in the graph. The vertex set of the induced subgraph is (C, D, E, F, G, H, I, J). According to the size of the CIM/G standard primitive , inducing the primitives and connecting lines in the vertex set of the subgraph to move downward as a whole to ensure that the topological relationship of the primitives remains unchanged. The processing effect is shown in Figure 6.
在本发明的一个实施例中,对间隔内文本进行布局的方法如图7所示,放置接地刀闸图元对应的文本时,首先得到接地刀闸图元矩形框RECT_ICON的中心点O1,以及通过O1的水平直线L1和垂直直线L2。然后将接地刀闸图元对应的文本矩形框RECT_TEXT的中心点O2放置在O1处,使用特定的步进距离,使O2延L1向左右两端同时步进,延L2向上下两端同时步进,直到RECT_TEXT不与间隔中已有元素重合,并与RECT_ICON保持一定距离为止,即完成当前文本自动布局。间隔内新增遥测信号时,也可以使用相似的方法。In one embodiment of the present invention, the method of laying out text within the interval is as shown in Figure 7. When placing the text corresponding to the grounding knife gate element, first obtain the center point O1 of the rectangular frame RECT_ICON of the grounding knife gate element, and Horizontal straight line L1 and vertical straight line L2 passing through O1. Then place the center point O2 of the text rectangular frame RECT_TEXT corresponding to the grounding knife gate element at O1, and use a specific stepping distance to make O2 step simultaneously to the left and right ends along L1, and step up and down along L2 at the same time. , until RECT_TEXT does not overlap with existing elements in the interval and maintains a certain distance from RECT_ICON, the automatic layout of the current text is completed. A similar approach can be used when adding new telemetry signals within the interval.
在本发明的一个实施例中,新增遥测信号展示元素布局如图8所示,图中对负荷图元新增遥测信号展示元素。首先找到间隔中距离母线最远的元素的矩形框RECT_TEXT的中心点O1,以及经过O1垂直于母线的直线L1;然后将新增遥测信号展示元素的动态文本矩形框RECT_DTEXT的中心点O2放置在O1处,使用特定的步进距离,使O2延L1向远离母线的方向步进,直到RECT_DTEXT不与间隔中已有元素重合,并与RECT_TEXT保持一定距离为止,即完成当前遥测信号展示元素自动布局。In one embodiment of the present invention, the layout of the newly added telemetry signal display elements is shown in Figure 8. In the figure, a new telemetry signal display element is added to the load element. First find the center point O1 of the rectangular frame RECT_TEXT of the element farthest from the bus in the interval, and the straight line L1 that passes through O1 and is perpendicular to the bus; then place the center point O2 of the dynamic text rectangular frame RECT_DTEXT of the newly added telemetry signal display element at O1 , use a specific step distance to step O2 along L1 in the direction away from the bus until RECT_DTEXT does not coincide with existing elements in the interval and maintains a certain distance from RECT_TEXT, that is, the automatic layout of the current telemetry signal display elements is completed.
在本发明的一个实施例中,布局时确定母线宽度如图9所示。以间距d排列间隔,根据间隔总宽度确定对应的母线的长度。母线和所连接的间隔共同组成子区域。In one embodiment of the present invention, the width of the busbar is determined during layout as shown in Figure 9. Arrange the intervals at a distance d, and determine the length of the corresponding bus bar based on the total width of the intervals. The busbars and the connected bays together form subareas.
在本发明的一个实施例中,各子区域组成完整接线图如图10所示。将连接于相同母线的间隔组成子区域,将主变压器所在区域作为子区域,根据原图中各子区域的拓扑关系,将各个子区域进行组合,形成完整的接线图。In one embodiment of the present invention, the complete wiring diagram of each sub-area is shown in Figure 10. The intervals connected to the same busbar are composed of sub-areas, and the area where the main transformer is located is regarded as a sub-area. According to the topological relationship of each sub-area in the original diagram, the sub-areas are combined to form a complete wiring diagram.
在进行完文本纠错后,对新的接线图中可展示元素进行布局,输出CIM/G文件,CIM/G文件局部渲染成图的效果示意图如图3所示。在输出CIM/G文件之后,相关人员只需要进行校对,无需将各个元素手动录入,因此可以大幅减少绘制电网厂站接线图的时间,提高工作效率。After text correction, the displayable elements in the new wiring diagram are laid out, and the CIM/G file is output. The partial rendering of the CIM/G file is shown in Figure 3. After outputting the CIM/G file, relevant personnel only need to proofread it without manually entering each element. Therefore, the time for drawing power grid plant and station wiring diagrams can be greatly reduced and work efficiency improved.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311077347.1A CN117113600B (en) | 2023-08-24 | 2023-08-24 | A method for intelligent conversion of power grid plant wiring diagram |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311077347.1A CN117113600B (en) | 2023-08-24 | 2023-08-24 | A method for intelligent conversion of power grid plant wiring diagram |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117113600A true CN117113600A (en) | 2023-11-24 |
CN117113600B CN117113600B (en) | 2024-06-04 |
Family
ID=88805110
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311077347.1A Active CN117113600B (en) | 2023-08-24 | 2023-08-24 | A method for intelligent conversion of power grid plant wiring diagram |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117113600B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117526332A (en) * | 2024-01-08 | 2024-02-06 | 华雁智能科技(集团)股份有限公司 | Method and device for generating power grid tidal current diagram, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6606731B1 (en) * | 1999-08-05 | 2003-08-12 | The Boeing Company | Intelligent wiring diagram system |
US20110167401A1 (en) * | 2010-01-05 | 2011-07-07 | The Boeing Company | Processing Wiring Diagrams in a Data Processing System |
CN115082950A (en) * | 2022-06-07 | 2022-09-20 | 国网山东省电力公司莱芜供电公司 | Automatic identification, conversion and storage method for power grid station wiring diagram |
CN115457591A (en) * | 2022-09-30 | 2022-12-09 | 国网天津市电力公司 | Identification method for topological relation of main wiring diagram of power grid station |
CN116484558A (en) * | 2023-05-06 | 2023-07-25 | 国网江苏省电力有限公司扬州供电分公司 | A method, device and medium for automatic drawing of multi-source models based on source-side models |
-
2023
- 2023-08-24 CN CN202311077347.1A patent/CN117113600B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6606731B1 (en) * | 1999-08-05 | 2003-08-12 | The Boeing Company | Intelligent wiring diagram system |
US20110167401A1 (en) * | 2010-01-05 | 2011-07-07 | The Boeing Company | Processing Wiring Diagrams in a Data Processing System |
CN115082950A (en) * | 2022-06-07 | 2022-09-20 | 国网山东省电力公司莱芜供电公司 | Automatic identification, conversion and storage method for power grid station wiring diagram |
CN115457591A (en) * | 2022-09-30 | 2022-12-09 | 国网天津市电力公司 | Identification method for topological relation of main wiring diagram of power grid station |
CN116484558A (en) * | 2023-05-06 | 2023-07-25 | 国网江苏省电力有限公司扬州供电分公司 | A method, device and medium for automatic drawing of multi-source models based on source-side models |
Non-Patent Citations (1)
Title |
---|
王凯旋: "电气接线图自动识别技术研究", 中国优秀硕士学位论文全文数据库, 15 July 2022 (2022-07-15), pages 042 - 206 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117526332A (en) * | 2024-01-08 | 2024-02-06 | 华雁智能科技(集团)股份有限公司 | Method and device for generating power grid tidal current diagram, electronic equipment and storage medium |
CN117526332B (en) * | 2024-01-08 | 2024-04-05 | 华雁智能科技(集团)股份有限公司 | Method and device for generating power grid tidal current diagram, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN117113600B (en) | 2024-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN117277553B (en) | Intelligent processing method for monitoring information of power grid plant station | |
WO2023115842A1 (en) | Data-driven offline and online integrated simulation system and method for power distribution network | |
CN100454317C (en) | Computer Aided Decision Support System for Power Grid Planning | |
CN105718636B (en) | A kind of plant stand main wiring diagram model automatic switching method | |
CN113255499B (en) | Digital automatic modeling method for secondary loop of transformer substation cable | |
CN105117518B (en) | A kind of distribution feeder line chart automatic drafting method and system for radiating Connection Mode | |
CN104462473B (en) | Method for automatically generating CIM-G format plant station internal wiring diagram based on CIM-E power grid model | |
CN104951844B (en) | A kind of power distribution network thematic map layout optimization method | |
CN111783265B (en) | Optimization method for topology generation of power grid tidal current diagram | |
CN111241646B (en) | Layout method of power grid equipment and computer readable storage medium | |
CN111814281B (en) | Automatic drawing method for topological relation diagram of transformer area based on multi-tree hierarchical layout | |
CN106933942B (en) | Primary system wiring automatic mapping method based on transformer substation standard description | |
CN103500249A (en) | Visual relay protection setting calculation system and method | |
CN111859805A (en) | Detection method of topological relationship of power drawings based on artificial intelligence | |
CN117113600B (en) | A method for intelligent conversion of power grid plant wiring diagram | |
CN104182913B (en) | A kind of power network mode figure is into the intelligent arrangement method of figure | |
CN112102296A (en) | Power equipment target identification method based on human concept | |
CN114565930A (en) | Electrical plant station wiring drawing bus identification method based on morphological processing | |
CN108984749A (en) | A kind of electric system geographical wiring diagram method for drafting based on GIS | |
CN115204093A (en) | Automatic layout method and system for plant station wiring diagram | |
CN106910140A (en) | A kind of method based on SVG form power system wiring diagram Network topologies | |
CN107844620B (en) | Automatic fault site thematic map generation method based on target guidance | |
CN108897913A (en) | A method of plant stand figure is automatically generated by SCD model file | |
CN117094915A (en) | Grid GIS graph correction method based on orthographic image of unmanned aerial vehicle | |
CN118036224A (en) | Automatic mapping method and system for distribution network single line diagram sketch based on visual model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20231124 Assignee: Huayan Intelligent Technology (Group) Co.,Ltd. Assignor: TIANFU NEW AREA POWER SUPPLY COMPANY, STATE GRID SICHUAN ELECTRIC POWER CO. Contract record no.: X2025980000252 Denomination of invention: An intelligent conversion method for power grid plant and station wiring diagram Granted publication date: 20240604 License type: Common License Record date: 20250108 |
|
EE01 | Entry into force of recordation of patent licensing contract |