Drawing processing method and device for digital ship electrical design platform
By identifying the attribute information of cable segments and equipment blocks in the digital ship electrical design platform and generating structured tables, the problems of low accuracy and low efficiency in drawing recognition in ship electrical design are solved, and efficient digital management is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-08
- Publication Date
- 2026-04-10
AI Technical Summary
Existing technologies in marine electrical design suffer from low accuracy and efficiency in drawing recognition, making it difficult to achieve batch processing and digital management, and lacking professional recognition solutions.
A method and apparatus for drawing processing for a digital marine electrical design platform are provided. By selecting a target object through a graphical user interface, the method identifies the attribute information of cable segments and equipment blocks using pre-configured recognition rules and patterns, and generates structured tables to adapt to different types of drawings.
Significantly reduces manual data entry time, improves the efficiency of digital conversion of drawings, ensures the accuracy of equipment and cable information, avoids human error, and enables batch processing and rapid data entry.
Smart Images

Figure CN121838201A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of drawing processing technology, and more specifically, to a drawing processing method and apparatus for a digital ship electrical design platform. Background Technology
[0002] Currently, in the field of marine electrical design and construction, external system drawings are typically created using general-purpose drafting software such as AutoCAD. Designers manually draw system diagrams based on various systems (such as power, lighting, fire alarm, and broadcasting). These drawings express equipment, cables, and their attributes using blocks, lines, and text. To achieve digital management and platform integration, some design units have attempted to input drawing information into databases through manual entry or OCR recognition technology, but this approach suffers from problems such as low recognition accuracy, low efficiency, and difficulty in batch processing.
[0003] While some CAD automation tools exist, these CAD plugins or secondary development tools mainly focus on general functions such as automatic drawing numbering, element standardization, and block replacement. Specialized solutions for electrical system diagram recognition in the shipbuilding industry are still relatively lacking. Summary of the Invention
[0004] In view of this, the purpose of this application is to provide a drawing processing method and device for a digital ship electrical design platform, so as to realize the professional identification of electrical system diagrams in the ship industry and improve the identification efficiency and accuracy.
[0005] This application provides a drawing processing method for a digital ship electrical design platform, the method comprising: In response to a first selection operation of a target drawing displayed in the graphical user interface of the drawing design software, a selected target object is determined from the target drawing, the target object including a target cable segment and a target equipment block connected to both ends of the target cable; wherein different types of drawings correspond to different identification rules; Based on the target recognition rules that correspond to the pre-configured graphic recognition mode and match the type of the target drawing, the attribute information of the target object is identified; Based on a preset table template that matches the type of the target drawing, the attribute information of the target object is structured to generate a target structured table, which is then displayed in the graphical user interface.
[0006] In some embodiments, in the drawing processing method for a digital ship electrical design platform, before identifying the attribute information of the target object based on a target recognition rule that matches the type of the target graphic according to a pre-configured graphic recognition mode, the method further includes: In response to a recognition mode configuration selection command, an image recognition mode is determined; the image recognition mode includes a first recognition mode and a second recognition mode. The first recognition mode identifies the attribute information of the target object based on the spatial distance between the attribute text and the target object's graphic coordinates; The second recognition mode parses the attribute information embedded in the target object's tile.
[0007] In some embodiments, in the drawing processing method for a digital ship electrical design platform, after identifying the attribute information of the target object, the method further includes: Establish the association between the attribute information and the target object in the target drawing; In response to a second selection operation for target attribute information, the target object associated with the target attribute information is located and identified in the target drawing based on the association.
[0008] In some embodiments, in the drawing processing method for a digital ship electrical design platform, in response to receiving a modification operation on the attribute information of a target object in a target structured table, the attribute information of the target object in the target structured table is modified; the modification operation is performed when the located and identified target object and the target attribute information do not match.
[0009] In some embodiments, the drawing processing method for a digital marine electrical design platform, wherein identifying the attribute information of the target object includes: Filter out object combinations whose distance between the two endpoints of the target cable segment connection and the target device block meets the first preset distance condition, and establish a mapping relationship between the object combinations; For a target cable segment, based on the coordinate information on the map, determine the text whose distance to the target cable segment meets the second preset distance condition, so as to identify the attribute information of the target cable segment; For the target device block, the attribute information embedded in the target device block is identified based on the pre-configured block structure rules.
[0010] In some embodiments, in the drawing processing method for a digital marine electrical design platform, identifying the attribute information of the target cable segment includes: Identify the text on both sides of the target cable segment to obtain the cable number and cable specifications; Identify the attribute information embedded in the target device block, including: identifying block attributes and extracting the device name and system number of the target device; The device tag number is generated by concatenating the system number and the device name.
[0011] In some embodiments, in the drawing processing method for a digital ship electrical design platform, the first selection operation is an operation of selecting a combination of objects; the combination of objects includes two equipment blocks and a cable segment between the two equipment blocks.
[0012] In some embodiments, after the drawing processing method for a digital ship electrical design platform performs structured processing on the attribute information of the target object to generate a target structured table, the method further includes: The attribute information of the target object is classified to determine the category of each attribute information. The attribute information of the target object is categorized and stored in a database table.
[0013] In some embodiments, the drawing processing method for a digital ship electrical design platform includes the following different types of drawings: system diagrams, link system diagrams, and vertical system diagrams. The target recognition rule corresponding to the system diagram is based on coordinate analysis of the left and right connection relationship of cable segments; The target identification rule corresponding to the link system diagram is to perform coordinate analysis based on multiple devices connected by a single cable segment. The target recognition rule corresponding to the vertical system diagram is based on coordinate analysis of the vertical wiring relationship.
[0014] In some embodiments, a drawing processing apparatus for a digital marine electrical design platform is also provided, the apparatus comprising: The first determining module is used to respond to a first selection operation of a target drawing displayed in the graphical user interface of the drawing design software, and to determine the selected target object from the target drawing. The target object includes a target cable segment and a target equipment block connected to both ends of the target cable. Different types of drawings correspond to different identification rules. The recognition module is used to recognize the attribute information of the target object based on the target recognition rules corresponding to the pre-configured graphic recognition mode and matching the type of the target drawing; The generation module is used to perform structuring processing on the attribute information of the target object based on a preset table template that matches the type of the target drawing, generate a target structured table, and display the target structured table in the graphical user interface.
[0015] This application provides a drawing processing method and apparatus for a digital ship electrical design platform. The method involves selecting target objects from target drawings displayed in the graphical user interface of drawing design software. The target objects include target cable segments and target equipment blocks connected to both ends of the target cable. Different types of drawings correspond to different recognition rules. Based on a pre-configured graphic recognition mode and a target recognition rule matching the type of the target drawing, the method identifies the attribute information of the target object. Based on a preset table template matching the type of the target drawing, the method performs structured processing on the attribute information of the target object to generate a target structured table, which is then displayed in the graphical user interface. By automating graphic analysis and attribute recognition, the method significantly reduces manual data entry time, improves the efficiency of digitization of external drawings, and enables batch processing and rapid data entry. Designing different recognition rules and table templates for different types of drawings ensures high accuracy of extracted equipment and cable information, avoids human error, and guarantees the consistency of design data. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 A flowchart illustrating the drawing processing method for a digital ship electrical design platform as described in an embodiment of this application is shown. Figure 2 This illustration shows a graphical user interface diagram of the graphic recognition mode selection method described in an embodiment of this application; Figure 3 This illustration shows a graphical user interface diagram for selecting a target drawing type according to an embodiment of this application; Figure 4 This application illustrates a system diagram example of an embodiment. Figure 5 This illustration shows a schematic diagram of the target structured table displayed in the graphical user interface described in an embodiment of this application; Figure 6 An example of a system link diagram according to an embodiment of this application is shown; Figure 7 This illustration shows another target structured table as presented in the graphical user interface described in an embodiment of this application; Figure 8 An example diagram of the vertical system described in this application is shown; Figure 9This illustration shows a preview result of the database table described in an embodiment of this application; Figure 10 This illustration shows a highlighted display diagram after the association is completed, as described in an embodiment of this application. Figure 11 A schematic diagram of the drawing processing device for a digital ship electrical design platform described in an embodiment of this application is shown. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the accompanying drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.
[0019] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0020] It should be noted that the term "comprising" will be used in the embodiments of this application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.
[0021] To achieve digital management and platform integration, external drawing information needs to be entered into the database through manual input or OCR recognition technology. Even though some CAD automation tools exist, these CAD plugins or secondary development tools mainly focus on general functions such as automatic drawing numbering, element standardization, and block replacement. There is still a lack of specialized solutions for the recognition of electrical system diagrams in the shipbuilding industry.
[0022] Based on this, this application provides a drawing processing method and apparatus for a digital ship electrical design platform. The method involves selecting target objects from target drawings displayed in the graphical user interface of drawing design software. The target objects include target cable segments and target equipment blocks connected to both ends of the target cable. Different types of drawings correspond to different recognition rules. Based on a pre-configured graphic recognition mode and a target recognition rule matching the type of the target drawing, the method identifies the attribute information of the target object. Based on a preset table template matching the type of the target drawing, the method performs structured processing on the attribute information of the target object to generate a target structured table, which is then displayed in the graphical user interface. By automating graphic analysis and attribute recognition, the method significantly reduces manual data entry time, improves the efficiency of digital conversion of external drawings, and enables batch processing and rapid data entry. Designing different recognition rules and table templates based on different types of drawings ensures high accuracy of extracted equipment and cable information, avoids human error, and guarantees the consistency of design data.
[0023] Please refer to Figure 1 , Figure 1 A flowchart illustrating the drawing processing method for a digital marine electrical design platform as described in an embodiment of this application is shown, such as... Figure 1 As shown, the method includes the following steps S101-S103: S101. In response to a first selection operation of a target drawing displayed in the graphical user interface of the drawing design software, a selected target object is determined from the target drawing, the target object including a target cable segment and a target equipment block connected to both ends of the target cable; wherein, different types of drawings correspond to different identification rules; S102. Based on the target recognition rules corresponding to the pre-configured graphic recognition mode and matching the type of the target drawing, identify the attribute information of the target object; S103. Based on the preset table template matching the type of the target drawing, the attribute information of the target object is processed in a structured manner to generate a target structured table, and the target structured table is displayed in the graphical user interface.
[0024] In step S101, in response to a first selection operation of a target drawing displayed in the graphical user interface of the drawing design software, a selected target object is determined from the target drawing. The target object includes a target cable segment and a target equipment block connected to both ends of the target cable. Different types of drawings correspond to different identification rules.
[0025] Here, different types of drawings correspond to different recognition rules, or different types of drawings correspond to different recognition modes.
[0026] External drawings exist in different drawing methods, including system diagrams, link diagrams, and vertical diagrams. Traditional tools are difficult to adapt to various structured graphic expressions. Based on this, the embodiments of this application adapt to multiple graphic modes and improve recognition compatibility by recognizing pattern classification and configurable recognition logic.
[0027] In other words, the different types of drawings include: system diagrams, link system diagrams, and vertical system diagrams.
[0028] In some embodiments, the target identification rule corresponding to the system diagram is based on coordinate analysis of the left and right connection relationships of cable segments; The target identification rule corresponding to the link system diagram is to perform coordinate analysis based on multiple devices connected by a single cable segment. The target recognition rule corresponding to the vertical system diagram is based on coordinate analysis of the vertical wiring relationship.
[0029] Here, the coordinate analysis specifically refers to the two-dimensional spatial coordinate data (X-axis and Y-axis coordinates) of the target objects (equipment blocks, cable segments) in the CAD drawings. By calculating the coordinate distance and judging the coordinate correlation, the precise matching of equipment and cables, as well as the matching of cables, equipment and corresponding text information, can be achieved.
[0030] Simply put, the devices connected to both ends of the cable need to be determined through coordinate analysis; the extracted text information also needs to be determined through coordinate analysis to identify the corresponding cable or device.
[0031] In existing technologies, there is still a problem of accurately matching graphics with attributes. Specifically, in CAD drawings, equipment and cable information may exist in the form of text or blocks, and the positional relationships are complex.
[0032] Based on this, in this embodiment of the application, before recognizing the attribute information of the target object based on the target recognition rules corresponding to the pre-configured image recognition mode and matching the type of the target image, the method further includes: In response to a recognition mode configuration selection command, an image recognition mode is determined; the image recognition mode includes a first recognition mode and a second recognition mode. The first recognition mode identifies the attribute information of the target object based on the spatial distance between the attribute text and the target object's graphic coordinates; The second recognition mode parses the attribute information embedded in the target object's tile.
[0033] In some embodiments, before recognizing external drawings, it is necessary to select the configuration to be recognized. Since text in drawings within drafting software may be drawn as text or expressed as blocks, a configuration selection of the mode is provided. In some embodiments, such as... Figure 2 As shown, Figure 2 A graphical user interface diagram illustrating the selection of graphic recognition mode according to an embodiment of this application is shown.
[0034] like Figure 2 As shown, when the option to identify attribute text based on location is checked, cable or equipment attributes will be extracted based on the position of the text on the drawing.
[0035] In some embodiments, it is also necessary to select the type of target drawing, such as Figure 3 As shown, Figure 3 A graphical user interface diagram illustrating the selection of target drawing type as described in an embodiment of this application is shown.
[0036] Conventional system diagrams are typically drawn with devices on the left and right, connected by cables in the middle. System diagram recognition can identify single or multiple cables simultaneously. Please refer to [reference needed]. Figure 4 , Figure 4 An example system diagram of an embodiment of this application is shown.
[0037] In response to a first selection operation of a target drawing displayed in the graphical user interface of the drawing design software, a target object is determined from the target drawing, wherein the first selection operation is an operation of selecting a group of objects; the group of objects includes two equipment blocks and a cable segment between the two equipment blocks.
[0038] In other words, by selecting two devices and one cable, or by selecting multiple cables and multiple devices, the prerequisite is that they must be selected in pairs.
[0039] Specifically, the first selection operation can be a point selection operation or a box selection operation.
[0040] The selected cable or equipment can be highlighted (e.g., highlighted in pink) to temporarily record its location on the diagram, clearly showing the selected cable or equipment.
[0041] In step S102, the attribute information of the target object is identified based on the target recognition rules corresponding to the pre-configured graphic recognition mode and matching the type of the target drawing.
[0042] Here, the CAD software was further developed using C++ to implement the recognition process.
[0043] Please refer to Figure 4 Taking a system diagram as an example, by identifying the selected line segments and the left and right blocks connected by the line segments, as well as the tag number above the line segments and the specifications below them, the cable information is initially filtered out using the coordinate information of the diagram. Then, the attribute information in the blocks is identified. By specifying that the upper part of the block is the abbreviation of the equipment name and the lower part is the system number, and the tag number is a combination of the system number and the abbreviation of the equipment name, the default equipment tag number is automatically generated.
[0044] Specifically, during the recognition process, the system first acquires the graphic area selected or pointed to by the user in the CAD drawing; analyzes the basic elements in the drawing, such as line segments (cables), blocks (equipment), and text (tags, specifications, names); then determines whether the text exists as a block attribute or as an independent text object; and then performs analysis based on the coordinate analysis logic corresponding to the recognition mode selected by the user (system diagram / link diagram / vertical diagram).
[0045] In some embodiments, identifying the attribute information of the target object includes: Filter out object combinations whose distance between the two endpoints of the target cable segment connection and the target device block meets the first preset distance condition, and establish a mapping relationship between the object combinations; For a target cable segment, based on the coordinate information on the map, determine the text whose distance to the target cable segment meets the second preset distance condition, so as to identify the attribute information of the target cable segment; For the target device block, the attribute information embedded in the target device block is identified based on the pre-configured block structure rules.
[0046] In some embodiments, identifying the attribute information of the target cable segment includes: Identify the text on both sides of the target cable segment to obtain the cable number and cable specifications; Identify the attribute information embedded in the target device block, including: identifying block attributes and extracting the device name and system number of the target device; The device tag number is generated by concatenating the system number and the device name.
[0047] Here, the line segment logical relationship analysis is as follows: Based on the CAD graphic coordinates, determine whether the two endpoints of the line segment connection coincide with or are close to the equipment block; use the spatial topology algorithm to establish the "cable-equipment" mapping relationship.
[0048] In some embodiments, after identifying the attribute information of the target object, the method further includes: Establish the association between the attribute information and the target object in the target drawing; In response to a second selection operation for target attribute information, the target object associated with the target attribute information is located and identified in the target drawing based on the association.
[0049] Here, the identifier can be highlighted, such as... Figure 10 As shown.
[0050] In step S103, based on a preset table template that matches the type of the target drawing, the attribute information of the target object is processed in a structured manner to generate a target structured table, and the target structured table is displayed in the graphical user interface.
[0051] Please refer to Figure 5 , Figure 5 This diagram illustrates the target structured table displayed in the graphical user interface; as shown below. Figure 5 As shown, a dialog box pops up in the graphical user interface, displaying the identified cable and equipment attributes, including equipment tag number, equipment name in Chinese and English, cable tag number, cable specifications, and cable supply type.
[0052] In some embodiments, the drawing processing method for a digital marine electrical design platform further includes: In response to receiving a modification operation on the attribute information of a target object in a target structured table, the attribute information of the target object in the target structured table is modified; the modification operation is performed when the located and identified target object and the target attribute information do not match.
[0053] In other words, the relevant graphics can be located from the attribute information, making it convenient for users to fill in or modify different attributes for different objects.
[0054] In some embodiments, data preview and interactive adjustments can also be performed, and the extracted device and cable information can be displayed in the recognition result dialog box; interactive functions such as attribute modification, selection of cable type and device type can be provided; and image highlighting positioning can be provided to assist users in confirming the recognition content.
[0055] Please refer to Figure 6 , Figure 6 This document illustrates an example of a system link diagram as described in an embodiment of this application. Link diagram identification is primarily for situations like broadcasting where multiple devices operate on a single link. The identification method is similar to conventional system diagram identification, involving the selection of devices and cables, but the pop-up target structured table differs slightly, as detailed below. Figure 7 As shown, the subsequent operations, technical routes, and systems Figure 1 That's all, I won't go into details.
[0056] Please refer to Figure 8 , Figure 8An example of a vertical system diagram according to an embodiment of this application is shown; some drawings are drawn from top to bottom, which means that vertical cables need to be identified. In this case, it is necessary to select or select the devices above and below and the cables in between. The pop-up dialog box is consistent with the system diagram identification, and the subsequent operations and technical routes are also consistent with the system diagram, so they will not be described again.
[0057] In some embodiments, after the drawing processing method for a digital ship electrical design platform performs structured processing on the attribute information of the target object to generate a target structured table, the method further includes: The attribute information of the target object is classified to determine the category of each attribute information. The attribute information of the target object is categorized and stored in a database table.
[0058] After selecting the equipment type and cable type, and performing conversion and identification, the resulting table data can be saved. The data is primarily stored in a backend database, currently using MySQL, which is easy to maintain. The main tables involved are as follows: ec_enginedata; ec_enginedata_pixel; ec_enginedata_property; ec_objecttype; ec_objecttypep.
[0059] These main tables will store the main data objects, object types, object attributes, and the objects' positions on the graph.
[0060] In other words, the recognition results are mapped to a database table, as follows.
[0061] ec_enginedata: Master information for storage devices / cables.
[0062] ec_enginedata_pixel: Records graphical coordinate information.
[0063] ec_enginedata_property: Stores attribute values.
[0064] ec_objecttype and ec_objecttypep: Store object type and attribute definition.
[0065] Perform a data saving operation and write the data to the MySQL database.
[0066] Information from external drawings is often difficult to directly interface with enterprise databases or platform structures. This invention designs a data structure compatible with MySQL databases and explicitly maps the recognition results to data tables such as ec_enginedata and ec_enginedata_property, facilitating unified management and application of the platform in the future.
[0067] Please refer to Figure 9 , Figure 9 A schematic diagram showing the preview result of the database table described in an embodiment of this application is shown.
[0068] Please refer to Figure 10 , Figure 10 A schematic diagram showing the highlighted display after the association is completed is shown; After users complete the "equipment-cable association identification" in the system, they can use the "view associated objects" function in the graphical user interface (such as clicking on a related data in the table). The system will automatically perform the "locate + highlight" operation, automatically jump to the area where the associated object is located in the CAD drawing, and highlight the "equipment blocks and cable segments that have been associated" with a striking color (such as green / blue in the figure).
[0069] In this way, users can see at a glance a specific piece of related data in the table and the corresponding object in the drawing, allowing for manual verification.
[0070] In traditional methods of digitizing drawing data, the recognition results are often not intuitive, and users find it difficult to confirm the results. The method described in this application improves the user's ability to visually control the recognition results through interactive methods such as dialog box highlighting and drawing positioning feedback.
[0071] Based on the same inventive concept, this application also provides a drawing processing device for a digital ship electrical design platform, which corresponds to the drawing processing method for a digital ship electrical design platform. Since the principle of the device in this application is similar to the drawing processing method for a digital ship electrical design platform described above, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0072] Please refer to Figure 11 , Figure 11 This invention illustrates a schematic diagram of a drawing processing device for a digital ship electrical design platform according to an embodiment of this application. The device includes: The first determining module 1101 is used to respond to a first selection operation of a target drawing displayed in the graphical user interface of the drawing design software, and to determine the selected target object from the target drawing. The target object includes a target cable segment and a target equipment block connected to both ends of the target cable. Different types of drawings correspond to different identification rules. The recognition module 1102 is used to recognize the attribute information of the target object based on the target recognition rules corresponding to the pre-configured graphic recognition mode and matching the type of the target drawing; The generation module 1103 is used to perform structuring processing on the attribute information of the target object based on a preset table template that matches the type of the target drawing, generate a target structured table, and display the target structured table in the graphical user interface.
[0073] In some embodiments, the drawing processing apparatus for a digital marine electrical design platform further includes: The second determining module is used to determine the image recognition mode in response to the recognition mode configuration selection instruction before recognizing the attribute information of the target object based on the target recognition rules corresponding to the pre-configured image recognition mode and matching the type of the target image; the image recognition mode includes a first recognition mode and a second recognition mode. The first recognition mode identifies the attribute information of the target object based on the spatial distance between the attribute text and the target object's graphic coordinates; The second recognition mode parses the attribute information embedded in the target object's tile.
[0074] In some embodiments, the drawing processing apparatus for a digital marine electrical design platform further includes: The positioning module is used to establish the association between the attribute information of the target object and the target object in the target drawing after identifying the attribute information of the target object; In response to a second selection operation for target attribute information, the target object associated with the target attribute information is located and identified in the target drawing based on the association.
[0075] In some embodiments, the drawing processing apparatus for a digital marine electrical design platform further includes: The modification module is used to modify the attribute information of the target object in the target structured table in response to receiving a modification operation on the attribute information of the target object in the target structured table; the modification operation is performed when the located and identified target object and the target attribute information do not match.
[0076] In some embodiments, in the drawing processing device for the digital marine electrical design platform, the identification module, when identifying the attribute information of the target object, is specifically used for: Filter out object combinations whose distance between the two endpoints of the target cable segment connection and the target device block meets the first preset distance condition, and establish a mapping relationship between the object combinations; For a target cable segment, based on the coordinate information on the map, determine the text whose distance to the target cable segment meets the second preset distance condition, so as to identify the attribute information of the target cable segment; For the target device block, the attribute information embedded in the target device block is identified based on the pre-configured block structure rules.
[0077] In some embodiments, the drawing processing device for a digital marine electrical design platform, when identifying the attribute information of the target cable segment, specifically uses the identification module for: Identify the text on both sides of the target cable segment to obtain the cable number and cable specifications; Specifically used for identifying the attribute information embedded within the target device block: Identify the tile attributes and extract the device name and system number of the target device; The device tag number is generated by concatenating the system number and the device name.
[0078] In some embodiments, in the drawing processing device for the digital ship electrical design platform, the first selection operation is an operation of selecting a combination of objects; the combination of objects includes two equipment blocks and a cable segment between the two equipment blocks.
[0079] In some embodiments, the drawing processing apparatus for a digital marine electrical design platform further includes: The storage module is used to classify the attribute information of the target object after performing structured processing on the attribute information of the target object to generate a target structured table, and to determine the category of each attribute information. The attribute information of the target object is categorized and stored in a database table.
[0080] In some embodiments, the drawing processing device for the digital ship electrical design platform includes the following different types of drawings: system diagrams, link system diagrams, and vertical system diagrams. The target recognition rule corresponding to the system diagram is based on coordinate analysis of the left and right connection relationship of cable segments; The target identification rule corresponding to the link system diagram is to perform coordinate analysis based on multiple devices connected by a single cable segment. The target recognition rule corresponding to the vertical system diagram is based on coordinate analysis of the vertical wiring relationship.
[0081] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the method embodiments, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection can be through some communication interfaces; the indirect coupling or communication connection of devices or modules can be electrical, mechanical, or other forms.
[0082] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0083] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0084] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the 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 to cause a computer device (which may be a personal computer, a platform server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0085] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A drawing processing method for a digital ship electrical design platform, characterized in that, The method includes: In response to a first selection operation of a target drawing displayed in the graphical user interface of the drawing design software, a selected target object is determined from the target drawing, the target object including a target cable segment and a target equipment block connected to both ends of the target cable; wherein different types of drawings correspond to different identification rules; Based on the target recognition rules that correspond to the pre-configured graphic recognition mode and match the type of the target drawing, the attribute information of the target object is identified; Based on a preset table template that matches the type of the target drawing, the attribute information of the target object is structured to generate a target structured table, which is then displayed in the graphical user interface.
2. The drawing processing method for a digital ship electrical design platform according to claim 1, characterized in that, Before recognizing the attribute information of the target object based on the target recognition rules corresponding to the pre-configured image recognition pattern and matching the type of the target image, the method further includes: In response to a recognition mode configuration selection command, an image recognition mode is determined; the image recognition mode includes a first recognition mode and a second recognition mode. The first recognition mode identifies the attribute information of the target object based on the spatial distance between the attribute text and the target object's graphic coordinates; The second recognition mode parses the attribute information embedded in the target object's tile.
3. The drawing processing method for a digital ship electrical design platform according to claim 1, characterized in that, After identifying the attribute information of the target object, the method further includes: Establish the association between the attribute information and the target object in the target drawing; In response to a second selection operation for target attribute information, the target object associated with the target attribute information is located and identified in the target drawing based on the association.
4. The drawing processing method for a digital ship electrical design platform according to claim 3, characterized in that, The method further includes: In response to receiving a modification operation on the attribute information of a target object in a target structured table, the attribute information of the target object in the target structured table is modified; the modification operation is performed when the located and identified target object and the target attribute information do not match.
5. The drawing processing method for a digital ship electrical design platform according to claim 1, characterized in that, The identification of the attribute information of the target object includes: Filter out object combinations whose distance between the two endpoints of the target cable segment and the target device block meets the first preset distance condition, and establish a mapping relationship between the object combinations; For a target cable segment, based on the coordinate information on the map, determine the text whose distance to the target cable segment meets the second preset distance condition, so as to identify the attribute information of the target cable segment; For the target device block, the attribute information embedded in the target device block is identified based on the pre-configured block structure rules.
6. The drawing processing method for a digital ship electrical design platform according to claim 5, characterized in that, The attribute information for identifying the target cable segment includes: Identify the text on both sides of the target cable segment to obtain the cable number and cable specifications; Identify the attribute information embedded in the target device block, including: identifying block attributes and extracting the device name and system number of the target device; The device tag number is generated by concatenating the system number and the device name.
7. The drawing processing method for a digital ship electrical design platform according to claim 1, characterized in that, The first selection operation is the operation of selecting a combination of objects; the combination of objects includes two device blocks and a cable segment between the two device blocks.
8. The drawing processing method for a digital ship electrical design platform according to claim 1, characterized in that, After structuring the attribute information of the target object to generate a target structured table, the method further includes: The attribute information of the target object is classified to determine the category of each attribute information. The attribute information of the target object is categorized and stored in a database table.
9. The drawing processing method for a digital ship electrical design platform according to claim 1, characterized in that, The different types of drawings include: system diagrams, link system diagrams, and vertical system diagrams; The target recognition rule corresponding to the system diagram is based on coordinate analysis of the left and right connection relationship of cable segments; The target identification rule corresponding to the link system diagram is to perform coordinate analysis based on multiple devices connected by a single cable segment. The target recognition rule corresponding to the vertical system diagram is based on coordinate analysis of the vertical wiring relationship.
10. A drawing processing device for a digital ship electrical design platform, characterized in that, The device includes: The first determining module is used to respond to a first selection operation of a target drawing displayed in the graphical user interface of the drawing design software, and to determine the selected target object from the target drawing. The target object includes a target cable segment and a target equipment block connected to both ends of the target cable. Different types of drawings correspond to different identification rules. The recognition module is used to recognize the attribute information of the target object based on the target recognition rules corresponding to the pre-configured graphic recognition mode and matching the type of the target drawing; The generation module is used to perform structuring processing on the attribute information of the target object based on a preset table template that matches the type of the target drawing, generate a target structured table, and display the target structured table in the graphical user interface.