Drawing data processing method and device, computer equipment and readable storage medium

Through automated drawing data processing methods, the problem of manual input errors in screen cabinet ingredients is solved. By determining the equipment type and combining the line segment entity to generate target data tables, the accuracy and efficiency of data processing are improved, and the ingredients and tickling of screen cabinets are improved. The quality of the line.

CN118965466APending Publication Date: 2024-11-15CYG SUNRI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410973602.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In electrical engineering and automation equipment manufacturing, manual input of ingredients information during screen cabinet preparation is prone to typing errors, omissions or misunderstandings of drawings, resulting in frequent feeding and returning materials during screen cabinet wiring, affecting efficiency and quality.

Method used

Through a drawing data processing method, the drawing data to be processed is obtained, the device type is determined to accurately locate the target area of ​​the two-dimensional data table, the line segment entity is combined to form a cell entity, and the target data table is generated based on the cell entity and text content, so as to achieve Automatic drawing data processing.

Benefits of technology

It improves the accuracy and efficiency of drawing data processing, reduces manual errors, ensures the integrity and accuracy of data, and improves the efficiency and quality of screen cabinet ingredients and wiring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118965466A_ABST
    Figure CN118965466A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of computers, and provides a drawing data processing method and device.The drawing data processing method comprises the steps that to-be-processed drawing data are obtained, and the to-be-processed drawing data comprise a two-dimensional data table of materials needed by specified equipment; determining a target area of the two-dimensional data table in the to-be-processed drawing data based on the equipment type of the specified equipment; combining the plurality of line segment entities in the target area to obtain a plurality of cell entities with a relative position relationship; and generating a target data table based on each cell entity, the text content of each cell entity and a table structure of the target data table. According to the invention, automatic drawing data processing can be realized, and the accuracy and processing efficiency of drawing data processing are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and in particular, relates to a drawing data processing method, device, computer equipment and computer-readable storage medium. Background Art

[0002] Cabinet batching and wiring are key links in electrical engineering and automation equipment manufacturing, involving the accurate assembly of various electrical components and wires into the cabinet according to the design drawings. The efficiency and quality of this process directly affect the performance and reliability of the final product.

[0003] When the ingredients of the panel cabinet are manually input during the preparation period for panel cabinet wiring, manual input of ingredient information is prone to typing errors, omissions, misunderstanding of drawings, etc. These errors are often discovered during the panel cabinet wiring process, resulting in frequent material replenishment and return, causing frequent obstructions to the production line, thereby affecting efficiency and quality. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a drawing data processing method, apparatus, computer equipment and computer-readable storage medium, which can realize automated drawing data processing and improve the accuracy and efficiency of drawing data processing.

[0005] A first aspect of an embodiment of the present application provides a drawing data processing method, comprising:

[0006] Acquire drawing data to be processed, wherein the drawing data to be processed includes a two-dimensional data table of materials required for the specified equipment;

[0007] Based on the device type of the designated device, determining a target area of ​​the two-dimensional data table in the drawing data to be processed;

[0008] Combining multiple line segment entities within the target area to obtain multiple cell entities having a relative position relationship;

[0009] The target data table is generated based on each of the cell entities, the text content of each of the cell entities and the table structure of the target data table.

[0010] In an implementation of the first aspect, determining a target area of ​​the two-dimensional data table in the drawing data to be processed based on the device type of the designated device includes:

[0011] Obtain the drawing layout corresponding to the device type of the specified device;

[0012] Based on the drawing layout, determining the starting point coordinates and the ending point coordinates associated with the two-dimensional data table in the drawing data to be processed;

[0013] A square area determined by the starting point coordinates and the end point coordinates is determined as a target area of ​​the two-dimensional data table in the drawing data to be processed.

[0014] In an implementation of the first aspect, combining the multiple line segment entities in the target area to obtain multiple cell entities having a relative position relationship includes:

[0015] Acquire the starting endpoint and the ending endpoint of each line segment entity in the target area, wherein the starting endpoint includes a first component in the horizontal direction and a second component in the vertical direction;

[0016] Grouping the multiple line segment entities to obtain multiple first line segment groups in a horizontal direction and multiple second line segment groups in a vertical direction;

[0017] The plurality of first line segment groups or the plurality of second line segment groups are used as a plurality of line segment groups to be sorted, and the plurality of line segment groups to be sorted are sorted to obtain a plurality of third line segment groups;

[0018] Based on the line segment entities of the same position order in any two adjacent third line segment groups, a plurality of cell entities having a relative position relationship are determined.

[0019] In an implementation of the first aspect, the multiple first line segment groups are used as multiple line segment groups to be sorted, and sorting the multiple line segment groups to be sorted to obtain multiple third line segment groups includes:

