Format Conversion Method, System, Device, and Medium Based on Industrial Configuration Diagram Element Recognition

By analyzing and generating drawing instructions, automatically building and drawing configuration diagram elements, the inefficiency and error-prone problems of manually drawing configuration diagrams are solved, and the automated cross-region migration and multi-format support of configuration diagrams are realized.

CN119903107BActive Publication Date: 2025-05-30LUCULENT SMART TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510406188.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-02
Publication Date
2025-05-30
Estimated Expiration
2045-04-02

AI Technical Summary

Technical Problem

The existing technology manual drawing of configuration diagrams has problems such as inefficiency, error proneness, maintenance difficulties, and how to achieve cross-region migration automation of configuration diagrams.

Method used

By analyzing the configuration diagram file of the production control area, extracting element information and generating drawing instructions, constructing configuration diagram examples based on the configuration diagram specifications of target management, and drawing configuration diagram elements according to the drawing instructions, and finally generating configuration diagram files that meet the target management specifications.

Benefits of technology

It realizes automatic cross-region migration of configuration diagrams, improves conversion efficiency, reduces labor costs, ensures consistency between the converted configuration diagram and the original configuration diagram, and supports configuration diagram files in multiple formats, which has good versatility and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119903107B_ABST
    Figure CN119903107B_ABST
Patent Text Reader

Abstract

The present invention discloses a format conversion method, system, device and medium based on industrial configuration diagram element recognition, which relates to the technical field of configuration format conversion in the industrial field. It includes analyzing multi-source heterogeneous configuration diagram files, extracting configuration diagram element information and generating drawing instructions, and constructing an automated process for configuration diagram conversion; based on a configuration diagram specification that conforms to target management, constructing a configuration diagram instance, and using the drawing instructions to dynamically initialize and configure the attributes of the configuration diagram elements, and constructing the logical framework and semantic structure of the configuration diagram; traversing the drawing instructions, based on the configuration diagram instance, converting and drawing the configuration diagram elements, and constructing a configuration diagram file that conforms to target management; the present invention realizes the automation of configuration diagram conversion, without manual intervention, improving work efficiency; it can support configuration diagram formats of multiple manufacturers and configuration diagram formats of multiple target management systems, with wide applicability; it realizes dynamic interaction of configuration diagram elements, enhancing the functionality and practicality of the configuration diagram.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of configuration format conversion in the industrial field, and specifically to a format conversion method, system, device, and medium based on the recognition of industrial configuration diagram elements. Background Art

[0002] Configuration software is widely used in the industrial field, and the configuration diagrams generated by it play an important role in aspects such as data acquisition, monitoring, analysis, and alarm. With the development of industrial informatization, enterprise computer systems are usually divided into a production control area and a management information area. There is a physical isolation between the two and different systems are used, resulting in difficulty in sharing configuration diagrams across regions. Currently, the common method of migrating the configuration diagrams in the production control area to the management information area is to manually redraw them, but there are many deficiencies: Configuration diagrams usually contain a large number of elements, and each element needs to be configured with attributes and interactions. Manual drawing is time-consuming and laborious, with low efficiency. According to project experience, it takes an engineer about 1 hour on average to manually draw a configuration diagram. For complex configuration diagrams containing thousands of elements, the workload is even unimaginable; Manual drawing is prone to errors, such as inconsistent information about the position, size, color, etc. of elements, resulting in the failure of the configuration diagram function or data errors; The manually drawn configuration diagrams are difficult to maintain. Once the configuration diagrams in the production control area change, the configuration diagrams in the management information area also need to be updated synchronously, otherwise it will lead to inconsistent information; Some configuration diagram conversion methods usually target configuration diagrams of specific manufacturers or specific formats, lacking generality and being difficult to meet the requirements of different scenarios.

[0003] The present invention realizes the automation of cross-region migration of configuration diagrams. By parsing the configuration diagram files in the production control area, extracting element information and generating drawing instructions, then constructing a configuration diagram instance according to the configuration diagram specifications of the target management, and drawing configuration diagram elements according to the drawing instructions, finally generating a configuration diagram file that conforms to the target management specifications. Compared with the prior art, the present invention has the following innovation points: Automatically parsing the configuration diagram files by a program and generating drawing instructions without manual intervention, greatly improving the conversion efficiency and reducing the labor cost; By extracting image features and parsing attributes of configuration diagram elements, information such as element type, position, size, color, etc. can be accurately identified, ensuring the consistency between the converted configuration diagram and the original configuration diagram; This method supports configuration diagram files in multiple formats, can meet the requirements of different manufacturers and different scenarios, and has good generality; This method can be easily extended to support new configuration diagram formats and has strong scalability. Summary of the Invention

