Preprocessing of Digitalized Engineering Drawings

Similar documents
Performance Evaluation of Edge Detection Techniques for Square Pixel and Hexagon Pixel images

Removal of Gaussian noise on the image edges using the Prewitt operator and threshold function technical

MAV-ID card processing using camera images

The Classification of Gun s Type Using Image Recognition Theory

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

VEHICLE LICENSE PLATE DETECTION ALGORITHM BASED ON STATISTICAL CHARACTERISTICS IN HSI COLOR MODEL

Area Extraction of beads in Membrane filter using Image Segmentation Techniques

Chapter 17. Shape-Based Operations

Digital Image Processing

Chapter 6. [6]Preprocessing

Preprocessing and Segregating Offline Gujarati Handwritten Datasheet for Character Recognition

Efficient 2-D Structuring Element for Noise Removal of Grayscale Images using Morphological Operations

CS/ECE 545 (Digital Image Processing) Midterm Review

Detection of License Plates of Vehicles

INDIAN VEHICLE LICENSE PLATE EXTRACTION AND SEGMENTATION

Vision Review: Image Processing. Course web page:

Available online at ScienceDirect. Ehsan Golkar*, Anton Satria Prabuwono

Image Filtering Josef Pelikán & Alexander Wilkie CGG MFF UK Praha

Iris Recognition using Histogram Analysis

Number Plate Detection with a Multi-Convolutional Neural Network Approach with Optical Character Recognition for Mobile Devices

Teaching Scheme. Credits Assigned (hrs/week) Theory Practical Tutorial Theory Oral & Tutorial Total

CS6670: Computer Vision Noah Snavely. Administrivia. Administrivia. Reading. Last time: Convolution. Last time: Cross correlation 9/8/2009

An Efficient Color Image Segmentation using Edge Detection and Thresholding Methods

An Improved Bernsen Algorithm Approaches For License Plate Recognition

Analysis and Identification of Rice Granules Using Image Processing and Neural Network

PARAMETRIC ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES

Iris Segmentation & Recognition in Unconstrained Environment

A Study On Preprocessing A Mammogram Image Using Adaptive Median Filter

Nigerian Vehicle License Plate Recognition System using Artificial Neural Network

Figure 1. Mr Bean cartoon

INTERNATIONAL JOURNAL OF COMPUTER ENGINEERING & TECHNOLOGY (IJCET)

Study and Analysis of various preprocessing approaches to enhance Offline Handwritten Gujarati Numerals for feature extraction

New Spatial Filters for Image Enhancement and Noise Removal

SCIENCE & TECHNOLOGY

International Journal of Pharma and Bio Sciences PERFORMANCE ANALYSIS OF BONE IMAGES USING VARIOUS EDGE DETECTION ALGORITHMS AND DENOISING FILTERS

Image Processing for feature extraction

Image Filtering. Median Filtering

A Scheme for Salt and Pepper Noise Reduction on Graylevel and Color Images

Retinal blood vessel extraction

A Scheme for Salt and Pepper oise Reduction and Its Application for OCR Systems

Reverse Engineering for Obsolete Single Layer Printed Circuit Board (PCB)

Raster Based Region Growing

Live Hand Gesture Recognition using an Android Device

C. Efficient Removal Of Impulse Noise In [7], a method used to remove the impulse noise (ERIN) is based on simple fuzzy impulse detection technique.

A Novel Multi-diagonal Matrix Filter for Binary Image Denoising

An Analytical Study on Comparison of Different Image Compression Formats

BASIC OPERATIONS IN IMAGE PROCESSING USING MATLAB

Automatic Locating the Centromere on Human Chromosome Pictures

Using the Advanced Sharpen Transformation

An Efficient Method for Contrast Enhancement in Still Images using Histogram Modification Framework

Color Image Processing

A Histogram based Algorithm for Denoising Images Corrupted with Impulse Noise

Keywords Fuzzy Logic, ANN, Histogram Equalization, Spatial Averaging, High Boost filtering, MSE, RMSE, SNR, PSNR.

in the list below are available in the Pro version of Scan2CAD

Research on Pupil Segmentation and Localization in Micro Operation Hu BinLiang1, a, Chen GuoLiang2, b, Ma Hui2, c

A SURVEY ON HAND GESTURE RECOGNITION

Impulse Noise Removal and Detail-Preservation in Images and Videos Using Improved Non-Linear Filters 1