[0020] Based on a first sorting condition, the plurality of line segment groups to be sorted are sorted to obtain a plurality of ordered line segment groups, wherein the first sorting condition is determined based on a second component of a start endpoint of a line segment entity;

[0021] Based on a second sorting condition, each of the ordered line segment groups is sorted to obtain a third line segment group corresponding to each of the ordered line segment groups, wherein the second sorting condition is determined based on a first component of a starting endpoint of a line segment entity.

[0022] In an implementation of the first aspect, the multiple second line segment groups are used as multiple line segment groups to be sorted, and sorting the multiple line segment groups to be sorted to obtain multiple third line segment groups includes:

[0023] Based on a third sorting condition, the plurality of line segment groups to be sorted are sorted to obtain a plurality of ordered line segment groups, wherein the third sorting condition is determined based on a first component of a start endpoint of a line segment entity;

[0024] Based on a fourth sorting condition, each of the ordered line segment groups is sorted to obtain a third line segment group corresponding to each of the ordered line segment groups, wherein the fourth sorting condition is determined based on the second component of the start endpoint of the line segment entity.

[0025] In an implementation of the first aspect, generating the target data table based on each of the cell entities, the text content of each of the cell entities, and the table structure of the target data table includes:

[0026] Based on each of the cell entities and the text content of each of the cell entities, an intermediate data table having the same table layout as the two-dimensional data table is generated;

[0027] Based on the table structure of the target data table, determining the missing fields in the intermediate data table;

[0028] The missing field and the actual value of the missing field are read from other data tables associated with the designated device to generate a target data table that conforms to the table structure.

[0029] In an implementation of the first aspect, the method further includes:

[0030] Displaying a drawing data processing interface, wherein the drawing data processing interface includes a drawing import function item and a drawing processing function item;

[0031] In response to a triggering operation on the drawing import function item, determining drawing data to be processed selected from a storage space;

[0032] In response to the triggering operation on the processing function item, a drawing data processing operation on the drawing data to be processed is started.

[0033] In an implementation of the first aspect, the drawing data processing interface further includes a drawing data display component, a progress display component, and a save setting item;

[0034] The progress display component is used to display the processing progress of the drawing data to be processed in a target style;

[0035] The drawing data display component is used to display the associated data of the drawing data to be processed;

[0036] The save setting item is used to set the storage path of the target data table generated by the drawing data processing operation.

[0037] A second aspect of an embodiment of the present application provides a drawing data processing device, including:

[0038] An acquisition module, used for acquiring drawing data to be processed, wherein the drawing data to be processed includes a two-dimensional data table of materials required for the specified equipment;

[0039] A determination module, configured to determine a target area of ​​the two-dimensional data table in the drawing data to be processed based on a device type of the designated device;

[0040] A combination module, used for combining multiple line segment entities in the target area to obtain multiple cell entities with relative position relationship;

[0041] A generating module is used to generate the target data table based on each of the cell entities, the text content of each of the cell entities and the table structure of the target data table.

[0042] A third aspect of an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the computer program.

[0043] A fourth aspect of an embodiment of the present application 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 steps of the method described in the first aspect are implemented.

[0044] In the first aspect of the embodiment of the present application, the target area where the two-dimensional data table corresponding to the required material is located is accurately located in the drawing data to be processed by the device type, and a plurality of cell entities with a first position relationship are obtained by combining all line segment entities in the target area, and finally, the target data table is generated by the cell entity and the text content in the cell entity. The entire process can ensure the accuracy and integrity of the data and improve the data processing efficiency through the automated drawing data processing method.

[0045] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0047] Figure 1 It is a schematic diagram of the flow chart of the drawing data processing method provided in the embodiment of the present application;

[0048] Figure 2 An example diagram of a two-dimensional data representation provided in an embodiment of the present application;

[0049] Figure 3 is a schematic diagram of grouping multiple line segment entities provided in an embodiment of the present application;

[0050] Figure 4 is an example diagram of an intermediate data table provided in an embodiment of the present application;

[0051] Figure 5 An example diagram of a target data table provided in an embodiment of the present application;

[0052] Figure 6 Other data representation examples associated with a specified device provided in the application embodiment;

[0053] Figure 7 Flowchart of a method for determining a target area provided in an embodiment of the present application;

[0054] Figure 8 A flow chart of a method for determining a cell entity provided in an embodiment of the present application;

[0055] Fig. 9 Flowchart of a method for sorting multiple line segment groups provided in an embodiment of the present application;

[0056] Fig.10 A flowchart of another method for sorting multiple line segment groups provided in an embodiment of the present application;

[0057] Fig.11 Flowchart of a method for generating a target data table provided in an embodiment of the present application;

[0058] Fig.12 An operation flow chart based on a drawing data processing interface provided in an embodiment of the present application;

