Dimension Recognition and Geometry Reconstruction in Vectorization of Engineering Drawings

Similar documents
A new method to recognize Dimension Sets and its application in Architectural Drawings. I. Introduction

UNIT 5a STANDARD ORTHOGRAPHIC VIEW DRAWINGS

GstarCAD Mechanical 2015 Help

An Introduction to Dimensioning Dimension Elements-

Engineering Working Drawings Basics

DIMENSIONING ENGINEERING DRAWINGS

Copyrighted Material. Copyrighted Material. Copyrighted. Copyrighted. Material

CAD and CAM systems have been widely used in the

Engineering Graphics Essentials with AutoCAD 2015 Instruction

Angle Measure and Plane Figures

Lesson 6 2D Sketch Panel Tools

1 Sketching. Introduction

Unit 4: Geometric Construction (Chapter4: Geometry For Modeling and Design)

Technical information about PhoToPlan

ISO 1101 Geometrical product specifications (GPS) Geometrical tolerancing Tolerances of form, orientation, location and run-out

ENGINEERING GRAPHICS ESSENTIALS

ENGINEERING GRAPHICS ESSENTIALS

Specification D data models

SolidWorks 95 User s Guide

Lower Bounds for the Number of Bends in Three-Dimensional Orthogonal Graph Drawings

MODELING AND DESIGN C H A P T E R F O U R

Spatially Adaptive Algorithm for Impulse Noise Removal from Color Images

Part 1: General principles

Chapter 5 Pictorial sketching

Math + 4 (Red) SEMESTER 1. { Pg. 1 } Unit 1: Whole Number Sense. Unit 2: Whole Number Operations. Unit 3: Applications of Operations

Recovery and Characterization of Non-Planar Resistor Networks

1.6.7 Add Arc Length Dimension Modify Dimension Value Check the Sketch Curve Connectivity

Interactive System for Origami Creation

ORTHOGRAPHIC PROJECTIONS. Ms. Sicola

the same information given in two different 1. Dimensions should NOT be duplicated, or Dimension Guidelines Incorrect ways.

Problem Solving with the Coordinate Plane

THE STORAGE RING CONTROL NETWORK OF NSLS-II

Autodesk Advance Steel. Drawing Style Manager s guide

CHAPTER 01 PRESENTATION OF TECHNICAL DRAWING. Prepared by: Sio Sreymean

MAS336 Computational Problem Solving. Problem 3: Eight Queens

Multiview Projection

Geometric Dimensioning and Tolerancing

Advance Steel. Drawing Style Manager s guide

AGENT PLATFORM FOR ROBOT CONTROL IN REAL-TIME DYNAMIC ENVIRONMENTS. Nuno Sousa Eugénio Oliveira

DICOM Correction Proposal

Elementary Dimensioning

CAD Mechanical Design I

REPRESENTATION, RE-REPRESENTATION AND EMERGENCE IN COLLABORATIVE COMPUTER-AIDED DESIGN

for Solidworks TRAINING GUIDE LESSON-9-CAD

Production drawing Diagram. a) I am a freehand drawing that follows technical drawing standards.

Lesson 4 Extrusions OBJECTIVES. Extrusions

AutoCAD LT 2009 Tutorial

UNIT 1 GEOMETRY. (revision from 1 st ESO) Unit 8 in our books

Contents. Notes on the use of this publication

A Fast Algorithm of Extracting Rail Profile Base on the Structured Light

SDC. AutoCAD LT 2007 Tutorial. Randy H. Shih. Schroff Development Corporation Oregon Institute of Technology

Grade 6. Prentice Hall. Connected Mathematics 6th Grade Units Alaska Standards and Grade Level Expectations. Grade 6

ENGINEERING GRAPHICS ESSENTIALS. (A Text and Lecture Aid) Second Edition. Kirstie Plantenberg University of Detroit Mercy SDC PUBLICATIONS

Problem of the Month: Between the Lines