[0004] In view of the above existing problems, the present invention is proposed.

[0005] Therefore, the technical problems to be solved by the present invention are as follows: the existing manual method for drawing configuration diagrams is inefficient, error-prone, difficult to maintain, and there are problems regarding how to automate the cross-region migration of configuration diagrams.

[0006] To solve the above technical problems, the present invention provides the following technical solutions: a format conversion method based on the recognition of industrial configuration diagram elements, including analyzing multi-source heterogeneous configuration diagram files, extracting configuration diagram element information and generating drawing instructions, and constructing an automated process for configuration diagram conversion; based on a configuration diagram specification that conforms to target management, constructing a configuration diagram instance, using the drawing instructions to dynamically initialize and configure the attributes of configuration diagram elements, and constructing the logical framework and semantic structure of the configuration diagram; traversing the drawing instructions, based on the configuration diagram instance, converting and drawing configuration diagram elements, and constructing a configuration diagram file that conforms to target management; generating drawing instructions includes establishing a rule library for drawing rules based on deep learning, selecting drawing rules from the rule library based on the parsed element information, and generating drawing instructions; the logical framework and semantic structure of the configuration diagram include dividing configuration diagram elements into different levels based on the type and function of the configuration diagram elements, defining the association types and rules between configuration diagram elements, managing the levels and association relationships of the elements, extracting the semantic information of the configuration diagram elements, and organizing and constructing the semantic structure using the semantic information and the relationships between configuration diagram elements.

[0007] As a preferred solution of the format conversion method based on the recognition of industrial configuration diagram elements according to the present invention, wherein: the analysis of multi-source heterogeneous configuration diagram files includes identifying the configuration diagram file format based on the file extension and file content characteristics, selecting the corresponding parsing method, traversing the sub-folders under the specified file path using a recursive algorithm, obtaining all target configuration diagram files, and recording the complete path of each target file.

[0008] As a preferred solution of the format conversion method based on the recognition of industrial configuration diagram elements according to the present invention, wherein: the extraction of configuration diagram element information and the generation of drawing instructions include extracting image features of the configuration diagram elements, establishing corresponding attribute parsing rules in combination with different element attribute information, and generating instructions for drawing configuration diagram elements based on the element information and the attribute parsing rules.

[0009] As a preferred solution of the format conversion method based on the recognition of industrial configuration diagram elements according to the present invention, wherein: the construction of the automated process for configuration diagram conversion includes setting global static variables, reading the content of the configuration diagram file in a streaming manner, parsing the file according to the delimiter, and parsing the attribute information of the configuration diagram elements based on the file format and element type.

[0010] As a preferred embodiment of the format conversion method based on industrial configuration diagram element recognition according to the present invention, the construction of the configuration diagram instance includes creating a configuration diagram object that conforms to the target management specification, setting configurable attributes of the configuration diagram object, including canvas size and page size, dynamically initializing configuration diagram elements based on the generated drawing instructions, and configuring the attributes of the configuration diagram elements using the parsed element attribute information.

[0011] As a preferred embodiment of the format conversion method based on industrial configuration diagram element recognition according to the present invention, the construction of the logical framework and semantic structure of the configuration diagram includes analyzing the connection relationships, attribute information, and script content of the configuration diagram elements, identifying the hierarchical relationships, logical relationships, and data flow directions between the elements, extracting the semantic information of the elements, constructing the logical framework and semantic structure of the configuration diagram, and mapping the functions and semantics of the configuration diagram.

[0012] As a preferred embodiment of the format conversion method based on industrial configuration diagram element recognition according to the present invention, the construction of the configuration diagram file that conforms to the target management includes traversing all the generated drawing instructions, drawing the configuration diagram elements in the order of the instructions, drawing the configuration diagram elements based on the configuration diagram instance according to the drawing instructions, and saving the drawn configuration diagram elements as a configuration diagram file that conforms to the target management specification.

[0013] Another object of the present invention is to provide a format conversion system based on industrial configuration diagram element recognition, which can solve the problems of low efficiency, error-proneness, and difficult maintenance in the current manual drawing of configuration diagrams by constructing an automated configuration diagram conversion process.