[0059] Fig.13 An example diagram of a drawing data processing interface provided in an embodiment of the present application;

[0060] Fig.14 is a schematic diagram of a drawing data processing device provided in an embodiment of the present application;

[0061] Fig.15 It is a schematic diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0063] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0064] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0065] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0066] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0067] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0068] In one embodiment, Figure 1 As shown, a drawing data processing method is provided, which is described by taking the method applied to a computer device as an example, and includes the following steps S101 to S104, wherein:

[0069] Step S101, obtaining drawing data to be processed, wherein the drawing data to be processed includes a two-dimensional data table of materials required for a specified device.

[0070] In the application, the drawing data to be processed is the design drawing data of the specified equipment, including material data in the form of a two-dimensional data table.

[0071] For example, Figure 2 The figure shows a visualization diagram of the drawing data to be processed for the designated equipment "communication cabinet", in which number 1 shows a two-dimensional data table of materials required for assembling the "communication cabinet" (number 2 in the figure shows the two-dimensional data table indicated by number 1).

[0072] Step S102: determining a target area of ​​the two-dimensional data table in the drawing data to be processed based on the device type of the designated device.

[0073] In applications, when designing drawings, a fixed drawing layout is usually designed for each device type. In this way, for each device type, the area where its two-dimensional data table is located in the drawing is fixed. Pre-set "device type-starting point coordinates-end point coordinates", where the starting point coordinates and the end point coordinates can determine the target area where the two-dimensional data table is located in the drawing layout of the corresponding device type.

[0074] Exemplarily, "Device Type A-(245, 292)-(415, 31)" indicates that in the drawing layout corresponding to device type A, the two-dimensional data table is in the target area surrounded by the starting point coordinates (245, 292) and the end point coordinates (415, 31), which is a square area.

[0075] Step S103, combining the multiple line segment entities in the target area to obtain multiple cell entities having a relative position relationship.

[0076] In the application, the target area includes all line segment entities that can form a two-dimensional data table. The line segment entities are represented by a starting endpoint and an ending endpoint. The starting endpoint and the ending endpoint both include a first component in the horizontal direction and a second component in the vertical direction. The computer device obtains multiple first line segment groups in the horizontal direction and multiple second line segment groups in the vertical direction through grouping operations. The second component of the starting endpoint of the line segment entities in each first line segment group is the same. The first component of the starting endpoint of the line segment entities in each second line segment group is the same. The computer device can obtain two line segment entities relative to each cell by sorting the multiple second line segment groups or the multiple first line segment groups, and can obtain the associated cell entity through the two relative line segment entities.

[0077] For example, Figure 3 As shown, the dotted lines indicate a plurality of first line segment groups in the horizontal direction, and the solid lines indicate a plurality of second line segment groups in the vertical direction. The plurality of line segment entities initially read by the computer device may be out of order.

[0078] It should be noted that when a two-dimensional data table is read row by row, when the row interval or column interval size is fixed, rows and columns can be generated according to the characteristics of the X and Y axes, that is, along the Y axis, each row is generated by gradually decreasing the row interval value from the maximum value of the Y axis, and along the X axis, each column is generated by gradually increasing the column interval value from the minimum value of the X axis, thereby determining all cells of the two-dimensional data table.

[0079] Step S104: generating the target data table based on each of the cell entities, the text content of each of the cell entities and the table structure of the target data table.

[0080] In the application, for a cell entity, the computer device can identify the text content in the area corresponding to the cell entity through a preset text recognition method. The computer device can first generate an intermediate data table that is consistent with the table layout of the two-dimensional data table in the drawing data to be processed based on multiple cell entities, other cell entities that have a relative position relationship with each cell entity, and the text content in the cell entity. If the table structure of the target data table is consistent with the intermediate data table, the intermediate data table is directly used as the target data table. If the table structure of the target data table is inconsistent with the intermediate data table, the missing fields that cannot be provided by the intermediate data table are determined according to the table structure of the target data table, and the missing fields and the actual values ​​of the missing fields are read from other data tables associated with the specified device to generate a target data table that conforms to the table structure.

[0081] For example, based on Figure 2 The drawing data to be processed is generated Figure 4 The intermediate data table shown is Figure 5 The table structure of the target data table shown (including information such as model, name, material code, etc., which facilitates quick search of materials to find the material code) contains missing fields that cannot be provided by the intermediate data table. The computer device reads other data tables associated with the specified device (such as Figure 6 "Material Accessory Selection" shown in the figure), obtain the actual value of the missing field, and finally generate the target data table Figure 5 .

[0082] In this embodiment, the target area where the two-dimensional data table corresponding to the required material is located is accurately located in the drawing data to be processed through the device type, and through the combination operation of all line segment entities in the target area, a plurality of cell entities with a first position relationship are obtained, and finally, the target data table is generated through the cell entity and the text content in the cell entity. The entire process can ensure the accuracy and integrity of the data and improve the data processing efficiency through the automated drawing data processing method.