Localization (Position Estimation) Problem in WSN

Graphical Communication

Preprocessing of Digitalized Engineering Drawings

A System for Recognizing a Large Class of Engineering Drawings

Standard 4.G.1 4.G.2 5.G.3 5.G.4 4.MD.5

This section will take you through the process of drawing an oblique block. Your entire part, in all views, should look like Figure 1.

Dimensioning. Subject Matters:

CE 100 Civil Engineering Drawing Sessional (Lab Manual)

AutoCAD LT 2012 Tutorial. Randy H. Shih Oregon Institute of Technology SDC PUBLICATIONS. Schroff Development Corporation

INDICATION OF FUNCTIONAL DIMENSION ACCORDING ISO GPS HOW SHALL WE APPLICATE?

11/12/2015 CHAPTER 7. Axonometric Drawings (cont.) Axonometric Drawings (cont.) Isometric Projections (cont.) 1) Axonometric Drawings

Target Recognition and Tracking based on Data Fusion of Radar and Infrared Image Sensors

Image Recognition for PCB Soldering Platform Controlled by Embedded Microchip Based on Hopfield Neural Network

Chapter 8. Technical Drawings

IED Detailed Outline. Unit 1 Design Process Time Days: 16 days. An engineering design process involves a characteristic set of practices and steps.

A Feature-based Method for MBD Model Exchange among Heterogeneous CAD Systems

Dimensioning. Dimensions: Are required on detail drawings. Provide the shape, size and location description: ASME Dimensioning Standards

Geometric elements for tolerance definition in feature-based product models

Elko County School District 5 th Grade Math Learning Targets

AutoCAD Tutorial First Level. 2D Fundamentals. Randy H. Shih SDC. Better Textbooks. Lower Prices.

Test Answers and Exam Booklet. Geometric Tolerancing

Beginner s Guide to SolidWorks Alejandro Reyes, MSME Certified SolidWorks Professional and Instructor SDC PUBLICATIONS

Central Place Indexing: Optimal Location Representation for Digital Earth. Kevin M. Sahr Department of Computer Science Southern Oregon University

Introduction to CATIA V5

Glass Box Projection. Gives you 6 sides to view of an object. 10/2/14 2

Gateways Placement in Backbone Wireless Mesh Networks

1: INTRODUCTION TO AUTOCAD

Move Evaluation Tree System

Drawing with precision

E/ECE/324/Rev.1/Add.86/Rev.3/Amend.1 E/ECE/TRANS/505/Rev.1/Add.86/Rev.3/Amend.1

A Novel Algorithm for Hand Vein Recognition Based on Wavelet Decomposition and Mean Absolute Deviation

Training Guide Basics

DFTG-1305 Technical Drafting Prof. Francis Ha

technical drawing

Isometric Drawing Chapter 26

with MultiMedia CD Randy H. Shih Jack Zecher SDC PUBLICATIONS Schroff Development Corporation

Uncertainty in CT Metrology: Visualizations for Exploration and Analysis of Geometric Tolerances

Two-Dimensional Drawing

[Use Element Selection tool to move raster towards green block.]

Reversible data hiding based on histogram modification using S-type and Hilbert curve scanning

Problem of the Month What s Your Angle?

Chapter 2: Dimensioning Basic Topics Advanced Topics Exercises

Fig Color spectrum seen by passing white light through a prism.

KNOWLEDGE & INTERPRETATION

Copyrighted. Material. Copyrighted. Material. Copyrighted. Copyrighted. Material

Transcription:

