Skew angle Detection and correction using Radon Transform

Similar documents
Skew Detection and Correction of Document Image using Hough Transform Method

A Document Image Analysis System on Parallel Processors

An Integrated Skew Detection And Correction Using Fast Fourier Transform And DCT

Optical Character Recognition

OCR For Handwritten Marathi Script

Determining Document Skew Using Inter-Line Spaces

ROTATION INVARIANT TRANSFORMS IN TEXTURE FEATURE EXTRACTION

LANGUAGE INDEPENDENT ROBUST SKEW DETECTION AND CORRECTION TECHNIQUE FOR DOCUMENT IMAGES

Skew Detection Using the Radon Transform*

Rectification of distorted elemental image array using four markers in three-dimensional integral imaging

Skew Angle Detection of Bangla Script using Radon Transform

Automatic Detection of Texture Defects using Texture-Periodicity and Gabor Wavelets

E0005E - Industrial Image Analysis

LECTURE 6 TEXT PROCESSING

Corner Detection using Difference Chain Code as Curvature

Estimation of Skew Angle in Binary Document Images Using Hough Transform

Estimation of Skew Angle in Binary Document Images Using Hough Transform

LANE DEPARTURE WARNING SYSTEM FOR VEHICLE SAFETY

Stereo Image Rectification for Simple Panoramic Image Generation

Part-Based Skew Estimation for Mathematical Expressions

DATABASE DEVELOPMENT OF HISTORICAL DOCUMENTS: SKEW DETECTION AND CORRECTION

Novel Approaches of Image Segmentation for Water Bodies Extraction

Extraction and Recognition of Alphanumeric Characters from Vehicle Number Plate

Varun Manchikalapudi Dept. of Information Tech., V.R. Siddhartha Engg. College (A), Vijayawada, AP, India

Flexible Calibration of a Portable Structured Light System through Surface Plane

AC : EDGE DETECTORS IN IMAGE PROCESSING

OPTICAL MARK RECOGNITION (OMR) is technique

Integrating 3D Vision Measurements into Industrial Robot Applications

Digital Image Correlation of Stereoscopic Images for Radial Metrology

Document Skew Detection and Correction Algorithm using Wavelet and Radon Transforms

An Automated Image-based Method for Multi-Leaf Collimator Positioning Verification in Intensity Modulated Radiation Therapy

TEXT DETECTION AND RECOGNITION IN CAMERA BASED IMAGES

Skew Detection Technique for Binary Document Images based on Hough Transform

Edge Detection and Template Matching Approaches for Human Ear Detection

Finger Vein Biometric Approach for Personal Identification Using IRT Feature and Gabor Filter Implementation

Distance and Angles Effect in Hough Transform for line detection

Improved Simplified Novel Method for Edge Detection in Grayscale Images Using Adaptive Thresholding

Projector Calibration for Pattern Projection Systems

Morphological Image Processing GUI using MATLAB

Handwritten Hindi Character Recognition System Using Edge detection & Neural Network

3D-OBJECT DETECTION METHOD BASED ON THE STEREO IMAGE TRANSFORMATION TO THE COMMON OBSERVATION POINT

Types of Edges. Why Edge Detection? Types of Edges. Edge Detection. Gradient. Edge Detection

Simulation of rotation and scaling algorithm for numerically modelled structures

Image Segmentation and Multiple skew estimation, correction in printed and handwritten documents

An Edge Detection Algorithm for Online Image Analysis

Image Analysis. Edge Detection

Cursive Handwriting Recognition System Using Feature Extraction and Artificial Neural Network

A Review of Skew Detection Techniques for Document

Solving Word Jumbles

Computed tomography (Item No.: P )

Integration of 3D Stereo Vision Measurements in Industrial Robot Applications

Research on QR Code Image Pre-processing Algorithm under Complex Background

Handwriting Recognition of Diverse Languages

An Introduc+on to Mathema+cal Image Processing IAS, Park City Mathema2cs Ins2tute, Utah Undergraduate Summer School 2010

Gesture based PTZ camera control

Texture Segmentation and Classification in Biomedical Image Processing

KINEMATIC MODELLING AND ANALYSIS OF 5 DOF ROBOTIC ARM

Digital Image Processing

An Image Based Approach to Compute Object Distance

Detection of Defects in Automotive Metal Components Through Computer Vision

Reflection, Refraction and Polarization of Light Physics 246

[Kaur*, 5(2): February, 2016] ISSN: (I2OR), Publication Impact Factor: 3.785