[0014] As a preferred embodiment of the format conversion system based on industrial configuration diagram element recognition according to the present invention, it includes a configuration diagram parsing module, a configuration diagram conversion module, and a configuration diagram drawing module; the configuration diagram parsing module is used to parse configuration diagram files in different formats, extract configuration diagram element information, and generate drawing instructions; the configuration diagram conversion module is used to construct a configuration diagram instance, perform dynamic initialization and attribute configuration according to the drawing instructions, and generate a configuration diagram file that conforms to the target management specification; the configuration diagram drawing module is used to traverse all the generated drawing instructions, draw the configuration diagram elements in the order of the instructions, and generate a configuration diagram file that conforms to the target management specification.

[0015] A computer device includes a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement the steps of the format conversion method based on industrial configuration diagram element recognition.

[0016] A computer-readable storage medium stores a computer program thereon, and when the computer program is executed by a processor, it implements the steps of the format conversion method based on industrial configuration diagram element recognition.

[0017] Advantages of the present invention: The present invention automatically parses the configuration diagram file through a program and generates drawing instructions without manual intervention, greatly improving the conversion efficiency and reducing the labor cost; by extracting image features and attribute parsing of configuration diagram elements, information such as element type, position, size, color, etc. can be accurately identified, ensuring the consistency between the converted configuration diagram and the original configuration diagram; the present invention supports configuration diagram files in multiple formats, can adapt to the needs of different manufacturers and different scenarios, and has good versatility; the present invention can be easily extended to support new configuration diagram formats and has strong scalability. Description of the Drawings

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0019] Figure 1 It is the overall flowchart of the format conversion method based on industrial configuration diagram element recognition provided by the first embodiment of the present invention. Detailed Embodiments

[0020] In order to make the above objects, features, and advantages of the present invention more obvious and understandable, the specific embodiments of the present invention will be described in detail below with reference to the drawings of the specification. Obviously, the described embodiments are some embodiments of the present invention, rather than all embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of protection of the present invention.

[0021] Example 1, referring to Figure 1 , which is an embodiment of the present invention, provides a format conversion method based on industrial configuration diagram element recognition, including:

[0022] S1: Analyze multi-source heterogeneous configuration diagram files, extract configuration diagram element information and generate drawing instructions, and construct an automated configuration diagram conversion process.

[0023] Furthermore, analyzing multi-source heterogeneous configuration diagram files includes identifying the configuration diagram file format based on the file extension and file content characteristics, selecting the corresponding parsing method, traversing the sub-folders under the specified file path using a recursive algorithm to obtain all target configuration diagram files, recording the complete path of each target file, and constructing a dynamically adjustable attribute parsing rule for configuration diagram files of different manufacturers and different versions.

[0024] It should be noted that the dynamic adjustment of the attribute parsing rules includes collecting configuration diagram files from different manufacturers and versions as samples to ensure that the samples cover various common configuration diagram elements and attributes, extracting image features from the configuration diagram elements in the samples, and mapping the image features to the element attributes; by analyzing the file extension and file header information, identifying the manufacturers and versions of the configuration diagram files, establishing a database of manufacturer and version information, recording the characteristics and parsing rules of the configuration diagram files of different manufacturers and versions, based on the identified manufacturer and version information, efficiently retrieving in the preset basic rule library, using a similarity algorithm, converting the configuration diagram file and the rule set into feature vectors and calculating the similarity between the feature vectors, sorting the rule set according to the similarity score, based on the similarity calculation result, the system automatically selects the rule set with the highest score as the parsing rule for the current configuration diagram file; using deep learning technology, inputting new configuration diagram file samples into the deep learning model, automatically learning the complex features and patterns in the samples through a multi-layer neural network, updating and expanding new parsing rules; establishing a user feedback mechanism, collecting the problems and suggestions encountered by users during use, and optimizing and improving the rules according to the feedback information; performing version control on the rule library, tracing the update and iteration process of the rules, and performing rollback and recovery.

[0025] It should be noted that the similarity calculation formula is expressed as:

[0026] ;

[0027] Wherein, represents the calculated similarity, represents the th eigenvalue of the sample, represents the th sample eigenvalue in the rule set, represents the sample arrangement serial number, represents the total number of features.