[0083] In one embodiment, Figure 7As shown, the implementation process of step S102 includes the following steps S201 to S203. Among them:

[0084] Step S201, obtaining a drawing layout corresponding to the device type of the specified device.

[0085] In applications, drawing layouts are usually designed based on device types. Usually, one device type corresponds to one drawing layout, and the starting point coordinates and end points of the area where the two-dimensional data table is located in each drawing layout are roughly the same.

[0086] Step S202: Based on the drawing layout, determine the starting point coordinates and the ending point coordinates associated with the two-dimensional data table in the drawing data to be processed.

[0087] In the application, the computer device can determine the starting point coordinates and the ending point coordinates of the square area carrying the two-dimensional data table in the current drawing layout by reading the relationship between the preset drawing layout and the starting point coordinates and the ending point coordinates of the area to which the two-dimensional data table belongs, wherein the starting point coordinates and the ending point coordinates are the coordinates of the two vertices on the diagonal of the square area.

[0088] Step S203: determining a square area determined by the starting point coordinates and the end point coordinates as a target area of ​​the two-dimensional data table in the drawing data to be processed.

[0089] In the application, the starting point coordinates and the end point coordinates are the coordinates of two vertices on the diagonal line of the square area, and the computer device determines the square area determined by the starting point coordinates and the end point coordinates as the target area of ​​the two-dimensional data table in the drawing data to be processed.

[0090] In this embodiment, by determining the starting point and end point coordinates of the two-dimensional data table on the drawing, the position of the data table in the drawing can be accurately located, thereby avoiding errors that may be caused by manual identification.

[0091] In one embodiment, Figure 8 As shown, the implementation process of step S103 includes the following steps S301 to S304:

[0092] Step S301: Acquire the starting endpoint and the ending endpoint of each line segment entity in the target area, wherein the starting endpoint includes a first component in the horizontal direction and a second component in the vertical direction.

[0093] In the application, each line segment entity in the target area is represented by a start endpoint and an end endpoint. The start endpoint is represented by the first component in the horizontal direction and the second component in the vertical direction, and the end endpoint is also represented by the first component in the horizontal direction and the second component in the vertical direction. For example, for line segment AB, A is the start endpoint and B is the end endpoint.

[0094] Step S302: grouping the plurality of line segment entities to obtain a plurality of first line segment groups in a horizontal direction and a plurality of second line segment groups in a vertical direction.

[0095] In the application, the computer device obtains a grouping condition to group multiple line segment entities. The grouping condition includes a first grouping condition and a second grouping condition. The first grouping condition is that the second component of the starting endpoint of the line segment entity is the same as the second component of the ending endpoint. The second grouping condition is that the first component of the starting endpoint of the line segment entity is the same as the first component of the ending endpoint. The two-dimensional table consists of multiple line segment entities in the horizontal direction and multiple line segment entities in the vertical direction. The computer device can obtain multiple first line segment groups in the horizontal direction by grouping according to the first grouping condition, and can obtain multiple second line segment groups in the vertical direction by grouping according to the second grouping condition.

[0096] For example, Figure 3 In the figure, the multiple first line segment groups are shown by the dotted lines, and the multiple second line segment groups are shown by the solid lines. For example, the first line segment group shown by number a includes 4 line segment entities, and the second component of the starting endpoint of each line segment entity is the same (Y component). For example, the second line segment group shown by number b includes 4 line segment entities, and the first component of the starting endpoint of each line segment entity is the same (X component). Initially, the line segment entities obtained by the computer are mostly disordered.

[0097] Step S303: taking the multiple first line segment groups or the multiple second line segment groups as multiple line segment groups to be sorted, and sorting the multiple line segment groups to be sorted to obtain multiple third line segment groups.

[0098] In the application, if the third line segment group is obtained based on the sorting of the first line segment group, the third line segment groups are arranged in ascending or descending order according to the value of the second component, and the line segment entities within each third line segment group are sorted in ascending or descending order according to the value of the first component.

[0099] If the third line segment group is obtained based on the sorting of the second line segment group, the third line segment groups are arranged in ascending order according to the value of the first component, and the line segment entities within each third line segment group are arranged in ascending or descending order according to the value of the second component.

[0100] Step S304: determining a plurality of cell entities having a relative position relationship based on the line segment entities of the same position order in any two adjacent third line segment groups.

[0101] In the application, any two adjacent third line segment groups and line segment entities with the same position order constitute a cell entity, and finally each cell entity and the relative position relationship between the cell entities can be obtained. For example, for any cell entity, its adjacent cell entities in the four relative positions of up, down, left, and right can be obtained.