Edge Detection of Sickle Cells in Red Blood Cells

Malaysian Car Number Plate Detection System Based on Template Matching and Colour Information

Adaptive Fingerprint Binarization by Frequency Domain Analysis

Automatics Vehicle License Plate Recognition using MATLAB

Anna University, Chennai B.E./B.TECH DEGREE EXAMINATION, MAY/JUNE 2013 Seventh Semester

Acquisition and representation of images

Feature Extraction Techniques for Dorsal Hand Vein Pattern

II. BASIC ENHANCEMENT OPERATION

Libyan Licenses Plate Recognition Using Template Matching Method

Face Detection System on Ada boost Algorithm Using Haar Classifiers

License Plate Localisation based on Morphological Operations

Exhaustive Study of Median filter

NON UNIFORM BACKGROUND REMOVAL FOR PARTICLE ANALYSIS BASED ON MORPHOLOGICAL STRUCTURING ELEMENT:

COLOR IMAGE SEGMENTATION USING K-MEANS CLASSIFICATION ON RGB HISTOGRAM SADIA BASAR, AWAIS ADNAN, NAILA HABIB KHAN, SHAHAB HAIDER

A Chinese License Plate Recognition System

Implementation of License Plate Recognition System in ARM Cortex A8 Board

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

Chapter 3 Part 2 Color image processing

Gray Image Reconstruction

An Improved Method of Computing Scale-Orientation Signatures

Dimension Recognition and Geometry Reconstruction in Vectorization of Engineering Drawings

Carmen Alonso Montes 23rd-27th November 2015

A Novel Morphological Method for Detection and Recognition of Vehicle License Plates

Developing a New Color Model for Image Analysis and Processing

A Comparative Analysis of Different Edge Based Algorithms for Mobile/Camera Captured Images

Automatic License Plate Recognition System using Histogram Graph Algorithm

Implementing Morphological Operators for Edge Detection on 3D Biomedical Images

Impact Factor (SJIF): International Journal of Advance Research in Engineering, Science & Technology

A Fast Median Filter Using Decision Based Switching Filter & DCT Compression

CSC 320 H1S CSC320 Exam Study Guide (Last updated: April 2, 2015) Winter 2015

EE482: Digital Signal Processing Applications

Vehicle Number Plate Recognition with Bilinear Interpolation and Plotting Horizontal and Vertical Edge Processing Histogram with Sound Signals

Adaptive preprocessing of scanned documents

Segmentation using Saturation Thresholding and its Application in Content-Based Retrieval of Images

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

More image filtering , , Computational Photography Fall 2017, Lecture 4

A new seal verification for Chinese color seal

International Journal of Scientific & Engineering Research, Volume 5, Issue 5, May ISSN

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

Fourier Transform. Any signal can be expressed as a linear combination of a bunch of sine gratings of different frequency Amplitude Phase

EE 5359 MULTIMEDIA PROCESSING. Vehicle License Plate Detection Algorithm Based on Statistical Characteristics in HSI Color Model

Detection of Defects in Glass Using Edge Detection with Adaptive Histogram Equalization

Paper Sobel Operated Edge Detection Scheme using Image Processing for Detection of Metal Cracks

Transcription:

Modern Applied Science; Vol. 9, No. 13; 2015 ISSN 1913-1844 E-ISSN 1913-1852 Published by Canadian Center of Science and Education Preprocessing of Digitalized Engineering Drawings Matúš Gramblička 1 & Jozef Vaský 1 1 Faculty of Materials Science and Technology, Trnava Slovakia Correspondence: Matúš Gramblička, Faculty of Materials Science and Technology, Trnava Slovakia. E-mail: matus.gramblicka@stuba.sk Received: May 8, 2015 Accepted: September 12, 2015 Online Published: November 30, 2015 doi:10.5539/mas.v9n13p53 URL: http://dx.doi.org/10.5539/mas.v9n13p53 Abstract The concept of digital manufacturing assumes an application of digital technologies in the whole product life cycle. CAD product model replaced engineering drawing in digital manufacturing. In contemporary practice the engineering paper-based drawings are still archived. They could be digitalized and stored to one of the raster graphics format. After that they could be vectorized for interactive editing in the specific software system or for archiving in some of standard vector graphics file format. The vector format is suitable for 3D model generating too. The article deals with using of methods for preprocessing phase of digitalized engineering drawings vectorization process. Keywords: preprocessing, thresholding, corner detectors, integral transforms 1. Introduction The digitized engineering drawing created by scanning a template is in most cases necessary adjusted to a form suitable for vectorization. The digitized engineering drawing of raster format can contain errors and inaccuracies which according to the origin can be divided into: errors derived from a paper template errors introduced by a scanning process Into the first category may be included central contour arising by packaged document. Abrasion of paper media resulting into various smudges and stains. As well as the errors introduced by the designer in the process of drawing parts. The second category of the errors brought to the digitized engineering drawing is errors caused by the scanning device. This can lead to the fact that the digitized engineering drawing contains various noises, surplus lines and clusters of colored pixels of different densities. In the process of preprocessing of digitized engineering drawing we try to identify these errors and remove them. In the following sections we will describe the methods available in the preprocessing of the digitized engineering drawing. Methods that can be used are thresholding, noise removal, edge detection, integral transform. 1.1 Methods Used for Preprocessing 1.1.1 Thresholding The easiest way to edit a processed image is thresholding. Based on the luminance or color component the input image is transformed to monochrome (black and white). The algorithm sequentially scans each pixel of the image and gradually replaces all values by 0 or 1. After this operation two changes are achieved. The first is the removal of color component, the second is separation of lighter background from darker objects of foreground. The basis of the most automatic methods of thresholding is the histogram. This determines the multiplicity of luminance or color component of an image. The ideal histogram has only two peaks. One peak corresponds to the brightness value of the object and the second to the brightness of the background. The value of the minimal multiplicity between these two peaks then determines the value of thresholding (Russ, 2011). In practice, the histogram has more than two peaks or it is atypical. 1.1.2 Noise Removal According to the theory of signal noise, noise is defined as new information that has been added to the original by a device, in our case, by a scanner, or during transport. Noise is tied to the original information. It is known 53

more types of noise, such as Gaussian noise, white noise, salt and pepper. For noise removal can be used several methods, respectively smoothing filters. From these may be mentioned in particular Mean filter, Median filter, conservative and adaptive smoothing. 1.1.3 Corner Detectors Neurophysiological and psychological research shows that the most important places in the image for the perception of higher animals are places where the brightness value rapidly changes. These places are called the edges. Because these places contain more information about the content of the image, we try to detect them during recognizing image content. The edges are somewhat invariant to illumination change or view (Šonka& Hlaváč&Boyle, 1993), (Gonzalez&Woods, 1992), (Marr&Hildrith, 1980), (Canny, 1986). In the engineering drawing the edges represent a component and therefore the use of the edge detectors may be desirable. Among the edge detectors are included discrete convolution, Roberts, Prewitt, Sobel, Kirsch, Laplace and Canny edge detector. 1.1.4 Integral Transforms Integral transforms can be used in the process of preprocessing of the digitized engineering drawing. If the input image is very noisy and it is necessary to detect straight lines in the image, it is recommended to use a Hough transform, which is based on the transform of the Cartesian coordinate system into polar. This transform has been generalized and is useful for the detection of complex objects. For more see (Leavers, 1992). Another important group is the methods based on the discrete Fourier transform, in particular its optimized form (FFT). These methods allow convert luminance waveforms on frequency waveforms and back (Ramirez, 1984). The use of FFT in the past was limited to a considerable computational complexity, which have led to the development of specialized hardware such as signal processors (DSP). 2. Method 2.1 Usability Evaluation of the Selected Methods For the evaluation an experimental approach was used. The methods of the integral transforms, corner detectors and filters were tested. We used the test application created at the workplace. Application loaded a raster image as input. After the application of selected integral transform it is possible to view the results of the original image. We tested three selected integral transforms (Fourier, Hough and cosine) in this experiment. These transforms were used for a specific number of test samples (Figure 1). Test samples were created in vector graphic editor. These samples were then printed and scanned to obtain raster representation of the image. Figure 1. Test samples 2.2 Fourier Transform Sample a) resolution of the scanned TIFF image 600 DPI color depth 1 bit Fourier transform parameters Min. 180, Max. 1000 54

Figure 2. Fourier transform with sample a) Sample b) resolution of the scanned TIFF image 150 and 600 DPI Fourier transform parameters Min. 200, Max. 1000 Figure 3. Fourier transform with the sample b), results at resolution 150 and 600 DPI 2.3 Hough Transform Sample c) resolution of a scanned TIFF image 150 and 600 DPI minimum intensity of line 230, minimum intensity of circle 75 55

