SlideShare a Scribd company logo
IOSR Journal of Computer Engineering (IOSR-JCE)
e-ISSN: 2278-0661, p- ISSN: 2278-8727Volume 15, Issue 6 (Nov. - Dec. 2013), PP 49-53
www.iosrjournals.org
www.iosrjournals.org 49 | Page
Comparative study of two methods for Handwritten Devanagari
Numeral Recognition
S.L.Mhetre1
, Prof.M.M.Patil2
1
(E&TC Dept,SAE/ Pune University,India)
2
(E&TC Dept,SAE/Pune University,India)
Abstract : In this paper two different methods for Numeral Recognition are proposed and their results are
compared. The objective of this paper is to provide an efficient and reliable method for recognition of
handwritten numerals. First method employs Grid based feature extraction and recognition algorithm. In this
method the features of the image are extracted by using grid technique and this feature set is then compared
with the feature set of database image for classification. While second method contains Image Centroid Zone
and Zone Centroid Zone algorithms for feature extraction and the features are applied to Artificial Neural
Network for recognition of input image. Machine text recognition is important research area because of its
applications in many areas like Bank, Post office, Hospitals etc.
Keywords: Handwritten Numeral Recognition, Grid Technique, ANN, Feature Extraction, Classification.
I. INTRODUCTION
Lot of research has been done on printed and handwritten character/numeral recognition. Between
these two the handwritten text recognition has low recognition rate as compared to printed text due to number of
challenges arising while processing them. So we can conclude that the handwritten text recognition is still in
development stage. Whereas printed text recognition has reached to exploitation level. Again Devanagari script
is the script used by more than 300 million people for documentation. Many official languages in India like
Hindi, Marathi, Sindhi, Sanskrit are the form of Devanagari script. Among which Hindi is the third most popular
language in world. The Devanagari OCR thus will be helpful in digitizing the ancient literatures, books,
newspapers etc. and can also be used for official purposes where computers (machines) are used wildly [1].
Thus here we have proposed algorithms for recognition of Handwritten Devanagari Numeral.
The recognition can be either on-line or offline recognition. Various methods has been discussed for
on-line and off-line character recognition by R. Plamondon and S.N. Srihari [2]. Off-line recognition is of two
types : Printed text recognition and Handwritten text recognition. A good survey has been made by R.
Jayadevan, Satish R. Kolhe, Pradeep M. Patil, and Umapada Pal on off-line Devanagari recognition which will
be very useful for the researchers working in this field [3].Though large research papers have been published on
Devanagari Numeral Recognition but the first paper was reported in 1977, which uses structural approach for
recognition [4]. A wavelet filter-based multi resolution analysis is carried out on input images and MLP
classifier is used for recognition of numerals by Chaudhuri and Bhattacharya [5]. Bajaj, Dey used median filter
to remove noise in input image[6]. For recognition Bajaj, Dey used features like descriptive features, density
features and moment features of right, left, upper and lower profile curves and finally combined the decisions of
multiple classifiers [6]. While box approach is used by Hanmandlu for feature extraction [7]. Thinning based
features are used by Elnagar and Harous [8]. From a thinned image they extracted three different types of
feature types like branch, end and cross points by representing them syntactically.
II. DATA COLLECTION
Here database for Devanagari numerals is created having 1000 samples written from 10 different
individuals of different age group. They were asked to write numerals in devanagari from 0-9 on a A4 size
paper. Handwriting in general can be categorize as : Cursive or hand printed hand writing. The numerals in
Devanagari are written in hand printed handwriting form i.e. the numerals are not connected to each other like in
cursive. The sample for Devanagari Numerals is as shown in fig below:
figure 1. Devanagari Numerals
Comparative study of two methods for Handwritten Devanagari Numeral Recognition
www.iosrjournals.org 50 | Page
III. PRE-PROCESSING
figure 2. Flow Chart for Pre-processing
Numerical recognition is nothing but the conversion of handwritten or typed numerical document into machine
understandable form. For this the document is first scanned using a regular scanner. Before performing the
feature extraction directly, first the scanned data/image is passed through some pre-processing steps (shown in
the flow chart below), these steps are as follows:
 If the scanned document is a color image it is converted into a gray scale image. The conversion is carried
out by removing the hue and saturation while retaining the luminance.
 The gray scale image is still a raw image; it may carry some unwanted information. This information is