Dimension Recognition and Geometry Reconstruction in Vectorization of Engineering Drawings Feng Su 1, Jiqiang Song 1, Chiew-Lan Tai 2, and Shijie Cai 1 1 State Key Laboratory for Novel Software Technology, Nanjing University, Nanjing, China 2 Department of Computer Science, Hong Kong University of Science and Technology, Hong Kong Email: taicl@cs.ust.hk, sjcai@nju.edu.cn Abstract This paper presents a novel approach for recognizing and interpreting dimensions in engineering drawings. It starts by detecting potential dimension frames, each comprising only the line and text components of a dimension, then verifies them by detecting the dimension symbols. By removing the prerequisite of symbol recognition from detection of dimension sets, our method is capable of handling low quality drawings. We also propose a reconstruction algorithm for rebuilding the drawing entities based on the recognized dimension annotations. A coordinate grid structure is introduced to represent and analyze two-dimensional spatial constraints between entities; this simplifies and unifies the process of rectifying deviations of entity dimensions induced during scanning and vectorization. 1. Introduction Automatic conversion of paper engineering drawings into CAD form has received much attention in recent years [1-4]. As the first step of the conversion process, vectorization converts a raster image into the vector form, which is represented as graphic entities such as lines and text. Besides these basic graphic entities, a specific logical structure - dimension - must also be recognized to obtain a high-level drawing interpretation. Dimensions define the accurate geometric measurements for the graphic entities and are of great importance to proper analysis and understanding of engineering drawings. The coordinates of vectorized graphic entities are in raster space, which is determined by the paper size and the scanning resolution and is usually different from the drawing coordinates annotated by dimensions. Thus, it is necessary to deduce the drawing coordinates for all the entities in the drawing before these vector data can be used in CAD systems for statistic calculations and visualization. Currently, different means of recognizing dimensions have been implemented in various vectorization systems, but few of them provide functions such as automatic twodimensional geometry reconstruction. Some systems provide an interface for the user to manually input a scale factor to transform the coordinates of all the entities uniformly, but this may introduce inconsistency between entities and annotations. In this paper, we present a new dimension recognition algorithm based on recognizing dimension frame, which is a combination of the graphic entities and constraints of a dimension annotation. Additionally, we present a gridbased two-dimensional geometry reconstruction method that makes use of the recognized dimensions to rectify geometric characteristics of individual entities to be exactly what they are annotated. Both algorithms are aimed at architecture engineering drawings, but they can be extended to handle other types of drawings. Component Function Geometry Shape Represents geometric shape and direction of dimension Line, Arc Tail Extension of shape Line, Arc Witness Specifies the extent of the contour being dimensioned Line Symbol Text Marks the location of witness Specifies dimension type and value 600 Text Tail Shape Witness Symbol 2. Dimension Sets Recognition Arrowhead, Dot, Oblique Line Digits, φ, R Figure 1. Components of dimension sets Graphic entities in engineering drawings are classified into geometry entities and annotation entities. The 40

