An Efficient Character Segmentation Based on VNP Algorithm

Similar documents
Hand Written Character Recognition using VNP based Segmentation and Artificial Neural Network

OCR For Handwritten Marathi Script

A Survey of Problems of Overlapped Handwritten Characters in Recognition process for Gurmukhi Script

Optical Character Recognition (OCR) for Printed Devnagari Script Using Artificial Neural Network

Layout Segmentation of Scanned Newspaper Documents

Skeletonization Algorithm for Numeral Patterns

HCR Using K-Means Clustering Algorithm

Segmentation of Characters of Devanagari Script Documents

Copyright Detection System for Videos Using TIRI-DCT Algorithm

Isolated Handwritten Words Segmentation Techniques in Gurmukhi Script

RESTORATION OF DEGRADED DOCUMENTS USING IMAGE BINARIZATION TECHNIQUE

Character Segmentation and Recognition Algorithm of Text Region in Steel Images

Offline Signature verification and recognition using ART 1

Handwritten Devanagari Character Recognition Model Using Neural Network

Adaptive Local Thresholding for Fluorescence Cell Micrographs

Automatic Detection of Change in Address Blocks for Reply Forms Processing

Input sensitive thresholding for ancient Hebrew manuscript

HANDWRITTEN GURMUKHI CHARACTER RECOGNITION USING WAVELET TRANSFORMS

Development of an Automated Fingerprint Verification System

Segmentation of Isolated and Touching characters in Handwritten Gurumukhi Word using Clustering approach

AN EFFICIENT BINARIZATION TECHNIQUE FOR FINGERPRINT IMAGES S. B. SRIDEVI M.Tech., Department of ECE

An Accurate and Efficient System for Segmenting Machine-Printed Text. Yi Lu, Beverly Haist, Laurel Harmon, John Trenkle and Robert Vogt

SKEW DETECTION AND CORRECTION

Hilditch s Algorithm Based Tamil Character Recognition

A New Approach to Detect and Extract Characters from Off-Line Printed Images and Text

INTERNATIONAL RESEARCH JOURNAL OF MULTIDISCIPLINARY STUDIES

A Document Image Analysis System on Parallel Processors

Automatic Recognition and Verification of Handwritten Legal and Courtesy Amounts in English Language Present on Bank Cheques

A New Algorithm for Detecting Text Line in Handwritten Documents

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

DATABASE DEVELOPMENT OF HISTORICAL DOCUMENTS: SKEW DETECTION AND CORRECTION

Journal of Industrial Engineering Research

Recognition of Gurmukhi Text from Sign Board Images Captured from Mobile Camera

A System for Joining and Recognition of Broken Bangla Numerals for Indian Postal Automation

Handwritten Script Recognition at Block Level

A Model-based Line Detection Algorithm in Documents

A New Approach To Fingerprint Recognition

Data Hiding in Binary Text Documents 1. Q. Mei, E. K. Wong, and N. Memon

Recognition of Unconstrained Malayalam Handwritten Numeral

Character Recognition

IJSER. Abstract : Image binarization is the process of separation of image pixel values as background and as a foreground. We

Finger Print Enhancement Using Minutiae Based Algorithm

ISSN: [Mukund* et al., 6(4): April, 2017] Impact Factor: 4.116

A Hierarchical Pre-processing Model for Offline Handwritten Document Images

I. INTRODUCTION. Image Acquisition. Denoising in Wavelet Domain. Enhancement. Binarization. Thinning. Feature Extraction. Matching

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

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

A Statistical approach to line segmentation in handwritten documents

[10] Industrial DataMatrix barcodes recognition with a random tilt and rotating the camera

SEVERAL METHODS OF FEATURE EXTRACTION TO HELP IN OPTICAL CHARACTER RECOGNITION

Structural Feature Extraction to recognize some of the Offline Isolated Handwritten Gujarati Characters using Decision Tree Classifier

Character Segmentation for Telugu Image Document using Multiple Histogram Projections

OFFLINE SIGNATURE VERIFICATION

CITS 4402 Computer Vision

A Technique for Classification of Printed & Handwritten text

Image Normalization and Preprocessing for Gujarati Character Recognition

OTCYMIST: Otsu-Canny Minimal Spanning Tree for Born-Digital Images

Keyword Spotting in Document Images through Word Shape Coding