termed as noise. The noise/distortion may introduce while scanning the image. The noise is of various types
like salt and pepper noise, shot noise etc. Median filter is used to remove such noise.
 After filtering the image it is converted into binary form. The process is also called as Image Segmentation.
Image segmentation is performed by assigning a variable to a threshold value, if the value of pixel in gray
scale image is equal or above the threshold value then the pixel is replaced by 1 else 0. At the end the image
is inverted for easy processing.
 The image obtained after binarization is sent for thinning / skeletonization process. Skeletonization reduces
the width of numerals from many pixels to one.
 Finally the image is restored to a standard dimension 128*96. (It is not necessary to use/take these
dimensions only. Our aim is to create a database with images having fixed size. Any dimensions can be
taken to achieve feasibility in operation.)
IV. FEATURE EXTRACTION
This is the most important step in character/numeral recognition, since classification is done on the
basis of the set of features extracted during this step. Feature extraction simply means the acquisition or
measurement of those parameters of input image that are most useful for classification purpose. Many of such
features are invented and used by scientists for pattern classification.
In this paper we are using two different feature extraction methods. Features can be mainly classified
into two different types: Structural Features and Numerical Features. Among which structural features are
related to the shape or structure of input image (easy for human being to understand), while numerical features
are concerned with numeric values (distance, height, width etc) extracted from the input image. These numeric
values can be real or binary. Humans cannot conclude anything from this information. In first method we are
extracting the structural features of input image. For this Grid is formed on the input image and the image is
resized to 8*6 block and 16*12 block size, while second method uses distance based features i.e. numerical
features of input image. Both the methods are explained as below:
Scan the document
Color to gray scale conversion
Gray-scale to binary conversion
Noise Removal
Skeletonization
Size Normalization
Templates for Database
Comparative study of two methods for Handwritten Devanagari Numeral Recognition
www.iosrjournals.org 51 | Page
4.1 Grid Based Method
1) Grid based feature extraction is a type of pixel oriented feature extraction. The steps for this method are as
follows:
2) After pre-processing the sizes of all the images are normalized to x*y pixels. Size normalization is a must
condition to obtain best results for character/ numeral recognition. A grid is formed on the image of size
a*b such that a<<x and b<<y. In this way the input image segmented into number of rectangular cells.
3) Next step is to find out the rectangular cells (grid) that contains numeral contents. For such grid calculate
the number of black pixels.
4) Now create a matrix of size a*b having same size of grid. Here our assumption is that each element (pixel)
of newly created matrix a*b belongs to each grid of the image.
5) The value of pixel in the matrix will be 1 if the number of black pixels in the corresponding grid is more
than 3 else 0.
6) The procedure is repeated for each pixel in the new matrix.
figure 3. Input image for feature extraction
figure 4. Grid features of Devanagari Numeral
4.2 ICZ & ZCZ
4.2.1 Image Centroid Zone (ICZ)
Algorithm:
7) Calculate centroid of input image.
8) Divide the image into equal zones.
9) After zone formation, calculate the distance between centroid and each numeral pixel in the zone.
10) Now calculate the average distance corresponding to that zone.
11) Repeat procedure 3) and 4) for each zone.
12) In this way we obtain the number of features equal to the number of zones created in second step.
4.2.2 Zone Centroid Zone (ZCZ)
Algorithm:
13) Divide the image into equal zones.
14) Calculate centroid for each zone.
15) After zone formation, calculate the distance between the zone centroid and each numeral pixel in the
zone.
16) Now calculate the average distance corresponding to that zone.
17) Repeat procedure 3) and 4) for each zone.
18) In this way we obtain the number of features equal to the number of zones created in first step.
V. CLASSIFICATION
Classification stage requires the features of the template images extracted in the previous stage of
feature extraction.
Comparative study of two methods for Handwritten Devanagari Numeral Recognition
www.iosrjournals.org 52 | Page
5.1 Matching Score
The recognition by matching score is performed by comparing the grid feature of the input image with
all the template images in the database. The template image for which we will get minimum matching score;
that image will be the recognized numeral. For this first the input image (to be recognized) is scanned using an
optical scanner and the scanned document is passed through various pre-processing steps shown in the fig.(2).
figure 5. Input image matched with template image
As shown in fig above, first image is the input image which is matched with the second template image
in the database with minimum dist 39 shown in fig below.
Figure 6. Minimum distance (or Matching Score)
5.2 Artificial Neural Network
The success rate of Artificial Neural Network is highly dependent on their efficiency of accurate
classification of the input (images) also called as recognition rate. Character/ Numeral recognition is the most
important application of ANN(Artificial Neural Network). The model for Artificial Neural Network is shown in
fig. below:
Input Layer
Hidden Layer
Output layer
figure 7.Model for ANN
Scientists(specially brain modellers) were inspired by human nervous system and they develop a model
of ANN. ANN uses numerical features for classification of the input image.
figure 8.input image for ICZ,ZCZ feature extraction
Numeral shown in fig. is first scanned and then passed through different pre processing steps. Then its
features are extracted using ICZ & ZCZ feature extraction technique. The feature set for the input image is
shown in fig. below:
figure 9. ICZ,ZCZ Feature set
Comparative study of two methods for Handwritten Devanagari Numeral Recognition
www.iosrjournals.org 53 | Page
VI. COMPARISON OF RESULT
As explained in the paper, first method uses Grid based technique for feature extraction and then
matching score is calculated from the extracted features for classification. In second method the feature set
which is extracted using ICZ & ZCZ feature extraction technique is applied to Artificial Neural Network for
classification. The database used for both the techniques is same. Also the images used for testing both the
system are same, so that we can easily compare the result obtained from both the methods.
Table 1. Comparison of Results
Sr.No. Method Template image Test image Correct recognition Result (%)
1 Grid Technique 500 500 418 83.60
2 ANN 500 500 432 86.40
VII. CONCLUSION
This paper aims at recognition of devanagari numerals using grid based and Artificial Neural Network
Approach. The result of ANN is good as compared to Grid Technique. The result of Neural Network depends on
how much it is trained. If the the number of samples provided for training is increased then definitely we can
achieve results upto 96%. The methods used here for numeral recognition can also be used for printed or
handwritten Devanagari character recognition. Also we can use the Grid technique for offline signature
verification purpose.
REFERENCES
[1] U. Bhattacharya and B. B. Chaudhuri, “Handwritten numeral databases of Indian scripts and multistage recognition of mixed
numerals,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 31, no. 3, pp. 444–457, Mar. 2009.
[2] R. Plamondon and S.N. Srihari., 2000, “Online and off-line handwriting recognition: a comprehensive survey.”, Pattern Analysis
and Machine Intelligence, IEEE Transac-tions on, vol.22(1), pp 63–84.
[3] R. Jayadevan, Satish R. Kolhe, Pradeep M. Patil, and Umapada Pal, “Offline Recognition of Devanagari Script: A Survey,” IEEE
Transactions on Systems, man, and Cybernetics—part c: Applications and Reviews, vol. 41, no. 6, November 2011.
[4] I. K. Sethi and B. Chatterjee, “Machine recognition of hand printed Devanagari numerals,” J. Inst. Electron. Telecommun. Eng., vol.
22, pp. 532–535, 1977.
[5] U. Bhattacharya and B. B. Chaudhuri, “Handwritten numeral databases of Indian scripts and multistage recognition of mixed
numerals,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 31, no. 3, pp. 444–457,Mar. 2009.
[6] R. Bajaj, L. Dey, and S. Chaudhuri, “Devanagari numeral recognition by combining decision of multiple connectionist classifiers,”
Sadhana, vol. 27, no. 1, pp. 59–72, 2002.
[7] M. Hanmandlu, J. Grover, V. K. Madasu, and S. Vasikarla, “Input fuzzy modeling for the recognition of handwritten Hindi
numerals,” in Proc. Int. Conf. Inf. Technol., 2007, pp. 208–213.
[8] A. Elnagar and S. Harous, “Recognition of handwritten Hindi numerals using structural descriptors,” J. Exp. Theor. Artif. Intell., vol.
15, no. 3,pp. 299–214, 2003.

