CN112150584A - Intelligent editing method and device for plant station wiring diagram based on data analysis result - Google Patents

Intelligent editing method and device for plant station wiring diagram based on data analysis result Download PDF

Info

Publication number
CN112150584A
CN112150584A CN202011109521.2A CN202011109521A CN112150584A CN 112150584 A CN112150584 A CN 112150584A CN 202011109521 A CN202011109521 A CN 202011109521A CN 112150584 A CN112150584 A CN 112150584A
Authority
CN
China
Prior art keywords
template
primitive
wiring diagram
text
bus
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
Application number
CN202011109521.2A
Other languages
Chinese (zh)
Other versions
CN112150584B (en
Inventor
马仲佳
孙湃
张亮
马云刚
宋维维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kedong Electric Power Control System Co Ltd
Original Assignee
Beijing Kedong Electric Power Control System Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Kedong Electric Power Control System Co Ltd filed Critical Beijing Kedong Electric Power Control System Co Ltd
Priority to CN202011109521.2A priority Critical patent/CN112150584B/en
Publication of CN112150584A publication Critical patent/CN112150584A/en
Application granted granted Critical
Publication of CN112150584B publication Critical patent/CN112150584B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/5846Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using extracted text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Design And Manufacture Of Integrated Circuits (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a plant station wiring diagram intelligent editing method and device based on data analysis results, wherein the method comprises the following steps: acquiring a picture file of a historical station wiring diagram; extracting bus, template and outgoing line position information from historical plant station wiring diagram picture files; extracting template, station name and primitive use information from historical station wiring diagram picture files; and applying the extracted bus, template, outgoing line position information, template, station name and primitive use information in an editor to draw a station wiring diagram. According to the invention, a large amount of power grid graphic data are collected and analyzed, and the intention of a user is predicted by applying the power grid graphic data to a traditional graphic editing function based on an analysis result, so that the editing efficiency of a plant station wiring diagram is improved.

Description

Intelligent editing method and device for plant station wiring diagram based on data analysis result
Technical Field
The invention belongs to the technical field of power systems, and particularly relates to a method and a device for intelligently editing a station wiring diagram based on a data analysis result.
Background
The station wiring diagram is a real-time image used for reflecting the power grid operation information of the power system, such as the primary equipment composition, the wiring mode between equipment, the equipment state and the like.
At present, a plant station wiring diagram mainly comprises primitives such as buses, circuit breakers, disconnecting switches, transformers, grounding disconnecting switches, trolley switches, lines and loads, static texts and dynamic measurement texts, wherein the primitives are used for representing different types of equipment in the plant station wiring diagram, the equipment is connected with the equipment through connecting lines, and the texts beside the equipment are used for representing information such as equipment names, scheduling numbers and equipment measurement.
The current factory station wiring diagram picture editing mode is a traditional picture editing mode, for example, firstly, a bus is created and adjusted to a proper position, a primitive and a template which are needed to be used are searched and selected in a primitive and template library, the primitive and the template are selected and then placed on a certain position of a picture through a mouse, a mouse and a keyboard direction key are used for adjusting to a proper position, then outgoing equipment such as a load, a line and a line end is created and connected with the template, a text is added in the same mode, attributes such as a font, a character size and text content of the text are set, when a plurality of templates, the primitive, the outgoing equipment and the text are added, an interface layout is adjusted by using an alignment function and an arrangement function, and finally, a factory station name static text used for identifying a current factory station is added, and text content, the font, the character size and the text content are set.
At present, a traditional graph editing method is adopted in a plant station wiring diagram manufacturing process in a D5000 intelligent scheduling control system, and the following operations are very complicated in the plant station wiring diagram manufacturing process: when a bus is created, firstly, a bus creation menu is selected, then a bus primitive is drawn in an editor drawing area through a mouse, and then fine adjustment is carried out according to the position and the size of the primitive in a drawing; when the template is created, the position of the template needs to be finely adjusted by using a mouse and a keyboard according to the distance between the templates in the drawing; when setting the position of the outgoing text, firstly placing the text in a proper area by using a mouse, and then finely adjusting the position of the text by using a keyboard direction key; when the outlet equipment of the template or an adjacent template is created, the outlet equipment needs to be searched in a huge primitive and template library according to the types of the primitives and the templates in the drawing; when a text used for representing a factory station name in a factory station diagram is manufactured, the factory station name needs to be manually filled in, and the setting is carried out according to the unified requirements of fonts and word sizes of the factory station name text; when the font and the font size of the text are set, the individual setting needs to be carried out on the single text.
There has been no prior research on applying intelligent editing wiring diagram techniques based on data analysis results in plant wiring diagrams.
Disclosure of Invention
The invention aims to overcome the defects in the prior art, and provides a plant station wiring diagram intelligent editing method and device based on data analysis results, which are used for collecting and analyzing a large amount of power grid graphic data and predicting user intentions in the traditional graphic editing function based on analysis results.
In order to solve the technical problem, the invention provides an intelligent editing method of a plant station wiring diagram based on a data analysis result, which comprises the following processes:
acquiring a picture file of a historical station wiring diagram;
extracting bus, template and outgoing line position information from historical plant station wiring diagram picture files;
extracting template, station name and primitive use information from historical station wiring diagram picture files;
and applying the extracted bus, template, outgoing line position information, template, station name and primitive use information in an editor to draw a station wiring diagram.
Further, the extracting of the bus, the template and the outgoing line position information from the historical plant station wiring diagram picture file includes:
and carrying out intelligent bus layout, template and outgoing line text arrangement rule analysis on the factory station wiring diagram picture file to obtain the bus layout, template layout and outgoing line text arrangement rules, and further obtain bus, template and outgoing line position information.
Further, the bus bar layout rule analysis includes:
analyzing the picture file of the serialized plant station wiring diagram to obtain the highest voltage grade, the bus length and the bus coordinate of the plant station;
grouping the plant wiring diagrams according to the highest voltage level of the plant, and counting buses in the plant with the same voltage level into a set according to a grouping result;
calculating the coordinates of the buses in each set, and calculating the number of the buses in a certain coordinate interval by taking the coordinate interval with a preset size as a ruler;
counting several coordinate intervals with the largest number of buses, reducing the coordinate intervals in the coordinate intervals, continuously counting the distribution rule of the buses, and counting the most likely coordinates of the buses;
the template arrangement rule analysis comprises the following steps:
analyzing the picture file of the serialized plant station wiring diagram to obtain the picture element template elements in the plant station diagram,
traversing the primitive templates in the plant station wiring diagrams, and finding out other primitive templates adjacent to the primitive template;
analyzing the layout mode of the primitive templates in the plant station wiring diagram, counting other primitive templates on the left side and the right side of the primitive template if the elements in the primitive template are longitudinally arranged, counting other primitive templates on the upper side and the lower side of the primitive template if the elements in the primitive template are transversely arranged, and counting the relative position relationship between the primitive templates and a bus;
the outlet text arrangement rule analysis comprises the following steps:
when the picture file of the serialized plant station wiring diagram is analyzed, all texts and parent elements thereof in the plant station wiring diagram are counted, a canvas is divided into four areas, namely an upper area, a lower area, a left area, a right area, a measurement type, a coordinate relative to the parent element, a font name and font size data are counted;
grouping according to the region to which the text belongs, the measurement type, the font name and the font size, and calculating the relative position of the text coordinate relative to the parent element coordinate;
and respectively calculating the coordinate positions of the texts relative to the parent elements according to the requirements of different primitive types, different text belonging areas and different voltage grades.
Further, extracting the template, the plant station name and the primitive use information from the historical plant station wiring diagram picture file, including:
and analyzing the template chain type, the plant station name and the intelligent recommendation prompt rule of the plant station wiring diagram picture file, acquiring the prompt rules of the template, the plant station name and the primitive use, and further acquiring the information of the template, the plant station name and the primitive use.
Further, the template chain prompting rule analysis includes:
analyzing the picture file of the wiring diagram of the serialized plant station, searching all primitive templates, searching all other primitive templates adjacent to a certain primitive template in the upper, lower, left and right directions and single equipment of a line, a line end, a load, a breaker and a disconnecting link connected with the primitive template,
traversing all plant station graphs according to the rule, and counting to obtain certain primitive templates with highest occurrence frequency of each primitive template in the upper, lower, left and right directions and certain connected single equipment;
taking the statistical result as an analysis result according to the priority of the occurrence frequency from high to low;
the plant station name prompt rule analysis comprises the following steps:
analyzing the picture file of the serialized plant station wiring diagram, searching all texts in the plant station wiring diagram, matching the text contents with the plant station Chinese name associated with the current plant station wiring diagram, and if the matching is successful, considering the text as a static text for representing the plant station name;
recording fonts, word sizes and font styles of texts corresponding to factory station names, simultaneously recording coordinate information of the texts in a picture, then grouping the texts according to the information of the fonts, the word sizes, the font styles and the like of the texts, and calculating an average value of coordinates of a center point of the texts on the basis of grouping;
the intelligent recommendation prompting rule analysis comprises the following steps:
analyzing the picture file of the serialized plant station wiring diagram, searching all texts and various primitives in the plant station wiring diagram, traversing fonts and word sizes of the texts, and traversing the primitive files referenced by the primitives;
analyzing all texts and various types of primitives, counting the use frequency of text fonts and font sizes, and counting the use frequency of various types of primitives.
Further, the step of applying the extracted bus, the extracted template, the outgoing line position information, the extracted template, the extracted plant station name and the extracted primitive use information in an editor to draw a plant station wiring diagram includes:
the method comprises the following steps of bus layout intelligent arrangement, template intelligent arrangement, outgoing line text intelligent arrangement, template chain type prompt, station name prompt and intelligent recommendation prompt; wherein:
bus layout intelligent arrangement: when a bus electrical element is selected in the editor, intelligently recommending the bus layout of the current station according to the voltage level of the current station, drawing the bus layout on a picture, and finishing the bus layout and arrangement;
intelligently arranging templates: automatically arranging the drawing positions of the primitive templates according to the position of the bus, the distance between the buses, the positions of the adjacent primitive templates, the types of the primitive templates, the picture layout and the information;
intelligently arranging outgoing text: and automatically arranging the relative coordinate positions of the static text and the dynamic text attached to the graphic element.
Template-chain prompting: according to the layout of the selected primitive template in the graph, predicting the adjacent templates and outgoing lines of the primitive template and supporting effect preview and quick drawing;
factory station name prompting: finding a text corresponding to the factory station name, automatically generating the current factory station name, and providing a font size with the highest recommended use frequency;
and (3) intelligent recommendation prompting: when the graphic elements are selected, the graphic elements with high use frequency of the graphic elements in the factory station wiring diagram are prompted, and when the text is edited, the fonts and the font sizes with high use frequency are prompted, and the user is preferentially recommended to use.
Furthermore, the intelligent template arrangement process is that when the operation template is added to the canvas, the judgment is carried out, and if the size of the circumscribed rectangle of the selected primitive template and the distance between two buses in the canvas are within a certain threshold range, the selected primitive template is automatically drawn between the two buses; if other primitive templates exist at the positions of adding the primitive templates to the canvas, analyzing the result according to the template arrangement rule, and automatically arranging and adjusting the primitive templates and the positions of the existing primitive templates according to the analysis result data.
Further, the intelligent layout process of the outgoing text is as follows: when a line, a line end or a load is drawn, acquiring a static text measurement type and a dynamic text measurement type associated with the equipment according to the equipment type of the drawn equipment; and then, according to the outlet text arrangement rule analysis result, acquiring the position relation between the drawn equipment and the static text measurement type and the dynamic text measurement type, and automatically arranging the static text and the dynamic text of the equipment according to the acquired position relation.
Correspondingly, the invention also provides a plant station wiring diagram intelligent editing device based on the data analysis result, which comprises:
the historical data acquisition module is used for acquiring historical plant station wiring diagram picture files;
the first data analysis module is used for extracting bus, template and outgoing line position information from the historical plant station wiring diagram picture file;
the second data analysis module is used for extracting the template, the plant station name and the primitive use information from the historical plant station wiring diagram picture file;
and the analysis result application editing module is used for applying the extracted bus, the template, the outgoing line position information, the template, the plant station name and the primitive use information in an editor to draw a plant station wiring diagram.
Compared with the prior art, the invention has the following beneficial effects: the invention is seamlessly integrated with the traditional plant station diagram editing method, so that the traditional plant station wiring diagram picture editing tool has certain thinking capability, the traditional production mode has the intelligent characteristic, and the efficiency of the whole graph editing process is greatly improved.
Drawings
FIG. 1 is a schematic diagram of the collection and storage of historical plant wiring diagrams;
FIG. 2 is a schematic diagram of the acquisition and analysis of the arrangement rules;
FIG. 3 is a schematic diagram of prompt rule collection and analysis;
FIG. 4 is a schematic diagram of intelligent prompt for application of acquisition and analysis results;
fig. 5 is a schematic diagram of intelligent arrangement of application acquisition and analysis results.
Detailed Description
The invention is further described below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
The invention has the following inventive concept: on the basis of a D5000 system stock station wiring diagram picture file, primitive, template and outgoing line position information are extracted by using a data acquisition technology, the primitive, template and outgoing line use conditions are extracted, text fonts, word sizes and other information are extracted, the original data are analyzed by using a data analysis technology to form valuable analysis result data, and then in the traditional station wiring diagram editing processes of primitive searching, template creating, outgoing line creating, primitive template text arrangement, text setting and the like, intelligent prompting is carried out by combining a use scene on the basis of the result data obtained by analysis, so that the use of the traditional editing function is promoted.
According to the intelligent editing method of the plant station wiring diagram based on the data analysis result, a large number of existing plant station wiring diagram picture files of the power grid are utilized, a large number of power grid graphic data are collected and analyzed to obtain a valuable analysis result, and then the analysis result is applied to a traditional graphic editing function to predict the intention of a user.
The method specifically comprises the following steps:
firstly, collecting and analyzing coordinate information of a bus, a template and an outgoing line text in a factory station wiring diagram picture.
The method comprises the steps of firstly collecting factory station wiring diagram picture files on a file server, storing the files in a distributed file system (shown in figure 1), then carrying out intelligent bus layout, template and outgoing text arrangement rule analysis, obtaining rules of the bus layout, the template layout and the outgoing text arrangement, and finally applying the rules to the traditional functions of an editor for intelligent arrangement.
The specific process of the acquisition and analysis of the arrangement rule, as shown in fig. 2, includes the following steps:
analyzing the bus layout and arrangement rule, firstly analyzing the serialized plant station wiring diagram picture file in the distributed file storage system, acquiring the highest voltage level, the bus length and the bus coordinate of a plant station, then, the plant wiring diagrams are grouped according to the highest voltage level of the plant, the buses in the plant with the same voltage level are counted into a set according to the grouping result, the coordinates of the buses in each set are calculated, calculating the number of bus bars in a certain coordinate interval by taking the coordinate interval with a certain size as a ruler, considering that the probability of drawing the bus bars in the coordinate interval is higher when the number is larger, counting a plurality of coordinate intervals with the largest number of bus bars, and reducing the size of the coordinate interval ruler in the coordinate intervals, continuously counting the distribution rule of the bus, counting the most probable coordinates of the bus, and finally storing the data analysis result into a database.
Analyzing template arrangement rules, firstly analyzing a serialized plant station wiring diagram picture file in a distributed file storage system, acquiring element template elements in a plant station diagram, traversing the element templates in each plant station wiring diagram, finding out other element templates adjacent to the element templates, then analyzing the layout mode of the element templates in the plant station wiring diagram, counting the other element templates on the left side and the right side of the element templates if the elements in the element templates are longitudinally arranged, counting the other element templates on the upper side and the lower side of the element templates if the elements in the element templates are transversely arranged, counting the relative position relationship between the element templates and a bus, and finally storing a data analysis result in a database.
The method comprises the steps of analyzing an outgoing line text arrangement rule, wherein each primitive is provided with a static text and a dynamic text which are attached to the primitive, the static text is used for displaying attributes such as primitive names, and the dynamic text is bound with an active and reactive equivalent measured value of the primitive, so that the static text, the dynamic text and the primitive have a parent-child relationship. And respectively calculating the coordinate positions of the texts relative to the parent elements according to the requirements of different primitive types, different text regions and different voltage grades, and finally storing the data analysis results into a database according to the sequence from high to low.
And secondly, acquiring and analyzing template position information, text font and character size information and primitive use information in a factory station wiring diagram picture.
The method comprises the steps of firstly collecting factory station wiring diagram picture files on a file server, storing the files in a distributed file system, then analyzing template chain, factory station names and intelligent recommendation prompting rules, obtaining the prompting rules of the templates, the factory station names and the graphic elements, and finally applying the rules to the traditional functions of an editor for intelligent prompting.
The specific process of prompting rule collection and analysis, as shown in fig. 3, includes:
analyzing template chain prompting rules, firstly analyzing serialized plant station wiring diagram picture files in a distributed file storage system, analyzing all plant station wiring diagrams, searching all primitive templates, searching all other primitive templates adjacent to the upper direction, the lower direction, the left direction and the right direction of a certain primitive template and single equipment such as a line, a line end, a load, a breaker and a switch connected with the primitive template, traversing all plant station diagrams according to the rules, finally counting to obtain some primitive templates with the highest occurrence frequency in the upper direction, the lower direction, the left direction and the right direction of each primitive template and some connected single equipment, and finally storing the statistical results into a database as analysis results according to the priority of the occurrence frequency from high to low.
Analyzing factory station name prompt rules, firstly analyzing serialized factory station wiring diagram picture files in a distributed file storage system, searching all texts in a factory station wiring diagram, matching text contents with factory station Chinese names associated with the current factory station wiring diagram, considering the texts to be static texts for representing factory station names if matching is successful, then recording fonts, word sizes and font styles of texts corresponding to the factory station names, simultaneously recording coordinate information of the texts in the pictures, then grouping according to the information of the fonts, the word sizes, the font styles and the like of the texts, calculating an average value of coordinates of text center points on the basis of grouping, and finally storing data analysis results in a database.
Analyzing an intelligent recommendation prompting rule, analyzing a serialized plant station wiring diagram picture file in a distributed file storage system, searching all texts and various primitives in a plant station wiring diagram, traversing fonts and font sizes of the texts, traversing primitive files referenced by the primitives of various types, analyzing all the texts and the primitives of various types, counting the use frequency of the fonts and the font sizes of the texts, counting the use frequency of the primitives of various types, and finally storing a data analysis result into a database.
And thirdly, applying the obtained analysis result data, namely rules of bus layout, template layout and text arrangement, and applying the prompting rules of the templates, the plant station names and the graphic primitives in an editor to intelligently draw a plant station wiring diagram. The intelligent graphic editing function mainly comprises bus layout intelligent arrangement, template intelligent arrangement, outgoing text intelligent arrangement, template chain type prompt, station name prompt and intelligent recommendation prompt.
Bus layout intelligent arrangement, as shown in fig. 5, a current station bus layout condition is inquired in a data analysis result according to a voltage level of a current station, firstly, when a picture editor is used for clicking a bus electrical component, the current station bus layout can be intelligently recommended according to the voltage level of the current station and the data analysis result, the current station bus layout is drawn on a picture, then a user can select to reserve or delete according to an actual condition, a mouse left button clicks a bus for reserving, a right button clicks a bus for deleting, and finally, the bus layout arrangement is completed.
The method comprises the steps of intelligently arranging templates, automatically arranging drawing positions of primitive templates according to information such as bus positions, bus distances, positions of adjacent primitive templates, primitive template types, picture layout and the like, judging when a mouse operation template is added to canvas, and automatically drawing the selected primitive templates between two buses if the size of an external rectangle of the selected primitive template and the distance between the two buses in the canvas are within a certain threshold range; if other primitive templates exist at the positions of adding the primitive templates to the canvas, analyzing the result according to the template arrangement rule, and automatically arranging and adjusting the primitive templates and the positions of the existing primitive templates according to the analysis result data. When the position of the current primitive template operated in the functions of adding the primitive template, copying the primitive template across the graph and the like is set in the picture editor, the optimal placing position of the primitive template can be automatically obtained and set by combining the previous data analysis result, and the automatic arrangement of the primitive templates is completed.
And intelligently arranging outgoing line texts, and automatically arranging the relative coordinate positions of the static texts and the dynamic texts attached to the primitives according to the data analysis result. Referring to fig. 4, the process is that when a line, a line end, or a load is drawn through a mouse, a static text measurement type and a dynamic text measurement type associated with a drawn device can be obtained according to the device type of the device. And then, according to the outlet text arrangement rule analysis result, acquiring the position relation between the drawn equipment and the static text measurement type and the dynamic text measurement type, and automatically arranging the static text and the dynamic text of the equipment according to the acquired position relation. And automatically applying a new layout after manually modifying the position of the text, when a picture editor is used for drawing a graph, automatically arranging the coordinate positions of the static text and the dynamic text related to the primitives according to the information of the type of the drawn primitives, the area to which the text belongs, the voltage level and the like and the analysis result, and setting the information of the font, the font and the like of the related text.
And (4) template chain prompting, namely predicting the adjacent templates and outgoing lines of the primitive templates according to the layout of the selected primitive templates in the graph, and supporting effect preview and rapid drawing loading. Referring to fig. 4, when a picture editor is used for drawing and a certain primitive template peripheral template or equipment is added, an analysis result is applied, a primitive template adjacent to the primitive template or equipment connected with the primitive template is predicted according to the selected direction, a preview effect is displayed, and after selection, quick drawing can be realized, the connection relation between the selected primitive template and the current template is maintained, and what you see is what you get is realized.
And prompting the factory station name, finding a text corresponding to the factory station name according to an analysis result, automatically generating the current factory station name, and providing a font character size with the highest recommended use frequency, so that the creation and the editing of the factory station wiring diagram name are more convenient. Referring to fig. 4, when a text is set by using a screen editor, whether the selected text is a text corresponding to a factory site name is judged according to a text position coordinate, if so, the factory site name is automatically set, the first three font sizes with the highest use frequency are displayed according to an analysis result for recommendation, and a user only needs to select to complete the setting.
The intelligent recommendation prompt prompts primitives with high primitive use frequency in a factory station wiring diagram to be selected according to analysis results, prompts fonts and character sizes with high use frequency when a text is edited, preferentially recommends users to use, avoids repeated searching by the users, improves the drawing efficiency, recommends the primitives with high use frequency according to different primitive types when a primitive selection panel is opened, and sorts the primitives according to heat degree, selects the text by using a picture editor, recommends the font character size with high use frequency according to data analysis results when a text setting panel is opened to set the font character size, and improves the drawing efficiency.
Correspondingly, the plant station wiring diagram intelligent editing device based on the data analysis result comprises:
the historical data acquisition module is used for acquiring historical plant station wiring diagram picture files;
the first data analysis module is used for extracting bus, template and outgoing line position information from the historical plant station wiring diagram picture file;
the second data analysis module is used for extracting the template, the plant station name and the primitive use information from the historical plant station wiring diagram picture file;
and the analysis result application editing module is used for applying the extracted bus, the template, the outgoing line position information, the template, the plant station name and the primitive use information in an editor to draw a plant station wiring diagram.
The specific implementation of each module refers to the implementation process of the method described above.
The method can be seamlessly integrated with the traditional plant station wiring diagram editing method, so that the intelligent editing method is provided in the traditional plant station wiring diagram editing process, and the efficiency of the whole graphic editing process is greatly improved.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (9)

1. A plant station wiring diagram intelligent editing method based on data analysis results is characterized by comprising the following processes:
acquiring a picture file of a historical station wiring diagram;
extracting bus, template and outgoing line position information from historical plant station wiring diagram picture files;
extracting template, station name and primitive use information from historical station wiring diagram picture files;
and applying the extracted bus, template, outgoing line position information, template, station name and primitive use information in an editor to draw a station wiring diagram.
2. The intelligent plant station wiring diagram editing method based on the data analysis result as claimed in claim 1, wherein the extracting of the bus, the template and the outgoing line position information from the historical plant station wiring diagram picture file comprises:
and carrying out intelligent bus layout, template and outgoing line text arrangement rule analysis on the factory station wiring diagram picture file to obtain the bus layout, template layout and outgoing line text arrangement rules, and further obtain bus, template and outgoing line position information.
3. The intelligent editing method for the plant station wiring diagram based on the data analysis result as claimed in claim 2, wherein the bus bar layout and arrangement rule analysis comprises:
analyzing the picture file of the serialized plant station wiring diagram to obtain the highest voltage grade, the bus length and the bus coordinate of the plant station;
grouping the plant wiring diagrams according to the highest voltage level of the plant, and counting buses in the plant with the same voltage level into a set according to a grouping result;
calculating the coordinates of the buses in each set, and calculating the number of the buses in a certain coordinate interval by taking the coordinate interval with a preset size as a ruler;
counting several coordinate intervals with the largest number of buses, reducing the coordinate intervals in the coordinate intervals, continuously counting the distribution rule of the buses, and counting the most likely coordinates of the buses;
the template arrangement rule analysis comprises the following steps:
analyzing the picture file of the serialized plant station wiring diagram to obtain the picture element template elements in the plant station diagram,
traversing the primitive templates in the plant station wiring diagrams, and finding out other primitive templates adjacent to the primitive template;
analyzing the layout mode of the primitive templates in the plant station wiring diagram, counting other primitive templates on the left side and the right side of the primitive template if the elements in the primitive template are longitudinally arranged, counting other primitive templates on the upper side and the lower side of the primitive template if the elements in the primitive template are transversely arranged, and counting the relative position relationship between the primitive templates and a bus;
the outlet text arrangement rule analysis comprises the following steps:
when the picture file of the serialized plant station wiring diagram is analyzed, all texts and parent elements thereof in the plant station wiring diagram are counted, a canvas is divided into four areas, namely an upper area, a lower area, a left area, a right area, a measurement type, a coordinate relative to the parent element, a font name and font size data are counted;
grouping according to the region to which the text belongs, the measurement type, the font name and the font size, and calculating the relative position of the text coordinate relative to the parent element coordinate;
and respectively calculating the coordinate positions of the texts relative to the parent elements according to the requirements of different primitive types, different text belonging areas and different voltage grades.
4. The intelligent factory station wiring diagram editing method based on the data analysis result as claimed in claim 1, wherein the extracting of the template, factory station name and primitive use information from the historical factory station wiring diagram picture file comprises:
and analyzing the template chain type, the plant station name and the intelligent recommendation prompt rule of the plant station wiring diagram picture file, acquiring the prompt rules of the template, the plant station name and the primitive use, and further acquiring the information of the template, the plant station name and the primitive use.
5. The intelligent editing method for the plant station wiring diagram based on the data analysis result as claimed in claim 4, wherein the template chain prompting rule analysis comprises:
analyzing the picture file of the wiring diagram of the serialized plant station, searching all primitive templates, searching all other primitive templates adjacent to a certain primitive template in the upper, lower, left and right directions and single equipment of a line, a line end, a load, a breaker and a disconnecting link connected with the primitive template,
traversing all plant station graphs according to the rule, and counting to obtain certain primitive templates with highest occurrence frequency of each primitive template in the upper, lower, left and right directions and certain connected single equipment;
taking the statistical result as an analysis result according to the priority of the occurrence frequency from high to low;
the plant station name prompt rule analysis comprises the following steps:
analyzing the picture file of the serialized plant station wiring diagram, searching all texts in the plant station wiring diagram, matching the text contents with the plant station Chinese name associated with the current plant station wiring diagram, and if the matching is successful, considering the text as a static text for representing the plant station name;
recording fonts, word sizes and font styles of texts corresponding to factory station names, simultaneously recording coordinate information of the texts in a picture, then grouping the texts according to the information of the fonts, the word sizes, the font styles and the like of the texts, and calculating an average value of coordinates of a center point of the texts on the basis of grouping;
the intelligent recommendation prompting rule analysis comprises the following steps:
analyzing the picture file of the serialized plant station wiring diagram, searching all texts and various primitives in the plant station wiring diagram, traversing fonts and word sizes of the texts, and traversing the primitive files referenced by the primitives;
analyzing all texts and various types of primitives, counting the use frequency of text fonts and font sizes, and counting the use frequency of various types of primitives.
6. The intelligent factory station wiring diagram editing method based on the data analysis result as claimed in claim 1, wherein the step of applying the extracted bus, template, outgoing line position information and template, factory station name, primitive use information in an editor to draw a factory station wiring diagram comprises:
the method comprises the following steps of bus layout intelligent arrangement, template intelligent arrangement, outgoing line text intelligent arrangement, template chain type prompt, station name prompt and intelligent recommendation prompt; wherein:
bus layout intelligent arrangement: when a bus electrical element is selected in the editor, intelligently recommending the bus layout of the current station according to the voltage level of the current station, drawing the bus layout on a picture, and finishing the bus layout and arrangement;
intelligently arranging templates: automatically arranging the drawing positions of the primitive templates according to the position of the bus, the distance between the buses, the positions of the adjacent primitive templates, the types of the primitive templates, the picture layout and the information;
intelligently arranging outgoing text: automatically arranging the relative coordinate positions of the static text and the dynamic text attached to the graphic primitive;
template-chain prompting: according to the layout of the selected primitive template in the graph, predicting the adjacent templates and outgoing lines of the primitive template and supporting effect preview and quick drawing;
factory station name prompting: finding a text corresponding to the factory station name, automatically generating the current factory station name, and providing a font size with the highest recommended use frequency;
and (3) intelligent recommendation prompting: when the graphic elements are selected, the graphic elements with high use frequency of the graphic elements in the factory station wiring diagram are prompted, and when the text is edited, the fonts and the font sizes with high use frequency are prompted, and the user is preferentially recommended to use.
7. The intelligent factory station wiring diagram editing method based on the data analysis result as claimed in claim 6, wherein the intelligent arrangement process of the templates is that when the operation template is added to the canvas, judgment is carried out, and if the size of the circumscribed rectangle of the selected primitive template and the distance between two bus bars in the canvas are within a certain threshold range, the selected primitive template is automatically drawn between the two bus bars; if other primitive templates exist at the positions of adding the primitive templates into the canvas, analyzing the result according to the template arrangement rule, and automatically arranging and adjusting the primitive templates and the positions of the existing primitive templates according to the analysis result data.
8. The intelligent editing method for the plant station wiring diagram based on the data analysis result as claimed in claim 6, wherein the intelligent arrangement process of the outgoing line texts comprises the following steps: when a line, a line end or a load is drawn, acquiring a static text measurement type and a dynamic text measurement type associated with the equipment according to the equipment type of the drawn equipment; and then, according to the outlet text arrangement rule analysis result, acquiring the position relation between the drawn equipment and the static text measurement type and the dynamic text measurement type, and automatically arranging the static text and the dynamic text of the equipment according to the acquired position relation.
9. A plant station wiring diagram intelligent editing device based on data analysis results is characterized by comprising:
the historical data acquisition module is used for acquiring historical plant station wiring diagram picture files;
the first data analysis module is used for extracting bus, template and outgoing line position information from the historical plant station wiring diagram picture file;
the second data analysis module is used for extracting the template, the plant station name and the primitive use information from the historical plant station wiring diagram picture file;
and the analysis result application editing module is used for applying the extracted bus, the template, the outgoing line position information, the template, the plant station name and the primitive use information in an editor to draw a plant station wiring diagram.
CN202011109521.2A 2020-10-16 2020-10-16 Station wiring diagram editing method and device based on data analysis result Active CN112150584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011109521.2A CN112150584B (en) 2020-10-16 2020-10-16 Station wiring diagram editing method and device based on data analysis result

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011109521.2A CN112150584B (en) 2020-10-16 2020-10-16 Station wiring diagram editing method and device based on data analysis result

Publications (2)

Publication Number Publication Date
CN112150584A true CN112150584A (en) 2020-12-29
CN112150584B CN112150584B (en) 2024-04-16

Family

ID=73952230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011109521.2A Active CN112150584B (en) 2020-10-16 2020-10-16 Station wiring diagram editing method and device based on data analysis result

Country Status (1)

Country Link
CN (1) CN112150584B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204297A (en) * 2021-04-28 2021-08-03 万翼科技有限公司 Method and device for selecting elements in graphic primitive, electronic equipment and storage medium
CN117217196A (en) * 2023-11-09 2023-12-12 杭州瀚斯科技有限公司 Data processing system, method and computer device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10261000A (en) * 1997-03-17 1998-09-29 Kinden:Kk Drawing device for cable connection diagram
CN104007721A (en) * 2014-05-08 2014-08-27 河北省电力勘测设计研究院 Intelligent generation method of coal conveying program control wiring diagrams of heat-engine plants
CN107292003A (en) * 2017-06-06 2017-10-24 南京南瑞继保电气有限公司 A kind of automatic generating method of electric network station wiring diagram

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10261000A (en) * 1997-03-17 1998-09-29 Kinden:Kk Drawing device for cable connection diagram
CN104007721A (en) * 2014-05-08 2014-08-27 河北省电力勘测设计研究院 Intelligent generation method of coal conveying program control wiring diagrams of heat-engine plants
CN107292003A (en) * 2017-06-06 2017-10-24 南京南瑞继保电气有限公司 A kind of automatic generating method of electric network station wiring diagram

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
CHAI ZHEN 等: "Analysis of electrical model of data center power system", JOURNAL OF PHYSICS: CONFERENCE SERIES, 17 August 2020 (2020-08-17) *
廖凡钦 等: "基于拓扑分层的配电网电气接线图自动生成算法", 电力系统自动化, 10 July 2014 (2014-07-10) *
张亮 等: "基于地理信息与电网外部环境的电网地图设计", 电力系统自动化, 14 October 2019 (2019-10-14) *
苏运光;罗俊;熊浩;范青;吴海伟;陈连杰;: "基于存量图形拓扑分析的厂站接线图自动生成", 电力系统自动化, no. 03, 19 December 2019 (2019-12-19) *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204297A (en) * 2021-04-28 2021-08-03 万翼科技有限公司 Method and device for selecting elements in graphic primitive, electronic equipment and storage medium
CN113204297B (en) * 2021-04-28 2023-04-18 万翼科技有限公司 Method and device for selecting elements in graphic primitive, electronic equipment and storage medium
CN117217196A (en) * 2023-11-09 2023-12-12 杭州瀚斯科技有限公司 Data processing system, method and computer device
CN117217196B (en) * 2023-11-09 2024-01-26 杭州瀚斯科技有限公司 Data processing system, method and computer device

Also Published As

Publication number Publication date
CN112150584B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
CN112150584B (en) Station wiring diagram editing method and device based on data analysis result
CN110599567A (en) Visual editing tool for electronic track map and map generation method
CN107273486A (en) Map updating method and device
CN108563898B (en) Man-machine interactive single-line digital modeling method for power grid
CN112529055A (en) Image annotation and annotation data set processing method
CN102968539A (en) Method for massively and quickly generating format drawing
CN114090611A (en) Method and device for generating cable inventory by terminal wiring table and electronic equipment
CN110659342A (en) Rule base automatic drawing comprehensive processing method and system based on information extraction features
CN113642850A (en) Data fusion method and terminal for power distribution network planning
CN116151804A (en) Automatic operation ticket generation method, device, equipment and storage medium
CN117171164A (en) Data storage method, device, terminal equipment and storage medium
CN112149506A (en) Table generation method, apparatus and storage medium in image combining RPA and AI
JPH04205170A (en) Drawing control unit
CN113378069B (en) Main and distribution network automatic drawing method based on intelligent recommendation algorithm
CN114154856A (en) Power grid path planning node calculation method and system based on road network
CN112612841A (en) Knowledge extraction construction method, device, equipment and storage medium
CN113837721A (en) Process management method and system
CN104346758A (en) Template-based dynamic interval histogram generation method
CN114757007A (en) System and method for generating power protection and supply full path diagram
CN110458473B (en) Dynamic decision analysis method and terminal for electric billboard
CN104112287A (en) Method and device for segmenting characters in picture
Zhang et al. Rendering optimization method and implementation of power grid WebGIS based on Web Worker
CN116309900A (en) SVG factory station wiring diagram drawing system based on web
CN117931331A (en) Drawing processing method, device, equipment and storage medium
KR19980084118A (en) Automatic generation of straight line cable

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