Keywords:- Fingerprint Identification, Hong s Enhancement, Euclidian Distance, Artificial Neural Network, Segmentation, Enhancement.

Artifacts and Textured Region Detection

Published by: PIONEER RESEARCH & DEVELOPMENT GROUP ( 1

Simulation of Zhang Suen Algorithm using Feed- Forward Neural Networks

C E N T E R A T H O U S T O N S C H O O L of H E A L T H I N F O R M A T I O N S C I E N C E S. Image Operations II

FRAGMENTATION OF HANDWRITTEN TOUCHING CHARACTERS IN DEVANAGARI SCRIPT

Unique Journal of Engineering and Advanced Sciences Available online: Research Article

Minutiae Based Fingerprint Authentication System

One Dim~nsional Representation Of Two Dimensional Information For HMM Based Handwritten Recognition

Global Journal of Engineering Science and Research Management

CLASSIFICATION WITH RADIAL BASIS AND PROBABILISTIC NEURAL NETWORKS

Learning to Segment Document Images

I. INTRODUCTION. Figure-1 Basic block of text analysis

Separation of Text Components from Complex Colored Images

MOVING OBJECT DETECTION USING BACKGROUND SUBTRACTION ALGORITHM USING SIMULINK

Segmentation of Bangla Handwritten Text

Numerical Recognition in the Verification Process of Mechanical and Electronic Coal Mine Anemometer

Morphological Image Processing

Morphological Image Processing

SEGMENTATION OF CHARACTERS WITHOUT MODIFIERS FROM A PRINTED BANGLA TEXT

Biometrics- Fingerprint Recognition

Mobile Application with Optical Character Recognition Using Neural Network

5th International Conference on Information Engineering for Mechanics and Materials (ICIMM 2015)

International Journal of Advance Engineering and Research Development OPTICAL CHARACTER RECOGNITION USING ARTIFICIAL NEURAL NETWORK

Ulrik Söderström 16 Feb Image Processing. Segmentation

Part-Based Skew Estimation for Mathematical Expressions

Text Information Extraction And Analysis From Images Using Digital Image Processing Techniques

Image Segmentation Based on Watershed and Edge Detection Techniques

An Objective Evaluation Methodology for Handwritten Image Document Binarization Techniques

Advances in Natural and Applied Sciences. Efficient Illumination Correction for Camera Captured Image Documents

RESEARCH ON OPTIMIZATION OF IMAGE USING SKELETONIZATION TECHNIQUE WITH ADVANCED ALGORITHM

Localization, Extraction and Recognition of Text in Telugu Document Images

Classification of Printed Chinese Characters by Using Neural Network

CHAPTER 1 INTRODUCTION

Restoring Warped Document Image Based on Text Line Correction

Text Enhancement with Asymmetric Filter for Video OCR. Datong Chen, Kim Shearer and Hervé Bourlard

Idle Object Detection in Video for Banking ATM Applications

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

Cursive Handwriting Recognition System Using Feature Extraction and Artificial Neural Network

LECTURE 6 TEXT PROCESSING

TEXT DETECTION AND RECOGNITION FROM IMAGES OF NATURAL SCENE

CORRELATION BASED CAR NUMBER PLATE EXTRACTION SYSTEM

Transcription:

Research Journal of Applied Sciences, Engineering and Technology 4(24): 5438-5442, 2012 ISSN: 2040-7467 Maxwell Scientific organization, 2012 Submitted: March 18, 2012 Accepted: April 14, 2012 Published: December 15, 2012 An Efficient Character Segmentation Based on VNP Algorithm S. Chitrakala, Srivardhini Mandipati, S. Preethi Raj and Gottumukkala Asisha Department of Computer Science and Engineering, Easwari Engineering College, Ramapuram, Chennai 600089, India Abstract: Character segmentation is an important preprocessing stage in image processing applications such as OCR, License Plate Recognition, electronic processing of checks in banks, form processing and, label and barcode recognition. It is essential to have an efficient character segmentation technique because it affects the performance of all the processes that follow and hence, the overall system accuracy. Vertical projection profile is the most common segmentation technique. However, the segmentation results are not always correct in cases where pixels of adjacent characters fall on the same scan line and a minimum threshold is not observed in the histogram to segment the respective adjacent characters. In this study, a character segmentation technique based on Visited Neighbor Pixel (VNP) Algorithm is proposed, which is an improvement to the vertical projection profile technique. VNP Algorithm performs segmentation based on the connectedness of the pixels on the scan line with that of the previously visited pixels. Therefore, a clear line of separation is found even when the threshold between two adjacent characters is not minimal. The segmentation results of the traditional vertical projection profile and the proposed method are compared with respect to a few selected fonts and the latter, with an average accuracy of approximately 94%, has shown encouraging results. Keywords: Dissection based segmentation, optical character recognition, segmentation, vertical projection profile. INTRODUCTION Character segmentation is the decomposition of an image into its subcomponent where each subcomponent contains individual character image. It is the most critical step in many image processing applications that involve recognizing characters-like OCR and License plate recognition as it can cause high errors in the recognition stage. Many character segmentation techniques exist, but each with its own restrictions. The most commonly used character segmentation technique is vertical projection profile, which uses inter-character white space as the criteria for segmentation. However, when pixels of adjacent characters lie in the same vertical scan line, vertical projection profile treats these adjacent characters as the same character, hence segmenting the character incorrectly. In this study, Visited Neighbor Pixel (VNP) algorithm based character segmentation is proposed. The extent of each character is determined by considering the adjacency or neighborhood of two pixels, overcoming the shortcoming of the vertical projection profile technique. The connectedness of pixels is used as a factor to describe the characters. A few studies in this area are explained below. Jaedo et al. (2009) proposed a robust license plate detection method which uses topological transform and perspective projection profile for character separation. The topological transform fails to find closed loops which form the areas of input containing the number plate when the intensity value is high and the edge detection does not produce accurate results. Due to this 57% of errors occur in the character detection module. Rajiv and Amardeep (2008) proposed a method for the segmentation of handwritten text in Gurmukhi script. The segmented word is scanned vertically from left to right by ignoring the horizontal line with maximum intensity. The presence of one or more black pixels marks the beginning of the character. As the scan progresses, the location where no black pixels are encountered marks the end of the character. In this manner, the starting and ending location of each character is stored and segmented. However, in cases where the horizontal head line of a word has a break, the system fails to identify it as a single word. Problem also arises at times when the maatra of a character is not connected to it and the character segmentation module treats them as separate characters. Min-Chul et al. (1999) proposed a method which uses the side profiles for the segmentation and recognition of machine printed touching characters. Seong-Whan et al. (1996) proposed a two-stage character segmentation method. Pre-segmentation points are first selected from the projection profile. A multi-stage graph is then Corresponding Author: S. Chitrakala, Department of Computer Science and Engineering, Easwari Engineering College, Ramapuram, Chennai 600089, India 5438

Fig. 1: Functional architecture of the system generated to identify a more accurate character segmentation region. Sanjeev and Sudhaker (2006) also proposed a two-stage character segmentation technique, but it was tailored for printed Kannada scripts. The subscripts are first segmented from the word after which the rest of the characters are segmented using global vertical projection profile. This method has a disadvantage when the main character itself descends down or its vowel identifier is extended down. In such cases the main character itself will be considered as the subscript and hence an anomaly arises. The proposed VNP algorithm is an improvement over vertical projection profile and it works by segmenting adjacent characters with minimum threshold based on connectedness of the pixels. METHODOLOGY System description: The input text images are obtained after scanning printed documents. These documents can either be in grayscale or color but without pictures among the text, like Fig. 2a. The input text image first undergoes binarization. The resulting binary image is then subjected to noise removal. Thinning is then performed to reduce the binary characters into strokes of one pixel width. Then, the lines, words and finally the characters are segmented from the text image. The architecture of the proposed system is shown in Fig. 1. Binarization, Noise Removal and Thinning are the preprocessing steps for segmentation. The individual stages are explained in the following sections. Binarization: Images obtained after scanning are generally in either grayscale or color. However, further processing requires the image to be binary. Hence, binarization is performed to convert the input grayscale or color image to its equivalent binary image. Otsu s method is adopted for this purpose. It works by iteratively computing a threshold value to separate the two classes of pixels, black and white, in a way that minimizes the intra class covariance of the pixel values. The threshold is computed using Eq. (1): F 2 b (t) = F 2!F 2 T (t) = T 1 (t) T 2 (t)[: 1 (t)! : 2 (t)] 2 (1) where, weights T i are the probabilities of the two classes separated by a threshold t and F 2 i variances of these classes. The result of binarization is shown in Fig. 2b. Noise removal: Noise in the image refers to the unwanted pixels or data. There are various factors such as the quality of the paper and the scanner that induce noise into the input image. In this stage we transform the binarized input image to a de-noised image. There exist numerous kinds of noise in images but the most common noise encountered here is pixel noise, which is, the presence of random unwanted pixels across the image. These pixels add extraneous information which affects further processing. For this purpose, a median filter is employed to eliminate such unwanted pixels. The filtered image is shown in Fig. 2c. Thinning: The filtered image undergoes thinning to obtain the skeleton of the characters in the image without affecting their structural shape. The resulting characters are of one-pixel width and are centered and connected. The results are shown in Fig. 2d. Line segmentation: The first step in segmentation is line segmentation. Line segmentation, as its name implies, is the separation of the different lines of text. This breaks down the recognition process into the recognition of individual lines. Horizontal projection profile is employed for this purpose. The lines are assumed to be well separated and will hence have separated peaks and valleys in the horizontal projection. The number of black pixels in each row is computed to obtain these peaks and valleys. They are then used to identify the boundary between two lines of text and hence, extract these lines. The result of segmenting the first line from the input image is shown in Fig. 3a. Word segmentation: After breaking down the input image into lines of text, these lines are broken down into 5439

(c) (d) Fig. 2: Preprocessing Input image, Binarized image, (c) Filtered image, (d) Thinned image Fig. 3: Segmentation prior to character segmentation, Segmented line, Segmented words words. Vertical projection profile is used for this purpose. By counting the black pixels along the vertical direction of the line, the valleys of the projection profile are obtained. The gaps in the line can be found by searching for these valleys. These gaps can correspond to either the space between words or the space between characters. Hence, a threshold is set which corresponds to the space between words. Word segmentation is done based on this threshold. The results for word segmentation of the first line are shown in Fig. 3b. The words are boxed to emphasize the segmentation. (c) Fig. 4: General character segmentation, Left boundary, Right boundary, (c) Top and bottom boundaries Character segmentation based on VNP algorithm: Word segmentation is typically followed by character segmentation. Character segmentation is a significant step in many applications. Incorrect segmentation tends to affect the outcome of further processes, like character recognition or classification. An efficient character segmentation technique is the seed to enhance the overall system s performance. The proposed VNP method is classified under dissection based segmentation approaches, wherein the image is split up into meaningful components. In the proposed algorithm the segmented a black pixel is detected. This pixel marks the beginning of the character as depicted in Fig. 4a and it is temporarily stored in an otherwise empty image of the same size and width as the segmented word. The scan progresses iteratively, checking for the presence of black pixels neighboring the already visited black pixels. The end of the character is determined as the column where no more neighboring black pixels exist. This is shown in Fig. 4b. 5440

Fig. 5: Character segmentation for special case-pixels of adjacent characters on same scan line In some cases, pixels of two adjacent characters fall on the same scan line as shown in Fig. 5. Here, a difficulty arises in identifying the bounds for separating the characters. The VNP algorithm proves to be advantageous in such cases, by checking for the condition of adjacency with the visited pixels. This row y If valu gives a clear indication of segmentation as shown in Fig. 4. After estimating the start and end point of a character, the columns corresponding to the starting and the ending point are used as reference lines and scanning is done horizontally from the top to the bottom. When a black pixel is encountered, the corresponding scan line is marked as the top boundary of the character and then scanning continues horizontally from the bottom boundary of the word to the top. Every time a pixel is encountered, the presence of its adjacent pixels is checked. If it has adjacent pixels falling outside the right boundary of the character, the pixel is assumed to belong to another character and is ignored. This solves the problem of segmenting character when pixels of adjacent characters fall on the same scan line. The scanning proceeds till a pixel which has either no adjacent pixels or whose adjacent pixels fall within the character s boundary is encountered. The row corresponding to the pixel is marked as the bottom boundary as shown in Fig. 4c. Hence, the boundaries of the character are defined and the character is segmented along them. Algorithm: Visited neighbor pixel algorithm Functions: STORE (x,y):stores the pixel corresponding to location (x,y) visited (x,y): Checks if the pixel (x,y) has been visited height (w): Returns the height of the word w value (x,y): Returns the value of the pixel (0-black or 1- white) Input: w: Segmented word Output: x min : Left most point of the character x max : Right most point of character y min : Top most point of character y max : Bottom most point of character Start For word w //Storing first pixel of character For x = 1 For-Each row y // black pixel encountered If value (x,y) == 0 // Start of the character Then STORE (x,y) x min = x For column x = 2: n For-Each e (x,y) == 0 //Checking for neighbor black pixel If (!value (x!1, y)! value(x! 1, y ± 1)! value (x, y ± 1)) If (visited (x!1, y) visited (x, y ± 1)) = = 0 ) STORE (x, y) Else //Absence of neighbor pixels x max = x // Computing boundaries of bounding box y n = height (w) For-Each row y from column If (x, y) = = 0 break STORE (x,y) y min = y For y = y n ; y>1; y-1 If ((x, y) = = 0&& (x max + 1, y) 0) y max = y End RESULTS AND DISCUSSION A subset of the available True Type Fonts, in which a few pixels of adjacent character s fall on the scan line, were selected for analyzing the performance of the proposed method. The proposed method for character segmentation was applied to input images containing these fonts namely-monotype Corsiva, Viner Hand ITC, Times New Roman and Bookman Old Style. The results of character segmentation for a sample word from each of the tested fonts are shown in Fig. 6. The results of this character segmentation were juxtaposed with those by vertical projection profile and their precision, recall and F-scores were computed. The values for precision, recall and F-score were computed using Eq. (2), (3) and (4), respectively: TP P = TP + FP TP R = TP + FN (2) (3) 5441

(c) (d) Fig. 6: Character segmentation, Times new roman, Viner hand ITC, (c) Monotype corsiva, (d) Bookman old style Table 1: Performance comparision of VNP algorithm with vertical projection profile VNP algorithm Vertical projection profile ----------------------------------------------------------- --------------------------------------------------------------------- Font styles P R F-score P R F-score Viner hand ITC 0.94 0.96 0.95 0.88 0.95 0.91 Times new roman 0.93 0.94 0.94 0.90 0.96 0.93 Monotype corsiva 0.88 0.95 0.91 0.83 0.90 0.86 Bookman old style 0.94 0.97 0.95 0.92 0.96 0.94 PR. F = 2 P+ R (4) TP (true positive) pertains to the number of characters segmented correctly. FP (false positive) pertains to the number of characters that remain unsegmented. FN (false negative) pertains to the segmentation results which do not correspond to characters. The results of comparison of character segmentation using VNP algorithm and that using vertical projection profile are tabulated in Table 1. In fonts like Viner Hand ITC there are many cases where pixels of adjacent characters fall in the same scan line. Hence, a relatively large difference in precision can be observed when compared to vertical projection profile. The average accuracy for character segmentation, computed as the average of the F-scores, was found to be approximately 94% when using VNP algorithm as opposed to 91% when using vertical projection profile. The segmentation errors occurring when VNP algorithm is used are primarily attributed to adjacent characters touching each other. However, vertical projection profile also suffers from these errors. This is generally a result of one or more preprocessing steps. CONCLUSION The proposed character segmentation technique based on VNP algorithm uses the connectedness of the pixels as a property to distinguish characters. Adjacent characters whose pixels fall on the same scan line are also correctly segmented. The results of the proposed method were compared with those of vertical projection profile. With an average accuracy of about 94%, character segmentation using VNP algorithm showed favorable results. REFERENCES Jaedo, K., H. Youngjoon and H. Hernsoo, 2009. Character segmentation method for a license plate with topological transform. World Acad. Sci. Eng. Technolo., 35: 39-42. Min-Chul, J., S. Yong-Chul and S.N. Sargur, 1999. Machine printed character segmentation method using side profiles. IEEE Int. Conf. Syst. Man Cybernet., 6: 863-867. Rajiv, S.K. and S. Amardeep, 2008. Segmentation of hand written text in Gurmukhi script. Int. J. Image Proc., 2: 13-17. Sanjeev, K.R. and S.R.D. Sudhaker, 2006. A two-stage character segmentation technique for printed Kannada text. GVIP Special Issue Image Sampl. Segment., 6: 1-8. Seong-Whan, L., L. Dong-June and P. Hee-Seon, 1996. A new methodology for gray-scale character segmentation and recognition. IEEE T. Pattern Anal., 18: 1045-1050. 5442