Skeletonization Algorithm for Numeral Patterns

Nitesh Kumar Singh, Avinash verma, Anurag kumar

A Facial Expression Classification using Histogram Based Method

Isolated Curved Gurmukhi Character Recognition Using Projection of Gradient

by Photographic Method

HCR Using K-Means Clustering Algorithm

OBJECT SORTING IN MANUFACTURING INDUSTRIES USING IMAGE PROCESSING

Tracking Trajectories of Migrating Birds Around a Skyscraper

Sliced Ridgelet Transform for Image Denoising

IRIS SEGMENTATION OF NON-IDEAL IMAGES

Keywords: Thresholding, Morphological operations, Image filtering, Adaptive histogram equalization, Ceramic tile.

Fuzzy Inference System based Edge Detection in Images

EE368 Project Report CD Cover Recognition Using Modified SIFT Algorithm

Reflection, Refraction and Polarization of Light

Lecture 8 Object Descriptors

2D Fan Beam Reconstruction 3D Cone Beam Reconstruction

N.Priya. Keywords Compass mask, Threshold, Morphological Operators, Statistical Measures, Text extraction

Intensification Of Dark Mode Images Using FFT And Bilog Transformation

Segmentation of Kannada Handwritten Characters and Recognition Using Twelve Directional Feature Extraction Techniques

DEVELOPMENT OF CONE BEAM TOMOGRAPHIC RECONSTRUCTION SOFTWARE MODULE

Image Analysis. Edge Detection

Comparative Study between DCT and Wavelet Transform Based Image Compression Algorithm

Application of Geometry Rectification to Deformed Characters Recognition Liqun Wang1, a * and Honghui Fan2

Text line Segmentation of Curved Document Images

A FUZZY LOGIC BASED METHOD FOR EDGE DETECTION

NEW TECHNIQUE FOR SKEW ANGLE DETECTION OF TEXT IN IMAGE DOCUMENT

Rectification of elemental image set and extraction of lens lattice by projective image transformation in integral imaging

MORPHOLOGICAL EDGE DETECTION AND CORNER DETECTION ALGORITHM USING CHAIN-ENCODING

Counting Particles or Cells Using IMAQ Vision

Finger Print Enhancement Using Minutiae Based Algorithm

COMPUTER VISION. Dr. Sukhendu Das Deptt. of Computer Science and Engg., IIT Madras, Chennai

Circular Hough Transform

Engineered Diffusers Intensity vs Irradiance

EE795: Computer Vision and Intelligent Systems

A Novel Smoke Detection Method Using Support Vector Machine

METRIC PLANE RECTIFICATION USING SYMMETRIC VANISHING POINTS

Computer Science Faculty, Bandar Lampung University, Bandar Lampung, Indonesia

An Improvement Study for Optical Character Recognition by using Inverse SVM in Image Processing Technique

Transcription:

Skew Angle Detection and Correction using Radon Transform 1 Jinal Patel 1, Anup Shah 2, Dr. Hetal Patel 3 1 P.G. Student, Electronics & Communication Engineering Dept., ADIT, New Vallabh Vidyanagar-388121, India 2 CEO, InSignEx, Anand - 388001 India 3 Professor, Electronics & Communication Engineering Dept., ADIT, New Vallabh Vidyanagar-388121, India Abstract: In this paper, skew estimation and correction method for document image has been presented. Image of text document can be acquired via camera or other type of machines which cause sometime a skew angle (alignment) on its horizontal direction. To find skew angle of document image, the Radon transform method is used here. The skew angle used in database within the range of ±90º w.r.t x-axis. Kew words: Skew estimation, Radon transform, Skew correction 1. INTRODUCTION This paper analyzes a novel method for detecting the skew angle based on the Radon transform, which is briefly discussed. The methods presented here are appropriate for small angle rotations, in the interval degrees [-90,+90]. Larger imperfections should be treated through other means. A skew detection algorithm analyzes the digital image of a document and determines the angle of rotation with respect to x-axis. A simple solution for skew detection was to determine the location of at least two corners of the original document and compute the skew angle from the point. However, this can be error-prone because of non-linear distortions that occur when document were not on flat surface during capturing. Also, the entire scan surface may be obscured by the input document or the input may itself have been produced from a skewed original. In either case, deriving the skew angle from the corners or edges of the page is problematic. Here a skew detection algorithm derives the skew angle for a document image is presented. Techniques described uses Radon transform. The general characteristics of this technique are discussed and examples of how they are applied to skew detection are presented. In the following sections, related work is expressed in section 2. Section 3 describes the proposed approach and the results are presented in section 4. Finally, section 5 contains the conclusions. 2. RELATED WORK To deskew the document, numbers of techniques were used. For accurate detection of skew angle many techniques are available like Radon transform method, wavelet and Radon transform method [5], Vertical projection method [11], Projective transform method [6], Hough transform method [8] and centre of gravity method [4]. As Radon transform method gives high accuracy with less processing time, it is selected for accurate detection of skew angle. 3. PROPOSED METHOD Skew angle Detection and correction using Radon Transform Radon transform is a mapping of Cartesian coordinates to a distance and angle (s,θ) coordinates. The radon function computes projections of an image matrix along specified directions. A projection of a two-dimensional function f(m,n) is a set of line integrals. The radon function computes the line integrals from multiple sources along parallel paths, or beams, in a certain direction. The beams are spaced one pixel unit apart. To represent an image, the radon function takes multiple, parallel-beam projections of the image from different angles by rotating the source around the center of the image [1]. Figure 3. 1 : Schematic illustration of Radon transform [14]