More Related Content

PDF
A Survey on Tamil Handwritten Character Recognition using OCR Techniques
PPT
Signature recognition using clustering techniques dissertati
PDF
A Survey Paper on Character Recognition
PPTX
Successive Geometric Center Based Dynamic Signature Recognition
PDF
A Survey of Modern Character Recognition Techniques
PDF
Devnagari handwritten numeral recognition using geometric features and statis...
PDF
Text-Image Separation in Document Images using Boundary/Perimeter Detection
PDF
Image detective efficient image retrieval system
A Survey on Tamil Handwritten Character Recognition using OCR Techniques
Signature recognition using clustering techniques dissertati
A Survey Paper on Character Recognition
Successive Geometric Center Based Dynamic Signature Recognition
A Survey of Modern Character Recognition Techniques
Devnagari handwritten numeral recognition using geometric features and statis...
Text-Image Separation in Document Images using Boundary/Perimeter Detection
Image detective efficient image retrieval system

What's hot (16)

PPTX
Online signature recognition using sectorization of complex walsh
PDF
Feature Extraction and Feature Selection using Textual Analysis
PDF
I017417176
PDF
Handwritten amazigh-character-recognition-system-for-image-obtained-by-camera...
PDF
B018110915
PDF
Image segmentation based on color
PDF
Offline Signiture and Numeral Recognition in Context of Cheque
PDF
Sample Paper Techscribe
PDF
Handwritten Signature Verification System using Sobel Operator and KNN Classi...
PDF
A Review on Geometrical Analysis in Character Recognition
PDF
Automatic dominant region segmentation for natural images
PPT
Evaluation of Texture in CBIR
PDF
GEOMETRIC CORRECTION FOR BRAILLE DOCUMENT IMAGES
PDF
Object recognition from image using grid based color moments feature extracti...
PDF
DEVNAGARI DOCUMENT SEGMENTATION USING HISTOGRAM APPROACH
PDF
Hybrid fingerprint matching algorithm for high accuracy and reliability
Online signature recognition using sectorization of complex walsh
Feature Extraction and Feature Selection using Textual Analysis
I017417176
Handwritten amazigh-character-recognition-system-for-image-obtained-by-camera...
B018110915
Image segmentation based on color
Offline Signiture and Numeral Recognition in Context of Cheque
Sample Paper Techscribe
Handwritten Signature Verification System using Sobel Operator and KNN Classi...
A Review on Geometrical Analysis in Character Recognition
Automatic dominant region segmentation for natural images
Evaluation of Texture in CBIR
GEOMETRIC CORRECTION FOR BRAILLE DOCUMENT IMAGES
Object recognition from image using grid based color moments feature extracti...
DEVNAGARI DOCUMENT SEGMENTATION USING HISTOGRAM APPROACH
Hybrid fingerprint matching algorithm for high accuracy and reliability
Ad

