Part gallery acquisition method and device, equipment and medium
By extracting and constructing the target component drawing collection and size and assembly relationship in the design drawing, the problem of difficult identification of design drawing parts drawings is solved, and efficient component drawing retrieval and multiplexing are achieved.
Patent Information
- Application Number
- CN202411525800.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-02-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
During mining, the parts drawings of the design drawings cannot be identified, resulting in low accuracy in subsequent searches.
By obtaining the design drawings to be split, extracting the target closed-loop and non-closed-loop component drawings, obtaining the drawing component size and diagram assembly relationship of each target component drawing, and building a target component gallery.
The individual identification and storage of each target component diagram in the design drawing is realized, the storage method of the component diagram is optimized, the accuracy and efficiency of component diagram retrieval is improved, the component diagram is reused, and the workload is reduced.
Smart Images

Figure CN119513340A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a method, device, equipment and medium for acquiring a component library. Background Art
[0002] With the development of technology, there may be a large number of documents and reports stored in different ways in the mining process. Among them, the documents and reports can be centrally stored and managed by building a document report database.
[0003] In the process of storing design drawings through the database, it may happen that the part drawings cannot be recognized, resulting in poor retrieval accuracy when the part drawings are subsequently retrieved. Summary of the invention
[0004] The purpose of this application is to solve one of the technical problems in the above technology at least to a certain extent.
[0005] In a first aspect, the present application provides a method for obtaining a component library, comprising: obtaining a design drawing to be split, and extracting a target closed-loop component drawing set and a target non-closed-loop component drawing set in the design drawing to obtain a target component drawing set of the design drawing; obtaining the drawing component size of each target component drawing in the target component drawing set, and the drawing assembly relationship between each target component drawing; and obtaining a target component library based on the drawing component size, the drawing assembly relationship and the target component drawing set.
[0006] The first aspect of the present application provides a method for obtaining a component library, which also has the following technical features, including:
[0007] According to one embodiment of the present application, extracting the target closed-loop component diagram set in the design drawing includes: performing shape analysis on the design drawing to extract a closed-loop element set in the design drawing, wherein the closed-loop element set includes at least circular elements, triangular elements, rectangular elements and remaining polygonal elements except the circular elements, the triangular elements and the rectangular elements; extracting a set of candidate closed component diagrams in the design drawing, and extracting the target closed-loop component diagram set in the design drawing from the candidate closed component diagram set based on the closed-loop element set.
[0008] According to one embodiment of the present application, extracting a set of candidate closed component diagrams in the design drawing, and extracting a set of target closed-loop component diagrams in the design drawing from the set of candidate closed component diagrams based on the set of closed-loop elements, includes: obtaining a first number of circular elements in the closed-loop element set, a second number of common edge graphic elements corresponding to the circular elements, a third number of triangular elements, a fourth number of common edge graphic elements corresponding to the triangular elements, a fifth number of rectangular elements, a sixth number of common edge graphic elements corresponding to the rectangular elements, and a seventh number of polygonal elements other than the circular elements, the triangular elements and the rectangular elements in the closed element set, and an eighth number of common edge graphic elements corresponding to the polygonal elements; obtaining a corresponding closed-loop component diagram screening strategy according to the first number, the second number, the third number, the fourth number, the fifth number, the sixth number, the seventh number and the eighth number; for any candidate closed-loop component diagram, in response to identifying that the candidate closed-loop component diagram matches the closed-loop component diagram screening strategy, determining that the candidate closed-loop component diagram is a target closed-loop component diagram, so as to obtain the set of target closed-loop component diagrams in the design drawing.
[0009] According to one embodiment of the present application, extracting the target non-closed-loop component graph set in the design drawing includes: traversing the design drawing based on the Dijkstra algorithm to obtain a set of candidate non-closed-loop component graphs in the design drawing, as well as path parameters and length parameters of each candidate non-closed-loop component graph; obtaining a preset non-closed-loop image screening strategy; for any candidate non-closed-loop component graph, in response to identifying that the path parameters and length parameters of the candidate non-closed-loop component graph match the non-closed-loop image screening strategy, determining that the candidate non-closed-loop component graph is the target non-closed-loop component graph to be split and stored in the design drawing, so as to obtain the target non-closed-loop component graph set.
[0010] According to one embodiment of the present application, the obtaining of the drawing component size of each target component drawing in the target component drawing set, as well as the drawing assembly relationship between each target component drawing, includes: extracting the annotation dimension information of each target component drawing in the design drawing from the annotation information of the design drawing, and determining the annotation dimension information as the drawing component size of each target component drawing; extracting the assembly identifier of each target component drawing from the annotation information, and obtaining the drawing assembly relationship between each target component drawing according to the assembly identifier.
[0011] According to an embodiment of the present application, the target component library is obtained according to the component size of the drawing, the assembly relationship of the drawing and the target component drawing set, including: obtaining a preset initial component library; storing the component size of each target component drawing in an initial component size sub-library in the initial component library to obtain a candidate component size sub-library; storing the component assembly relationship of each target component drawing in an initial assembly relationship sub-library in the initial component library to obtain a candidate assembly relationship sub-library; storing each target component drawing in an initial component sub-library in the initial component library to obtain a candidate component sub-library; and obtaining the target component library based on the candidate component size sub-library, the candidate assembly relationship sub-library and the candidate component sub-library.
[0012] According to one embodiment of the present application, after obtaining the preset initial component library, it also includes: based on the initial component library, deduplicating each target component drawing, the drawing component size of each target component drawing, and the drawing assembly relationship of each target component drawing, and storing each target component drawing, the drawing component size of each target component drawing, and the drawing assembly relationship of each target component drawing obtained after the deduplication processing in the initial component library to obtain the target component library.
[0013] According to one embodiment of the present application, the method also includes: obtaining a verification instruction of the design drawing, and retrieving a set of verification component drawings and a verification assembly relationship of each verification component drawing from the target component library according to the verification instruction; assembling each verification component drawing according to the verification assembly relationship to obtain a verification drawing corresponding to the design drawing; in response to identifying that the verification drawing matches the design drawing, determining that the component drawing splitting and storage operation of the design drawing is normal; in response to identifying that the verification drawing does not match the design drawing, determining that the component drawing splitting and storage of the design drawing is abnormal, obtaining corresponding abnormal information, and re-performing the component drawing splitting and storage operation on the design drawing based on the abnormal information.
[0014] The second aspect of the present application provides a device for acquiring a component library, including: a first acquisition module, used to acquire a design drawing to be split, and extract a target closed-loop component drawing set and a target non-closed-loop component drawing set in the design drawing to obtain a target component drawing set of the design drawing; a second acquisition module, used to acquire the drawing component size of each target component drawing in the target component drawing set, and the drawing assembly relationship between each target component drawing; a third acquisition module, used to obtain a target component library based on the drawing component size, the drawing assembly relationship and the target component drawing set.
[0015] The second aspect of the present application provides a device for acquiring a component library, which also has the following technical features, including:
[0016] According to one embodiment of the present application, the first acquisition module is further used to: perform shape analysis on the design drawing to extract a closed-loop element set in the design drawing, wherein the closed-loop element set includes at least circular elements, triangular elements, rectangular elements and remaining polygonal elements other than the circular elements, the triangular elements and the rectangular elements; extract a set of candidate closed component drawings in the design drawing, and extract a target closed-loop component drawing set in the design drawing from the candidate closed component drawing set based on the closed-loop element set.
[0017] According to one embodiment of the present application, the first acquisition module is also used to: acquire a first number of circular elements in the closed-loop element set, a second number of common side graphic elements corresponding to the circular elements, a third number of triangular elements, a fourth number of common side graphic elements corresponding to the triangular elements, a fifth number of rectangular elements, a sixth number of common side graphic elements corresponding to the rectangular elements, and a seventh number of polygonal elements other than the circular elements, the triangular elements and the rectangular elements in the closed element set, and an eighth number of common side graphic elements corresponding to the polygonal elements; obtain a corresponding closed-loop component diagram screening strategy based on the first number, the second number, the third number, the fourth number, the fifth number, the sixth number, the seventh number and the eighth number; for any candidate closed-loop component diagram, in response to identifying that the candidate closed-loop component diagram matches the closed-loop component diagram screening strategy, determine that the candidate closed-loop component diagram is a target closed-loop component diagram to obtain the target closed-loop component diagram set in the design diagram.
[0018] According to one embodiment of the present application, the first acquisition module is also used to: traverse the design drawing based on the Dijkstra algorithm to obtain a set of candidate non-closed-loop component diagrams in the design drawing, as well as path parameters and length parameters of each candidate non-closed-loop component diagram; obtain a preset non-closed-loop image screening strategy; for any candidate non-closed-loop component diagram, in response to identifying that the path parameters and length parameters of the candidate non-closed-loop component diagram match the non-closed-loop image screening strategy, determine that the candidate non-closed-loop component diagram is a target non-closed-loop component diagram to be split and stored in the design drawing, so as to obtain the target non-closed-loop component diagram set.
[0019] According to one embodiment of the present application, the second acquisition module is also used to: extract the annotation size information of each target component drawing in the design drawing from the annotation information of the design drawing, and determine the annotation size information as the drawing component size of each target component drawing; extract the assembly identifier of each target component drawing from the annotation information, and obtain the drawing assembly relationship between each target component drawing based on the assembly identifier.
[0020] According to one embodiment of the present application, the third acquisition module is further used to: acquire a preset initial component library; store the component size of each target component drawing in the initial component size sub-library in the initial component library to obtain a candidate component size sub-library; store the assembly relationship of each target component drawing in the initial assembly relationship sub-library in the initial component library to obtain a candidate assembly relationship sub-library; store each target component drawing in the initial component sub-library in the initial component library to obtain a candidate component sub-library; obtain the target component library based on the candidate component size sub-library, the candidate assembly relationship sub-library and the candidate component sub-library.
[0021] According to one embodiment of the present application, the third acquisition module is also used to: based on the initial component library, deduplicate each target component drawing, the drawing component size of each target component drawing, and the drawing assembly relationship of each target component drawing, and store each target component drawing, the drawing component size of each target component drawing, and the drawing assembly relationship of each target component drawing obtained after deduplication in the initial component library to obtain the target component library.
[0022] According to one embodiment of the present application, the device also includes a verification module, which is used to: obtain a verification instruction of the design drawing, and retrieve a set of verification component drawings and a verification assembly relationship of each verification component drawing from the target component library according to the verification instruction; assemble each verification component drawing according to the verification assembly relationship to obtain a verification drawing corresponding to the design drawing; in response to identifying that the verification drawing matches the design drawing, determine that the component drawing splitting and storage operation of the design drawing is normal; in response to identifying that the verification drawing does not match the design drawing, determine that the component drawing splitting and storage of the design drawing is abnormal, obtain corresponding abnormal information, and re-perform the component drawing splitting and storage operation on the design drawing based on the abnormal information.
[0023] The third aspect of the present disclosure proposes an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute instructions to implement the method for acquiring the component gallery proposed in the first aspect above.
[0024] A fourth aspect of the present disclosure proposes a computer-readable storage medium. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method for acquiring a component gallery as proposed in the first aspect.
[0025] The method and device for obtaining a component library provided in the present application extract a closed-loop component drawing set and a non-closed-loop component drawing set in a design drawing to obtain a target component drawing set in the design drawing, and then obtain a corresponding target component library based on each target component drawing in the target component drawing set, the component size of each target component drawing, and the assembly relationship between each target component drawing. In the present application, a target component drawing set consisting of a closed-loop component drawing set and a non-closed-loop component drawing set in a design drawing is extracted, and a target component library is obtained based on the target component drawing set, the dimension information of each target component drawing, and the assembly relationship between each target component drawing, thereby realizing the separate identification and storage of each target component drawing in the design drawing, optimizing the storage method of each target component drawing in the design drawing, and in the scenario of searching for component drawings through the target component library, improving the accuracy and efficiency of component drawing retrieval, realizing the reuse of component drawings, eliminating the need for manual repeated drawing of component drawings, reducing the workload, providing an accurate data basis for downstream tasks, and optimizing the user experience.
[0026] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0028] Figure 1 A schematic diagram of a process of obtaining a component library according to an embodiment of the present application;
[0029] Figure 2 A schematic diagram of a flow chart of a method for acquiring a component library according to another embodiment of the present application;
[0030] Figure 3 A schematic diagram of a flow chart of a method for acquiring a component library according to another embodiment of the present application;
[0031] Figure 4 A schematic diagram of a process of obtaining a component library according to an embodiment of the present application;
[0032] Figure 5 A schematic diagram of the structure of a device for acquiring a component library according to an embodiment of the present application;
[0033] Figure 6 A block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0034] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0035] The following describes the method, device, equipment and medium for obtaining the component library of the embodiment of the present application with reference to the accompanying drawings.
[0036] Figure 1 FIG. 1 is a flow chart of a method for obtaining a component library according to an embodiment of the present application. Figure 1 As shown, the method includes:
[0037] S101, obtaining a design drawing to be split, and extracting a closed-loop component drawing set and a non-closed-loop component drawing set in the design drawing to obtain a target component drawing set of the design drawing.
[0038] In the embodiment of the present application, the design drawing that needs to be stored currently can be obtained as the design drawing that needs to be split and extracted from the component drawing.
[0039] Optionally, the design drawing includes multiple component drawings, some of which may belong to closed-loop images and some of which may belong to non-closed-loop images. In this scenario, the set consisting of some closed-loop component drawings in the design drawing can be marked as a closed-loop component drawing set in the design drawing, and the set consisting of some non-closed-loop images in the design drawing can be marked as a non-closed-loop image set in the design drawing.
[0040] Furthermore, based on the closed-loop component diagram set and the non-closed-loop component diagram set extracted from the design diagram, a target component diagram set to be stored in the design diagram is constructed.
[0041] It should be noted that the design drawing to be split can be a design drawing in CAD format or a design drawing in other formats, and no specific limitation is made here.
[0042] S102, obtaining the drawing component size of each target component drawing in the target component drawing set, and the drawing assembly relationship between each target component drawing.
[0043] In an embodiment of the present application, each target component diagram in the target component diagram set is obtained based on the design diagram. In this scenario, the association relationship between the components shown in the design diagram during the actual operation process can be obtained, and the diagram assembly relationship between the target component diagrams can be obtained based on the association relationship.
[0044] Optionally, the design drawing stores attribute information of each component, such as size information and material information of each component. In this scenario, the size information can be extracted from the stored attribute information of the design drawing, and the extracted size information can be marked as the drawing component size of each target component drawing.
[0045] S103, obtaining a target component library according to the component size, assembly relationship and target component drawing set.
[0046] In the embodiment of the present application, each target component diagram in the design diagram has a corresponding storage database, and each acquired target component diagram can be stored in the storage database based on a preset integration strategy.
[0047] Optionally, a corresponding initial database can be constructed for each target component drawing in the design drawing according to the image database construction method in the relevant technology. In this scenario, the acquired target component drawings, the component sizes of each target component drawing, and the assembly relationships between the target component drawings can be integrated into the initial database, thereby realizing the storage of each target component drawing in the design drawing in the database.
[0048] Furthermore, the database obtained after integration and storage is marked as a target component library corresponding to the design drawing.
[0049] The method for obtaining a component library proposed in the present application extracts a closed-loop component drawing set and a non-closed-loop component drawing set in a design drawing to obtain a target component drawing set in the design drawing, and then obtains a corresponding target component library based on each target component drawing in the target component drawing set, the component size of each target component drawing, and the assembly relationship between each target component drawing. In the present application, a target component drawing set consisting of a closed-loop component drawing set and a non-closed-loop component drawing set in a design drawing is extracted, and a target component library is obtained based on the target component drawing set, the dimension information of each target component drawing, and the assembly relationship between each target component drawing, thereby realizing the separate identification and storage of each target component drawing in the design drawing, optimizing the storage method of each target component drawing in the design drawing, and in the scenario of component drawing retrieval through the target component library, improving the accuracy and efficiency of component drawing retrieval, realizing the reuse of component drawings, eliminating the need for manual repeated drawing of component drawings, reducing workload, providing an accurate data basis for downstream tasks, and optimizing user experience.
[0050] In the above embodiment, the acquisition of the target component library can also be combined with Figure 2 understand, Figure 2 FIG. 1 is a flow chart of a method for acquiring a target component library in another embodiment of the present application. Figure 2 As shown, the method includes:
[0051] S201, extracting a target closed-loop component diagram set in a design diagram.
[0052] Optionally, shape analysis is performed on the design drawing to extract a closed-loop element set in the design drawing, wherein the closed-loop element set includes at least circular elements, triangular elements, rectangular elements, and remaining polygonal elements except circular elements, triangular elements and rectangular elements.
[0053] In an embodiment of the present application, there may be some basic closed-loop image elements in the design drawing, such as circular elements, triangular elements, rectangular elements and other polygonal elements. In this scenario, shape analysis can be performed on the design drawing based on the shape analysis algorithm in the relevant technology to extract the circular elements, triangular elements, rectangular elements and other polygonal elements in the design, and the set of the extracted circular elements, triangular elements, rectangular elements and other polygonal elements can be marked as a closed-loop element set in the design drawing.
[0054] Optionally, a set of candidate closed component graphs in the design graph is extracted, and a set of target closed-loop component graphs in the design graph is extracted from the set of candidate closed component graphs based on the set of closed-loop elements.
[0055] Among them, the first number of circular elements in the closed-loop element set, the second number of common edge graphic elements corresponding to the circular elements, the third number of triangular elements, the fourth number of common edge graphic elements corresponding to the triangular elements, the fifth number of rectangular elements, the sixth number of common edge graphic elements corresponding to the rectangular elements, and the seventh number of remaining polygonal elements other than circular elements, triangular elements and rectangular elements in the closed element set, and the eighth number of common edge graphic elements corresponding to the polygonal elements can be obtained, and the corresponding closed-loop component diagram screening strategy is obtained according to the first number, the second number, the third number, the fourth number, the fifth number, the sixth number, the seventh number and the eighth number.
[0056] In an embodiment of the present application, the number of circular elements extracted from the design drawing can be marked as a first number, and the number of image elements that share common edges with the circular elements can be marked as a second number, and the number of triangular elements extracted from the design drawing can be marked as a third number, and the number of graphic elements that share common edges with the triangular elements can be marked as a fourth number, and the number of rectangular elements extracted from the design drawing can be marked as a fifth number, and the number of graphic elements that share common edges with the rectangular elements can be marked as a sixth number, and the number of other polygonal elements that are non-circular, non-triangular and non-rectangular extracted from the design drawing can be marked as a seventh number, and the number of graphic elements that share common edges with the polygonal elements can be marked as an eighth number.
[0057] In this scenario, the first quantity, the second quantity, the third quantity, the fourth quantity, the fifth quantity, the sixth quantity, the seventh quantity and the eighth quantity can be processed based on a preset algorithm, and then a closed-loop component diagram screening strategy can be obtained according to the results of the algorithm processing.
[0058] As an example, the formula of the above algorithm can be as follows:
[0059]
[0060] In the above formula, λ1 represents the corresponding screening threshold of the closed-loop image, n1 represents the first number of circular elements in the closed-loop element set extracted from the design drawing, k1 represents the second number of circular elements shared by the circular elements in the closed-loop element set and other closed-loop or non-closed-loop graphics, n2 represents the third number of triangular elements in the closed-loop element set extracted from the design drawing, k2 represents the fourth number of triangular elements in the closed-loop element set that have common edges with other closed-loop or non-closed-loop graphics, n3 represents the fifth number of rectangular elements in the closed-loop element set extracted from the design drawing, k3 represents the sixth number of rectangular elements in the closed-loop element set that have common edges with other closed-loop or non-closed-loop graphics, n4 represents the seventh number of other non-circular, non-triangular and non-rectangular polygonal elements in the closed-loop element set extracted from the design drawing, and k4 represents the eighth number of other non-circular, non-triangular and non-rectangular polygonal elements in the closed-loop element set that have common edges with other closed-loop or non-closed-loop graphics.
[0061] Optionally, for any candidate closed-loop component diagram, in response to identifying that the candidate closed-loop component diagram matches the closed-loop component diagram screening strategy, the candidate closed-loop component diagram is determined to be a target closed-loop component diagram to obtain a set of target closed-loop component diagrams in the design diagram.
[0062] As an example, for any candidate closed-loop component diagram, the corresponding value of the candidate closed-loop component diagram can be obtained based on a preset algorithm, and the value can be compared with the results of the first quantity, the second quantity, the third quantity, the fourth quantity, the fifth quantity, the sixth quantity, the seventh quantity and the eighth quantity based on the right part of the above formula; when the corresponding value is greater than or equal to the result, it can be determined that the candidate closed-loop component diagram matches the closed-loop component diagram screening strategy.
[0063] In this scenario, the candidate closed-loop component diagram can be determined as the target closed-loop component diagram that needs to be split and stored in the design diagram.
[0064] Furthermore, based on the extracted multiple target closed-loop component diagrams, a set of target closed-loop component diagrams in the design diagram is composed.
[0065] S202, extracting a target non-closed-loop component diagram set in the design diagram.
[0066] Optionally, the design diagram is traversed based on the Dijkstra algorithm to obtain a set of candidate non-closed-loop component graphs in the design diagram, as well as path parameters and length parameters of each candidate non-closed-loop component graph.
[0067] In the embodiment of the present application, the design drawing can be traversed according to a preset traversal algorithm, wherein the algorithm can be the Dijkstra algorithm in the related art.
[0068] In this scenario, the design drawing can be traversed based on the Dijkstra algorithm, and non-closed-loop component graphs in the design drawing can be extracted based on the traversal results and marked as candidate non-closed-loop component graphs to form a set of candidate non-closed-loop component graphs.
[0069] Furthermore, based on the traversal results, the shortest path of each candidate non-closed-loop component graph is obtained, and the length of the path is marked as the path parameter of each candidate non-closed-loop component graph, and based on the traversal results, the total length of each candidate non-closed-loop component graph is obtained as the length parameter of the candidate non-closed-loop component graph.
[0070] Optionally, a preset non-closed-loop image screening strategy is obtained, and for any candidate non-closed-loop component diagram, in response to identifying that the path parameters and length parameters of the candidate non-closed-loop component diagram match the non-closed-loop image screening strategy, the candidate non-closed-loop component diagram is determined to be the target non-closed-loop component diagram to be split and stored in the design diagram, so as to obtain a set of target non-closed-loop component diagrams.
[0071] As an example, the non-closed-loop image screening strategy can be understood in combination with the following formula:
[0072] and
[0073] In the above formula, λ2 represents the screening threshold corresponding to the non-closed-loop image screening strategy, a represents the path parameter, and b represents the length parameter.
[0074] It can be seen from the above formula that for any candidate non-closed-loop component graph, when the values obtained after algorithm processing based on the above formula between the length parameter and the path parameter of the candidate non-closed-loop component graph satisfy the relationship shown in the above formula, it can be determined that the candidate non-closed-loop component graph satisfies the non-closed-loop image screening strategy, and then the candidate non-closed-loop component graph can be determined as the target non-closed-loop component graph that needs to be split and stored.
[0075] Furthermore, a set of target non-closed-loop component diagrams in the design diagram is formed based on the extracted target non-closed-loop component diagrams.
[0076] S203, obtaining the drawing component size of each target component drawing in the target component drawing set, and the drawing assembly relationship between each target component drawing.
[0077] Optionally, the annotation size information of each target component drawing in the design drawing is extracted from the annotation information of the design drawing, and the annotation size information is determined as the drawing component size of each target component drawing.
[0078] In an embodiment of the present application, there is preconfigured annotation information in the design drawing, and the annotation information may include information such as the length, width, height, radius, diameter, tolerance and unit of each component in the design drawing. In this scenario, the relevant dimension information of each target component drawing can be extracted from the annotation information of the design drawing as the annotation dimension information of each target component drawing.
[0079] Furthermore, the dimensioning information is determined as the drawing component size of each target component drawing.
[0080] As an example, the drawing component size may include the volume dimension information of each target component drawing. In this scenario, the volume dimension information of the component may not exist in the annotation dimension information. In this case, the extracted annotation dimension information can be algorithmically processed based on the volume algorithm corresponding to different target component drawings to obtain the volume dimension information of each target component drawing.
[0081]
[0082]
[0083] Based on the algorithm shown in the above table, the annotation dimension information of the square, rectangle, triangle, parallelogram and regular polygon shown in the above table can be processed algorithmically to obtain their respective volume dimension information and convert them into their respective graphic component dimensions.
[0084] As another example, for a target component image of an irregular image, the volume size information can be calculated based on the following formula:
[0085]
[0086] Among them, a represents the path parameter and b represents the length parameter.
[0087] Optionally, the assembly identifier of each target component drawing is extracted from the annotation information, and the drawing assembly relationship between the target component drawings is obtained according to the assembly identifier.
[0088] In the embodiment of the present application, there is an assembly relationship between the target component drawings. It can be understood that the assembly relationship describes the relative position relationship and connection relationship between the target component drawings and other target component drawings. In this scenario, the preset assembly identifier of each target component drawing can be extracted from the annotation information of the design drawing, and the assembly relationship between the target component drawings can be identified through the assembly identifier.
[0089] It can be understood that for the target component Figure 1 and target component Figure 2 , if their respective assembly identifiers indicate the target component Figure 1 With target component Figure 2 If there is a connection relationship between the two, and the assembly mark indicates the relative position relationship between the two, then the corresponding description information can be constructed based on the connection relationship and the relative position relationship, and the description information can be determined as the graph assembly relationship between the two.
[0090] S204, obtaining a target component library according to the component size, assembly relationship and target component drawing set.
[0091] Optionally, a preset initial component library is obtained, and, based on the initial component library, each target component drawing, the drawing component size of each target component drawing, and the drawing assembly relationship of each target component drawing are deduplicated, and each target component drawing, the drawing component size of each target component drawing, and the drawing assembly relationship of each target component drawing obtained after the deduplication processing are stored in the initial component library to obtain the target component library.
[0092] In an embodiment of the present application, a library consisting of component drawings acquired within a historical time range can be marked as an initial component library. Some component drawings in the target component drawing set split from the design drawing may have been stored in the initial component library. In this scenario, it is necessary to deduplicate the target component drawing set based on the initial component library.
[0093] Among them, the metadata of each component diagram in the initial component library and the metadata of each target component diagram in the target component diagram set can be obtained, and the two can be compared. If the comparison result indicates that the metadata of any target component diagram has similar metadata in the metadata of each component diagram in the initial component library, it can be determined that the target component diagram already exists in the initial component library, and the target component diagram needs to be deduplicated.
[0094] Furthermore, based on the above method, each target component diagram, the diagram component size of each target component diagram, and the diagram assembly relationship of each target component diagram are deduplicated respectively, so as to obtain each target component diagram, the diagram component size of each target component diagram, and the diagram assembly relationship of each target component diagram after deduplication.
[0095] Optionally, in the initial drawing component library, the component drawings, the drawing component sizes of the component drawings, and the drawing assembly relationships between the component drawings are stored in their own storage sub-libraries.
[0096] In this scenario, for each target component drawing after deduplication processing, the drawing component size of each target component drawing, and the drawing assembly relationship of each target component drawing, the drawing component size of each target component drawing can be stored in the initial component size sub-library in the initial component drawing library to obtain a candidate component size sub-library.
[0097] As an example, the sub-library storing the image component sizes in the initial component library can be marked as the initial component size sub-library, and the image component sizes of each target component drawing obtained after deduplication processing can be stored in the initial component size sub-library, and the sub-library obtained after storage can be marked as the candidate component size sub-library.
[0098] And, the graph assembly relationship of each target component graph is stored in an initial assembly relationship sub-library in the initial component graph library to obtain a candidate assembly relationship sub-library.
[0099] As an example, the sub-library storing the diagram assembly relationship in the initial component library can be marked as the initial assembly relationship sub-library, and then the diagram assembly relationship between the target component drawings obtained after deduplication processing can be stored in the initial assembly relationship sub-library, and the sub-library obtained after storage can be marked as the candidate assembly relationship sub-library.
[0100] And, each target component graph is stored in an initial component sub-library in the initial component graph library to obtain a candidate component sub-library.
[0101] As an example, the sub-library storing the component graphs in the initial component library can be marked as the initial component sub-library, and each target component graph obtained after deduplication processing can be stored in the initial component sub-library, and the sub-library obtained after storage can be marked as the candidate component sub-library.
[0102] Based on the candidate component size sub-library, the candidate assembly relationship sub-library and the candidate component sub-library, a target component library is obtained.
[0103] It can be understood that the total database consisting of the candidate component size sub-library, the candidate assembly relationship sub-library and the candidate component sub-library is determined as the final target component library.
[0104] As an example, Figure 3 As shown, it can be Figure 3 The shape recognition module shown performs shape analysis on the design drawing. Figure 3 The component diagram splitting module shown extracts a target component diagram set consisting of a target closed-loop component diagram set and a target non-closed-loop component diagram set from the design diagram based on the shape analysis result of the shape recognition model.
[0105] like Figure 3 As shown, it can be Figure 3 The assembly information analysis module shown obtains the graph assembly relationship between each target component graph, and Figure 3 The size analysis module shown obtains the drawing component size of each target component drawing.
[0106] like Figure 3 As shown, you can also Figure 3 The material analysis module shown analyzes the material of each target component drawing to obtain material information of each target component drawing.
[0107] Furthermore, the extracted assembly relationship of each target component diagram is stored in Figure 3 The assembly relationship sub-library shown stores the drawing component dimensions of each target component drawing in Figure 3 The dimension sub-library shown stores the material information of each target component drawing in Figure 3 The material sub-library shown, and each target component diagram is stored in Figure 3 The component sub-library shown is obtained, and then the final target component library is obtained.
[0108] It should be noted that the target component library has a function for retrieval and review, such as Figure 3 As shown in the figure, the target component library can be used to extract Figure 3 Components shown Figure 1 ,part Figure 2 And parts Figure 3 , thus realizing the components Figure 1 ,part Figure 2 And parts Figure 3 Reuse in downstream tasks eliminates the need for staff to repeatedly draw each component diagram.
[0109] The method for obtaining a component library proposed in the present application extracts a target component drawing set composed of a closed-loop component drawing set and a non-closed-loop component drawing set in a design drawing, and obtains a target component drawing library based on the target component drawing set, the drawing size information of each target component drawing, and the drawing assembly relationship between each target component drawing, thereby realizing the separate identification and storage of each target component drawing in the design drawing, optimizing the storage method of each target component drawing in the design drawing, and in the scenario of component drawing retrieval through the target component drawing library, improving the accuracy and efficiency of component drawing retrieval, realizing the reuse of component drawings, eliminating the need for manual repeated drawing of component drawings, reducing workload, providing an accurate data basis for downstream tasks, and optimizing user experience.
[0110] In the above embodiment, after obtaining the target component library, it is possible to identify whether the component diagram splitting and storage operation of the design drawing is normal, and the target component diagram can be combined with the target component diagram. Figure 4 , Figure 4FIG. 1 is a flow chart of a method for obtaining a component library according to another embodiment of the present application. Figure 4 As shown, the method includes:
[0111] S401, obtaining a verification instruction of a design drawing, and calling a verification component drawing set and a verification assembly relationship of each verification component drawing from a target component library according to the verification instruction.
[0112] In an embodiment of the present application, after the component drawing splitting operation of the design drawing is completed, the result of the splitting operation needs to be verified, wherein the instruction for verifying the design drawing can be marked as a verification instruction of the design drawing.
[0113] Optionally, relevant component drawings can be retrieved from the target component library according to the verification instructions as verification component drawings, thereby forming a verification component drawing set, and the assembly relationships between the verification component drawings can be retrieved from the assembly relationship sub-library in the target component library and marked as verification assembly relationships between the verification component drawings.
[0114] S402, assembling each verification component drawing according to the verification assembly relationship to obtain a verification drawing corresponding to the design drawing.
[0115] In an embodiment of the present application, each verification component drawing can be assembled and drawn based on the verification assembly relationship based on a preset design drawing assembly drawing method. It can be understood that, according to the relative position relationship, connection relationship, connection order and other information between the verification component drawings indicated in the verification assembly relationship, each verification component drawing is combined, and the image obtained after the combination is determined as the verification drawing corresponding to the design drawing.
[0116] S403, in response to identifying that the verification drawing matches the design drawing, determining that the component drawing splitting and storage operation of the design drawing is normal.
[0117] Optionally, the verification diagram and the design diagram may be processed by an algorithm based on a matching algorithm in the related art, and the diagram matching degree between the verification diagram and the design diagram may be obtained according to the result of the algorithm processing.
[0118] Among them, when the diagram matching degree is greater than or equal to the preset matching degree threshold, it can be determined that the verification diagram matches the design diagram, and further it can be determined that the operation of splitting and storing the component diagram of the design diagram is normal.
[0119] S404, in response to identifying that the verification drawing does not match the design drawing, determining that the component drawing splitting and storage of the design drawing is abnormal, obtaining corresponding abnormal information, and re-performing the component drawing splitting and storage operation on the design drawing based on the abnormal information.
[0120] Optionally, when the diagram matching degree is less than a preset matching degree threshold, it can be determined that the verification diagram does not match the design diagram. In this scenario, it can be determined that an abnormality may have occurred in the design diagram during the process of component diagram splitting and storage.
[0121] In this scenario, it is possible to obtain abnormal information of the verification drawing based on the design drawing, and re-split the design drawing into component drawings based on the abnormal information to obtain a new set of target component drawings, until a new verification drawing obtained by retrieving the verification component drawing from the target component library obtained based on the new set of target component drawings matches the design drawing.
[0122] The method for obtaining a component library proposed in the present application identifies whether the split storage of the component drawings of the design drawing is normal by matching the verification drawing with the design drawing, thereby improving the accuracy and precision of the split storage of the component drawings of the design drawing, and further improving the accuracy of each target component library in the target component library. In the scenario of subsequently retrieving the component drawings and related information in the target component library, the accuracy of the retrieved information is improved, thereby optimizing the user experience.
[0123] Corresponding to the methods for acquiring the component library proposed in the above-mentioned embodiments, an embodiment of the present disclosure further proposes a device for acquiring the component library. Since the device for acquiring the component library proposed in the embodiment of the present disclosure corresponds to the methods for acquiring the component library proposed in the above-mentioned embodiments, the implementation method of the above-mentioned method for acquiring the component library is also applicable to the device for acquiring the component library proposed in the embodiment of the present disclosure, and will not be described in detail in the following embodiments.
[0124] Figure 5 FIG. 1 is a schematic diagram of a structure of a device for acquiring a component library according to an embodiment of the present disclosure. Figure 5 As shown, the device 500 for acquiring the component library includes a first acquisition module 51, a second acquisition module 52 and a third acquisition module 53, wherein:
[0125] A first acquisition module 51 is used to acquire the design drawing to be split, and extract a target closed-loop component drawing set and a target non-closed-loop component drawing set in the design drawing to obtain a target component drawing set of the design drawing;
[0126] A second acquisition module 52 is used to acquire the drawing component size of each target component drawing in the target component drawing set, and the drawing assembly relationship between each target component drawing;
[0127] The third acquisition module 53 is used to obtain the target component library according to the component size, the assembly relationship and the target component drawing set.
[0128] In an embodiment of the present application, the first acquisition module 51 is also used to: perform shape analysis on the design drawing to extract a closed-loop element set in the design drawing, wherein the closed-loop element set includes at least circular elements, triangular elements, rectangular elements, and remaining polygonal elements other than circular elements, triangular elements, and rectangular elements; extract a set of candidate closed component drawings in the design drawing, and extract a target closed-loop component drawing set in the design drawing from the candidate closed component drawing set based on the closed-loop element set.
[0129] In an embodiment of the present application, the first acquisition module 51 is also used to: acquire a first number of circular elements in a closed-loop element set, a second number of common side graphic elements corresponding to the circular elements, a third number of triangular elements, a fourth number of common side graphic elements corresponding to the triangular elements, a fifth number of rectangular elements, a sixth number of common side graphic elements corresponding to the rectangular elements, and a seventh number of remaining polygonal elements other than circular elements, triangular elements and rectangular elements in the closed element set, and an eighth number of common side graphic elements corresponding to the polygonal elements; obtain a corresponding closed-loop component diagram screening strategy based on the first number, the second number, the third number, the fourth number, the fifth number, the sixth number, the seventh number and the eighth number; for any candidate closed-loop component diagram, in response to identifying that the candidate closed-loop component diagram matches the closed-loop component diagram screening strategy, determine that the candidate closed-loop component diagram is a target closed-loop component diagram to obtain a target closed-loop component diagram set in the design diagram.
[0130] In an embodiment of the present application, the first acquisition module 51 is also used to: traverse the design drawing based on the Dijkstra algorithm to obtain a set of candidate non-closed-loop component diagrams in the design drawing, as well as path parameters and length parameters of each candidate non-closed-loop component diagram; obtain a preset non-closed-loop image screening strategy; for any candidate non-closed-loop component diagram, in response to identifying that the path parameters and length parameters of the candidate non-closed-loop component diagram match the non-closed-loop image screening strategy, determine that the candidate non-closed-loop component diagram is a target non-closed-loop component diagram to be split and stored in the design drawing, so as to obtain a set of target non-closed-loop component diagrams.
[0131] In an embodiment of the present application, the second acquisition module 52 is also used to: extract the annotation dimension information of each target component drawing in the design drawing from the annotation information of the design drawing, and determine the annotation dimension information as the drawing component dimension of each target component drawing; extract the assembly identifier of each target component drawing from the annotation information, and obtain the drawing assembly relationship between each target component drawing according to the assembly identifier.
[0132] In the embodiment of the present application, the third acquisition module 53 is also used to: obtain a preset initial component library; store the component size of each target component drawing in the initial component size sub-library in the initial component library to obtain a candidate component size sub-library; store the assembly relationship of each target component drawing in the initial assembly relationship sub-library in the initial component library to obtain a candidate assembly relationship sub-library; store each target component drawing in the initial component sub-library in the initial component library to obtain a candidate component sub-library; obtain a target component library based on the candidate component size sub-library, the candidate assembly relationship sub-library and the candidate component sub-library.
[0133] In an embodiment of the present application, the third acquisition module 53 is also used to: based on the initial component library, deduplicate each target component diagram, the component size of each target component diagram, and the assembly relationship of each target component diagram, and store each target component diagram, the component size of each target component diagram, and the assembly relationship of each target component diagram obtained after deduplication in the initial component library to obtain the target component library.
[0134] In an embodiment of the present application, the device also includes a verification module, which is used to: obtain a verification instruction of the design drawing, and retrieve a set of verification component drawings and a verification assembly relationship of each verification component drawing from a target component library according to the verification instruction; assemble each verification component drawing according to the verification assembly relationship to obtain a verification drawing corresponding to the design drawing; in response to identifying that the verification drawing matches the design drawing, determine that the component drawing splitting and storage operation of the design drawing is normal; in response to identifying that the verification drawing does not match the design drawing, determine that the component drawing splitting and storage of the design drawing is abnormal, obtain corresponding abnormal information, and re-perform the component drawing splitting and storage operation on the design drawing based on the abnormal information.
[0135] The device for acquiring the component library proposed in the present application extracts the closed-loop component diagram set and the non-closed-loop component diagram set in the design drawing to obtain the target component diagram set in the design drawing, and then obtains the corresponding target component library based on the target component diagrams in the target component diagram set, the component size of each target component diagram, and the assembly relationship between each target component diagram. In the present application, a target component diagram set consisting of a closed-loop component diagram set and a non-closed-loop component diagram set in the design drawing is extracted, and a target component library is obtained based on the target component diagram set, the dimension information of each target component diagram, and the assembly relationship between each target component diagram, thereby realizing the separate identification and storage of each target component diagram in the design drawing, optimizing the storage method of each target component diagram in the design drawing, and in the scenario of searching for component diagrams through the target component library, improving the accuracy and efficiency of component diagram retrieval, realizing the reuse of component diagrams, eliminating the need for manual repeated drawing of component diagrams, reducing the workload, providing an accurate data basis for downstream tasks, and optimizing the user experience.
[0136] To achieve the above embodiments, the present application also provides an electronic device, a computer-readable storage medium and a computer program product.
[0137] Figure 6 A block diagram of an electronic device according to an embodiment of the present application is shown in FIG. Figure 6 As shown, the device 600 includes a memory 61, a processor 62, and a computer program stored in the memory 61 and executable on the processor 62. When the processor 61 executes the program instructions, the execution is realized. Figures 1 to 4 The method for acquiring the component library proposed in the embodiment.
[0138] In order to implement the above embodiments, the present application also provides a non-transitory computer-readable storage medium storing computer instructions, the computer instructions are used to enable the computer to execute Figures 1 to 4 The method for acquiring the component library proposed in the embodiment.
[0139] In order to implement the above embodiment, the present application also provides a computer program product. When the instruction processor in the computer program product executes, Figures 1 to 4 The method for acquiring the component library proposed in the embodiment.
[0140] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0141] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0142] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0143] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0144] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0145] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0146] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0147] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for obtaining a component library, characterized in that: The method comprises: Acquire a design drawing to be split, and extract a target closed-loop component drawing set and a target non-closed-loop component drawing set in the design drawing to obtain a target component drawing set of the design drawing; Obtaining the drawing component size of each target component drawing in the target component drawing set, and the drawing assembly relationship between each target component drawing; A target component library is obtained according to the component size of the drawing, the assembly relationship of the drawing and the target component drawing set.
2. The method according to claim 1, characterized in that The extracting of the target closed-loop component diagram set in the design diagram comprises: Performing shape analysis on the design drawing to extract a closed-loop element set in the design drawing, wherein the closed-loop element set at least includes a circular element, a triangular element, a rectangular element, and remaining polygonal elements except the circular element, the triangular element, and the rectangular element; A set of candidate closed component graphs in the design graph is extracted, and a set of target closed-loop component graphs in the design graph is extracted from the set of candidate closed component graphs based on the set of closed-loop elements.
3. The method according to claim 2, characterized in that The step of extracting a set of candidate closed component graphs from the design graph, and extracting a set of target closed-loop component graphs from the set of candidate closed component graphs based on the set of closed-loop elements, comprises: Obtaining a first number of circular elements in the closed-loop element set, a second number of common-side graphic elements corresponding to the circular elements, a third number of triangular elements, a fourth number of common-side graphic elements corresponding to the triangular elements, a fifth number of rectangular elements, a sixth number of common-side graphic elements corresponding to the rectangular elements, a seventh number of polygonal elements remaining in the closed-loop element set except the circular elements, the triangular elements and the rectangular elements, and an eighth number of common-side graphic elements corresponding to the polygonal elements; Obtaining a corresponding closed-loop component diagram screening strategy according to the first quantity, the second quantity, the third quantity, the fourth quantity, the fifth quantity, the sixth quantity, the seventh quantity, and the eighth quantity; For any candidate closed-loop component diagram, in response to identifying that the candidate closed-loop component diagram matches the closed-loop component diagram screening strategy, the candidate closed-loop component diagram is determined to be a target closed-loop component diagram to obtain the target closed-loop component diagram set in the design diagram.
4. The method according to claim 1, characterized in that: The extracting of the target non-closed-loop component diagram set in the design diagram comprises: Traversing the design diagram based on the Dijkstra algorithm, obtaining a set of candidate non-closed-loop component diagrams in the design diagram, and path parameters and length parameters of each candidate non-closed-loop component diagram; Obtaining a preset non-closed-loop image screening strategy; For any candidate non-closed-loop component diagram, in response to identifying that the path parameter and length parameter of the candidate non-closed-loop component diagram match the non-closed-loop image screening strategy, the candidate non-closed-loop component diagram is determined to be the target non-closed-loop component diagram to be split and stored in the design diagram, so as to obtain the target non-closed-loop component diagram set.
5. The method according to claim 1, characterized in that The obtaining of the drawing component size of each target component drawing in the target component drawing set and the drawing assembly relationship between the target component drawings comprises: Extracting the annotation size information of each target component drawing in the design drawing from the annotation information of the design drawing, and determining the annotation size information as the drawing component size of each target component drawing; The assembly identifier of each target component drawing is extracted from the annotation information, and the drawing assembly relationship between the target component drawings is obtained according to the assembly identifier.
6. The method according to claim 1, characterized in that The step of obtaining a target component library according to the component size, the assembly relationship and the target component drawing set comprises: Get the preset initial component library; The component size of each target component diagram is stored in an initial component size sub-library in the initial component diagram library to obtain a candidate component size sub-library; The graph assembly relationship of each target component graph is stored in the initial assembly relationship sub-library in the initial component graph library to obtain a candidate assembly relationship sub-library; Storing each target component graph into an initial component sub-library in the initial component graph library to obtain a candidate component sub-library; The target component library is obtained based on the candidate component size sub-library, the candidate assembly relationship sub-library and the candidate component sub-library.
7. The method according to claim 6, characterized in that After obtaining the preset initial component library, the method further includes: Based on the initial component library, deduplication processing is performed on each target component drawing, the drawing component size of each target component drawing, and the drawing assembly relationship of each target component drawing, and each target component drawing, the drawing component size of each target component drawing, and the drawing assembly relationship of each target component drawing obtained after deduplication processing are stored in the initial component library to obtain the target component library.
8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: Obtaining the verification instruction of the design drawing, and retrieving the verification component drawing set and the verification assembly relationship of each verification component drawing from the target component library according to the verification instruction; Assemble the various verification component drawings according to the verification assembly relationship to obtain a verification drawing corresponding to the design drawing; In response to identifying that the verification drawing matches the design drawing, determining that the component drawing splitting and storage operation of the design drawing is normal; In response to identifying that the verification drawing does not match the design drawing, determining that the component drawing splitting and storage of the design drawing is abnormal, obtaining corresponding abnormal information, and re-performing the component drawing splitting and storage operation on the design drawing based on the abnormal information.
9. A device for acquiring a component library, characterized in that: The device comprises: A first acquisition module is used to acquire a design drawing to be split, and extract a target closed-loop component drawing set and a target non-closed-loop component drawing set in the design drawing to obtain a target component drawing set of the design drawing; A second acquisition module is used to acquire the drawing component size of each target component drawing in the target component drawing set, and the drawing assembly relationship between each target component drawing; The third acquisition module is used to obtain the target component library according to the component size of the drawing, the assembly relationship of the drawing and the target component drawing set.
10. An electronic device, characterized in that: include: processor; a memory for storing executable instructions for the processor; The processor is configured to execute instructions to implement the method as claimed in any one of claims 1 to 8.
11. A computer-readable storage medium, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Machine tool fixture library management system based on assembling knowledge description
CN103605845A
Data integration method and system for intelligent decision making of automobile assembly process
CN117669046A
EDA tool and method for conflict detection during multi-patterning lithography
US20140282293A1