[0028] It should be noted that extracting the information of the configuration diagram elements and generating drawing instructions includes extracting the image features of the configuration diagram elements, combining different element attribute information, establishing corresponding attribute parsing rules, and generating instructions for drawing the configuration diagram elements based on the element information and the attribute parsing rules. The image feature extraction may include color, shape, and texture features, and the attribute parsing rules may include element type, position, size, and color attributes.

[0029] It should also be noted that constructing an automated process for configuration diagram conversion includes setting global static variables, reading the content of the configuration diagram file in a streaming manner, parsing the file according to the delimiter, and parsing the attribute information of the configuration diagram elements based on the file format and element type.

[0030] It should also be noted that based on different configuration diagram files, the attribute parsing rules are dynamically adjusted to improve the accuracy and adaptability of parsing, thereby improving the conversion efficiency and precision; deep learning technology is adopted to automatically identify and classify configuration diagram elements, improving the accuracy and efficiency of element identification and the overall conversion efficiency and precision; the semantic information of configuration diagram elements is extracted to provide a data basis for subsequent configuration diagram analysis and applications.

[0031] S2: Based on the configuration diagram specification that conforms to target management, construct a configuration diagram instance, and use drawing instructions to dynamically initialize and configure the attributes of configuration diagram elements, and construct the logical framework and semantic structure of the configuration diagram.

[0032] Furthermore, constructing a configuration diagram instance includes creating a configuration diagram object that conforms to the target management specification, setting the configurable attributes of the configuration diagram object, including the canvas size and page size, and dynamically initializing the configuration diagram elements based on the generated drawing instructions. The dynamic initialization of the configuration diagram elements can flexibly create and configure the configuration diagram elements according to different drawing instructions and element attribute information, and configure the attributes of the configuration diagram elements using the parsed element attribute information.

[0033] It should be noted that a preferred solution for the configurable attributes specifically includes the configuration diagram control mode, canvas size, page size, background color, save mode, grid drawing, and file name attributes. The configurable attributes cover all aspects of configuration diagram drawing and display, can be configured based on experimental requirements, can effectively control the overall appearance and behavior of the configuration diagram, and are applicable to various configuration diagram formats and target management systems.

[0034] It should be noted that constructing the logical framework and semantic structure of the configuration diagram includes analyzing the connection relationships, attribute information, and script content of the configuration diagram elements, identifying the hierarchical relationships, logical relationships, and data flows between the elements, extracting the semantic information of the elements, constructing the logical framework and semantic structure of the configuration diagram, and mapping the functions and semantics of the configuration diagram.

[0035] It should also be noted that by constructing a configuration diagram instance based on the configuration diagram specification that conforms to target management, the standardization and normalization of the configuration diagram are ensured, providing a unified benchmark for subsequent maintenance, modification, and extension; using drawing instructions to dynamically initialize the configuration diagram elements improves the construction efficiency of the configuration diagram, eliminates the need for manual configuration one by one, reduces human errors and time consumption; configuring the attributes of the configuration diagram elements based on the parsed element attribute information ensures the accuracy and consistency of the attributes, improving the quality and reliability of the configuration diagram; extracting the semantic information of the elements and mapping the functions and semantics of the configuration diagram enable the configuration diagram to present visual information and have deep semantic understanding, providing possibilities for intelligent analysis and automated operations.

[0036] S3: Traverse the drawing instructions, transform the drawing configuration diagram elements based on the configuration diagram instance, and construct a configuration diagram file that conforms to the target management.

[0037] Furthermore, constructing a configuration diagram file that conforms to the target management includes traversing all the generated drawing instructions. During the process of traversing the drawing instructions, introduce an instruction optimization algorithm to sort and merge the drawing instructions, draw the configuration diagram elements according to the instruction order, draw the configuration diagram elements based on the configuration diagram instance according to the drawing instructions, and save the drawn configuration diagram elements as a configuration diagram file that conforms to the target management specification.

[0038] It should be noted that a priority function is defined for each drawing instruction, the priority function is applied to all drawing instructions, the priority value of each instruction is calculated, and the instructions are sorted according to the priority value. The priority function is expressed as as:

[0039] ;

