Automatic size matching method for drawing software
By receiving automatic size matching instructions in the drawing drawing software, obtaining user input characteristics, performing layer recognition and label isolation, automatic labeling of drawing dimensions is realized, solving the problem of poor size matching accuracy in the existing technology, and improving size Matching accuracy.
Patent Information
- Application Number
- CN202410433423.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-11
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-04-11
AI Technical Summary
The existing technology has poor adaptability to automatic size matching of drawings, resulting in low accuracy of size matching.
By providing automatic size matching methods in drawing drawing software, including receiving automatic size matching instructions, obtaining user input features, configuring unit constraints, identifying layers, performing label isolation and feature traversal, and generating identification mapping between labels and line segments in the layer , update the traversal sequence identifier and perform automated annotation.
It achieves rational and precise control over the automatic matching of drawing sizes and improves the accuracy of size matching.
Smart Images

Figure CN118277600B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of data processing, and in particular to an automatic size matching method for drawing drawing software. Background Art
[0002] With the rapid development of social economy, the changes in science and technology have made computer technology increasingly perfect and popular. In such an era, for designers engaged in graphic design, traditional hand-drawn design can no longer adapt to the development of the times. Therefore, in the process of designing graphic works, the transformation from hand-drawn design to graphic design using computers has gradually become a development trend, and the drawing drawing software can include CAD, which is a design software widely used in the engineering field, which can draw various drawings quickly and efficiently. Dimension association is a very important part of CAD design, which can ensure the accuracy and editability of drawings, but in the existing technology, there is a poor adaptability to automatic size matching of drawings, which leads to technical problems such as poor accuracy of size matching. Summary of the invention
[0003] The present application provides a method for automatic size matching for drawing drawing software, which is used to solve the technical problem in the prior art that the automatic size matching of drawings has poor adaptability, resulting in poor size matching accuracy.
[0004] In view of the above problems, the present application provides an automatic size matching method for drawing drawing software.
[0005] In a first aspect, the present application provides a dimension automatic matching method for drawing drawing software, the method comprising: receiving a dimension automatic matching instruction, and adjusting a configuration unit to an activated state; obtaining a user's input feature, wherein the input feature comprises a dimension feature, a feature of a type to be annotated, and a annotation constraint feature; constraining the configuration unit in an activated state based on the input feature, and completing an initial response of the configuration unit; identifying layers of a target drawing, and locating and calibrating layers; isolating the annotations on the calibrated layers, and generating an identification mapping between the annotations and line segments within the layers; traversing the features of the calibrated layers after annotation isolation through the configuration unit to obtain a feature traversal result, wherein the feature traversal result carries a traversal order identifier; updating the traversal order identifier through the identifier mapping, and performing automatic annotation through the updated result.
[0006] In a second aspect, the present application provides a dimension automatic matching system for drawing drawing software, the system comprising: an instruction receiving module, the instruction receiving module is used to receive the dimension automatic matching instruction and adjust the configuration unit to an activated state; a first feature module, the first feature module is used to obtain the user's input features, wherein the input features include dimension features, features of the type to be annotated, and annotation constraint features; a constraint module, the constraint module is used to constrain the configuration unit in the activated state based on the input features, and complete the initial response of the configuration unit; a layer identification module, the layer identification module is used to identify the layer of the target drawing and locate the calibration layer; a annotation isolation module, the annotation isolation module is used to annotate the calibration layer and generate an identifier mapping between the annotation and the line segment in the layer; a feature traversal module, the feature traversal module is used to traverse the calibration layer features after annotation isolation through the configuration unit to obtain a feature traversal result, wherein the feature traversal result carries a traversal sequence identifier; an automatic annotation module, the automatic annotation module is used to update the traversal sequence identifier through the identifier mapping, and perform automatic annotation through the updated result.
[0007] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0008] The automatic dimension matching method for drawing drawing software provided by the present application relates to the field of data processing technology, solves the technical problem in the prior art that the automatic dimension matching of drawings has poor adaptability, resulting in poor dimension matching accuracy, and realizes the rational and precise control of the automatic dimension matching of drawings, thereby improving the dimension matching accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 A schematic diagram of the process flow of the automatic size matching method for drawing software is provided for this application;
[0010] Figure 2 A schematic diagram of the structure of an automatic size matching system for drawing software is provided for this application.
[0011] Explanation of the accompanying drawings: instruction receiving module 1, first feature module 2, constraint module 3, layer recognition module 4, annotation isolation module 5, feature traversal module 6, automatic annotation module 7. DETAILED DESCRIPTION
[0012] The present application provides an automatic size matching method for drawing drawing software, so as to solve the technical problem in the prior art that the automatic size matching of drawings has poor adaptability, resulting in poor size matching accuracy.
[0013] Embodiment 1
[0014] like Figure 1 As shown, an embodiment of the present application provides a method for automatically matching dimensions for drawing software, the method comprising:
[0015] Step A100: receiving a size automatic matching instruction and adjusting the configuration unit to an activated state;
[0016] In the present application, the automatic size matching method for drawing drawing software provided in the embodiment of the present application is applied to the automatic size matching system of drawing drawing software.
[0017] In order to more accurately automatically match the dimensions of the target drawing, it is first necessary to receive the automatic dimension matching instructions through the drawing drawing software. The drawing drawing software can be CAD. CAD is mainly used for professional design engineering software, drawing machinery, architecture and other construction drawings, both two-dimensional and three-dimensional can be drawn, and the automatic dimension matching instruction refers to the instruction to input the target drawing into the drawing drawing software to automatically mark some features of the target drawing. At the same time, adjusting the configuration unit to the activated state means activating the automatic dimension matching module in the configuration unit, which is used to match the dimensions of the graphics in each layer contained in the target drawing, and serves as an important reference for the later automatic dimension matching through the drawing drawing software.
[0018] Step A200: obtaining input features of the user, wherein the input features include size features, features of the type to be annotated, and features of annotation constraints;
[0019] In the present application, in order to more accurately automatically match the dimensions of the target drawing through the drawing drawing software in the later stage, the input features of the content input by the user into the drawing drawing software are first extracted based on the target drawing. The input features may include dimension features, features of the type to be annotated, and annotation constraint features. Dimension features refer to the data such as the line segment length, angle size, circle diameter length, coaxiality, etc. contained in the target drawing. The feature of the type to be annotated refers to the dimension features that are not automatically matched and annotated in the target drawing after the target drawing is input into the drawing drawing software and dimensioned through the automatic dimension matching instruction. The annotation constraint feature refers to the dimension features that are not automatically matched and annotated in the target drawing. The features used to restrict the annotation dimensions in the target drawing can be accurately marked on the target drawing through the drawing drawing software to ensure that their positions are consistent with the actual situation. If there are multiple annotation constraint features on the target drawing, different symbols or colors can be used to distinguish them, such as: color separation, line thickness, and font size in the target drawing. Furthermore, for the dimensions and restrictions of the annotation constraint features, standard dimensioning symbols can be used, such as diameter, length, angle, etc., and specific values or tolerance ranges can be indicated, thereby ensuring the automatic matching of dimensions through the drawing drawing software.
[0020] Step A300: constraining the configuration unit in the activated state based on the input feature to complete the initial response of the configuration unit;
[0021] Furthermore, step A300 of the present application also includes:
[0022] Step A310: parsing the input features, determining the number of key feature points according to the type of features to be annotated, and completing the initial point fixation of the key feature points;
[0023] Step A320: fix the remaining key feature points through the size feature, and use the initial point as the rotation center to rotate and establish a matching feature set;
[0024] Step A330: Complete the configuration unit constraints with the matching feature set.
[0025] In the present application, in order to ensure the configuration response data in the configuration unit, it is necessary to use the input features obtained above to activate the configuration unit constraints, which means to parse the input features, that is, to search, process, analyze and mine valuable data for the input features, and analyze the relationship between the various components in the data. Furthermore, the number of key feature points in the target drawing is determined according to the type features to be marked, which means to record the points corresponding to the type features to be marked as key feature points, calculate the number of type features to be marked in the target drawing and record them as the number of key feature points. Since the key feature points do not contain distance features, only a single point is located, and on this basis, the fixed position of the initial point of the key feature point is determined. Furthermore, the size features are used to calculate the remaining points except for the key feature points. The remaining key feature points are fixed, and the initial point is used as the rotation center to rotate and establish a matching feature set. For example, if the key feature point is a single line segment, the remaining key feature points are all line segment positions except the single line segment position after the single line segment is rotated 360°, and the initial point is any point in the line segment. On this basis, all key feature points are iterated, and the features matched by all remaining key features are integrated and summarized and recorded as a matching feature set. Finally, the feature constraints of the activated configuration unit are limited according to the matching feature set, thereby completing the initial response of the configuration unit. The initial response means that in the initial state of the configuration unit, the output of the configuration unit will gradually increase from time zero until it stabilizes at a specific value, laying a solid foundation for the subsequent automatic matching of dimensions through drawing software.
[0026] Step A400: performing layer recognition on the target drawing and locating and calibrating the layer;
[0027] In this application, in order to improve the accuracy of automatic size matching of the target drawing through the drawing drawing software, it is necessary to identify the layers of the target drawing. The layer of the target drawing refers to the layer level where the edited target drawing object is located, which is used to distinguish different editing objects or different blocks in the same drawing. On this basis, the calibration layer is positioned. The calibration layer refers to the layer that does not contain annotation constraint features, that is, the basic layer that does not contain features such as line segment width and color. In this way, the calibration layer is positioned and identified in the target drawing, which has a limited effect on realizing automatic size matching through the drawing drawing software.
[0028] Step A500: marking and isolating the calibration layer, and generating a mapping between the marking and the line segments in the layer;
[0029] In the present application, the annotation information in the calibration layer is separated from the image information in the target drawing, thereby completing the annotation isolation of the calibration layer. At the same time, based on the associated mapping relationship between the annotation information after annotation isolation and the image information in the target drawing, an identification mapping is generated between the annotation information and the line segments in the layer where the target drawing is located. This means that when a value is taken in the annotation information, there is one and only one corresponding value for the line segment in the layer, and when a value is taken in the line segment in the layer, the annotation information can have multiple corresponding values. On this basis, the identification mapping between the line segments in the layer and the annotation information is completed so as to serve as reference data for the automatic matching of dimensions through the drawing drawing software in the later stage.
[0030] Step A600: Traversing the features of the labeled and isolated calibrated layer through the configuration unit to obtain a feature traversal result, wherein the feature traversal result carries a traversal order identifier;
[0031] In the present application, in order to enable the drawing drawing software to quickly and accurately automatically match the dimensions of the target drawing, it is first necessary to traverse the annotation feature information and image information in the target drawing through the configuration unit on the calibration layer after the annotation isolation is completed. This means that the annotation feature information and image information in each layer contained in the calibration layer are accessed and identified one by one. This means that the traversal sequence corresponding to the annotation feature information and image information is identified. The annotation feature information may include line segment feature information, angle feature information, circle feature information, coaxiality feature information, etc. The image information in the target drawing may include axis information, graphic information, etc. On this basis, a feature traversal result is generated according to the calibration layer that has completed the feature traversal. At the same time, each feature data in the feature traversal result corresponds to an identifier containing the traversal order, thereby improving the accuracy of automatic dimension matching achieved in the later stage through the drawing drawing software.
[0032] Step A700: perform traversal sequence identification update through the identification mapping, and perform automatic labeling based on the update result.
[0033] Furthermore, step A700 of the present application also includes:
[0034] Step A710: performing layer recognition on the target drawing and locating the complete layer;
[0035] Step A720: Positioning the points to be marked based on the updated results to generate positioning results;
[0036] Step A730: inputting the positioning result and the complete layer into a distribution constraint network to determine a pre-distribution space;
[0037] Step A740: completing automatic labeling control through the pre-distributed space.
[0038] Furthermore, step A700 of the present application also includes:
[0039] Step A750: determining whether the configuration unit is continuously in an activated state;
[0040] Step A760: If the configuration unit is continuously in the activated state, performing continuous identification of the configuration unit;
[0041] Step A770: When a new matching feature is identified at any time node, a corresponding response annotation is generated;
[0042] Step A780: Perform automated annotation management based on the response annotation.
[0043] In the present application, firstly, the mapping identifier is used as reference data to update the traversal order identifier obtained above to obtain the update result, which means that layer identification is performed based on the image information, annotation information, and annotation constraint information in the target drawing, that is, at least each layer corresponds to one information, and multiple layers may correspond to the image information, annotation information, and annotation constraint information. Then all the layers are integrated and output as a complete layer. At the same time, the updated traversal order identifier is used as the basis for locating the points to be marked in the target drawing. It means that based on all the markable points in the target drawing, the annotation information contained in the update result is eliminated in the target drawing, and the remaining points are recorded as the points to be marked, thereby generating a positioning result. Furthermore, the positioning result and the complete layer are input into a distributed constraint network. The distributed constraint network is an artificial neural network model used to process unstructured data, that is, data with irregular or incomplete structure, no predefined data model, and data that is not convenient to be represented by a two-dimensional logical table in a database. It is mainly used to process data such as images, speech and natural language. It can realize the geometric transformation of input data by introducing a spatial transformer network, thereby improving the ability of the distribution constraint network to constrain the positioning results and complete layers in abnormal and dangerous situations. In addition, the distribution constraint network can also effectively capture the local correlation of the input data, thereby determining the pre-distributed space. The pre-distributed space refers to the feature space obtained after the positioning results and complete layers are processed by a multi-layer neural network in deep learning. In this space, different categories of positioning results and complete layers are distributed in different areas, so classifiers can be used to classify new positioning results and complete layers. The pre-distributed space is mainly used to map the positioning results and complete layers to a low-dimensional vector space, making the relationship between the positioning results and the complete layers clearer and easier to handle. In this space, similar samples will be mapped to similar positions, making it easier to judge similarity, and finally completing the automatic annotation control of the target drawing size through the pre-distributed space.
[0044] Furthermore, in order to improve the accuracy of automatic annotation control, it is necessary to reasonably control the target drawings during the automatic annotation process. First, it is necessary to judge whether the configuration unit is continuously in an activated state. The configuration unit can calculate the output value through the activation function. Common activation functions include sigmoid function, ReLU function, etc. By passing the input data to the configuration unit and applying the activation function, the corresponding output value can be obtained. Once the output value of the configuration unit is obtained, it can be compared with the pre-set threshold. If the output value exceeds the threshold, the configuration unit can be considered to be in an activated state; otherwise, it can be considered to be in an inactive state. It means to observe whether the output value of the configuration unit exceeds the preset threshold. Specifically, if the output value of the configuration unit exceeds the set threshold, it can be considered to be in an activated state; conversely, if the output value is lower than the threshold, it can be considered to be in an inactive state.
[0045] If the configuration unit is continuously in an activated state, the continuous identification of the configuration unit is performed. The continuous identification of the configuration unit means that in the neural network, for any specific configuration unit, it is determined whether the configuration unit is continuously in an activated state for a period of time. It means that the configuration unit can be observed through a time window, that is, a time window is first set, and the output state of the configuration unit is observed in each time window. If the configuration unit is in an activated state in multiple consecutive time windows, the configuration unit is considered to be in a continuously activated state. Furthermore, when a new matching feature is identified at any time node, a corresponding response annotation is generated. The response annotation is used to automatically update the annotation to reflect the changes when the identified new matching features change. Finally, the target drawing is updated and managed during the automatic annotation process according to the response annotation.
[0046] Furthermore, step A730 of the present application includes:
[0047] Step A741: generating alignment constraints of annotations based on the annotation isolation results;
[0048] Step A742: spatially locating the pre-distribution space by using the alignment constraint;
[0049] Step A743: Determine whether there are spatially conflicting positioning results. If so, perform a neighborhood spatial optimization search corresponding to the annotation.
[0050] Step A744: Optimize the spatial positioning according to the neighborhood space optimization result, and complete the automatic labeling control based on the optimized spatial positioning.
[0051] Furthermore, step A730 of the present application includes:
[0052] Step A745: generating a new annotation result through the optimized spatial positioning and updating result, wherein the new annotation result is stored in a new annotation layer;
[0053] Step A746: placing the newly added annotation layer in a selected state, and performing grid segmentation of the annotation according to the optimized spatial positioning to create a grid selected space;
[0054] Step A747: Establish a one-to-one connection relationship between the grid selected space and the newly added annotation result, and put the grid selected space into an active state;
[0055] Step A748: Obtain the user's selection confirmation result, and manage the newly added annotation results in the active state according to the selection confirmation result.
[0056] Furthermore, step A730 of the present application includes:
[0057] Step A749: When receiving the user's confirmation instruction, a layer locking instruction is synchronously generated;
[0058] Step A7410: Perform layer lock management for the newly added annotation layer based on the layer lock instruction.
[0059] In the present application, firstly, the alignment constraint of the annotation is generated through the annotation isolation result. The alignment constraint of the annotation is used to constrain the annotation information, that is, to constrain the distance of the annotation information, and can constrain the horizontal distance, vertical size or inclined size, etc. Then, the annotation information is spatially quantified in the pre-distributed space through the alignment constraint, which means mapping the annotation information to the vector space under the size constraint within the alignment constraint, completing the spatial positioning of the annotation information in the pre-distributed space, and further, judging whether there is a spatial conflict positioning result in the pre-distributed space. If so, it is regarded as the overlap between the position of the annotation information and the image information, and performing the optimization of the neighborhood space of the corresponding annotation at the same time, which means the process of finding the optimal solution by searching and evaluating the candidate solutions in the neighborhood space. In any neighborhood space, a set of possible candidate solutions can be generated by making slight changes or modifications to the annotation information. Then, by evaluating the performance or objective function values of these candidate solutions, the best solution is selected as the current solution, and the search is continued in the neighborhood space of the new solution until the stopping condition is met. Furthermore, the spatial positioning is optimized according to the neighborhood space optimization result, which means that the spatial positioning is updated through the optimal solution within the neighborhood space optimization result, and finally the target drawing is automatically labeled and controlled according to the optimized spatial positioning.
[0060] Furthermore, generating new annotation results through optimized spatial positioning and update results refers to extracting the optimized spatial positioning and annotation information in the update results to perform annotation adding operations on the complete layer, and using the new annotation as the new annotation result, and all the new annotation results are stored in one layer, that is, the new annotation result is stored in the new annotation layer, and then the new annotation layer is placed in a selected state, and the annotation grid is segmented according to the optimized spatial positioning to create a grid selected space. In order to facilitate the selection of the new annotation results, it is necessary to perform uniform grid segmentation on the entire target drawing according to the area where the new annotation information is located, so that each segmented grid is set as a grid selected area, and all grid selected areas are summarized to complete the creation of the grid selected space. Furthermore, a connection relationship is established between the grid selected space and the new annotation result, and there is a one-to-one correspondence between the connection relationship between the grid selected space and the new annotation result, and the network selected space Being placed in an active state means that the selected space on the network can be selected, deleted, moved, and other operations can be performed, and then the user's selection confirmation result can be extracted. The user's selection confirmation result is used to select and confirm the data required by the user in the target drawing, and the newly added annotation results are managed in the active state through the selection confirmation result. Furthermore, when the system receives the user's confirmation instruction, a layer locking instruction is generated synchronously. The layer locking instruction is a function that protects the layer content from being accidentally modified. By locking the layer, accidental drawing or editing operations on the newly added annotation layer can be avoided, thereby ensuring the integrity and stability of the image. It is used to temporarily lock the newly added annotation layer. The layer of the newly added annotation layer is locked and managed through the layer locking instruction, thereby protecting the data in the newly added annotation layer from being affected by accidental modifications and improving work efficiency, thereby ensuring better automatic matching of dimensions with the target drawing through the drawing drawing software in the later stage.
[0061] In summary, the automatic dimension matching method for drawing drawing software provided in the embodiment of the present application includes at least the following technical effects, which realizes the rational and precise control of automatic dimension matching of drawings, thereby improving the accuracy of dimension matching.
[0062] Embodiment 2
[0063] Based on the same inventive concept as the automatic size matching method for drawing software in the aforementioned embodiment, Figure 2 As shown, the present application provides a size automatic matching system for drawing software, the system comprising:
[0064] An instruction receiving module 1, wherein the instruction receiving module 1 is used to receive an automatic size matching instruction and adjust the configuration unit to an activated state;
[0065] A first feature module 2, wherein the first feature module 2 is used to obtain input features of the user, wherein the input features include size features, features of the type to be annotated, and features of annotation constraints;
[0066] A constraint module 3, the constraint module 3 is used to constrain the configuration unit in the activation state based on the input feature to complete the initial response of the configuration unit;
[0067] A layer recognition module 4, which is used to recognize layers of target drawings and locate and calibrate layers;
[0068] A label isolation module 5, which is used to label and isolate the calibration layer, and generate a mapping between the label and the line segment in the layer;
[0069] A feature traversal module 6, the feature traversal module 6 is used to perform a feature traversal of the calibrated layer after the annotation isolation through the configuration unit to obtain a feature traversal result, wherein the feature traversal result carries a traversal order identifier;
[0070] The automatic labeling module 7 is used to perform traversal sequence labeling update through the label mapping, and perform automatic labeling based on the update result.
[0071] Furthermore, the system also includes:
[0072] An identification module, which is used to identify the layers of the target drawing and locate the complete layers;
[0073] A first positioning module, the first positioning module is used to locate the point to be marked based on the update result and generate a positioning result;
[0074] A space preset module, wherein the space preset module is used to input the positioning result and the complete layer into a distribution constraint network to determine a pre-distribution space;
[0075] A first control module is used to complete automatic labeling control through the pre-distributed space.
[0076] Furthermore, the system also includes:
[0077] A constraint module, the constraint module is used to generate an alignment constraint of the annotation based on the annotation isolation result;
[0078] A second positioning module, the second positioning module is used to perform spatial positioning of the pre-distribution space through the alignment constraint;
[0079] A first optimization module, wherein the first optimization module is used to determine whether there is a positioning result with spatial conflict, and if so, perform a neighborhood space optimization search corresponding to the annotation;
[0080] The second optimization module is used to optimize the spatial positioning according to the neighborhood space optimization result, and complete the automatic labeling control based on the optimized spatial positioning.
[0081] Furthermore, the system also includes:
[0082] A new module is added, and the new module is used to generate a new annotation result through the optimized spatial positioning and update result, wherein the new annotation result is stored in a new annotation layer;
[0083] A grid segmentation module, the grid segmentation module is used to place the newly added annotation layer in a selected state, and perform grid segmentation of the annotation according to the optimized spatial positioning to create a grid selected space;
[0084] A connection establishment module, the connection establishment module is used to establish a one-to-one connection relationship between the grid selected space and the newly added annotation result, and put the grid selected space into an active state;
[0085] The first management module is used to obtain the user's selection confirmation result and manage the newly added annotation results in the active state according to the selection confirmation result.
[0086] Furthermore, the system also includes:
[0087] An instruction module, wherein the instruction module is used to synchronously generate a layer locking instruction when receiving a confirmation instruction from a user;
[0088] The second management module is used to perform layer locking management of the newly added annotation layer based on the layer locking instruction.
[0089] Furthermore, the system also includes:
[0090] A parsing module, the parsing module is used to parse the input features, determine the number of key feature points according to the type of features to be annotated, and complete the initial point fixation of the key feature points;
[0091] A feature matching module, the feature matching module is used to fix the remaining key feature points through the size feature, and use the initial point as the rotation center to rotate and establish a matching feature set;
[0092] A constraint configuration module is used to complete the configuration unit constraints with the matching feature set.
[0093] Furthermore, the system also includes:
[0094] A first judgment module, the first judgment module is used to judge whether the configuration unit is continuously in an activated state;
[0095] A second determination module, the second determination module is used to perform continuous identification of the configuration unit if the configuration unit is continuously in an activated state;
[0096] A response annotation module, wherein when a newly added matching feature is identified at any time node, the response annotation module generates a corresponding response annotation;
[0097] The third management module is used to perform automatic annotation management according to the response annotation.
[0098] Through the above-mentioned detailed description of the automatic size matching method for drawing drawing software in this specification, those skilled in the art can clearly understand the automatic size matching system for drawing drawing software in this embodiment. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0099] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. Automatic size matching method for drawing software, It is characterized in that The method comprises: Receive the size automatic matching instruction and adjust the configuration unit to an activated state; Acquire input features of the user, wherein the input features include size features, features of the type to be annotated, and features of annotation constraints; Performing configuration unit constraints of an activation state based on the input features to complete an initial response of the configuration unit; Identify the target drawing layers and locate and calibrate the layers; Annotate and isolate the calibration layer, and generate an identification mapping between the annotation and the line segments in the layer; Traversing the features of the labeled and isolated calibrated layers through the configuration unit to obtain a feature traversal result, wherein the feature traversal result carries a traversal order identifier; Performing traversal order identification update through the identification mapping, and performing automatic labeling through the update result; The method further comprises: Identify the layers of the target drawing and locate the complete layers; Based on the updated results, the points to be marked are located and the positioning results are generated; Inputting the positioning result and the complete layer into a distribution constraint network to determine a pre-distribution space; Complete automatic labeling control through the pre-distributed space; The method further comprises: Generate annotation alignment constraints based on annotation isolation results; Perform spatial positioning of the pre-distributed space by means of the alignment constraint; Determine whether there are spatially conflicting positioning results. If so, perform the corresponding marked neighborhood space optimization; The spatial positioning is optimized according to the neighborhood space optimization results, and the automatic labeling control is completed based on the optimized spatial positioning.
2. The method according to claim 1, It is characterized in that The method further comprises: Generate a new annotation result through the optimized spatial positioning and update result, wherein the new annotation result is stored in a new annotation layer; The newly added annotation layer is placed in a selected state, and the annotation grid is segmented according to the optimized spatial positioning to create a grid selected space; Establish a one-to-one connection between the grid selected space and the newly added annotation result, and put the grid selected space in the active state; Get the user's selection confirmation result, and manage the newly added annotation results in the active state based on the selection confirmation result.
3. The method according to claim 1, It is characterized in that The method further comprises: When receiving the user's confirmation instruction, a layer locking instruction is generated synchronously; Layer lock management of newly added annotation layers is performed based on layer lock instructions.
4. The method according to claim 1, It is characterized in that The configuration unit constraint of the activation state based on the input feature to complete the initial response of the configuration unit also includes: Parse the input features, determine the number of key feature points according to the type of features to be annotated, and complete the initial point fixation of the key feature points; The remaining key feature points are fixed by using the size feature, and the initial point is used as the rotation center to rotate and establish a matching feature set; The configuration unit constraint is completed with the matching feature set.
5. The method according to claim 1, It is characterized in that The method further comprises: Determining whether the configuration unit is continuously in an activated state; If the configuration unit is continuously in the activated state, performing continuous identification of the configuration unit; When a new matching feature is identified at any time node, a corresponding response annotation is generated; Automated annotation management based on response annotations.
6. Automatic size matching system for drawing software, It is characterized in that The system comprises: An instruction receiving module, the instruction receiving module is used to receive an automatic size matching instruction and adjust the configuration unit to an activated state; A first feature module, the first feature module is used to obtain input features of the user, wherein the input features include size features, features of the type to be annotated, and annotation constraint features; A constraint module, the constraint module is used to constrain the configuration unit in the activation state based on the input feature to complete the initial response of the configuration unit; A layer recognition module, which is used to perform layer recognition on a target drawing and locate and calibrate the layer; A label isolation module, the label isolation module is used to label and isolate the calibration layer, and generate a mapping between the label and the line segment in the layer; A feature traversal module, the feature traversal module is used to perform a feature traversal of the calibrated layer after the annotation isolation through the configuration unit to obtain a feature traversal result, wherein the feature traversal result carries a traversal order identifier; An automatic labeling module, the automatic labeling module is used to perform a traversal sequence label update through the label mapping, and perform automatic labeling based on the update result; An identification module, which is used to identify the layers of the target drawing and locate the complete layers; A first positioning module, the first positioning module is used to locate the point to be marked based on the update result and generate a positioning result; A space preset module, the space preset module is used to input the positioning result and the complete layer into a distribution constraint network to determine a pre-distribution space; A first control module, the first control module is used to complete automatic labeling control through the pre-distributed space; A constraint module, the constraint module is used to generate an alignment constraint of the annotation based on the annotation isolation result; A second positioning module, the second positioning module is used to perform spatial positioning of the pre-distribution space through the alignment constraint; A first optimization module, wherein the first optimization module is used to determine whether there is a spatial conflict in the positioning result, and if so, perform a neighborhood space optimization search corresponding to the annotation; The second optimization module is used to optimize the spatial positioning according to the neighborhood space optimization result, and complete the automatic labeling control based on the optimized spatial positioning.