Figure 4. Hough transform with sample c), results at resolution 150 and 600 DPI 56

Sample d) resolution of a scanned TIFF image 300 DPI minimum intensity of line 300, minimum intensity of circle 100 105 Figure 5. Hough transform with sample d), change of the minimum circle intensity value 2.4 Cosine Transform Sample e) resolution of a scanned TIFF image 600 DPI color depth 1 bit, 8 bit Figure 6. Cosine transform with sample e), difference between 1-bit and 8-bit sample 57

Sample f) resolution of a scanned TIFF image 150, 600 DPI Figure 7. Cosine transform with sample f), results at resolution 150 and 600 DPI 3. Results 3.1 Results of Fourier Transform Based on the above tests, it can be said that the Fourier transform can recognize almost all elements of the engineering drawing. The detection of two or more edges close to each other (betrayed and shading) caused minor problems, where there is a smearing of the individual edges in solid lines. Provided results are quite substantially affected by the set value of the minimum and maximum frequencies. After applying the transform to the image at a lower resolution there were observed only partial differences in the provided results. Significantly better results are achieved when applied to scanned black and white image. 3.2 Results of Hough Transform Based on the tests, it can be stated that the results of Hough transform largely depend on the resolution of the input image and the image preprocessing. At resolution of 150 DPI transform failed to portray where there are edges of the lines. The results were satisfactory at 600 DPI. Gaussian filter was used for smooth the noise, and then Canny edge detector was applied to the input image. This transform would fail to provide almost any real results without such modified input. It was found that Hough transform is unable to identify the start and end points of the lines, upon detection of the horizontal, vertical and oblique edges of each line, but only the lines that pass through to the overall picture. In some cases it was unable to find inscribed circle or circumscribed circle upon edges detection of the rectangular holes arrangement. Similarly, it was unable to recognize the edges of other elements of the engineering drawing, e.g.: curvature, dimensions, technical writing and elliptical shape. 3.3 Results of Cosine Transform Based on the above tests, it can be stated that the algorithm of cosine transform was able to sufficiently recognize almost all the elements of the engineering drawing. It has partial problems with the ends of individual edges. The dashed lines connect with the thin line and edges of solid lines continue a little further than it actually had. At the final image a kind of false responses of detected edges can be also observed. Casting of individual edges in the solid lines, e.g. dense hatch is not as visible as by the Fourier transform. When loaded the input samples at the resolutions of 150 and 600 DPI, it can be seen significant differences in provided results. 4. Discussion Testing a suitability of the transforms for raster engineering drawings with focusing on recognition of line type and thickness shows that the transforms are suitable for solving the first task - line type recognition. Fourier transform also provides good results for recognition of geometric shapes and hatched regions. Hough transform has greater sensitivity to set parameters. The line thickness recognition in the test did not provide desired results. 58

Thicker lines were recognized as two parallel thin lines. For exact confirmation of the obtained results it will be necessary to extend the testing with various adjustable parameters, mainly for the Hough transform. References Canny, J. (1986). A Computational Approach to Edge Detection. IEEE Trans. Pattern Analysis and Machine Intelligence. http://dx.doi.org/10.1109/tpami.1986.4767851 Gonzalez, R. C., & Woods, R. E. (1992). Digital Image Processing. New York. Addison-Wesley Publishing Company. Leavers, V. F. (1992). Shape Detection in Computer Vision Using the Hough Transform. Springer-Verlag London. http://dx.doi.org/10.1007/978-1-4471-1940-1 Marr, D., & Hildrith, E. (1980). Theory of Edge Detection. Proceedings of the Royal Society of London. http://dx.doi.org/10.1098/rspb.1980.0020 Ramirez, R. W. (1984). The FFT, Fundamentals and Concepts. Prentice Hall. ISBN-10: 0133143864 Russ, J. C. (2011). The Image Processing Handbook. Sixth Edition. North Carolina State University Materials Science and Engineering Department Raleigh, North Carolina. CRC Press. ISBN-10: 1439840458 Šonka, M., Hlaváč, V., & Boyle, R. (1993). Image Processing, Analysis, and Machine Vision. Chapman&Hall. http://dx.doi.org/10.1007/978-1-4899-3216-7 Copyrights Copyright for this article is retained by the author(s), with first publication rights granted to the journal. This is an open-access article distributed under the terms and conditions of the Creative Commons Attribution license (http://creativecommons.org/licenses/by/3.0/). 59