[0102] In this embodiment, the efficiency of searching for cells can be improved by first grouping and then sorting to determine the cell entity.

[0103] In one embodiment, Fig. 9 As shown, when the plurality of first line segment groups are used as the plurality of line segment groups to be sorted, the implementation process of step S303 includes the following steps S401 to S402. Among them:

[0104] Step S401 : sorting the plurality of line segment groups to be sorted based on a first sorting condition to obtain a plurality of ordered line segment groups, wherein the first sorting condition is determined based on a second component of a start endpoint of a line segment entity.

[0105] In the application, the computer device uses the first sorting condition to sort the multiple first line segment groups to obtain multiple ordered line segment groups. The ordered line segment groups are arranged in descending or ascending order according to the second component. The first sorting condition is determined according to the second component of the starting endpoint of the line segment entity, and the second component of the starting endpoint of each line segment entity in each first line segment group is the same (the second component of the ending endpoint is also the same). The second components of the starting endpoints of line segment entities in different first line segment groups are different (the second components of the ending endpoints are also the same).

[0106] Step S402: sorting each of the ordered line segment groups based on a second sorting condition to obtain a third line segment group corresponding to each of the ordered line segment groups, wherein the second sorting condition is determined based on a first component of a start endpoint of a line segment entity.

[0107] In the application, for each ordered line segment group, the computer device uses the second sorting condition to perform secondary sorting. The second component of the starting endpoint of each line segment entity in the separate ordered line segment group is the same (the second component of the ending endpoint is also the same). The second sorting condition is set relative to the separate ordered line segment group, and is used to arrange multiple line segment entities in the separate ordered line segment group in ascending or descending order according to the first component of the starting endpoint.

[0108] In this embodiment, the first line segment group is used as the line segment group to be sorted, and multiple cell entities that meet the requirements are obtained through two sortings. In this way, the efficiency of determining the cell entities can be improved.

[0109] In one embodiment, Fig.10In the case where the plurality of second line segment groups are used as the plurality of line segment groups to be sorted, the implementation process of step S303 includes the following steps S501 to S502. Among them:

[0110] Step S501 : sorting the plurality of line segment groups to be sorted based on a third sorting condition to obtain a plurality of ordered line segment groups, wherein the third sorting condition is determined based on a first component of a start endpoint of a line segment entity.

[0111] In the application, when multiple second line segment groups are used as multiple line segment groups to be sorted, multiple line segment entities in the vertical direction are combined to obtain a cell entity. The first components of the starting endpoints of the line segment entities in the same second line segment group are the same and the second components are different. Correspondingly, the first components of the ending endpoints of the line segment entities in the same second line segment group are the same and the second components are different. The computer device performs a first sorting of the multiple line segment groups to be sorted according to the third sorting condition, and essentially arranges them in ascending order according to the first component value of the starting endpoint, to obtain multiple ordered line segment groups sorted in ascending order according to the first component. The third sorting condition is to sort the multiple ordered line segment groups as a whole. In essence, the line segment entities with the same first component are sorted.

[0112] Step S502: sorting each of the ordered line segment groups based on a fourth sorting condition to obtain a third line segment group corresponding to each of the ordered line segment groups, wherein the fourth sorting condition is determined based on the second component of the start endpoint of the line segment entity.

[0113] In the application, the fourth sorting condition is to sort multiple line segment entities in a single ordered line segment group. For each ordered line segment group, the computer device sorts the line segment entities contained therein according to the fourth sorting condition, essentially arranging them in ascending or descending order according to the value of the second component of the starting endpoint of the line segment entity.

[0114] In this embodiment, the first line segment group is used as the line segment group to be sorted, and multiple cell entities that meet the requirements are obtained through two sortings. In this way, the efficiency of determining the cell entities can be improved.

[0115] In one embodiment, Fig.11 The implementation process of step S104 includes the following steps S601 to S603. Among them:

[0116] Step S601: generating an intermediate data table having the same table layout as the two-dimensional data table based on each of the cell entities and the text content of each of the cell entities.

[0117] In the application, for a cell entity, the computer device can identify the text content in the area corresponding to the cell entity through a preset text recognition method. The computer device can generate an intermediate data table consistent with the table layout of the two-dimensional data table in the drawing data to be processed based on multiple cell entities, other cell entities having a relative position relationship with each cell entity, and the text content in the cell entity.

[0118] For example, Figure 2 As shown, number 1 in the figure shows a two-dimensional data table in the drawing data to be processed, and number 4 in the figure shows an intermediate data table with the same table layout as the two-dimensional data table shown in number 1.

[0119] Step S602: Determine the missing fields in the intermediate data table based on the table structure of the target data table.

