COMPUTING DEVICE, STORAGE MEDIUM AND METHOD FOR PROCESSING DIMENSION NUMBERS USING THE COMPUTING DEVICE
First Claim
1. A computer-implemented method for processing dimension numbers using a computing device, the method comprising:
- (a) loading an engineering drawing of a workpiece from a storage system of the computing device, and reading discontinuous data of a selected dimension frame and dimension numbers comprising 0 to 9 in the engineering drawing;
(b) establishing a first template of the selected dimension frame and a plurality of second templates of the dimension numbers according to the discontinuous data, and establishing a numerical text data of each of the second templates;
(c) obtaining a plurality of block objects by grouping all discontinuous line segments in the engineering drawing;
(d) obtaining all frame objects in the engineering drawing by matching each of the block objects with the first template;
(e) calculating a bounding box of each of the frame objects, and obtaining one or more remainder objects in each bounding box, the one or more remainder objects representing one or more dimension numbers comprising discontinuous line segments in each of the frame objects;
(f) obtaining one or more number objects in each of the frame objects by grouping the one or more remainder objects in each bounding box;
(g) obtaining a matched second template of each of the number objects by matching each of the number objects with each of the second templates; and
(h) replacing the one or more number objects in each of the frame objects by corresponding numerical text data, according to the matched second template of each of the number objects and the numerical text data of each of the second templates.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for processing dimension numbers using a computing device, a first template of a dimension frame and a plurality of second templates of dimension numbers 0-9, and a numerical text data of each second template are established. A plurality of block objects are obtained by grouping all discontinuous line segments in the engineering drawing. All frame objects in the engineering drawing are obtained by matching each of the block objects with the first template. One or more remainder objects in each bounding box are obtained, and grouped to obtain one or more number objects in each of the frame objects. A matched second template of each of the number objects is obtained by matching each of the number objects with each of the second templates. The number objects in each of the frame objects are replaced by corresponding numerical text data.
-
Citations
18 Claims
-
1. A computer-implemented method for processing dimension numbers using a computing device, the method comprising:
-
(a) loading an engineering drawing of a workpiece from a storage system of the computing device, and reading discontinuous data of a selected dimension frame and dimension numbers comprising 0 to 9 in the engineering drawing; (b) establishing a first template of the selected dimension frame and a plurality of second templates of the dimension numbers according to the discontinuous data, and establishing a numerical text data of each of the second templates; (c) obtaining a plurality of block objects by grouping all discontinuous line segments in the engineering drawing; (d) obtaining all frame objects in the engineering drawing by matching each of the block objects with the first template; (e) calculating a bounding box of each of the frame objects, and obtaining one or more remainder objects in each bounding box, the one or more remainder objects representing one or more dimension numbers comprising discontinuous line segments in each of the frame objects; (f) obtaining one or more number objects in each of the frame objects by grouping the one or more remainder objects in each bounding box; (g) obtaining a matched second template of each of the number objects by matching each of the number objects with each of the second templates; and (h) replacing the one or more number objects in each of the frame objects by corresponding numerical text data, according to the matched second template of each of the number objects and the numerical text data of each of the second templates. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A computing device, comprising:
- <
<
Same as above>
>a storage system; at least one processor; and one or more programs that are stored in the storage system and executed by the at least one processor, the one or more programs comprising; a reading module that loads an engineering drawing of a workpiece from the storage system, and reads discontinuous data of a selected dimension frame and dimension numbers comprising 0 to 9 in the engineering drawing; an establishment module that establishes a first template of the selected dimension frame and a plurality of second templates of the dimension numbers according to the discontinuous data, and establishing a numerical text data of each of the second templates; a group module that obtains a plurality of block objects by grouping all discontinuous line segments in the engineering drawing; a match module that obtains all frame objects in the engineering drawing by matching each of the block objects with the first template; an acquisition module that calculates a bounding box of each of the frame objects, and obtains one or more remainder objects in each bounding box, the one or more remain objects representing one or more dimension numbers comprising discontinuous line segments in each of the frame objects; the group module further obtains one or more number objects in each of the frame objects by grouping the one or more remainder objects in each bounding box; the match module further obtains a matched second template of each of the number objects by matching each of the number objects with each of the second templates; and a replacement module that replaces the one or more number objects in each of the frame objects by corresponding numerical text data, according to the matched second template of each of the number objects and the numerical text data of each of the second templates. - View Dependent Claims (14, 15, 16, 17, 18)
- <
Specification