[0040] where is the instruction type weight, is the drawing complexity, is the dependency weight, represents the instruction type weight coefficient, represents the drawing complexity coefficient, represents the dependency weight. Set the merging condition, traverse the sorted instruction sequence, merge the instructions that meet the merging condition, generate new instructions after merging, replace the corresponding instructions in the original instruction sequence, apply the verification function to the sorted and merged instruction sequence for automatic verification, output the final drawing instruction sequence if the verification passes, and return an error message and prompt for correction if the verification fails.

[0041] It should be noted that an automated testing tool is introduced to simulate user operations, verify whether the functions of the configuration diagram elements meet the expectations, test the loading speed and response time of the configuration diagram file, analyze the drawing instructions, identify the dependency relationships between the instructions, perform a topological sort on the instruction dependency graph to generate an instruction execution sequence, analyze the instruction execution sequence, merge multiple consecutive drawing line instructions into one drawing polygon instruction, and merge multiple element drawing instructions with the same attributes into one batch drawing instruction.

[0042] It should also be noted that the orderly execution of drawing instructions ensures the smoothness of the drawing process, avoiding drawing errors and redrawing caused by instruction chaos; introducing automated testing tools for functional testing, performance testing and compatibility testing to comprehensively detect various potential problems of the configuration diagram file and ensure its stable operation; intelligent analysis improves the design level of the configuration diagram, reducing human errors and adjustment costs; the configuration diagram elements are saved as configuration diagram files that conform to the target management specifications, ensuring the standardization and specification of the configuration diagram, providing a unified benchmark for subsequent maintenance, modification and expansion, and reducing the complexity of management and maintenance.

[0043] Embodiment 2 is an embodiment of the present invention, which provides a format conversion method based on the recognition of industrial configuration diagram elements. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.

[0044] This experimental example aims to verify the effectiveness and superiority of the format conversion method based on the recognition of industrial configuration diagram elements. First, six groups of configuration diagram files from different sources and versions were selected as experimental objects, including three groups of experimental configuration diagrams and three groups of control configuration diagrams. The experimental configuration diagrams were processed using the format conversion method of the present invention, while the control configuration diagrams were processed using traditional methods.

[0045] In the experimental preparation stage, each group of configuration diagram files was analyzed in detail, the configuration diagram element information was extracted, and the corresponding drawing instructions were generated. A recursive algorithm was used to traverse the file path to ensure that all target configuration diagram files were obtained. For configuration diagram files from different manufacturers and versions, a dynamic adjustment attribute parsing rule was constructed, and the rule library was continuously optimized and updated through deep learning technology.

[0046] During the implementation process, the experimental configuration diagrams were dynamically initialized and attribute-configured, and the logical framework and semantic structure of the configuration diagrams were constructed. By traversing the drawing instructions and based on the configuration diagram instances, the configuration diagram elements were transformed and drawn, and finally, configuration diagram files that conform to the target management specifications were constructed.

[0047] Table 1 Experimental data table

[0048] Test object Element recognition time (s) Attribute analysis accuracy rate (%) Drawing instruction generation time (s) Configuration diagram construction time (min) Conversion efficiency improvement (%) Semantic information extraction accuracy rate (%) Test configuration Figure 1 1.2 98.5 0.8 2.5 20 97 Test configuration diagram 2 1.3 99 0.7 2.4 22 97.5 Test configuration diagram 3 1.1 98.7 0.9 2.6 21 97.2 Control configuration Figure 1 2.5 95 1.5 3.8 0 92 Control configuration diagram 2 2.7 94.5 1.6 3.9 0 91.5 Control configuration diagram 3 2.6 94.8 1.4 3.7 0 91.8

[0049] As shown in Table 1, the experimental configuration diagrams using the method of the present invention show significant advantages in many aspects. First, in terms of element recognition time, the average recognition time of the experimental configuration diagrams is 1.2 seconds, which is significantly faster than the 2.5 seconds of the control configuration diagrams, indicating that the method of the present invention has higher efficiency in recognizing configuration diagram elements.

[0050] Secondly, in terms of the accuracy of attribute parsing, the average accuracy of the experimental configuration diagram reached 98.9%, while that of the control configuration diagram was only 94.8%. This shows that the method of the present invention is more accurate in parsing the element attributes of the configuration diagram, effectively improving the conversion accuracy.

[0051] In addition, in terms of the drawing instruction generation time and the configuration diagram construction time, the experimental configuration diagram also demonstrated better performance. More importantly, the experimental configuration diagram achieved a 21.0% improvement in conversion efficiency, while the control configuration diagram showed no obvious improvement, which fully proves the remarkable effect of the present invention in improving the conversion efficiency of the configuration diagram.