Viewers also liked (20)

PDF
G017625052
PDF
A010410109
PDF
Seismic Performance Assessment of RCS Building By Pushover Analysis
PDF
Verification of the Validity of Relativity Principle
PDF
Comparative Analysis, Security Aspects & Optimization of Workload in Gfs Base...
PDF
Computational Intelligence Methods for Clustering of Sense Tagged Nepali Docu...
PDF
Implementation of Vertical Handoff Algorithm between IEEE 802.11 WLAN & CDMA ...
PDF
Institutional Transformation Aimed To Support the Farmers Empowerment Strateg...
PDF
Performance Analysis Methodology for Parabolic Dish Solar Concentrators for P...
PDF
Causes of Delay in Construction of Bridge Girders
PDF
I012415358
PDF
Energy Attenuation Mechanism of a Carrier Wavepropagating in a Viscous Fluid
PDF
Estimation of Damping Derivative of a Delta Wing with Half Sine Wave Curved L...
PDF
Autonomous control of interlinking converter in hybrid PV-wind microgrid
PDF
A Review Study On Optimisation Of Process Of Wedm And Its Development
PDF
K010437073
PDF
Performance of Concrete at Elevated Temperatures: Utilizing A Blended Ordinar...
PDF
A Spurious-Power Suppression technique for a Low-Power Multiplier
PDF
Voice Recognition Wireless Home Automation System Based On Zigbee
PDF
P01754110117
G017625052
A010410109
Seismic Performance Assessment of RCS Building By Pushover Analysis
Verification of the Validity of Relativity Principle
Comparative Analysis, Security Aspects & Optimization of Workload in Gfs Base...
Computational Intelligence Methods for Clustering of Sense Tagged Nepali Docu...
Implementation of Vertical Handoff Algorithm between IEEE 802.11 WLAN & CDMA ...
Institutional Transformation Aimed To Support the Farmers Empowerment Strateg...
Performance Analysis Methodology for Parabolic Dish Solar Concentrators for P...
Causes of Delay in Construction of Bridge Girders
I012415358
Energy Attenuation Mechanism of a Carrier Wavepropagating in a Viscous Fluid
Estimation of Damping Derivative of a Delta Wing with Half Sine Wave Curved L...
Autonomous control of interlinking converter in hybrid PV-wind microgrid
A Review Study On Optimisation Of Process Of Wedm And Its Development
K010437073
Performance of Concrete at Elevated Temperatures: Utilizing A Blended Ordinar...
A Spurious-Power Suppression technique for a Low-Power Multiplier
Voice Recognition Wireless Home Automation System Based On Zigbee
P01754110117
Ad

