Patent ID: 8909504

Claim:
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 the discontinuous line segments in each bounding box except the discontinuous line segments of each of the frame objects corresponding to the bounding box as one or more remainder objects in each bounding box, the one or more remainder objects representing the discontinuous data of one or more dimension numbers 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.