[0052] Finally, in terms of the accuracy of semantic information extraction, the average accuracy of the experimental configuration diagram was 97.2%, higher than 91.8% of the control configuration diagram. This indicates that the method of the present invention is more effective in extracting the semantic information of the configuration diagram elements, providing a more reliable data basis for subsequent configuration diagram analysis and applications.

[0053] In summary, the format conversion method based on industrial configuration diagram element recognition of the present invention shows significant advantages in terms of element recognition efficiency, attribute parsing accuracy, conversion efficiency, and semantic information extraction, effectively solving the deficiencies in the prior art and having obvious creativity and novelty.

[0054] Example 3, an embodiment of the present invention, provides a format conversion system based on industrial configuration diagram element recognition, including a configuration diagram parsing module, a configuration diagram conversion module, and a configuration diagram drawing module.

[0055] Wherein S4: The configuration diagram parsing module includes a file format recognition sub-module, a file content parsing sub-module, and an element information extraction sub-module.

[0056] Furthermore, the file format recognition sub-module is used to recognize configuration diagram files in different formats, laying a foundation for subsequent parsing work; the file content parsing sub-module is used to parse the content of the configuration diagram file according to the recognized file format and extract element information; the element information extraction sub-module is used to further process the parsed element information to make the element information conform to the specifications of target management.

[0057] It should be noted that after the file format recognition sub-module recognizes the file format, the result is passed to the file content parsing sub-module. After the file content parsing sub-module parses the file content and extracts the element information, the result is passed to the element information extraction sub-module.

[0058] It should also be noted that the configuration diagram parsing module is the core part of the configuration diagram parsing module, providing basic data for subsequent configuration diagram conversion and drawing work.

[0059] S5: The configuration diagram conversion module includes a configuration diagram instance construction sub-module, an element drawing rule matching sub-module, and an element attribute configuration sub-module.

[0060] Furthermore, the configuration diagram instance construction sub-module is used to create a configuration diagram object that conforms to the target management specification and set the configurable attributes of the configuration diagram object; the element drawing rule matching sub-module is used to select an appropriate element drawing rule according to the element information and the target management specification; the element attribute configuration sub-module is used to configure the attributes of the configuration diagram elements according to the element information and the target management system specification.

[0061] It should be noted that after the configuration diagram instance construction sub-module creates a configuration diagram instance, it passes the result to the element drawing rule matching sub-module and the element attribute configuration sub-module; the element drawing rule matching sub-module selects an appropriate element drawing rule according to the configuration diagram instance and the element information, and passes the result to the element attribute configuration sub-module; the element attribute configuration sub-module configures the attributes of the configuration diagram elements according to the configuration diagram instance, the element information, and the drawing rule.

[0062] It should also be noted that the configuration diagram conversion module is the core part of the configuration diagram conversion module, which converts the parsed element information into a configuration diagram instance that conforms to the target management specification.

[0063] S6: The configuration diagram drawing module includes an element drawing sub-module, an element interaction processing sub-module, and a configuration diagram file generation sub-module.

[0064] Furthermore, the element drawing sub-module is used to draw the configuration diagram elements; the element interaction processing sub-module is used to implement the dynamic interaction of the configuration diagram elements; the configuration diagram file generation sub-module is used to save the drawn configuration diagram elements as a configuration diagram file that conforms to the target management specification.

[0065] It should be noted that the element drawing sub-module draws the configuration diagram elements according to the drawing instruction and passes the result to the element interaction processing sub-module. The element interaction processing sub-module implements the dynamic interaction of the configuration diagram elements according to the control script information. The configuration diagram file generation sub-module saves the drawn configuration diagram elements as a configuration diagram file that conforms to the target management specification.

[0066] It should also be noted that the configuration diagram drawing module is the core part of the configuration diagram drawing module, which generates the final configuration diagram file according to the configuration diagram instance and the element information.

[0067] If a function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs, etc., all kinds of media that can store program codes.

[0068] The logic and / or steps represented in the flowchart or described in other ways herein, for example, can be considered as a definite sequence list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch instructions from the instruction execution system, apparatus, or device and execute the instructions), or used in combination with these instruction execution systems, apparatus, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