Similar to Comparative study of two methods for Handwritten Devanagari Numeral Recognition (20)

PDF
L017116064
PDF
Artificial Neural Network For Recognition Of Handwritten Devanagari Character
PDF
Character recognition of Devanagari characters using Artificial Neural Network
PDF
E123440
PDF
Ijetcas14 399
PDF
Co4201605611
PDF
A Novel Framework For Numerical Character Recognition With Zoning Distance Fe...
PDF
Welcome to International Journal of Engineering Research and Development (IJERD)
PDF
A Novel Approach to Recognize Handwritten Gujarati Digits.pdf
PDF
AN EFFICIENT FEATURE EXTRACTION AND CLASSIFICATION OF HANDWRITTEN DIGITS USIN...
PDF
SEGMENTATION AND RECOGNITION OF HANDWRITTEN DIGIT NUMERAL STRING USING A MULT...
PDF
SEGMENTATION AND RECOGNITION OF HANDWRITTEN DIGIT NUMERAL STRING USING A MULT...
PDF
Segmentation and recognition of handwritten digit numeral string using a mult...
PDF
I017256165
PDF
Character Recognition (Devanagari Script)
PDF
Classifier fusion method to recognize
PDF
Faster Training Algorithms in Neural Network Based Approach For Handwritten T...
PDF
An Optical Character Recognition for Handwritten Devanagari Script
PDF
Devanagari Character Recognition using Image Processing & Machine Learning
PDF
20120140502008
L017116064
Artificial Neural Network For Recognition Of Handwritten Devanagari Character
Character recognition of Devanagari characters using Artificial Neural Network
E123440
Ijetcas14 399
Co4201605611
A Novel Framework For Numerical Character Recognition With Zoning Distance Fe...
Welcome to International Journal of Engineering Research and Development (IJERD)
A Novel Approach to Recognize Handwritten Gujarati Digits.pdf
AN EFFICIENT FEATURE EXTRACTION AND CLASSIFICATION OF HANDWRITTEN DIGITS USIN...
SEGMENTATION AND RECOGNITION OF HANDWRITTEN DIGIT NUMERAL STRING USING A MULT...
SEGMENTATION AND RECOGNITION OF HANDWRITTEN DIGIT NUMERAL STRING USING A MULT...
Segmentation and recognition of handwritten digit numeral string using a mult...
I017256165
Character Recognition (Devanagari Script)
Classifier fusion method to recognize
Faster Training Algorithms in Neural Network Based Approach For Handwritten T...
An Optical Character Recognition for Handwritten Devanagari Script
Devanagari Character Recognition using Image Processing & Machine Learning
20120140502008

More from IOSR Journals (20)

PDF
A011140104
PDF
M0111397100
PDF
L011138596
PDF
K011138084
PDF
J011137479
PDF
I011136673
PDF
G011134454
PDF
H011135565
PDF
F011134043
PDF
E011133639
PDF
D011132635
PDF
C011131925
PDF
B011130918
PDF
A011130108
PDF
I011125160
PDF
H011124050
PDF
G011123539
PDF
F011123134
PDF
E011122530
PDF
D011121524
A011140104
M0111397100
L011138596
K011138084
J011137479
I011136673
G011134454
H011135565
F011134043
E011133639
D011132635
C011131925
B011130918
A011130108
I011125160
H011124050
G011123539
F011123134
E011122530
D011121524

Recently uploaded (20)