[0120] In the application, the target data table is generated based on the intermediate data table. The fields included in the table structure of the target data table can be obtained from some or all of the fields in the intermediate data table, or can be obtained by processing the fields in the intermediate data table. Fields that exist in the table structure of the target data table but cannot be provided by the intermediate data table are called missing fields. Before generating the target data table, the computer device determines the missing fields that cannot be provided by the intermediate data table based on the table structure of the target data table.

[0121] Step S603: read the missing field and the actual value of the missing field from other data tables associated with the designated device, and generate a target data table that conforms to the table structure.

[0122] In the application, after determining the missing fields, the computer device continues to read the missing fields and the actual values ​​of the missing fields from other data tables associated with the specified device to generate a target data table that conforms to the table structure.

[0123] In this embodiment, the method of generating an intermediate data table based on cell entities and text content and filling in missing fields through an automated process greatly improves the efficiency, accuracy and availability of data processing, while also reducing the manual workload and promoting the implementation of data-driven decision-making.

[0124] In one embodiment, Fig.12 Before step S104, the implementation process also includes the following steps S701 to S703. Among them:

[0125] Step S701, displaying a drawing data processing interface, wherein the drawing data processing interface includes a drawing import function item and a drawing processing function item.

[0126] In the application, in order to facilitate operation and improve the human-computer interaction experience, the computer device can also provide an operable drawing data processing interface, which includes at least a drawing import function item and a drawing processing function item. Among them, the drawing import function item provides an import entry for the drawing data to be processed. In response to the trigger operation for the drawing import function item, the computer device can receive the drawing data to be processed selected by the user from the storage space (local storage or cloud storage). The drawing processing function item is used to trigger the drawing processing operation (such as drawing processing operation) for the drawing data to be processed. Figure 1 method shown).

[0127] Step S702: In response to the triggering operation for the drawing import function item, determine the drawing data to be processed selected from the storage space.

[0128] In the application, the user triggers the drawing import function item, and the computer device responds to the trigger operation by displaying a file selection component to facilitate the selection of drawing data to be processed from the storage space. The storage space can be a local file system, cloud storage or other data sources.

[0129] Step S703: In response to the triggering operation on the processing function item, starting the drawing data processing operation on the drawing data to be processed.

[0130] In the application, after the drawing data to be processed is selected, the user triggers the processing function item, and the computer device responds to the trigger operation for the processing function item and starts the drawing data processing operation for the drawing data to be processed, that is, starts to execute Figure 1 Drawing data processing steps.

[0131] In this embodiment, the drawing data processing interface can effectively help users manage, import and process complex drawing data while maintaining high efficiency and user-friendliness.

[0132] In one embodiment, the drawing data processing interface also includes a drawing data display component, a progress display component, and a save setting item; the progress display component is used to display the processing progress of the drawing data to be processed using a target style; the drawing data display component is used to display the associated data of the drawing data to be processed; the save setting item is used to set the storage path of the target data table generated by the drawing data processing operation.

[0133] In the application, the drawing data processing interface may also include a drawing data display component, a progress display component, and a save setting item. The drawing data display component can be used to display the associated data of the drawing data to be processed, so that the associated data of the drawing being processed can be displayed in real time, such as the storage path and the associated designated spare parts, which helps the user to confirm the accuracy of the data and make immediate adjustments when necessary to avoid subsequent processing errors. The progress display component is used to display the processing progress of the drawing data to be processed in a target style, that is, it can provide visual feedback on the processing progress to help users understand the completion status of the current drawing data processing. The save setting item is used to set the storage path of the target data table generated by the drawing data processing operation, that is, the save setting item allows the user to customize the storage path of the target data table, which means that the user can choose the most appropriate storage location according to project requirements or team collaboration habits, avoiding data confusion or duplication of work, and also facilitating later data search and management.

[0134] For example, Fig.13 , No. 1 is the drawing import function item, No. 2 is the processing function item, No. 3 is the drawing data display component, No. 4 is the progress display component, and No. 5 is the save setting item.

[0135] In this embodiment, by adding a variety of other functional components to the drawing data processing interface, not only the user's interactive experience is improved, but also the accuracy and efficiency of data processing are effectively promoted, while the security management and organization of data are strengthened.

[0136] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0137] The present application also provides a drawing data processing device for executing the steps in the above drawing data processing method embodiment. The drawing data processing device can be a virtual device (Virtual Appliance) in a computer device, which is run by a processor of the computer device, or it can be the computer device itself. Fig.14 As shown, the drawing data processing device 900 provided in the embodiment of the present application includes:

[0138] The acquisition module 910 is used to acquire drawing data to be processed, wherein the drawing data to be processed includes a two-dimensional data table of materials required by the specified equipment.

[0139] The determination module 920 is used to determine the target area of ​​the two-dimensional data table in the drawing data to be processed based on the device type of the designated device.

