Flowchart association method and electronic device
By extracting the device data in the flowchart and generating an association table, the association relationship between the flowchart and data is established, and the problem of lack of association between the flowchart and data in the prior art is solved, and the effective integration of the flowchart and the data factory is realized.
Patent Information
- Application Number
- CN202110013430.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-06
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2041-01-06
AI Technical Summary
The lack of correlation between flowcharts stored in document form in the prior art and data, resulting in factories modeling design tools losing the potential to integrate applications.
By obtaining flowcharts, extracting device data, generating pipeline tables and instrument index tables, and associating device bit numbers with the data of these tables, establishing an association relationship between the flowcharts and data.
The relationship between flowcharts and data factories is realized, the isolation problem between data and documents is solved, the work efficiency of designers is improved, and the project execution difficulties caused by unified software tools are avoided.
Smart Images

Figure CN114781100B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of engineering digitization, and more specifically, relates to a flowchart association method and electronic equipment. Background Art
[0002] In the process of digital delivery, if flowcharts, logic diagrams or interlocking diagrams are involved, they will be modeled using intelligent flowchart design tools with databases. However, there are many such products, and the operation is cumbersome. Most of the existing technologies use CAD drawings; and the final completion data of design documents need to have a signing function, and the application of these intelligent flowchart design tools with databases may be limited by electronic file management.
[0003] More broadly, it is impossible to reuse these design tools to model factories already in service due to cost and quality control reasons. As a result, there is a lack of association between the factory's documents and databases, which makes these factories lose the potential for application integration. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a flowchart association method and an electronic device, which at least solves the problem of lack of association between flowcharts saved in the form of documents and data in the prior art.
[0005] In a first aspect, an embodiment of the present invention provides a flowchart association method, comprising:
[0006] Get the flow chart;
[0007] Extract the data of the device selected in the flow chart to obtain the extracted data;
[0008] Obtain pipeline table and instrument index table based on extracted data;
[0009] Match the equipment number and equipment name in the flow chart;
[0010] Associating the equipment bit number with the data in the instrument index table, wherein the data in the instrument index table includes the instrument bit number and related instrument data;
[0011] The instrument bit number is associated with the data of the pipeline table, and the data of the pipeline table includes the pipe section number and the pipe section grade number, so as to associate the equipment bit number in the flow chart with the data of the pipeline table.
[0012] Optionally, the flowchart includes an electronic document and / or a paper document;
[0013] For electronic files, before obtaining the steps of the flowchart, it includes selecting the location of the key equipment in the flowchart, identifying the corresponding equipment number and equipment name, and recording the page number and location of this electronic file;
[0014] For paper documents, the paper documents are converted into electronic documents.
[0015] Optional,
[0016] The data of the selected device in the extraction flow chart is obtained to extract the data, including:
[0017] Create a training dataset;
[0018] Based on the training data, a machine learning algorithm and a recommendation algorithm are used to obtain a page range where the extracted data is located;
[0019] Analyze the document structure of historical data and determine the relative position of the required extracted data in the flowchart through the enhanced classifier within the acquired page range;
[0020] Identify data at relative positions in the flow chart using recognition technology;
[0021] Normalize the recognized data by matching it to terms in a pre-set engineering term set.
[0022] Optionally, identifying the data at the relative position of the flowchart by using recognition technology includes identifying the attributes and position of the data in the document.
[0023] Optionally, the identification technology includes:
[0024] OCR technology recognition technology, document structure and position relative relationship recognition technology, contextual semantic relationship recognition technology and / or conversion PDF, double-layer PDF recognition technology.
[0025] Optionally, after the step of associating the instrument tag number with the data in the pipeline table, the method further includes:
[0026] Visualize the relationship between the equipment tag and the data in the pipeline table.
[0027] Optionally, matching the device bit number and the device name in the flowchart includes:
[0028] Identify the equipment number and equipment name in the flow chart through identification technology;
[0029] Match device tags and device names through semantic conversion technology.
[0030] Optionally, the flow chart includes a pipeline instrument flow chart, an interlocking logic diagram or a power distribution diagram.
[0031] Optionally, after the step of associating the instrument tag with the data in the pipeline table, the following steps are included:
[0032] Associate the factory 3D model or equipment 3D model through the equipment tag.
[0033] In a second aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0034] A memory storing executable instructions;
[0035] A processor, wherein the processor runs the executable instructions in the memory to implement the association method of the flowchart described in any one of the first aspects.
[0036] The present invention extracts the data in the pipeline table and the instrument index table from the acquired flow chart, matches the device name in the flow chart with the device bit number, associates the device bit number with the data in the pipeline table and the instrument index table, and establishes an association relationship between the flow chart and the data. Thus, when the extracted data is applied to the data factory, the purpose of associating the flow chart with the data of the data factory is achieved.
[0037] By establishing the association between data and documents, and the association between bit numbers, data information can be automatically identified and extracted from the pipeline table, instrument index table, and process equipment table, effectively solving the problems caused by the pipeline instrument flow chart that is not modeled using the intelligent flow chart design tool, allowing designers to continue to maintain their original working habits without being restricted by the software, and avoiding the difficulties in project execution caused by unified software tools. The pipeline instrument flow chart association method proposed in the present invention can be used as a technical means and a partial data source in the process of digital factory construction, and has a good auxiliary effect on digital factory construction.
[0038] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The above and other objects, features and advantages of the present invention will become more apparent through a more detailed description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present invention.
[0040] Figure 1 A flowchart showing a method for associating a flowchart of a first embodiment of the present invention;
[0041] Figure 2 A flowchart showing a method for associating the flowcharts of the second embodiment of the present invention;
[0042] Figure 3 A schematic diagram showing a method of manually selecting and recording the location of key equipment in a pipeline instrument flow chart according to an embodiment of the present invention;
[0043] Figure 4 A schematic diagram of a pipeline table according to an embodiment of the present invention is shown;
[0044] Figure 5 A schematic diagram showing the structure of an instrument index table according to an embodiment of the present invention is shown;
[0045] Figure 6 A schematic diagram of visualized associated fuzzy positioning in a pipeline instrument flow chart according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0046] The preferred embodiments of the present invention will be described in more detail below. Although the preferred embodiments of the present invention are described below, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0047] Embodiment 1:
[0048] like Figure 1 As shown, a flowchart association method includes:
[0049] Step S101: Obtain a flow chart;
[0050] Optionally, the flowchart includes an electronic document and / or a paper document;
[0051] For electronic files, before obtaining the steps of the flowchart, it includes selecting the location of the key equipment in the flowchart, identifying the corresponding equipment number and equipment name, and recording the page number and location of this electronic file;
[0052] For paper documents, convert the paper documents into electronic documents, then select the location of key equipment in the flow chart, identify the corresponding equipment position number and equipment name, and record the page number and location of the electronic document.
[0053] In specific application scenarios, manually select the location of key equipment in the pipeline instrument flow chart, identify the corresponding equipment number and equipment name, and record the page number and location of this document.
[0054] Step S102: extracting data of the device selected in the flowchart to obtain extracted data;
[0055] Optionally, extracting the data of the selected device in the flowchart to obtain the extracted data includes:
[0056] Create a training dataset;
[0057] Based on the training data, a machine learning algorithm and a recommendation algorithm are used to obtain a page range where the extracted data is located;
[0058] Analyze the document structure of historical data and determine the relative position of the required extracted data in the flowchart through the enhanced classifier within the acquired page range;
[0059] Identify data at relative positions in the flow chart using recognition technology;
[0060] Normalize the recognized data by matching it to terms in a pre-set engineering term set.
[0061] Optionally, identifying the data at the relative position of the flowchart by using recognition technology includes identifying the attributes and position of the data in the document.
[0062] Optionally, the identification technology includes:
[0063] OCR technology recognition technology, document structure and position relative relationship recognition technology, contextual semantic relationship recognition technology and / or conversion PDF, double-layer PDF recognition technology.
[0064] Convert PDF, double-layer PDF technology to convert PDF into editable text PDF.
[0065] Step S103: Obtaining a pipeline table and an instrument index table based on the extracted data;
[0066] The rules of the pipeline table and the instrument index table are preconfigured, and the extracted data is filled into the pipeline table and the instrument index table accordingly, so that the data is associated with the document through the pipeline table and the instrument index table.
[0067] Step S104: Match the device bit number and device name in the flowchart;
[0068] The device tag and the device name are matched to each other in a one-to-one correspondence, and each device tag corresponds to a unique device name.
[0069] Optionally, matching the device bit number and the device name in the flowchart includes:
[0070] Identify the equipment number and equipment name in the flow chart through identification technology;
[0071] Match device tags and device names through semantic conversion technology.
[0072] Step S105: Associating the equipment bit number with the data in the instrument index table, wherein the data in the instrument index table includes the instrument bit number and related instrument data;
[0073] Step S106: Associating the instrument bit number with the data in the pipeline table, the data in the pipeline table including the pipe segment number and the pipe segment grade number, thereby associating the equipment bit number in the flow chart with the data in the pipeline table.
[0074] Optionally, after the step of associating the instrument tag number with the data in the pipeline table, the method further includes:
[0075] Visualize the relationship between the equipment tag and the data in the pipeline table.
[0076] Optionally, the flow chart includes a pipeline instrument flow chart, an interlocking logic diagram or a power distribution diagram, etc.
[0077] Optionally, after the step of associating the instrument tag with the data in the pipeline table, the following steps are included:
[0078] Associate the factory 3D model or equipment 3D model through the equipment tag. Establish the association relationship between the equipment in the document and the factory 3D model or equipment 3D model through the equipment tag.
[0079] Embodiment 2:
[0080] like Figure 2 As shown in FIG. 1 , the method for associating a pipeline instrument flow chart mainly includes the following steps:
[0081] Step 1: Manually select the location of key equipment in the piping and instrumentation flow chart, identify the corresponding equipment number and equipment name, and record the page number and location of this document.
[0082] Pipeline instrument flow chart refers to electronic documents. For paper documents, they need to be scanned into electronic versions according to uniform size and requirements. The location of key equipment is manually marked in the electronic version of the pipeline instrument flow chart, and the corresponding equipment number, equipment name, and document page number and location are identified to create a training data set for later machine learning and recognition.
[0083] Step 2: Extract data from the pipeline table through data and document association technology.
[0084] Based on the training data set created in step 1, the approximate range of the page number is obtained through machine learning algorithms and recommendation algorithms to narrow the search space; the document structure of the historical data is analyzed, and the relative position of the required extraction equipment is determined by enhancing the classifier. In the recommended page number position and layout area, the text is recognized and combined by combining OCR technology and contextual semantic conversion relationships, and the recognized text combination is matched with the existing engineering terminology set (such as design temperature, design pressure, equipment position number, etc.) to obtain the correct attribute value and parameter value.
[0085] The property value refers to the collection of all project properties sorted from the document, and the parameter value refers to the numerical value corresponding to the property.
[0086] Step 3: Extract data from the instrument index table through data domain document association technology.
[0087] Step 4: Use semantic conversion technology to match the device number and device name.
[0088] In actual engineering projects, each device has a unique device number. In the early stage, a dictionary library of device numbers and device names is established, and the extracted device numbers and device names are matched with the data in the dictionary library to ensure the accuracy and consistency of the data.
[0089] Step 5: In the instrument index table, directly associate the instrument tag and related instrument data through the equipment tag.
[0090] Step 6: In the pipeline index table, the pipe section number and pipe section grade number are associated with the instrument bit number in the instrument index table, thereby indirectly establishing the association relationship between the equipment bit number and the pipe section number.
[0091] Step 7: Based on the above steps, establish the visual association positioning in the pipeline instrument flow chart.
[0092] With the association between data and documents as the support point, the relationship between the equipment number and the pipeline number, instrument number is established through direct or indirect dictionary matching. Then a visual interface is written to display the association between the instrument flow chart, instrument index table and pipeline index table in the front-end window, and realize the jump between different documents.
[0093] like Figure 3 As shown, two key devices 160-D-7203 and 160-D-7204 are selected in the box. Figure 3 The dashed box in the middle is the selected device. Record the location and device name of the two devices. Figure 3 The flowchart shown in the figure extracts the bit number data related to the two devices, and the bit number data includes directly related and indirectly related data. Figure 4 and Figure 5 The pipeline table and instrument index table shown in the figure are used to extract data from the document based on the pipeline table and instrument index table, establish an association between the data and the document, and then establish an association between the document data and the 3D model, and display the 3D model and the document. When clicking on the equipment related to the 3D model, the equipment in the corresponding document is selected through the pipeline table and instrument index table. The 3D model and the document are indirectly associated. When the equipment data in the document is modified, the associated data in the 3D model is modified synchronously, and the association diagram between the 3D model and the pipeline instrument flow chart document is obtained as shown in the figure below. Figure 6 shown. Figure 6 The dotted box in the middle is the area where the position number related to 160-D-7203 may appear, which is a fuzzy location.
[0094] Figure 3 and Figure 6 The text in does not affect the protection scope of the present invention, so Figure 3 and Figure 6 Unclear words and devices do not affect the protection scope of the present invention.
[0095] Embodiment three:
[0096] An embodiment of the present invention provides an electronic device including a memory and a processor.
[0097] A memory storing executable instructions;
[0098] A processor runs the executable instructions in the memory to implement the associated method of the flowchart.
[0099] The memory is used to store non-temporary computer-readable instructions. Specifically, the memory may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may, for example, include random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may, for example, include read-only memory (ROM), hard disk, flash memory, etc.
[0100] The processor may be a central processing unit (CPU) or other forms of processing units with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. In one embodiment of the present invention, the processor is used to run the computer-readable instructions stored in the memory.
[0101] Those skilled in the art should be able to understand that in order to solve the technical problem of how to obtain a good user experience, the present embodiment may also include well-known structures such as a communication bus and an interface, and these well-known structures should also be included in the protection scope of the present invention.
[0102] For detailed description of this embodiment, reference may be made to the corresponding descriptions in the aforementioned embodiments, which will not be repeated here.
[0103] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the associating method of the flowchart is implemented.
[0104] The computer-readable storage medium according to the embodiment of the present invention stores non-transitory computer-readable instructions, and when the non-transitory computer-readable instructions are executed by a processor, all or part of the steps of the above-mentioned methods of the embodiments of the present invention are executed.
[0105] The above-mentioned computer-readable storage media include, but are not limited to: optical storage media (e.g., CD-ROM and DVD), magneto-optical storage media (e.g., MO), magnetic storage media (e.g., magnetic tape or mobile hard disk), media with built-in rewritable non-volatile memory (e.g., memory card) and media with built-in ROM (e.g., ROM box).
[0106] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments.
Claims
1. A flowchart association method, characterized in that: include: Get the flow chart; Extract the data of the device selected in the flow chart to obtain the extracted data; Obtain pipeline table and instrument index table based on extracted data; Match the equipment number and equipment name in the flow chart; Associating the equipment bit number with the data in the instrument index table, wherein the data in the instrument index table includes the instrument bit number and related instrument data; Associating the instrument tag with the data in the pipeline table, wherein the data in the pipeline table includes the pipe segment number and the pipe segment grade number, thereby associating the equipment tag in the flow chart with the data in the pipeline table; The data of the selected device in the extraction flow chart is obtained to extract the data, including: Create a training dataset; Based on the training data, a machine learning algorithm and a recommendation algorithm are used to obtain a page range where the extracted data is located; Analyze the document structure of historical data and determine the relative position of the required extracted data in the flowchart through the enhanced classifier within the acquired page range; Identify data at relative positions in the flow chart using recognition technology; Normalize the recognized data by matching it to terms in a pre-set engineering term set.
2. The flowchart association method according to claim 1, characterized in that: The flowchart, including electronic and / or paper documents; For electronic files, before obtaining the steps of the flowchart, it includes selecting the location of the key equipment in the flowchart, identifying the corresponding equipment number and equipment name, and recording the page number and location of this electronic file; For paper documents, the paper documents are converted into electronic documents.
3. The flowchart association method according to claim 1, characterized in that: The identifying of data at relative positions of the flowchart by using an identification technology includes identifying properties and positions of the data in the document.
4. The flowchart association method according to claim 1, characterized in that: The identification technology includes: OCR technology recognition technology, document structure and position relative relationship recognition technology, contextual semantic relationship recognition technology and / or conversion PDF, double-layer PDF recognition technology.
5. The flowchart association method according to claim 1, characterized in that: After the step of associating the instrument tag with the data of the pipeline table, the method further includes: Visualize the relationship between the equipment tag and the data in the pipeline table.
6. The flowchart association method according to claim 1, characterized in that: The matching of the device bit number and the device name in the flowchart includes: Identify the equipment number and equipment name in the flow chart through identification technology; Match device tags and device names through semantic conversion technology.
7. The flowchart association method according to claim 1, characterized in that: The flow chart includes a pipeline instrument flow chart, an interlocking logic diagram or a power distribution diagram.
8. The flowchart association method according to claim 1, characterized in that: After the step of associating the instrument tag with the data of the pipeline table, the method further comprises: Associate the factory 3D model or equipment 3D model through the equipment tag.
9. An electronic device, characterized in that: The electronic device comprises: A memory storing executable instructions; A processor, wherein the processor runs the executable instructions in the memory to implement the associated method of the flowchart according to any one of claims 1 to 8.
Citation Information
Patent Citations
Digital factory construction method
CN110619128A
Engineering drawing association method
CN110704880A