former represent the objects in the drawing and the latter describe the geometric characteristics of the former. Dimensioning is a major kind of annotation entity in most practical engineering drawings. It is used to provide exact definitions of the objects being approximated by the geometry entities. Recognition of dimensions is a key element in the correct interpretation of drawing contents. 2.1. Components of Dimension Sets A dimension set is a set of graphic entities that state the measurement (length or angle) between two geometry entities. The components of a common dimension set are listed and exemplified in Figure 1. Typically, a dimension set is composed of a shape, a text, two symbols and two witness lines. If the space between the two witness lines is not enough to accommodate both the text and the two symbols, then one or two tails are also introduced into the dimension set. In some cases, a graphic entity may serve both as object contour and as dimension witness. 2.2. Types of Dimension Sets In architecture engineering drawings, dimension sets can be classified into several types according to the geometry entities they measure: length, angle, diameter, radius, etc. But, if they are classified based on the geometry type of the shape component, there are only two main types, longitudinal and angular, as shown in Figure 2. a c Longitudinal 2.3. Recognition of Dimension Sets b d Angular Figure 2. Two types of dimension sets Several approaches to recognition of dimension sets in engineering drawings have been proposed [5-9]. Most of them start with the detection of a fixed component of a dimension set, which is either the arrowhead or the text, then track out the other components. But, because of the degradation of paper drawing quality, sometimes the recognition of such a fixed component is not entirely reliable. To avoid the recognition of the entire dimension set being blocked by the failure of recognizing a single e component, our method is based on multi-entry recognition of the relatively stable part of a dimension set the frame comprising the shape, text, witnesses, and, if exist, the tails. Then the recognized frame structure, which could be incomplete, is used to help in the detection of other undetected components. 2.3.1. Recognition of dimension frames A dimension frame is a subset of graphic entities in a dimension set. It consists of the line and text components of the dimension sets, without symbols. We propose two methods for recognizing a dimension frame according to the existence of the shape component: shape-based method and tail-based method. A method that begins with the analysis of the text component is also proposed. The shape-based method recognizes a dimension frame by finding a shape-text pair. Step 1. Detection of a shape. A shape is a graphic entity that matches one of the following conditions: (1) A line or an arc with both ends intersecting two other lines perpendicularly (Figures 2a, 2b, and 2e). (2) A line with both ends on a circle and passing through its center (Figure 2c). (3) A line with one end on a circle or an arc, and the other end at the center of the circle or arc (Figure 2d). Step 2. Detection of a text. The text should appear above and parallel to the detected shape. If no text is found within the extent of the shape, a tail is expected to be present. A tail is a line or an arc connecting a shape at one end and no other graphic entities at the other end. If a tail is detected, the text should appear near the free end of the tail and be parallel to it. Witness Tail a. longitudinal b. angular Figure 3. Dimension sets without explicit shape components The tail-based method finds a potential dimension frame by detecting a pair of witness-tail structures and a text. It is mainly for recognizing dimension sets that have no explicit shape components (Figure 3). This type of dimension set always comprises two symmetrical witnesstail structures. A witness-tail structure comprises a witness and a tail, with the tail intersecting the witness perpendicularly and terminating on it. The symmetrical structures satisfy the following conditions: (1) The tails of both structures are a pair of collinear lines or a pair of arcs having the same center and radius. (2) The witness lines are a pair of lines with no lines or arcs connecting them at the intersections with the tails. The text should appear between two witnesses or above a tail. The text-based method finds a potential dimension text by detecting special text patterns start with φ, R or