[0140] The combining module 930 is used to combine the multiple line segment entities in the target area to obtain multiple cell entities with relative position relationships.

[0141] The generating module 940 is used to generate the target data table based on each of the cell entities, the text content of each of the cell entities and the table structure of the target data table.

[0142] In one embodiment, the determination module is also used to obtain the drawing layout corresponding to the device type of the specified device; based on the drawing layout, determine the starting point coordinates and the end point coordinates associated with the two-dimensional data table in the drawing data to be processed; and determine the square area determined by the starting point coordinates and the end point coordinates as the target area of ​​the two-dimensional data table in the drawing data to be processed.

[0143] In one embodiment, the combination module is also used to obtain the starting endpoint and the ending endpoint of each line segment entity in the target area, the starting endpoint including a first component in the horizontal direction and a second component in the vertical direction; grouping the multiple line segment entities to obtain multiple first line segment groups in the horizontal direction and multiple second line segment groups in the vertical direction; using the multiple first line segment groups or the multiple second line segment groups as multiple line segment groups to be sorted, and sorting the multiple line segment groups to be sorted to obtain multiple third line segment groups; based on the line segment entities of the same order in any two adjacent third line segment groups, determining multiple cell entities having a relative position relationship.

[0144] In one embodiment, the multiple first line segment groups are used as multiple line segment groups to be sorted, and the combination module is also used to sort the multiple line segment groups to be sorted based on a first sorting condition to obtain multiple ordered line segment groups, and the first sorting condition is determined based on the second component of the starting endpoint of the line segment entity; based on the second sorting condition, each of the ordered line segment groups is sorted to obtain a third line segment group corresponding to each of the ordered line segment groups, and the second sorting condition is determined based on the first component of the starting endpoint of the line segment entity.

[0145] In one embodiment, the multiple second line segment groups serve as multiple line segment groups to be sorted, and the combination module is also used to sort the multiple line segment groups to be sorted based on a third sorting condition to obtain multiple ordered line segment groups, and the third sorting condition is determined based on the first component of the starting endpoint of the line segment entity; based on a fourth sorting condition, sort each of the ordered line segment groups to obtain a third line segment group corresponding to each of the ordered line segment groups, and the fourth sorting condition is determined based on the second component of the starting endpoint of the line segment entity.

[0146] In one embodiment, the generation module is also used to generate an intermediate data table with the same table layout as the two-dimensional data table based on each of the cell entities and the text content of each of the cell entities; determine the missing fields in the intermediate data table based on the table structure of the target data table; read the missing fields and the actual values ​​of the missing fields from other data tables associated with the specified device, and generate a target data table that conforms to the table structure.

[0147] In one embodiment, the acquisition module is also used to display a drawing data processing interface, which includes a drawing import function item and a drawing processing function item; in response to a trigger operation on the drawing import function item, determining the drawing data to be processed selected from the storage space; and in response to a trigger operation on the processing function item, starting a drawing data processing operation on the drawing data to be processed.

[0148] In one embodiment, the drawing data processing interface also includes a drawing data display component, a progress display component, and a save setting item; the progress display component is used to display the processing progress of the drawing data to be processed using a target style; the drawing data display component is used to display the associated data of the drawing data to be processed; the save setting item is used to set the storage path of the target data table generated by the drawing data processing operation.

[0149] In application, each module in the drawing data processing device may be a software program module, or may be implemented by different logic circuits integrated in a processor, or may be implemented by multiple distributed processors.

[0150] Fig.15 This is a schematic diagram of the structure of a computer device for implementing a drawing data processing method provided in an embodiment of the present application. Fig.15 As shown, the computer device 1000 of this embodiment includes: at least one processor 1010 ( Fig.15 Only one is shown in the figure) a processor, a memory 1020, and a computer program 1030 stored in the memory 1020 and executable on the at least one processor 1010, and when the processor 1010 executes the computer program 1030, the steps in any of the above-mentioned embodiments of the drawing data processing method are implemented.

[0151] The computer device 1000 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The computer device 1000 may include, but is not limited to, a processor 1010 and a memory 1020. Those skilled in the art will appreciate that Fig.15The computer device 1000 is merely an example and does not constitute a limitation on the computer device 1000 . The computer device 1000 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device 1000 may also include input and output devices, network access devices, etc.

[0152] The processor 1010 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0153] In some embodiments, the memory 1020 may be an internal storage unit of the computer device 1000, such as a hard disk or memory of the computer device 1000. In other embodiments, the memory 1020 may also be an external storage device of the computer device 1000, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device 1000. Further, the memory 1020 may also include both an internal storage unit of the computer device 1000 and an external storage device. The memory 1020 is used to store an operating system, an application program, a boot loader (Boot Loader), data and other programs, such as the program code of the computer program, etc. The memory 1020 may also be used to temporarily store data that has been output or is to be output.