Fig.3.1 shows the 1D projection g(s, θ) of the 2D function f(m,n). Where the X-ray beams are passing through the object f(m,n). When the beam pass through the object, then number of photons are absorb by the object and that number is projected in the polar Cartesian system (s, θ) at angle θ to the horizontal axis m as shown in above figure. Definition of Radon transform is as below. Where, - < s < and 0 θ < π..3.1... 3.2 Here, s = perpendicular distance between two parallel beams θ = angle between horizontal axis m and s u = vector in direction of X-rays f(m,n) = 2D object in Cartesian coordinate system (m,n) g(s, θ) = Radon transform of f(m,n) in polar coordinate system (s, θ) This equation is also known as Radon transform. And the projected data from Radon transform is often called a sinogram. Algorithm for Skew Detection The document images were used for an implementation, having different skew angles ranging from 0 to 90 degree w.r.t x-axis. the algorithm used for skew angle detection is as follows. Step 1: Binarize the input image and apply morphological filling operation. Step 2: Detection of edges using canny edge detector. Edge detection is the process of finding meaningful transitions in an image. Typically at the border between different objects sharp changes in the brightness occur [13]. Step 3: Apply Radon transform on the output obtain from pervious step. Step 4: Search for maximum value in Radon transform co-efficients. Step 5: Find value of theta for maximum intensity calculated in step 4. Step 6: The detected skew angle was found using Eq. 3.5. Skew angle: Step 7 : Rotate original image with skew angle. 4. RESULTS AND DISCUSSION Skew Angle Detection and Correction:... 3.3 θ Figure 4. 1 : image with skew angle 1. Binarize the input image (Fig. 4.1) and apply morphological filling operation. Morphological filling operation using was used for document region detection operation. 2

Morphological filling: After applying this to above image (Fig. 4.1), we got the resultant image as shown in Fig. 4.2 Figure 4. 2: Image after morphological filling 2. For detection of skew angle, first the boundary pixels of an object were detected using an edge detection operation. The result of applying canny edge detector is shown in Fig.4.3 Figure 4. 3 : Edge image of fig. 4.2 3. Apply Radon transform on the output of previous step using Eq. 3.2. 4. The skew angle corresponding to maximum radon co-efficient was found for the given image as θ = 13º. 5. Calculate the skew angle using Eq. 3.3. 6. Correct the object using skew angle detected in previous step. The resultant image is shown in Fig. 4.4 3 Figure 4. 4: Deskewed Image

Figure 4.5 : Image with 5 degree skew In Fig. 4.5, input image is black and white rectangle image. Which have left side skew angle of 5º. So the algorithm for skew detection and correction is applied on input image so output i.e deskewed image will be as shown in Fig. 4.5. Figure 4. 6 : Image with 61 degree skew In Fig. 4.6, input image is black and white rectangle image. Which have left side skew angle of 61º. So the algorithm for skew detection and correction is applied on input image so output i.e deskewed image will be as shown in Fig. 4.6. Figure 4. 7: Image with 30 degree skew We have seen simulation results for rectangle images. Now we are having different shape. In Fig. 4.7, input image is black and white oval image. Which have left side skew angle of 30º. So the algorithm for skew detection and correction is applied on input image so output i.e deskewed image will be as shown in Fig. 4.7. 4