end with tolerance strings composing of + or - and digits. Other patterns specific to different drawing types can be easily incorporated in the algorithm. Texts with these patterns are likely to be the text component of a dimension frame and may give clues on the dimension type and structure. This information is used to guide the search of other line components of the potential dimension frame around the text. All methods take the vectorization results as input. The dimension frames detected are checked against duplication and contradiction before being verified in subsequent symbol detection step. 2.3.2. Recognition of dimension symbols In architecture drawings, there are mainly three types of dimension symbols: arrowhead, dot, and oblique line (Figure 4). Arrowhead Dot Oblique Line Figure 4. The three types of dimension symbols With the knowledge of the type of a dimension frame, detection of symbols is carried out at specific locations and in selective directions within the frame. Generally, dimension symbols are expected to appear at the intersections of shapes with witness lines and are in the same direction as the shapes. To detect the existence of symbols and distinguish their types, we inspect the raster background along the shapes and tails near line intersections in dimension frames (Figure 5). We first describe the main idea. The length of the perpendicular runs along the scanning path is compared with the line width, which is recognized in the vectorization preprocessing stage, to find the Irregular Width Regions (IWRs). The size and location of IWRs are used to predict the existence of symbols, then the qualified IWRs are analyzed to determine the type of the underlying symbols. O IWR Figure 5. Recognition of dimension symbols The recognition rule is based on the following two properties of IWR. First, the IWR location can distinguish arrowheads from the other two types of symbols because arrowheads normally do not cross intersections of dimension lines. Next, the symmetry of IWR can distinguish between dots and oblique lines. Based on the type and size of an IWR, a normalized symbol template is dynamically created to match with the background raster at the IWRs. The matching of a template is a twofold process, one for checking necessity, and the other for checking sufficiency. Necessity demands that most (above 90%) background pixels inside a template region to be black. Sufficiency aims at distinguishing a specific type of symbol from other graphic entities. For each IWR, the algorithm scans its background raster starting from the nearest intersection of lines in the dimension frame and along the IWR direction. For example, to check the sufficiency of the arrowhead in Figure 5, the algorithm starts from the point O, omitting the vertical line, and scans the background raster along the horizontal centerline until the farther end of the IWR is reached. During the scanning, it checks the symmetry and variation of the perpendicular width of the background raster on both sides of the scanning path. Generally, they should match the following conditions: Symbol Symmetry Variation Arrowhead Yes Increase Dot Yes Decrease Oblique Line No Increase If both the necessity and sufficiency conditions are satisfied, the corresponding template is accepted. Because of the initial recognition of dimension frames described in Section 2.3.1, the matching condition for dimension symbols can be relaxed to deal with low quality drawings. When either the necessity or sufficiency checking for one template candidate fails, other templates are tried in the order of arrowhead, dot, oblique line. 2.3.3. Integration into dimension sets In this step, dimension frames are verified with recognized symbols and finally integrated with them. There are two aspects to be checked for each dimension frame. One is the number and location of symbols in a dimension frame. The symbols found along a shape should appear in pairs and be located at the intersection of shapes and witness lines. The other aspect to be verified is the direction of the arrowheads. For arrowhead pairs on a shape, their directions must be opposite and point toward two respective witnesses. If a tail exists, the arrowhead on the tail must also point toward a corresponding witness. Dimension frames that pass the verification are integrated with the symbols according to their types to form complete dimension sets. For dimension sets whose witnesses share the same graphic entity with an object contour, a normalized copy of that graphic entity is generated and integrated into the dimension set to retain the completeness of the drawing representation. 3. Drawing Normalization Correct direction and alignment of geometry entities are essential to dimension analysis and reconstruction.

Due to imperfect scanning quality and vectorization precision of paper drawings, there are two main kinds of faults in vectorized drawings that need to be corrected before the dimension reconstruction processing can be carried out. First, slightly oblique vector lines must be normalized to be parallel to the X or Y coordinate axis. If the whole drawing is scanned obliquely, a global rotation must be performed in advance. Second, intersection points that deviate from corresponding geometry entities must be positioned precisely on the contours of the intersecting entities. 4. Geometry Reconstruction Geometry reconstruction is the process of recalculating and verifying the coordinates of geometry entities according to the recognized dimension sets. But, in architecture engineering drawings, some entities may not be dimensioned explicitly. Our work aims at adjusting entities that are explicitly dimensioned to be consistent with the measurements they are annotated while keeping the overall layout of the drawing unchanged and leaving the others to be determined implicitly by scaling and geometric relationship. There are two main steps in transforming the coordinates of geometry entities from the raster space to the model space annotated by the dimension sets. First, a global coordinate transformation is performed on every entity in the drawing. Next, the coordinates of individual entities that are explicitly annotated are adjusted precisely without violating the drawing topology. 4.1. Global Coordinate Transformation The main goal of the global coordinate transformation is to provide a simple and uniform way to convert the coordinates of all geometry entities into the model space as precisely as possible while retaining the topology of the whole drawing. For every dimension annotation, we compare its geometric length (i.e. the length of the shape component) with its literal length (i.e. the length specified by the text component) to produce a local factor. If a local factor is found to deviate too much from others, it is discarded since the corresponding dimension set may be a recognition error. From all the local factors obtained, the one that is closest to the average value is chosen as the global scale factor and applied to all the entities in the drawing. 4.2. Local Dimension Adjustment After the global transformation, usually, there are some entities whose dimensions do not match the annotations of the associated dimension sets. This may be a result of distortions introduced by digitization or vectorization. For these entities, individual adjustments are necessary to ensure consistency. We shall introduce a grid structure to accomplish this. 4.2.1. Concept of grid The targets of geometry reconstruction are individual geometry entities such as lines, circles and arcs. But in actual engineering drawings, most of these entities intersect or connect with one another. Adjustments to one entity will affect other related entities. Furthermore, the relationship between dimension sets and the entities they annotate may be quite complex. A single dimension set can annotate multiple entities and multiple dimension sets can also annotate the same entity. To reduce the complexity of geometry reconstruction and maintain consistency during coordinate adjustment of individual entities, we use an intermediate structure grid. A grid is a set of coordinate lines, called grid lines, which are parallel to the X and Y axes of the 2D model space and pass through the endpoints of some geometry entities. For example, Figure 6 shows a vector line, l, and two dimensions, d 1, d 2, annotating it. The grid lines g h1, g h2 and g v1, g v2 are set up in the X and Y direction respectively. g h1 g h2 Y d 2 X g v1 Figure 6. The grid representation of entities As we can see, the coordinates of a geometry entity are represented by a set of grid lines and the entire entity can be reconstructed from grid lines associated with it. Thus, we take these grid lines as the objects of adjustment instead of the geometry entities themselves. That is, we convert the task of geometry reconstruction into a process of arranging the grid s layout. According to the definition of the grid, geometry entities having the same coordinate would share the same grid lines. Therefore, any adjustment to these grid lines will have the same effect on all associated entities. This simplifies the process of adjusting individual entities and guarantees correspondence between related entities. 4.2.2. Representation of the grid A grid line is represented as a 4-tuple <OPED>, with attributes order, position, entity and dimension, d 1 l g v2