[0069] More specific examples (nonexhaustive list) of computer-readable media include the following: an electrical connection part with one or more wirings (electronic device), a portable computer disk cartridge (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, a computer-readable medium can even be paper or other suitable media on which a program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other media, then editing, interpreting, or processing it in other suitable ways as necessary, and then storing it in a computer memory.

[0070] It should be understood that each part of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc. It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention, and they should all be covered within the scope of the claims of the present invention.

Claims

1. A format conversion method based on industrial configuration diagram element recognition, characterized in that: include: Analyze multi-source heterogeneous configuration diagram files, extract configuration diagram element information and generate drawing instructions, and build an automated configuration diagram conversion process; Based on the configuration diagram specification that meets the target management, the configuration diagram instance is constructed, and the drawing instructions are used to dynamically initialize and configure the attributes of the configuration diagram elements to build the logical framework and semantic structure of the configuration diagram; Traverse the drawing instructions, transform and draw the configuration diagram elements based on the configuration diagram instance, and build the configuration diagram file that meets the target management; Generating the drawing instruction includes establishing a rule base of drawing rules based on deep learning, selecting a drawing rule from the rule base based on the parsed element information, and generating the drawing instruction; The logical framework and semantic structure of the configuration diagram include dividing the configuration diagram elements into different levels based on their types and functions, defining the association types and rules between the configuration diagram elements, managing the levels and associations of the elements, extracting the semantic information of the configuration diagram elements, and organizing and constructing the semantic structure using the semantic information and the relationship between the configuration diagram elements. Extracting configuration diagram element information and generating drawing instructions include: Extract image features of configuration diagram elements, combine attribute information of different elements, establish corresponding attribute parsing rules, and generate instructions for drawing configuration diagram elements based on element information and attribute parsing rules; The process of building the configuration diagram conversion automation includes: Set global static variables, read the configuration diagram file content based on streaming mode, parse the file according to the separator, and parse the attribute information of the configuration diagram elements based on the file format and element type.

2. The format conversion method based on industrial configuration diagram element recognition according to claim 1, characterized in that: The analysis of multi-source heterogeneous configuration diagram files includes: Based on the file extension and file content characteristics, the configuration diagram file format is identified, the corresponding parsing method is selected, and a recursive algorithm is used to traverse the subfolders under the specified file path to obtain all target configuration diagram files and record the complete path of each target file.

3. The format conversion method based on industrial configuration diagram element recognition according to claim 1, characterized in that: The example of constructing the configuration diagram includes: Create a configuration diagram object that meets the target management specification, set the configurable properties of the configuration diagram object, including canvas size and page size, dynamically initialize the configuration diagram elements based on the generated drawing instructions, and use the parsed element attribute information to configure the properties of the configuration diagram elements.

4. The format conversion method based on industrial configuration diagram element recognition as claimed in claim 3 is characterized in that: The logical framework and semantic structure of the configuration diagram include: Analyze the connection relationship, attribute information and script content of the configuration diagram elements, identify the hierarchical relationship, logical relationship and data flow between the elements, extract the semantic information of the elements, build the logical framework and semantic structure of the configuration diagram, and map the functions and semantics of the configuration diagram.

5. The format conversion method based on industrial configuration diagram element recognition according to claim 4 is characterized in that: Building a configuration diagram file that meets target management includes: Traverse all generated drawing instructions, draw configuration diagram elements in the order of instructions, draw configuration diagram elements based on the configuration diagram instance and according to the drawing instructions, and save the drawn configuration diagram elements as configuration diagram files that meet the target management specifications.

6. A format conversion system based on industrial configuration diagram element recognition, used to implement the format conversion method of any one of claims 1 to 5, comprising a configuration diagram parsing module, a configuration diagram conversion module, and a configuration diagram drawing module; The configuration diagram parsing module is used to parse configuration diagram files of different formats, extract configuration diagram element information, and generate drawing instructions; The configuration diagram conversion module is used to construct a configuration diagram instance, perform dynamic initialization and attribute configuration according to the drawing instruction, and generate a configuration diagram file that meets the target management specification; The configuration diagram drawing module is used to traverse all generated drawing instructions, draw configuration diagram elements according to the instruction sequence, and generate a configuration diagram file that meets the target management specification.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the format conversion method based on industrial configuration drawing element recognition described in any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the format conversion method based on industrial configuration drawing element recognition described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Configuration graphic element display method and device

    CN105630483A

  • Digital device and method for processing application thereon

    US20160373833A1