PPTX
Welding lecture in detail for understanding
PPT
Mechanical Engineering MATERIALS Selection
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Geodesy 1.pptx...............................................
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
Construction Project Organization Group 2.pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
Well-logging-methods_new................
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Digital Logic Computer Design lecture notes
PPTX
OOP with Java - Java Introduction (Basics)
PPT
Project quality management in manufacturing
Welding lecture in detail for understanding
Mechanical Engineering MATERIALS Selection
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Embodied AI: Ushering in the Next Era of Intelligent Systems
Automation-in-Manufacturing-Chapter-Introduction.pdf
Foundation to blockchain - A guide to Blockchain Tech
Geodesy 1.pptx...............................................
CYBER-CRIMES AND SECURITY A guide to understanding
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Construction Project Organization Group 2.pptx
Operating System & Kernel Study Guide-1 - converted.pdf
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Well-logging-methods_new................
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
CH1 Production IntroductoryConcepts.pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Digital Logic Computer Design lecture notes
OOP with Java - Java Introduction (Basics)
Project quality management in manufacturing

Comparative study of two methods for Handwritten Devanagari Numeral Recognition

  • 1. IOSR Journal of Computer Engineering (IOSR-JCE) e-ISSN: 2278-0661, p- ISSN: 2278-8727Volume 15, Issue 6 (Nov. - Dec. 2013), PP 49-53 www.iosrjournals.org www.iosrjournals.org 49 | Page Comparative study of two methods for Handwritten Devanagari Numeral Recognition S.L.Mhetre1 , Prof.M.M.Patil2 1 (E&TC Dept,SAE/ Pune University,India) 2 (E&TC Dept,SAE/Pune University,India) Abstract : In this paper two different methods for Numeral Recognition are proposed and their results are compared. The objective of this paper is to provide an efficient and reliable method for recognition of handwritten numerals. First method employs Grid based feature extraction and recognition algorithm. In this method the features of the image are extracted by using grid technique and this feature set is then compared with the feature set of database image for classification. While second method contains Image Centroid Zone and Zone Centroid Zone algorithms for feature extraction and the features are applied to Artificial Neural Network for recognition of input image. Machine text recognition is important research area because of its applications in many areas like Bank, Post office, Hospitals etc. Keywords: Handwritten Numeral Recognition, Grid Technique, ANN, Feature Extraction, Classification. I. INTRODUCTION Lot of research has been done on printed and handwritten character/numeral recognition. Between these two the handwritten text recognition has low recognition rate as compared to printed text due to number of challenges arising while processing them. So we can conclude that the handwritten text recognition is still in development stage. Whereas printed text recognition has reached to exploitation level. Again Devanagari script is the script used by more than 300 million people for documentation. Many official languages in India like Hindi, Marathi, Sindhi, Sanskrit are the form of Devanagari script. Among which Hindi is the third most popular language in world. The Devanagari OCR thus will be helpful in digitizing the ancient literatures, books, newspapers etc. and can also be used for official purposes where computers (machines) are used wildly [1]. Thus here we have proposed algorithms for recognition of Handwritten Devanagari Numeral. The recognition can be either on-line or offline recognition. Various methods has been discussed for on-line and off-line character recognition by R. Plamondon and S.N. Srihari [2]. Off-line recognition is of two types : Printed text recognition and Handwritten text recognition. A good survey has been made by R. Jayadevan, Satish R. Kolhe, Pradeep M. Patil, and Umapada Pal on off-line Devanagari recognition which will be very useful for the researchers working in this field [3].Though large research papers have been published on Devanagari Numeral Recognition but the first paper was reported in 1977, which uses structural approach for recognition [4]. A wavelet filter-based multi resolution analysis is carried out on input images and MLP classifier is used for recognition of numerals by Chaudhuri and Bhattacharya [5]. Bajaj, Dey used median filter to remove noise in input image[6]. For recognition Bajaj, Dey used features like descriptive features, density features and moment features of right, left, upper and lower profile curves and finally combined the decisions of multiple classifiers [6]. While box approach is used by Hanmandlu for feature extraction [7]. Thinning based features are used by Elnagar and Harous [8]. From a thinned image they extracted three different types of feature types like branch, end and cross points by representing them syntactically. II. DATA COLLECTION Here database for Devanagari numerals is created having 1000 samples written from 10 different individuals of different age group. They were asked to write numerals in devanagari from 0-9 on a A4 size paper. Handwriting in general can be categorize as : Cursive or hand printed hand writing. The numerals in Devanagari are written in hand printed handwriting form i.e. the numerals are not connected to each other like in cursive. The sample for Devanagari Numerals is as shown in fig below: figure 1. Devanagari Numerals
  • 2. Comparative study of two methods for Handwritten Devanagari Numeral Recognition www.iosrjournals.org 50 | Page III. PRE-PROCESSING figure 2. Flow Chart for Pre-processing Numerical recognition is nothing but the conversion of handwritten or typed numerical document into machine understandable form. For this the document is first scanned using a regular scanner. Before performing the feature extraction directly, first the scanned data/image is passed through some pre-processing steps (shown in the flow chart below), these steps are as follows:  If the scanned document is a color image it is converted into a gray scale image. The conversion is carried out by removing the hue and saturation while retaining the luminance.  The gray scale image is still a raw image; it may carry some unwanted information. This information is termed as noise. The noise/distortion may introduce while scanning the image. The noise is of various types like salt and pepper noise, shot noise etc. Median filter is used to remove such noise.  After filtering the image it is converted into binary form. The process is also called as Image Segmentation. Image segmentation is performed by assigning a variable to a threshold value, if the value of pixel in gray scale image is equal or above the threshold value then the pixel is replaced by 1 else 0. At the end the image is inverted for easy processing.  The image obtained after binarization is sent for thinning / skeletonization process. Skeletonization reduces the width of numerals from many pixels to one.  Finally the image is restored to a standard dimension 128*96. (It is not necessary to use/take these dimensions only. Our aim is to create a database with images having fixed size. Any dimensions can be taken to achieve feasibility in operation.) IV. FEATURE EXTRACTION This is the most important step in character/numeral recognition, since classification is done on the basis of the set of features extracted during this step. Feature extraction simply means the acquisition or measurement of those parameters of input image that are most useful for classification purpose. Many of such features are invented and used by scientists for pattern classification. In this paper we are using two different feature extraction methods. Features can be mainly classified into two different types: Structural Features and Numerical Features. Among which structural features are related to the shape or structure of input image (easy for human being to understand), while numerical features are concerned with numeric values (distance, height, width etc) extracted from the input image. These numeric values can be real or binary. Humans cannot conclude anything from this information. In first method we are extracting the structural features of input image. For this Grid is formed on the input image and the image is resized to 8*6 block and 16*12 block size, while second method uses distance based features i.e. numerical features of input image. Both the methods are explained as below: Scan the document Color to gray scale conversion Gray-scale to binary conversion Noise Removal Skeletonization Size Normalization Templates for Database
  • 3. Comparative study of two methods for Handwritten Devanagari Numeral Recognition www.iosrjournals.org 51 | Page 4.1 Grid Based Method 1) Grid based feature extraction is a type of pixel oriented feature extraction. The steps for this method are as follows: 2) After pre-processing the sizes of all the images are normalized to x*y pixels. Size normalization is a must condition to obtain best results for character/ numeral recognition. A grid is formed on the image of size a*b such that a<<x and b<<y. In this way the input image segmented into number of rectangular cells. 3) Next step is to find out the rectangular cells (grid) that contains numeral contents. For such grid calculate the number of black pixels. 4) Now create a matrix of size a*b having same size of grid. Here our assumption is that each element (pixel) of newly created matrix a*b belongs to each grid of the image. 5) The value of pixel in the matrix will be 1 if the number of black pixels in the corresponding grid is more than 3 else 0. 6) The procedure is repeated for each pixel in the new matrix. figure 3. Input image for feature extraction figure 4. Grid features of Devanagari Numeral 4.2 ICZ & ZCZ 4.2.1 Image Centroid Zone (ICZ) Algorithm: 7) Calculate centroid of input image. 8) Divide the image into equal zones. 9) After zone formation, calculate the distance between centroid and each numeral pixel in the zone. 10) Now calculate the average distance corresponding to that zone. 11) Repeat procedure 3) and 4) for each zone. 12) In this way we obtain the number of features equal to the number of zones created in second step. 4.2.2 Zone Centroid Zone (ZCZ) Algorithm: 13) Divide the image into equal zones. 14) Calculate centroid for each zone. 15) After zone formation, calculate the distance between the zone centroid and each numeral pixel in the zone. 16) Now calculate the average distance corresponding to that zone. 17) Repeat procedure 3) and 4) for each zone. 18) In this way we obtain the number of features equal to the number of zones created in first step. V. CLASSIFICATION Classification stage requires the features of the template images extracted in the previous stage of feature extraction.
  • 4. Comparative study of two methods for Handwritten Devanagari Numeral Recognition www.iosrjournals.org 52 | Page 5.1 Matching Score The recognition by matching score is performed by comparing the grid feature of the input image with all the template images in the database. The template image for which we will get minimum matching score; that image will be the recognized numeral. For this first the input image (to be recognized) is scanned using an optical scanner and the scanned document is passed through various pre-processing steps shown in the fig.(2). figure 5. Input image matched with template image As shown in fig above, first image is the input image which is matched with the second template image in the database with minimum dist 39 shown in fig below. Figure 6. Minimum distance (or Matching Score) 5.2 Artificial Neural Network The success rate of Artificial Neural Network is highly dependent on their efficiency of accurate classification of the input (images) also called as recognition rate. Character/ Numeral recognition is the most important application of ANN(Artificial Neural Network). The model for Artificial Neural Network is shown in fig. below: Input Layer Hidden Layer Output layer figure 7.Model for ANN Scientists(specially brain modellers) were inspired by human nervous system and they develop a model of ANN. ANN uses numerical features for classification of the input image. figure 8.input image for ICZ,ZCZ feature extraction Numeral shown in fig. is first scanned and then passed through different pre processing steps. Then its features are extracted using ICZ & ZCZ feature extraction technique. The feature set for the input image is shown in fig. below: figure 9. ICZ,ZCZ Feature set
  • 5. Comparative study of two methods for Handwritten Devanagari Numeral Recognition www.iosrjournals.org 53 | Page VI. COMPARISON OF RESULT As explained in the paper, first method uses Grid based technique for feature extraction and then matching score is calculated from the extracted features for classification. In second method the feature set which is extracted using ICZ & ZCZ feature extraction technique is applied to Artificial Neural Network for classification. The database used for both the techniques is same. Also the images used for testing both the system are same, so that we can easily compare the result obtained from both the methods. Table 1. Comparison of Results Sr.No. Method Template image Test image Correct recognition Result (%) 1 Grid Technique 500 500 418 83.60 2 ANN 500 500 432 86.40 VII. CONCLUSION This paper aims at recognition of devanagari numerals using grid based and Artificial Neural Network Approach. The result of ANN is good as compared to Grid Technique. The result of Neural Network depends on how much it is trained. If the the number of samples provided for training is increased then definitely we can achieve results upto 96%. The methods used here for numeral recognition can also be used for printed or handwritten Devanagari character recognition. Also we can use the Grid technique for offline signature verification purpose. REFERENCES [1] U. Bhattacharya and B. B. Chaudhuri, “Handwritten numeral databases of Indian scripts and multistage recognition of mixed numerals,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 31, no. 3, pp. 444–457, Mar. 2009. [2] R. Plamondon and S.N. Srihari., 2000, “Online and off-line handwriting recognition: a comprehensive survey.”, Pattern Analysis and Machine Intelligence, IEEE Transac-tions on, vol.22(1), pp 63–84. [3] R. Jayadevan, Satish R. Kolhe, Pradeep M. Patil, and Umapada Pal, “Offline Recognition of Devanagari Script: A Survey,” IEEE Transactions on Systems, man, and Cybernetics—part c: Applications and Reviews, vol. 41, no. 6, November 2011. [4] I. K. Sethi and B. Chatterjee, “Machine recognition of hand printed Devanagari numerals,” J. Inst. Electron. Telecommun. Eng., vol. 22, pp. 532–535, 1977. [5] U. Bhattacharya and B. B. Chaudhuri, “Handwritten numeral databases of Indian scripts and multistage recognition of mixed numerals,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 31, no. 3, pp. 444–457,Mar. 2009. [6] R. Bajaj, L. Dey, and S. Chaudhuri, “Devanagari numeral recognition by combining decision of multiple connectionist classifiers,” Sadhana, vol. 27, no. 1, pp. 59–72, 2002. [7] M. Hanmandlu, J. Grover, V. K. Madasu, and S. Vasikarla, “Input fuzzy modeling for the recognition of handwritten Hindi numerals,” in Proc. Int. Conf. Inf. Technol., 2007, pp. 208–213. [8] A. Elnagar and S. Harous, “Recognition of handwritten Hindi numerals using structural descriptors,” J. Exp. Theor. Artif. Intell., vol. 15, no. 3,pp. 299–214, 2003.