Figure 4. 8: Image with -25 degree skew In Fig. 4.8, input image is black and white rectangle image. Which have right side skew angle of -25º. So the algorithm for skew detection and correction is applied on input image so output i.e deskewed image will be as shown in Fig. 4.8. Figure 4. 9: Image with -30 degree skew We have seen simulation results for rectangle images. Now we are having different shape. In Fig. 4.9, input image is black and white oval image. Which have right side skew angle of -30º. So the algorithm for skew detection and correction is applied on input image so output i.e deskewed image will be as shown in Fig. 4.9. 5. CONCLUSION For improving OCR accuracy, the skew detection and skew correction was applied. Here Radon transform method is used to detect the skew angle because it has less processing time and also it gives accurate result. ACKNOWLEDGEMENT The algorithm and its application described in this paper were developed as part of dissertation work of Jinal Patel at InSignEx. All IP rights for "algorithms, described applications, all code, software, notes, analyses, compilations, studies or other documents, whether prepared by Jinal or other employee of InSignEx (and whether in printed form or electronically stored in digital or analog form, on electronic or magnetic media, or otherwise), which contain or otherwise reflect such information" is fully perpetually assigned to InSignEx by all the authors of this publications. Authors are greatly thankful to the Dr. Vishvjit Thakar from Electronics and Communication engineering department at ADIT, entire Electronics and Communication laboratory staff members of ADIT and Harshil Pandya at Insignex. 5

REFFERENCES Papers: [1] Aithal P., Rajesh G., Acharya U. and Siddalingaswamy P. C, A Fast and Novel Skew Estimation Approach using Radon Transform, International Journal of Computer Information Systems and Industrial Management Applications, Vol. 5, pp. 337-344, 2013 [2] Bieniecki W., Grabowski S. and Rozenberg W., Image Preprocessing for Improving OCR Accuracy, International Conference on Perspective Technologies and Methods in MEMS Design, IEEE Xplore, 2007 [3] Brown M. and Pisula C., " Conformal Deskewing of Non-Planar Documents ", IEEE Computer Society Conference on Computer Vision and Pattern Recognition, ISBN : 1063-6919, 2005 [4] Chinara C., Nath N., Mishra S., Sahoo S. and Ali F., A Novel Approach to Skew-Detection and Correction of English Alphabets for OCR, IEEE Student Conference on Research and Development, 2012 [5] Hilal M. Yousif Al-Bayatti, Abdul Monem S. Rahma and F.A. Al-adhadh, Document Skew Detection and Correction Algorithm using Wavelet and Radon Transforms, Journal of al-anbar university for pure science, Vol.3,No. 1, 2009 [6] Jirasuwankul N., Effect of Text Orientation to OCR Error and Anti-Skew of Text using Projective Transform Technique, IEEE/ASME International Conference on Advanced Intelligent Mechatronics, ISBN:978-1-4577-0839-8,2011 [7] Kaval E., Fakotakis N. and Kokkinakis G., New Algorithms For Skewing Correction and Slant removal On Word-level, The 6th IEEE International Conference on Electronics, Circuits and Systems, ISBN: 0-7803-5682-9,1999 [8] Kumar D. and Singh D., Modified Approach Of Hough Transform For Skew Detection and Correction In Documented Images, International Journal of Research in Computer Science, Vol.: 2, Issue: 3, pp. 37-40, 2012 [9] Nishimura M., Casasent D. and Caimi F., Optical Inverse Radon Transform, Optics Communications, Vol. 24, no. 3, 1978 [10] Nandini N., Srikanta Murthy K., and G. Hemantha Kumar, Estimation of Skew Angle in Binary Document Images Using Hough Transform, World Academy of Science, Engineering and Technology,Vol:2, No. 6, pp :44-49, 2008 [11] A. and Gatos B., A Novel Skew Detection Technique Based on Vertical Projections, IEEE International Conference on Document Analysis and Recognition, ISBN : 1520-5363, 2011 [12] Raducanu B., Boiangiu C., Olteanu A., Ștefanescu A., Pop F. and Bucur I, Skew Detection Using the Radon Transform, In. Proc. International Conference on Control Systems and Computer Science (CSCS- 18), 2014 Books: [13] Gonzalez R. and Woods R., Digital Image Processing, Pearson Education,3 rd edition [14] Jayaraman S., Esakkirajan S. and Veerakumar T., Digital Image Processing, Mc Graw Hill [15] Jain A., Fundamentals of Digital Image processing, Prentice Hall [16] Joshi M., Digital Image Processing- An Algorithmic Approach, Prentice Hall 6