respectively, as explained in Figure 7. Name Symbol Function Order O Order in grid set Position P Coordinate of grid line Entity E List of entities attached Dimension D List of dimensions bound Figure 7. The components of a grid line retrieval during the reconstruction of the entity. g6 g7 g8 g1 g2 g3g9 d5 d3 d4 d1 d2 4.2.3. Setting up the grid Initially, to set up the grid representation of a drawing, we introduce the concept of Definition Points of an entity. An entity s definition points are points that can be used to reconstruct the complete geometry of the entity. Figure 8 lists the definition points of some common geometry objects. g4 d6 g5 Type Definition Point Example Line Two endpoints Polyline Every vertex d7 d8 d9 Circle Arc The center point and a point on the circle 1 The start and end points, the center point or another point on the arc 2 1, 2 The definition point on a circle/arc is usually the intersection point with other entities. Figure 8. The definition points of various entities Let G H and G V be the sets of grid lines in the X and Y direction, respectively. Let ε be the threshold of the minimum allowable distance between two grid lines. The algorithm for creating the grid representation of a drawing is described as follows. G H =G V = {; E = {all geometry entities in the drawing; for (e in E) { P = {all definition points of e; for (p in P) { Find g h in G H such that g h -p <ε; if (g h not exist) Create a new grid line g h at p and addittog H; Find g v in G V such that g v -p <ε; if (g v not exist) Create a new grid line g v at p and addittog V; Add e to the entity list of g h and g v ; During the process of setting up the grid, an entity is attached to grid lines at each of its definition points. The indices of the definition points are also recorded in a grid line along with the associated entity to facilitate efficient Figure 9. A dimensioned drawing and its grid representation in vertical direction 4.2.4. Analysis of the grid In the previous step, we set up a grid containing all the necessary location information about the entities to be adjusted, but no dimensioning information has been recorded in the grid. According to the definition of the grid, longitudinal dimension sets can be represented as distance constraints between grid lines. We now incorporate the dimension information into the grid structure using the following algorithm. 1) Classify all the longitudinal dimension sets into three sets, D H (horizontal), D V (vertical), and D O (oblique), according to the directions of their shape components. 2) Due to the symmetry of D H and D V, we refer only to D H. The oblique dimensions in D O are ignored. for (d in D H ){ for (each witness of d) { w = X coordinate of the witness; Find g in grid set G V such that g-w <ε, ε is a predefined threshold; if (g exists) { Adddtothedimensionlistofg; Dimensions associated with a grid line are said to be bound to that grid line. For example, in Figure 9 (only the vertical grid lines are shown), the dimensions d1 and d2

are bound to the grid line g2. Note that each dimension is bound to exactly two grid lines. To each grid line g, we assign an attribute Bind Count (BC) defined as follows: BC(g) = the number of dimensions bound to g The bind counts of the grid lines g1 to g9 in Figure 9 are 1, 2, 1, 3, 3, 3, 2, 1, 2, respectively. We introduce a bind graph to represent the relationship between grids and dimensions. A node in the graph represents a grid line, and an edge connecting two nodes represents a dimension that is bound to two corresponding grid lines. The bind graph representation of the grid representation in Figure 9 is shown in Figure 10. It can be observed that the graph is divided into two separate sub-graphs, {g4, g5, g6, g7, g8, g9 and {g1, g2, g3. Each sub-graph is composed of a set of grid lines that bind together related dimensions, termed Bound Grid Set (BGS). g6 g7 g8 d3 d4 d7 4.2.5. Adjustment of the grid With the help of the grid structure, the problem of geometry reconstruction of geometry entities in a drawing is converted to that of verification and adjustment of the grid layout to satisfy geometry constraints represented by the dimensions. This process involves applying a procedure to the horizontal and vertical grid lines independently. As explained earlier, the grid lines in the vertical and horizontal directions respectively may be divided into multiple independent BGSs. Adjustment to the grid layout is carried out within each BGS. The multiple BGSs are processed mainly in the order of the extents of the BGSs. The following is the description of the algorithm to verify and adjust the grid layout within a BGS. It involves traversing all edges of the bind graph. The variables used in the algorithm are defined here. Symbol Name Value Active Grid List of active grid AGS CG OG OD g4 d5 d8 d6 g5 Figure 10. The bind graph representation of Figure 9 Stack Current Grid Line Object Grid Line Object Dimension g9 d9 g1 d1 g2 d2 g3 lines already adjusted Thegridlineontop of AGS Thegridlinetobe adjusted The dimension to be verified AGS = {g, g is the grid line with maximum bind count in a BGS; while (AGS not empty) { OD = the unchecked dimension bound to CG with maximum literal measurement; if (OD not exist) pop(ags); else { OG = the other grid line to which OD is bound; if (OG not adjusted) Adjust OG according to OD; if (OG matches OD) push(ags,og); else output(error); As an example, the order of adjusting the grid lines in the two BGSs in Figure 10 is {g6, g9, g5, g4, g7, g8 and {g2, g1, g3 respectively. During the process of verification and adjustment in one BGS, every dimension is used to verify the distance between the grid lines it annotates. Redundant dimensioning, which is represented as multiple paths connecting the same two grid nodes, is checked for consistency. 4.2.6. Validation of grid layout Basically, the main purpose of the grid adjustment is to revise the result of global coordinate transformation. Modifications to grid line positions are expected to be small and local, which must not change the topology of the geometry entities. That is, the adjustment must not change the overall order of grid lines. We record the spatial order of the grid lines in the order component of the grid line representation. By comparing the grid order before and after the adjustment, unwanted grid adjustment caused by inconsistent dimensioning are found and discarded. 4.2.7. Reconstruction of geometry entity After all grid lines are relocated properly, reconstruction of the geometry entities that are bound to some grid lines is straightforward: the definition points of every such entity are retrieved from the attached grid line, and the geometry of the entity is recalculated using these definition points. 5. Results We have tested the system with over 30 drawings, covering three types of architecture drawings - detail, plane, and section. Table 1 shows the typical recognition results of our algorithm for these three types of drawings. The average recognition rate is above 90% and the time

taken is less than 30 seconds. Table 1. The speed and success rate of the framebased dimension recognition algorithm Drawi Size Entity/Dim Success Runtime ng (pixel) count rate (sec.) Section 2627* 2147 137/16 1.00 3 Plane 6350* 6367 558/34 0.94 7 Detail 12816* 11606 1830/129 0.91 22 We also compared the proposed frame-based dimension recognition algorithm with a symbol-based algorithm implemented by us previously on both normal quality and low quality drawings. The results are shown in Table 2 and Table 3. As we can see, the success rates of both methods were about the same for normal quality drawings. However, for low quality drawings, the symbol-based method missed most of the dimensions due to failure in detecting the symbols. The number of false recognition by the frame-based method was generally higher than that of the symbol-based one. This can be improved by strengthening the verification rules during the detection of dimension frames. Table 2. Comparison of frame-based and symbolbased algorithms on normal quality drawing Algorithm Total Correct Miss False Frame 34 34 0 1 Symbol 34 33 1 1 Table 3. Comparison of frame-based and symbolbased algorithms on low quality drawing Algorithm Total Correct Miss False Frame 22 18 4 3 Symbol 22 6 16 1 Table 4 lists the parameters used in the geometry reconstruction process of Figure 9. The Average Adjustment Ratio denotes the average percentage of individual adjustments relative to the corresponding annotations after the global transformation. 6. Summary We have presented a new algorithm for recognition of dimensions from scanned engineering drawings. In addition, an approach for further rectification and reconstruction of entity geometry based on the recognized dimension annotations is also described. The system is developed as a post-process module of our architecture drawing vectorization system to provide complete and accurate vector representation that is acceptable by CAD systems. Table 4. The geometry reconstruction parameters of Figure 9 Parameter Horizontal Vertical Raster Size (pixel) 1606 1816 Dimensions 9 7 Global Scale Factor 2.09 2.12 Total Grid Lines 10 8 Bound Grid Lines 9 6 Average Adjustment Ratio (%) 0.18 0.15 References [1] D. S. Doermann, An introduction to vectorization and segmentation, Graphics Recognition - Algorithms and Systems, Springer-Verlag, Berlin, Germany, vol. 1389, pp. 1-8, 1998. [2] Y. Yu, A. Samal, and S. C. Seth, A system for recognizing a large class of engineering drawings, IEEE Transactions on PAMI, vol. 19, no. 8, 1997, pp. 868-890. [3] K. Tombre, Analysis of engineering drawings: state of the art and challenges, Graphics Recognition - Algorithms and Systems, Springer-Verlag, Berlin, Germany, vol. 1389, pp. 257-264, 1998. [4] J. Song, F. Su, J. Chen, C.-L. Tai and S. Cai, Line net global vectorization: an algorithm and its performance evaluation, in Proceedings of IEEE Conference on CVPR, 2000, vol. 1, pp. 383-388. [5] D. Dori, A syntactic/geometric approach to recognition of dimensions in engineering machine drawings, Computer Vision, Graphics and Image Processing, vol. 47, pp. 271-291, 1989. [6] C. P. Lai and R. Kasturi, Detection of dimension sets in engineering drawings, IEEE Transactions on PAMI, vol. 16, no. 8, 1994, pp. 848-855. [7] A. K. Das and N. A. Langrana, Recognition and integration of dimension sets in vectorized engineering drawings, Computer Vision and Image Understanding, vol. 68, no. 1, pp. 90-108, 1997. [8] W. Min, Z. Tang, and L. Tang, Recognition of dimensions in engineering drawings based on arrowhead-match, in Proceedings of the Second International Conference on Document Analysis and Recognition, 1993, pp. 373-376. [9] S. C. Lin and C. K. Ting, A new approach for detection of dimensions set in mechanical drawings, Pattern Recognition Letters, vol. 18, no. 4, pp. 367 373, 1997.