A positioning size marking method
By automatically acquiring and sorting the coordinates of the line segment endpoints in the design drawing through a computer program, the positioning dimensions of the parts can be quickly and accurately marked, solving the problems of low efficiency and high error rate of manual marking.
Patent Information
- Application Number
- CN202211414058.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-11
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2042-11-11
AI Technical Summary
In existing technologies, the marking of part positioning dimensions relies on manual operation, which is greatly affected by subjective factors, has high labor intensity, low efficiency, and is prone to errors.
A method for positioning dimension annotation is provided, which automatically obtains the coordinates of the endpoints of line segments in the design drawing through a computer program, sorts them according to preset rules and obtains them by row nodes, and automatically generates positioning dimension annotations.
It enables automatic annotation of positioning dimensions, improves annotation efficiency, reduces labor intensity and error rate, and ensures annotation accuracy.
Smart Images

Figure CN115631235B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of part dimension marking, and particularly relates to a positioning dimension marking method. BACKGROUND
[0002] In the manufacturing process of steel structures such as bridges, the design drawing of a part needs to be drawn and the positioning dimension needs to be marked. In the related art, the positioning dimension marking of a part mainly relies on manual marking one by one, which is not only affected by subjective factors of an operator, but also has the problems of high labor intensity, low efficiency and easy marking errors.
[0003] It should be noted that the information disclosed in the above background section is only used to strengthen the understanding of the background of the present disclosure, and therefore can include information that does not constitute prior art known to those of ordinary skill in the art. SUMMARY
[0004] The present application aims to at least solve the technical problems of manual positioning dimension marking being affected by subjective factors of an operator, high labor intensity, low efficiency and easy marking errors to some extent. To this end, the present application provides a positioning dimension marking method and a positioning dimension marking drawing.
[0005] The positioning dimension marking method provided by the present application comprises the following steps:
[0006] A design drawing acquisition step acquires a design drawing of a single element;
[0007] A marking layer selection step selects a marking layer in the design drawing;
[0008] A marking element selection step selects a marking element in the marking layer;
[0009] A line segment set generation step acquires endpoints of all line segments in the marking element, and generates a line segment set comprising line segment endpoint coordinate information;
[0010] A line segment set transformation step transforms the endpoint representation of the line segment set according to the vertical / horizontal coordinate size of the line segment endpoint coordinate;
[0011] A line segment set sorting step sorts the endpoints of the line segments according to a first preset rule;
[0012] A row node acquisition step acquires the horizontal / vertical coordinate difference value of adjacent elements in the sorted line segment set, and records adjacent horizontal / vertical coordinate difference values greater than a set row spacing difference value as the starting element and the terminal element of two line segment subsets, respectively;
[0013] ordering the endpoints of the line segment subset according to a second preset rule;
[0014] performing positioning and dimensioning according to the coordinate information of the endpoints in the line segment subset.
[0015] In some embodiments, in the line segment set generating step, the line segment set is represented as Φ = (P0, P1, P3, …, P n ), wherein the coordinate information of the endpoints of the line segment is represented as P n = (PA n , PB n ) = (XPA n , YPA n ) (XPB n , YPB n ).
[0016] In some embodiments, in the line segment set transforming step, transforming the representation of the endpoints of the line segment set according to the size of the longitudinal coordinate / latitudinal coordinate of the coordinate information of the endpoints of the line segment includes the following sub-steps:
[0017] judging the size of the longitudinal coordinate / latitudinal coordinate of the two endpoints of the same line segment, and transforming the representation of the coordinate information of the endpoints of the line segment according to the size of the longitudinal coordinate / latitudinal coordinate of the endpoints.
[0018] In some embodiments, in the representation of the coordinate information of the endpoints of the line segment, the collection element representing the upper endpoint is in front, and the collection element representing the lower endpoint is in back.
[0019] In some embodiments, in the line segment set ordering step, the first preset rule is:
[0020] ordering the elements in the line segment set in ascending / descending order of the longitudinal coordinate / latitudinal coordinate in the coordinate information of the endpoints of the line segment.
[0021] In some embodiments, in the line segment set ordering step, the first preset rule is:
[0022] In some embodiments, in the line segment set ordering step, the first preset rule is:
[0023] In some embodiments, in the line segment subset ordering step, the second preset rule is to order the elements in the line segment subset in ascending / descending order of the longitudinal coordinate / latitudinal coordinate in the coordinate information of the endpoints of the line segment; and in the line segment set ordering step and the line segment subset ordering step, the first preset rule and the second preset rule are not the same.
[0024] In some implementations, during the positioning dimension annotation step, the positioning dimension of the upper edge is annotated according to the first endpoint element in the endpoint coordinate information of the line segment subset, and the positioning dimension of the lower edge is annotated according to the second endpoint element in the endpoint coordinate information of the line segment subset.
[0025] This application also proposes a positioning dimension annotation drawing, which is annotated using the positioning dimension annotation method described above.
[0026] The embodiments of this application have at least the following beneficial effects:
[0027] The above-mentioned positioning dimension annotation method realizes automatic annotation of positioning dimensions based on the design drawing of unit component. It can quickly generate a large number of positioning dimensions, is simple to operate and accurate in positioning. Compared with the traditional manual positioning dimension annotation method, it not only improves the annotation efficiency, but also effectively avoids the defects of manual annotation, such as high labor intensity, low efficiency and easy to make annotation errors. Attached Figure Description
[0028] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0029] Figure 1 A flowchart illustrating the positioning dimension annotation method in an embodiment of this application is shown;
[0030] Figure 2 This paper illustrates the endpoint positions of line segments in the graphic elements in the positioning dimensioning method of this application embodiment;
[0031] Figure 3 It shows Figure 1 A schematic diagram illustrating the effects of each step in the positioning dimensioning method.
[0032] Figure 4 This image shows the effect of manually marking positioning dimensions on a web unit;
[0033] Figure 5 The diagram illustrates the effects of each step in manually marking positioning dimensions.
[0034] Figure label:
[0035] 100, Web unit; 110, Upper edge; 120, Lower edge. Detailed Implementation
[0036] With reference to the drawings and specific examples, the technical solutions in the embodiments of the present application will be described clearly and completely. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.
[0037] In addition, the reference numbers and / or reference letters can be repeated in different examples in the present application, and such repetition is for the purpose of simplification and clarity, and does not indicate the relationship between the various embodiments and / or settings discussed. In addition, the present application provides examples of various specific processes and materials, but those skilled in the art can realize the application of other processes and / or the use of other materials.
[0038] The technical solutions in the embodiments of the present application will be described below with reference to the drawings and specific examples:
[0039] A positioning and dimension labeling method is provided in the embodiments of the present application, as shown in the figure, the positioning and dimension labeling method comprises the following steps: Figures 1 to 3
[0040] A design drawing of a single element is obtained in a design drawing obtaining step S100;
[0041] A labeling layer is selected in a labeling layer selecting step S200 in the design drawing;
[0042] A labeling graph element is selected in a labeling graph element selecting step S300 in the labeling layer;
[0043] The end points of all line segments in the labeling graph element are obtained, and a line segment set including line segment end point coordinate information is generated in a line segment set generating step S400;
[0044] The end point representation of the line segment set is transformed according to the vertical / horizontal coordinate size of the line segment end point coordinates in a line segment set transforming step S500;
[0045] The end points of the line segments are sorted according to a first preset rule in a line segment set sorting step S600;
[0046] The horizontal / vertical coordinate difference values of adjacent elements in the sorted line segment set are obtained in a row node obtaining step S700, when the horizontal / vertical coordinate difference values are greater than a set row spacing difference value, and the adjacent horizontal / vertical coordinate difference values greater than the set row spacing difference value are recorded as the starting element and the ending element of two line segment subsets respectively;
[0047] The end points of the line segment subsets are sorted according to a second preset rule in a line segment subset sorting step S800;
[0048] The positioning dimension marking step S900 is performed according to the coordinate information of the end points in the line segment subset.
[0049] In the positioning dimension marking method of the embodiment, the automatic marking of the positioning dimensions is realized on the basis of the design drawing of the unit element, a large number of positioning dimensions can be quickly generated, the operation is simple and the positioning is accurate, compared with the traditional manual positioning dimension marking method, the marking efficiency is improved, and the defects of heavy labor intensity, low efficiency and easy marking error of manual marking one by one can be effectively avoided.
[0050] In the embodiment, to solve the problem proposed by the application, the positioning dimension marking method can be based on a computer program processing flow in whole or in part, a computer executes a computer program compiled according to the above flow, and a solution for controlling or processing external objects or internal objects of the computer.
[0051] The manufacturing process of the bridge steel structure in the field includes design drawing manufacturing process review, part rough layout, material procurement, construction drawing drawing (design drawing deepening), steel blanking unit element manufacturing, and assembly manufacturing. Among them, the construction drawing drawing process includes part detail layout, machining drawing drawing, unit element drawing, jig drawing, assembly drawing, and site construction drawing. The parts with large workload are part detail layout and unit element drawing, which are mainly completed by manual drawing. Among them, unit element drawing is divided into the following steps: part placement, section drawing, positioning dimension marking, external dimension marking, and supporting table preparation. At present, the number of unit elements is generally between 10-100 pages, among which the external dimension and positioning dimension marking are large, such as Figure 4 As shown in the drawing, the positioning dimension marking on one web unit element is as many as 22, the positioning dimension marking mainly relies on manual marking one by one, occupies a lot of time of the drafter, and is repetitive work, and it takes a few hours to several days to complete the marking work. In addition, manual marking is greatly affected by the subjective factors of the operator, and the operator needs to manually capture all the positioning dimensions of each row of unit elements, such as Figure 5 As shown in the drawing, the upper edge positioning line of the first row of unit elements is marked first, and then the lower edge positioning line of the row of unit elements is marked; then the upper edge positioning line of the second row of unit elements is repeatedly marked, and then the lower edge positioning line of the second row of unit elements is marked; then the upper edge positioning line of the third row of unit elements is repeatedly marked, and then the lower edge positioning line of the third row of unit elements is marked; then the upper edge positioning line of the fourth row of unit elements is repeatedly marked, and then the lower edge positioning line of the fourth row of unit elements is marked, and so on for hundreds of times, which is labor-intensive, and it is easy to deviate when manually capturing the positioning points. How to shorten the marking time is the key to improving the work efficiency and reducing the labor intensity.
[0052] In the positioning dimension marking method of the embodiment, as shown in Figure 3As shown, after selecting the layer and the graphic element in the design drawing, most of the positioning size labels can be obtained through the program or the like program set on the computer. As can be seen from the partial view, the positioning size label generated by the positioning size labeling method of the embodiment of the present application has one more label between each unit element in each row compared with the manual labeling. The label can be deleted or adjusted by manual operation in the later stage. Compared with the traditional manual labeling, the labeling efficiency can be improved, the labeling time can be reduced, the operation is simple, a large amount of manual repetitive labor can be saved, the positioning is accurate, and the labeling accuracy can be improved.
[0053] In the positioning size labeling method of the embodiment, since the positioning line, the part and the like different graphic elements are located in different layers in the drawing habit in the industry, in the positioning size labeling method, the labeling layer and the labeling graphic element to be labeled need to be selected in the design drawing first, and then the coordinate information of the line segment and the end point thereof is obtained from the labeling graphic element.
[0054] In the line segment set generation step, as an optional implementation manner, as shown in Figure 2 , the line segment set is represented as Φ= (P0, P1, P3……P n ), wherein the coordinate information of the end point of the line segment is represented as P n =(PA n , PB n )=(XPA n , YPA n )(XPB n , YPB n ). P0, P1, P3……P n represent a line segment respectively, PA n and PB n represent two end points of the line segment P n , (XPA n , YPA n ) represents the coordinate information of the end point PA n , and (XPB n , YPB n ) represents the coordinate information of the end point PB n .
[0055] In the line segment set generation step, the end points of all the line segments in the labeling graphic element cannot correspond to the upper and lower end points of the line segment, that is, in the line segment P n , the end point PA n and the end point PB n cannot be distinguished as which is the upper end point and which is the lower end point. Therefore, the line segment set needs to be transformed, so that in P n =(PA n , PB n ), PA n and PBrespectively represent a specific endpoint.
[0056] In the line segment set transformation step, as an optional implementation, transforming the endpoint representation of the line segment set according to the vertical coordinate / horizontal coordinate size of the line segment endpoint coordinate includes the following sub-steps:
[0057] judging the vertical coordinate size / horizontal coordinate size of the two endpoints of the same line segment, and transforming the representation of the line segment endpoint coordinate information according to the vertical coordinate size / horizontal coordinate size of the endpoint.
[0058] In this embodiment, the line segment set transformation step of this embodiment is exemplarily described by taking the vertical coordinate size of the two endpoints of the same line segment as an example. Meanwhile, those skilled in the art can know that the vertical coordinate and the horizontal coordinate of the endpoint are only used to describe the position information of the endpoint, and on the basis of the exemplarily description of the vertical coordinate in this embodiment, those skilled in the art can judge the horizontal coordinate size of the two endpoints of the same line segment to perform the line segment set transformation step according to the description of this embodiment.
[0059] For example, in the line segment set transformation step of this embodiment, all the line segments P n are traversed, and the vertical coordinate size of the two endpoints of the line segment P n is compared. n When YPB n < YPA n , it indicates that the endpoint PA n is the upper endpoint, and the endpoint PB n is the lower endpoint, so the line segment P n is still represented as P n = (PA n , PB n ); when YPB n is greater than YPA n , it indicates that the endpoint PA n is the lower endpoint, and the endpoint PB n is the upper endpoint, so the representation of the line segment P n is transformed to P n = (PB n , PA n ) in order to make the representation order of the upper endpoint and the lower endpoint in the line segment P n consistent. That is, in the representation of the line segment endpoint coordinate information, the collection element representing the upper endpoint is in front, and the collection element representing the lower endpoint is in back.
[0060] In the line segment set sorting step, as an optional implementation, the endpoints of the line segments are sorted according to a first preset rule, wherein the first preset rule can be that the elements in the line segment set are sorted in ascending order / descending order of the horizontal coordinate / vertical coordinate in the line segment endpoint coordinate information.
[0061] In this embodiment, the line segment set Φ is set to (P0, P1, P3...P...). n Arranged in ascending order according to the vertical axis.
[0062] In the step of obtaining the branch node, the difference between the horizontal coordinates and the difference between the vertical coordinates of adjacent elements are obtained in the sorted line segment set. When the difference between the horizontal coordinates and the difference between the vertical coordinates are greater than the set line spacing difference, the adjacent elements whose difference between the horizontal coordinates and the difference between the vertical coordinates are greater than the set line spacing difference are recorded as the starting element and the ending element of the two line segment subsets, respectively.
[0063] In this embodiment, starting from n=1, the difference in the ordinates of adjacent elements in the line segment set is obtained, and it is determined whether the difference in the ordinates is greater than a preset row spacing difference. When |Y n -Y n-1 | When the difference is greater than the set line spacing difference, it indicates that from Y n The line segment begins to transform, denoted as the line segment subset K. n =n, and record the set of all K values as (0, K1, K2, K3, K4, ... Kn). n ), and record all K values initially as (0), find the row node, and obtain the following information: elements 0~K1 are the first row..., K n ~(K n+1 -1) The element is the nth row, K n+1 The last element is in the (n+1)th row.
[0064] In the step of obtaining the row node, optionally, the set row spacing difference value is 5000±1000. More optionally, the set row spacing difference value is 5000. Since the spacing between each row during the drawing process is generally greater than 5000, in this embodiment, the set row spacing difference value can be defined as approximately 5000.
[0065] In the segment subset sorting step, the endpoints of the segment subset are sorted according to a second preset rule. As an optional implementation, in the segment subset sorting step, the second preset rule is to sort the elements in the segment subset according to ascending / descending order of the x-coordinate / y-coordinate in the endpoint coordinate information; and in the segment set sorting step and the segment subset sorting step, the first preset rule and the second preset rule are different.
[0066] In the segment set sorting step of this embodiment, the endpoints of the segment are sorted in ascending order of their vertical coordinates. Therefore, in the segment subset sorting step, each row of elements is sorted in ascending / descending order of its horizontal coordinates. For example, elements 0 to K1 are arranged in ascending order of their horizontal coordinates, ... and K... n ~(K n+1 -1) The elements are sorted in ascending order by their horizontal coordinates, with K... n+1The last element is arranged in ascending order of the horizontal coordinate.
[0067] In the positioning dimension labeling step, as an optional implementation, the positioning dimension of the upper edge is labeled according to the first end point element in the end point coordinate information in the line segment subset, and the positioning dimension of the lower edge is labeled according to the second end point element in the end point coordinate information in the line segment subset.
[0068] In this embodiment, first, the PA element of the 0~K1 element is used for positioning dimension labeling, and then the PA element of the K(K-1) element is used for positioning dimension labeling, and finally the PA element of the K last element is used for positioning dimension labeling. n In this embodiment, first, the PA element of the 0~K1 element is used for positioning dimension labeling, and then the PA element of the K(K-1) element is used for positioning dimension labeling, and finally the PA element of the K last element is used for positioning dimension labeling. n In this embodiment, first, the PA element of the 0~K1 element is used for positioning dimension labeling, and then the PA element of the K(K-1) element is used for positioning dimension labeling, and finally the PA element of the K last element is used for positioning dimension labeling. n+1 In this embodiment, first, the PA element of the 0~K1 element is used for positioning dimension labeling, and then the PA element of the K(K-1) element is used for positioning dimension labeling, and finally the PA element of the K last element is used for positioning dimension labeling. n In this embodiment, first, the PA element of the 0~K1 element is used for positioning dimension labeling, and then the PA element of the K(K-1) element is used for positioning dimension labeling, and finally the PA element of the K last element is used for positioning dimension labeling. n+1 In this embodiment, first, the PA element of the 0~K1 element is used for positioning dimension labeling, and then the PA element of the K(K-1) element is used for positioning dimension labeling, and finally the PA element of the K last element is used for positioning dimension labeling. n In this embodiment, first, the PA element of the 0~K1 element is used for positioning dimension labeling, and then the PA element of the K(K-1) element is used for positioning dimension labeling, and finally the PA element of the K last element is used for positioning dimension labeling.
[0069] Second, first, the PB element of the 0~K1 element is used for positioning dimension labeling, and then the PB element of the K(K-1) element is used for positioning dimension labeling, and finally the PB element of the K last element is used for positioning dimension labeling. n Second, first, the PB element of the 0~K1 element is used for positioning dimension labeling, and then the PB element of the K(K-1) element is used for positioning dimension labeling, and finally the PB element of the K last element is used for positioning dimension labeling. n Second, first, the PB element of the 0~K1 element is used for positioning dimension labeling, and then the PB element of the K(K-1) element is used for positioning dimension labeling, and finally the PB element of the K last element is used for positioning dimension labeling. n+1 Second, first, the PB element of the 0~K1 element is used for positioning dimension labeling, and then the PB element of the K(K-1) element is used for positioning dimension labeling, and finally the PB element of the K last element is used for positioning dimension labeling. n Second, first, the PB element of the 0~K1 element is used for positioning dimension labeling, and then the PB element of the K(K-1) element is used for positioning dimension labeling, and finally the PB element of the K last element is used for positioning dimension labeling. n+1 Second, first, the PB element of the 0~K1 element is used for positioning dimension labeling, and then the PB element of the K(K-1) element is used for positioning dimension labeling, and finally the PB element of the K last element is used for positioning dimension labeling. n Second, first, the PB element of the 0~K1 element is used for positioning dimension labeling, and then the PB element of the K(K-1) element is used for positioning dimension labeling, and finally the PB element of the K last element is used for positioning dimension labeling.
[0070] As shown in the positioning dimension labeling method, after all the labeling graph elements in the unit element are labeled by the positioning dimension labeling method, the positioning dimension can be accurately labeled in the labeling graph element. Figure 3 Although there is one more labeling between the unit elements in the same row, it needs to be removed subsequently, which is equivalent to removing one positioning dimension labeling for each unit element, and the workload brought by removing one positioning dimension labeling for each unit element is almost negligible compared to manually labeling several tens or hundreds of positioning dimensions for each unit element.
[0071] The second major invention of the present application also proposes a positioning dimension labeled drawing, which is labeled by the above positioning dimension labeling method.
[0072] In the present application, unless specifically defined and limited otherwise, the "on" or "under" of the first feature to the second feature can include that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, the "on", "above" and "over" of the first feature to the second feature includes that the first feature is directly above and obliquely above the second feature, or only indicates that the first feature is higher in horizontal height than the second feature. The "under", "below" and "under" of the first feature to the second feature includes that the first feature is directly below and obliquely below the second feature, or only indicates that the first feature is lower in horizontal height than the second feature.
[0073] In the description of the present application, it should be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, which is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application.
[0074] It should be noted that all directional indications in the embodiments of the present application are only used to explain the relative positional relationship, motion condition, etc. between the components in a certain posture, and if the certain posture changes, the directional indications also change accordingly.
[0075] In the present application, unless specifically defined and limited otherwise, the terms "connection", "fixing" and the like should be broadly understood, for example, "fixing" can be fixed connection, or detachable connection, or integral; can be mechanical connection, or electrical connection; can be directly connected, or indirectly connected through intermediate medium; can be the internal communication of two elements or the interaction relationship of two elements, unless otherwise specifically limited. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.
[0076] In addition, the description such as "first", "second" and the like in the present application is only for the purpose of description, and cannot be understood as indicating or implying the relative importance of the indicated technical features or implying the number of the indicated technical features. Therefore, the features limited by "first", "second" can explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise specifically limited.
[0077] In the description of the specification, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In the specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in one or more embodiments or examples. In addition, those skilled in the art can combine and integrate different embodiments or examples described in the specification.
[0078] In addition, the technical solutions among various embodiments can be combined with each other, but it must be based on the fact that a person skilled in the art can realize it, and when the combination of technical solutions appears contradictory or cannot be realized, it should be considered that the combination of technical solutions does not exist and is not within the protection scope required by the present application.
[0079] Although the embodiments of the present application have been shown and described, those skilled in the art can understand that various changes, modifications, replacements and variations can be made to the embodiments without departing from the principles and purposes of the present application, and the scope of the present application is defined by the claims and their equivalents.
Claims
1. A method of positioning dimensioning, characterized in that, The positioning dimension marking method comprises the following steps: a design drawing acquisition step of acquiring a design drawing of a single element; a marking layer selection step of selecting a marking layer in the design drawing; a marking element selection step of selecting a marking element in the marking layer; a line segment set generation step of acquiring end points of all line segments in the marking element and generating a line segment set comprising line segment end point coordinate information; a line segment set transformation step of transforming an end point representation of the line segment set according to a vertical / horizontal coordinate size of the line segment end point coordinate; a line segment set sorting step of sorting the end points of the line segments according to a first preset rule; a row division node acquisition step of acquiring a vertical coordinate difference value of adjacent elements in the sorted line segment set, recording adjacent elements with a vertical coordinate difference value greater than a set row spacing difference value as starting elements and ending elements of two line segment subsets when the vertical coordinate difference value is greater than the set row spacing difference value; a line segment subset sorting step of sorting the end points of the line segment subsets according to a second preset rule; and a positioning dimension marking step of marking a positioning dimension according to the end point coordinate information in the line segment subsets. In the line segment set generation step, the line segment set is represented as Φ = (P0, P1, P3...P... n ), where the coordinate information of the endpoints of the line segment is represented as P. n =(PA n PB n ) = (XPA) n YPA n (XPB) n YPB n P0, P1, P3...P n Each represents a line segment, PA n PB n Representing line segment P respectively n The two endpoints, (XPA) n YPA n ) represents endpoint PA n Coordinate information, (XPB) n YPB n ) represents endpoint PB n Coordinate information; In the line segment set transformation step, transforming the end point representation of the line segment set according to the vertical / horizontal coordinate size of the line segment end point coordinate comprises the following sub-steps: judging a vertical / horizontal coordinate size of two end points of a same line segment and transforming a representation of the line segment end point coordinate information according to the vertical / horizontal coordinate size of the end points; in the representation of the line segment end point coordinate information, a collection element representing an upper end point is in front and a collection element representing a lower end point is in back; in the line segment set sorting step, the first preset rule is to sort elements in the line segment set in ascending / descending order of a horizontal / vertical coordinate in the line segment end point coordinate information; in the line segment subset sorting step, the second preset rule is to sort elements in the line segment subset in ascending / descending order of a horizontal / vertical coordinate in the line segment end point coordinate information; and in the line segment set sorting step and the line segment subset sorting step, the first preset rule and the second preset rule are not the same.
2. The method of claim 1, wherein, In the row division node acquisition step, the set row spacing difference value is 4000-6000.
3. The method of claim 2, wherein, In the row division node acquisition step, the set row spacing difference value is 5000.
4. The method of claim 2, wherein, In the positioning dimension marking step, a first end point element in the end point coordinate information in the line segment subset is used to mark a positioning dimension of an upper edge, and a second end point element in the end point coordinate information in the line segment subset is used to mark a positioning dimension of a lower edge.
Citation Information
Patent Citations
Method for automatically marking plane size of building with room as center
CN113486425A
Method for determining relationship between line segments for use in a pattern recognition system
GB9807618D0