[0154] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0155] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0156] An embodiment of the present application further 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 steps in the above-mentioned method embodiments can be implemented.

[0157] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device can implement the steps in the above-mentioned method embodiments when executing the computer device.

[0158] If the integrated unit 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 present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / computer device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0159] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0160] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0161] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / computer device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0162] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0163] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A drawing data processing method, characterized in that: include: Acquire drawing data to be processed, wherein the drawing data to be processed includes a two-dimensional data table of materials required for the specified equipment; Based on the device type of the designated device, determining a target area of ​​the two-dimensional data table in the drawing data to be processed; Combining multiple line segment entities within the target area to obtain multiple cell entities having a relative position relationship; The target data table is generated based on each of the cell entities, the text content of each of the cell entities and the table structure of the target data table.

2. The drawing data processing method according to claim 1, characterized in that: The determining, based on the device type of the designated device, a target area of ​​the two-dimensional data table in the drawing data to be processed includes: Obtain the drawing layout corresponding to the device type of the specified device; Based on the drawing layout, determining the starting point coordinates and the ending point coordinates associated with the two-dimensional data table in the drawing data to be processed; A square area determined by the starting point coordinates and the end point coordinates is determined as a target area of ​​the two-dimensional data table in the drawing data to be processed.

3. The drawing data processing method according to claim 1, characterized in that: The combining of the multiple line segment entities in the target area to obtain multiple cell entities having a relative position relationship includes: Acquire the starting endpoint and the ending endpoint of each line segment entity in the target area, wherein the starting endpoint includes a first component in the horizontal direction and a second component in the vertical direction; Grouping the multiple line segment entities to obtain multiple first line segment groups in a horizontal direction and multiple second line segment groups in a vertical direction; The plurality of first line segment groups or the plurality of second line segment groups are used as a plurality of line segment groups to be sorted, and the plurality of line segment groups to be sorted are sorted to obtain a plurality of third line segment groups; Based on the line segment entities of the same position order in any two adjacent third line segment groups, a plurality of cell entities having a relative position relationship are determined.

4. The drawing data processing method according to claim 3, characterized in that: The plurality of first line segment groups are used as a plurality of line segment groups to be sorted, and the plurality of line segment groups to be sorted are sorted to obtain a plurality of third line segment groups, including: Based on a first sorting condition, the plurality of line segment groups to be sorted are sorted to obtain a plurality of ordered line segment groups, wherein the first sorting condition is determined based on a second component of a start endpoint of a line segment entity; Based on a second sorting condition, each of the ordered line segment groups is sorted to obtain a third line segment group corresponding to each of the ordered line segment groups, wherein the second sorting condition is determined based on a first component of a starting endpoint of a line segment entity.

5. The drawing data processing method according to claim 3, characterized in that: The plurality of second line segment groups are used as a plurality of line segment groups to be sorted, and the plurality of line segment groups to be sorted are sorted to obtain a plurality of third line segment groups, including: Based on a third sorting condition, the plurality of line segment groups to be sorted are sorted to obtain a plurality of ordered line segment groups, wherein the third sorting condition is determined based on a first component of a start endpoint of a line segment entity; Based on a fourth sorting condition, each of the ordered line segment groups is sorted to obtain a third line segment group corresponding to each of the ordered line segment groups, wherein the fourth sorting condition is determined based on the second component of the start endpoint of the line segment entity.

6. The drawing data processing method according to claim 1, characterized in that: The generating the target data table based on each of the cell entities, the text content of each of the cell entities and the table structure of the target data table includes: Based on each of the cell entities and the text content of each of the cell entities, an intermediate data table having the same table layout as the two-dimensional data table is generated; Based on the table structure of the target data table, determining the missing fields in the intermediate data table; The missing field and the actual value of the missing field are read from other data tables associated with the designated device to generate a target data table that conforms to the table structure.

7. The drawing data processing method according to claim 1, characterized in that: The method further comprises: Displaying a drawing data processing interface, wherein the drawing data processing interface includes a drawing import function item and a drawing processing function item; In response to a triggering operation on the drawing import function item, determining drawing data to be processed selected from a storage space; In response to the triggering operation on the processing function item, a drawing data processing operation on the drawing data to be processed is started.

8. The drawing data processing method according to claim 7, characterized in that: The drawing data processing interface also includes a drawing data display component, a progress display component, and a save setting item; The progress display component is used to display the processing progress of the drawing data to be processed in a target style; The drawing data display component is used to display the associated data of the drawing data to be processed; The save setting item is used to set the storage path of the target data table generated by the drawing data processing operation.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the drawing data processing method according to any one of claims 1 to 8 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the drawing data processing method according to any one of claims 1 to 8 is implemented.