SlideShare a Scribd company logo
Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018
DOI : 10.5121/avc.2018.5401 1
EDGE DETECTION ALGORITHM FOR YORUBA
CHARACTER RECOGNITION
Yekeen S.A and Ibiyemi T.S
Department of Electrical and Electronics Engineering,
University of Ilorin, Kwara State, Nigeria
ABSTRACT
Digital image processing for pattern recognition involves several processing and pre-processing steps.
Edge detection stands a great position for accurate pattern recognition most especially in character
recognition system. Many edge detection techniques were implemented with convolution mask and based
on approximations to differential operators. For efficient Yoruba character recognition, compass edge
detection algorithm was developed to enhance the recognition rate of Yoruba character. The algorithm
developed achieved 0.923 edge detection error rate. The level of accuracy will have been better if noise
removal or reduction steps were included in the algorithm.
KEYWORDS
Edge detection, compass edge detector, pattern recognition. Segmentation
1. INTRODUCTION
Pattern recognition is the process of making decision in order to automate functions using
computer system. Pattern recognition encompasses a wide range of information processing
problems which are of great practical significances. Practical application of pattern recognition
includes and not limited to biometric recognition, optical character recognition (typed and hand
written), medical imaging for diagnosis, fault detection in machineries etc.
Optical character recognition (OCR) is the processing of converting digital image of a scanned
character printed or hand written into readable character stream by computer based systems.
Optical character recognition has become one of the most successful application of technology in
the field of pattern recognition and artificial intelligence[1] The performance of OCR largely
depends on the quality of the input document, the pre-processing of the document image,
segmentation, edge detection algorithm, feature extraction technique used in the process of
character recognition.
An edge in a digital image is a point of sudden change in pixel intensity of the image, edge
therefore, differentiate between an object in an image from its background [2].Edge detection is
fundamental in low level image processing [3], good edge detection is necessary for high level of
performance in image and pattern recognition. Though there are several edge detection
algorithms, the quality of edge detection is highly dependent on lighting conditions of the of the
Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018
2
objects in the image, the presence of objects of similar intensities, density of edge in the scene
and noise.[4]
2. LITERATURE REVIEW
The naïve nature of computer system has made pattern recognition and classification highly
tasking in computer vision and artificial intelligence. The advancement in pattern recognition has
accelerated recently due to many emerging applications which are not challenging but also
computationally intensive. This is evident in optical character recognition[4]
Character recognition originated as early as 1870 when Carey invented retina scanner, which is
an image transmission system using photocell. It is used as aid to the visually impaired persons,
develop by the Russian scientist. Tyurin in 1900. Optical character recognition was realized as a
data processing application to the business world[5].
Yoruba language is a tonal language of which the meaning of a word depends on the tone with
which it is called. Words of the same spelling will have different meaning depending on the
tones.
Yoruba character Set
The Yoruba character set is made up of twentyfive characters or alphabets, some of which are
similar to Roman characters or letters. Out of these twenty five characters, seven are vowels and
the remaining eighteen are consonants. All the twenty five letters in Yoruba character set can
assume upper and lower case.
The twenty five Yoruba character set are as follows:
The upper case:
A B D E Ẹ F G GB I H J K L M N O Ọ P R S Ṣ T U W Y
The lower case:
a b d e ẹ f g gb і h j k l m n o ọ p r s ṣ t u w y
There are seven vowel letters in the Yoruba character set, these letters are as follows:
A E Ẹ I O Ọ U (Upper case)
a e ẹ i o ọ u (Lower case)
The letter ‘GB’ or ‘gb’ is a combination of two consonants, this is a special case and the only
situation when two consonants letters are allowed to follow each other in Yoruba orthography.
Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018
3
Yoruba Vowel Letters with Diacritical Mark
Á É Ẹ́ Í Ó Ọ
́ Ú Vowel letters (Upper case) with high tone (acute)
À È Ẹ̀ Ì Ò Ọ
̀ Ù Vowel letters (Upper case) with high tone (grave)
á é ẹ́ í ó ọ́ ú Vowel letters (Lower case) with high tone (acute)
à è ẹ̀ ì ò ò
̩ ù Vowel letters (Lower case) with high tone (grave)
3. EDGE DETECTION TECHNIQUES
Edge detection in digital image is a very important aspect in the field of pattern recognition and
classification. Edge defines the boundaries between an object in an image and its background.
Edge detection helps in object segmentation, classification and recognition [5]. There are
numbers of edge detection techniques in the field of pattern recognition, these includes
(1) Gradient or Classical base edge detection technique, examples of operators in this
technique includes Sobel, Kirsch, Prewitt, Roberts. The gradient edge detection methods
detect the edges of an image by looking for the maximum and minimum in the first
derivative of the image.
(2) Second Derivative or Zero Crossing techniques, examples of operators is Marr-Hildreth.
This is typically known as LoG (Laplacian of Gaussian) technique.
(3) Gaussian edge detection technique, examples of this detection technique includes Canny,
Shen, Castan etc. This technique generally uses probability distribution function (PDF).
Canny edge detector has best error rate so far. By variation method, Canny derives an
optimal edge detection operator which turns out to be well approximated by the first
derivatives of a Gaussian function [6].
(4) Colored edge detectors, are of three categories output Fusion methods, Multi-imensional
gradient methods and Vector methods [9].
Yoruba Character Edge Detection Algorithm
Since all edge detection results are usually affected by image noise, it is a good practice to filter
(enhance) out noise from the image to reduce false edge detection. Gaussian filter is applied to
convolve with the image. This step will slightly smooth the image to reduce the effect of the
obvious noise on the edge detection algorithm. Convolution of the image by 5X5 Gaussian filter,
which filters the image reduces the level of false edge detection as well as omission to the bearest
minimum.
Two-dimensional mask operators are commonly used for filtering and image edge detection.
Two-dimensional discrete differentiation can be performed by convolving the original image with
the compass gradient masks [10,2]
Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018
4
Compass edge detection is a form of differential gradient edge detection. As a result, the
operation generates two images: one estimating the local edge gradient magnitude and one
estimating the edge orientation [8,11]. In spatial domain gradient at a location (m,n) is defined as
, ≜ | , |
Where k = 0,1,2 ………..7
Each gradient is at 450
from the previous one, the first one is the direction of North, followed by
North-West, then West , South-West and so on back the North as shown in figure 3.1
Figure 3.1 Edge compass directions
The direction of edge gradient magnitude is given as
=
2
+
4
The operator takes a single kernel mask and rotates it through all 8 compass directions. The edge
magnitude is calculated as the maximum magnitude of all directions. The edge direction is
defined by the mask that produces the maximum edge magnitude. The compass edge detector is
one of the ways to estimate the magnitude and orientation of an edge. Although differential
gradient edge detection needs a time-consuming calculation to estimate the orientation from the
magnitudes in the x- and y-directions, the compass edge detection obtains the orientation directly
from the kernel with the maximum value [10,5].
The 8 possible kernel in the eight directions are as show below
1 0 −1
2 0 −2
1 0 −1
1 2 1
0 0 0
−1 −2 −1
2 1 0
1 0 −1
0 −1 −2
−2 −1 0
−1 0 1
0 1 2
WEST NORTH NORTHWEST SOUTHEAST
0 −1 −2
1 0 −1
2 1 0
0 1 2
−1 0 1
−2 −1 0
−1 0 1
−2 0 2
−1 0 1
−1 −2 −1
0 0 0
1 2 1
SOUTHWEST NORTHEAST EAST SOUTH
Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018
5
The edge map is plotted by calculating the gradient of two orthogonal directions, for example Gx
and Gy, which measure the gradients in the North and West directions; approximate the partial
derivatives in order to detect edges in the x-direction and y-direction, respectively. Application of
Gx and Gy to an image results in spatial differentiation in the two orthogonal directions and the
edge map is plotted accordingly.
The magnitude of the edge map is given as
| | = | | +
= +
The direction of edge map is given as
= !"
Implementation Steps (algorithm)
1. smooth the character image with 5X5 Gaussian filter
2. Convolve the character image with each of the kernel (mask) to find gradient of each point
(m,n) in all possible 8 directions.
3. Determine gradient magnitude of edges in any two orthogonal directions.
4. Determine the direction of the gradient magnitude of edge maps
5. Set threshold edge gradient magnitude
6. Apply non-maximal suppression of edge maps; suppress gradient magnitude that is less than
threshold.
7. Track edges by hysteresis i.e. suppress all edges that are weak and not connected to strong
edge.
Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018
6
4. EXPERIMENTAL RESULT AND ANALYSIS
The implementation of the developed algorithm was carried out on Matlab environment, several
test document images were used along with graphically generated lower case Yoruba vowel
letters with diacritical marks. The document images and generated character images were first
converted to greyscale image using Luma correction algorithm ITU-RBT 601 version (b).
The algorithm is given as
Greyscale = 0.289Red(i,j) + 0.589Green(i,j) + 0.114Blue(i,j)
The greyscale image was then smoothen with 5X5 Gaussian filter to reduce the effect of noise.
Finally, convolution with 8 possible directional compass kernel (mask) was carried out on the
document images and graphically generated Yoruba character image.
The performance of the edge detection algorithm was measured using the edge detection error
rate metric.
#$ =
"
%
&ℎ()( #$ − *+ ( +( (, -. ()).) ) (
" − /. .0 (+ ( 1- (23 +(,2 )(+
% − /. .0 -33(+ (+ ( 1- (23 .)
(& (+ ( +(,2( )(+ 0 () ++- -. .0 .-3(
The experimental results are as shown in the figures below
Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018
7
Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018
8
5. CONCLUSION
The edge detection is very important in the process of Yoruba character recognition, the
developed algorithm will enhance accurate Yoruba character recognition most especially the
offline printed Yoruba characters.
The compass edge detector presents a suitable method for effective edge detection in character
recognition. This was shown in the edge detection error rate achieved in this work.
The achieved result can be improved upon by including noise reduction step in the edge
detection, segmentation and recognition algorithm.
Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018
9
REFERENCES
[1] Ehsan Nadenejad, “Edge detection techniques evaluation and comparison”, Applied mathematics
science, Vol 2 2008, No 31, page 1507 – 1520.
[2] V.B Maduria, S. Vydehi, “Edge detection techniques using character segmentation and object
recognition”, International journal of science and research (IJSR) India online ISSN 2319-7064.
[3] Moo-Soo Chang, Sun-Mee Kang, Woo-Sik Rho, Heok-Gu Kim, Duck-Jin Kim, “Improved
binarization algorithm for document image histogram and edge detection”, 0-8186-7128-9/95 $4.00 0
1995 IEEE.
[4] S.K.Thilagavathy and Dr.R.Indra Gandhi, “Recognition of Distorted Character Using Edge Detection
Algorithm”, International Journal of Innovative Research in Computer and Communication
Engineering Vol. 1, Issue 4, June 2013
[5] Mansi Shah And Gordhan B Jethava, “A Literature Review On Hand Written Character
Recognition”, Indian Streams Research Journal Vol -3 , ISSUE –2, March.2013 ISSN:-2230-7850 .
[6] YaseerAlginah, “Pre-Processing Techniques in Character Recognition”, www.intech.open, pp1-20
Aug 2010.
[7] J. Mantas, “An overview of character recognition methodologies, pattern recognition”, Vol 19 Issue
6 Page 425 - 430
[8] MitraBasu, Senior Member, IEEE, “Gaussian-Based Edge-Detection Methods—A Survey”, IEEE
Transactions on systems, man, and cybernetics—part c: applications and reviews, vol. 32, no. 3,
august 2002.
[9] Mohsen Sharifi, Mahmoud Fathy, Maryam TayefehMahmoudi, “A Classified and Comparative Study
of Edge Detection Algorithms”, Proceedings of the International Conference on Information
Technology: Coding and Computing (ITCC 02) 0-7695-1506-1/02 $17.00 ' 2002 IEEE
[10] PetarČisar, SanjaMaravićČisar, and BrankoMarkoski “Kernel Sets in Compass Edge Detection”,
CINTI 2013 • 14th IEEE International Symposium on Computational Intelligence and Informatics •
19–21 November, 2013 • Budapest, Hungary.
[11] Guner S. Robinson, “Edge Detection by Compass Gradient Masks”, Computer Graphics and image
processing 6, 492--501 (1977)

More Related Content

PDF
Enhanced Optimization of Edge Detection for High Resolution Images Using Veri...
PDF
Ed34785790
PDF
Comparative Analysis of Common Edge Detection Algorithms using Pre-processing...
PDF
Study and Comparison of Various Image Edge Detection Techniques
PDF
Denoising and Edge Detection Using Sobelmethod
PDF
ALGORITHM AND TECHNIQUE ON VARIOUS EDGE DETECTION: A SURVEY
PDF
Conceptual and Practical Examination of Several Edge Detection Strategies
Enhanced Optimization of Edge Detection for High Resolution Images Using Veri...
Ed34785790
Comparative Analysis of Common Edge Detection Algorithms using Pre-processing...
Study and Comparison of Various Image Edge Detection Techniques
Denoising and Edge Detection Using Sobelmethod
ALGORITHM AND TECHNIQUE ON VARIOUS EDGE DETECTION: A SURVEY
Conceptual and Practical Examination of Several Edge Detection Strategies

Similar to EDGE DETECTION ALGORITHM FOR YORUBA CHARACTER RECOGNITION (20)

PDF
AN OPTIMAL SOLUTION FOR IMAGE EDGE DETECTION PROBLEM USING SIMPLIFIED GABOR W...
PDF
Iw3515281533
PDF
Mislaid character analysis using 2-dimensional discrete wavelet transform for...
PDF
Ijarcet vol-2-issue-7-2246-2251
PDF
Ijarcet vol-2-issue-7-2246-2251
PDF
Edge detection by using lookup table
PDF
An efficient method for recognizing the low quality fingerprint verification ...
PDF
V.KARTHIKEYAN PUBLISHED ARTICLE A.A
PDF
EDGE Detection Filter for Gray Image and Observing Performances
PDF
EDGE Detection Filter for Gray Image and Observing Performances
PDF
G010124245
PDF
Edge detection by modified otsu method
PDF
EDGE DETECTION BY MODIFIED OTSU METHOD
PDF
AN ENHANCED BLOCK BASED EDGE DETECTION TECHNIQUE USING HYSTERESIS THRESHOLDING
PDF
Performance of Efficient Closed-Form Solution to Comprehensive Frontier Exposure
PDF
I010634450
PDF
Algorithm for the Comparison of Different Types of First Order Edge Detection...
PDF
A010110104
PDF
F045033337
PDF
Real time Canny edge detection
AN OPTIMAL SOLUTION FOR IMAGE EDGE DETECTION PROBLEM USING SIMPLIFIED GABOR W...
Iw3515281533
Mislaid character analysis using 2-dimensional discrete wavelet transform for...
Ijarcet vol-2-issue-7-2246-2251
Ijarcet vol-2-issue-7-2246-2251
Edge detection by using lookup table
An efficient method for recognizing the low quality fingerprint verification ...
V.KARTHIKEYAN PUBLISHED ARTICLE A.A
EDGE Detection Filter for Gray Image and Observing Performances
EDGE Detection Filter for Gray Image and Observing Performances
G010124245
Edge detection by modified otsu method
EDGE DETECTION BY MODIFIED OTSU METHOD
AN ENHANCED BLOCK BASED EDGE DETECTION TECHNIQUE USING HYSTERESIS THRESHOLDING
Performance of Efficient Closed-Form Solution to Comprehensive Frontier Exposure
I010634450
Algorithm for the Comparison of Different Types of First Order Edge Detection...
A010110104
F045033337
Real time Canny edge detection
Ad

More from avcjournal8 (20)

PDF
3rd International Conference on Embedded Systems and VLSI (EMVL 2025)
PDF
6th International Conference on Natural Language Computing Advances (NLCA 2025)
PDF
Published paper of Advances in Vision Computing: An International Journal (AVC)
PDF
A Survey on Machine Learning Applications in VLSI CAD
PDF
17th International Conference on Network and Communications Security (NeTCoM ...
PDF
6th International Conference on Big Data, Machine Learning and IoT (BMLI 2025)
PDF
10th International Conference on Education (EDU 2025)
DOCX
5th International Conference on Cryptography and Blockchain (CRBL 2025)
PDF
12th International Conference on Signal and Image Processing (Signal 2025)
PDF
5th International Conference on Cryptography and Blockchain (CRBL 2025)
PDF
11th International Conference on Networks and Communications (NCO 2025)
PDF
5th International Conference on Cryptography and Blockchain (CRBL 2025)
PDF
Edge Detection Algorithm for Yoruba Character Recognition
PDF
CFP - 6th International Conference on NLP & Information Retrieval (NLPI 2025)
PDF
2nd International Conference on Information Science and Techniques (ISTECH 2024)
PDF
14th International Conference on Information Theory (IT 2025)
PDF
11th International Conference on Artificial Intelligence & Applications (ARIA...
PDF
Published Paper of Advances in Vision Computing: An International Journal (AVC)
PDF
EDGE DETECTION ALGORITHM FOR YORUBA CHARACTER RECOGNITION
PDF
EDGE DETECTION ALGORITHM FOR YORUBA CHARACTER RECOGNITION
3rd International Conference on Embedded Systems and VLSI (EMVL 2025)
6th International Conference on Natural Language Computing Advances (NLCA 2025)
Published paper of Advances in Vision Computing: An International Journal (AVC)
A Survey on Machine Learning Applications in VLSI CAD
17th International Conference on Network and Communications Security (NeTCoM ...
6th International Conference on Big Data, Machine Learning and IoT (BMLI 2025)
10th International Conference on Education (EDU 2025)
5th International Conference on Cryptography and Blockchain (CRBL 2025)
12th International Conference on Signal and Image Processing (Signal 2025)
5th International Conference on Cryptography and Blockchain (CRBL 2025)
11th International Conference on Networks and Communications (NCO 2025)
5th International Conference on Cryptography and Blockchain (CRBL 2025)
Edge Detection Algorithm for Yoruba Character Recognition
CFP - 6th International Conference on NLP & Information Retrieval (NLPI 2025)
2nd International Conference on Information Science and Techniques (ISTECH 2024)
14th International Conference on Information Theory (IT 2025)
11th International Conference on Artificial Intelligence & Applications (ARIA...
Published Paper of Advances in Vision Computing: An International Journal (AVC)
EDGE DETECTION ALGORITHM FOR YORUBA CHARACTER RECOGNITION
EDGE DETECTION ALGORITHM FOR YORUBA CHARACTER RECOGNITION
Ad

Recently uploaded (20)

PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Cell Structure & Organelles in detailed.
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
master seminar digital applications in india
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
VCE English Exam - Section C Student Revision Booklet
human mycosis Human fungal infections are called human mycosis..pptx
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Cell Structure & Organelles in detailed.
FourierSeries-QuestionsWithAnswers(Part-A).pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Final Presentation General Medicine 03-08-2024.pptx
GDM (1) (1).pptx small presentation for students
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
A systematic review of self-coping strategies used by university students to ...
Module 4: Burden of Disease Tutorial Slides S2 2025
Microbial disease of the cardiovascular and lymphatic systems
master seminar digital applications in india
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Microbial diseases, their pathogenesis and prophylaxis
O7-L3 Supply Chain Operations - ICLT Program

EDGE DETECTION ALGORITHM FOR YORUBA CHARACTER RECOGNITION

  • 1. Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018 DOI : 10.5121/avc.2018.5401 1 EDGE DETECTION ALGORITHM FOR YORUBA CHARACTER RECOGNITION Yekeen S.A and Ibiyemi T.S Department of Electrical and Electronics Engineering, University of Ilorin, Kwara State, Nigeria ABSTRACT Digital image processing for pattern recognition involves several processing and pre-processing steps. Edge detection stands a great position for accurate pattern recognition most especially in character recognition system. Many edge detection techniques were implemented with convolution mask and based on approximations to differential operators. For efficient Yoruba character recognition, compass edge detection algorithm was developed to enhance the recognition rate of Yoruba character. The algorithm developed achieved 0.923 edge detection error rate. The level of accuracy will have been better if noise removal or reduction steps were included in the algorithm. KEYWORDS Edge detection, compass edge detector, pattern recognition. Segmentation 1. INTRODUCTION Pattern recognition is the process of making decision in order to automate functions using computer system. Pattern recognition encompasses a wide range of information processing problems which are of great practical significances. Practical application of pattern recognition includes and not limited to biometric recognition, optical character recognition (typed and hand written), medical imaging for diagnosis, fault detection in machineries etc. Optical character recognition (OCR) is the processing of converting digital image of a scanned character printed or hand written into readable character stream by computer based systems. Optical character recognition has become one of the most successful application of technology in the field of pattern recognition and artificial intelligence[1] The performance of OCR largely depends on the quality of the input document, the pre-processing of the document image, segmentation, edge detection algorithm, feature extraction technique used in the process of character recognition. An edge in a digital image is a point of sudden change in pixel intensity of the image, edge therefore, differentiate between an object in an image from its background [2].Edge detection is fundamental in low level image processing [3], good edge detection is necessary for high level of performance in image and pattern recognition. Though there are several edge detection algorithms, the quality of edge detection is highly dependent on lighting conditions of the of the
  • 2. Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018 2 objects in the image, the presence of objects of similar intensities, density of edge in the scene and noise.[4] 2. LITERATURE REVIEW The naïve nature of computer system has made pattern recognition and classification highly tasking in computer vision and artificial intelligence. The advancement in pattern recognition has accelerated recently due to many emerging applications which are not challenging but also computationally intensive. This is evident in optical character recognition[4] Character recognition originated as early as 1870 when Carey invented retina scanner, which is an image transmission system using photocell. It is used as aid to the visually impaired persons, develop by the Russian scientist. Tyurin in 1900. Optical character recognition was realized as a data processing application to the business world[5]. Yoruba language is a tonal language of which the meaning of a word depends on the tone with which it is called. Words of the same spelling will have different meaning depending on the tones. Yoruba character Set The Yoruba character set is made up of twentyfive characters or alphabets, some of which are similar to Roman characters or letters. Out of these twenty five characters, seven are vowels and the remaining eighteen are consonants. All the twenty five letters in Yoruba character set can assume upper and lower case. The twenty five Yoruba character set are as follows: The upper case: A B D E Ẹ F G GB I H J K L M N O Ọ P R S Ṣ T U W Y The lower case: a b d e ẹ f g gb і h j k l m n o ọ p r s ṣ t u w y There are seven vowel letters in the Yoruba character set, these letters are as follows: A E Ẹ I O Ọ U (Upper case) a e ẹ i o ọ u (Lower case) The letter ‘GB’ or ‘gb’ is a combination of two consonants, this is a special case and the only situation when two consonants letters are allowed to follow each other in Yoruba orthography.
  • 3. Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018 3 Yoruba Vowel Letters with Diacritical Mark Á É Ẹ́ Í Ó Ọ ́ Ú Vowel letters (Upper case) with high tone (acute) À È Ẹ̀ Ì Ò Ọ ̀ Ù Vowel letters (Upper case) with high tone (grave) á é ẹ́ í ó ọ́ ú Vowel letters (Lower case) with high tone (acute) à è ẹ̀ ì ò ò ̩ ù Vowel letters (Lower case) with high tone (grave) 3. EDGE DETECTION TECHNIQUES Edge detection in digital image is a very important aspect in the field of pattern recognition and classification. Edge defines the boundaries between an object in an image and its background. Edge detection helps in object segmentation, classification and recognition [5]. There are numbers of edge detection techniques in the field of pattern recognition, these includes (1) Gradient or Classical base edge detection technique, examples of operators in this technique includes Sobel, Kirsch, Prewitt, Roberts. The gradient edge detection methods detect the edges of an image by looking for the maximum and minimum in the first derivative of the image. (2) Second Derivative or Zero Crossing techniques, examples of operators is Marr-Hildreth. This is typically known as LoG (Laplacian of Gaussian) technique. (3) Gaussian edge detection technique, examples of this detection technique includes Canny, Shen, Castan etc. This technique generally uses probability distribution function (PDF). Canny edge detector has best error rate so far. By variation method, Canny derives an optimal edge detection operator which turns out to be well approximated by the first derivatives of a Gaussian function [6]. (4) Colored edge detectors, are of three categories output Fusion methods, Multi-imensional gradient methods and Vector methods [9]. Yoruba Character Edge Detection Algorithm Since all edge detection results are usually affected by image noise, it is a good practice to filter (enhance) out noise from the image to reduce false edge detection. Gaussian filter is applied to convolve with the image. This step will slightly smooth the image to reduce the effect of the obvious noise on the edge detection algorithm. Convolution of the image by 5X5 Gaussian filter, which filters the image reduces the level of false edge detection as well as omission to the bearest minimum. Two-dimensional mask operators are commonly used for filtering and image edge detection. Two-dimensional discrete differentiation can be performed by convolving the original image with the compass gradient masks [10,2]
  • 4. Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018 4 Compass edge detection is a form of differential gradient edge detection. As a result, the operation generates two images: one estimating the local edge gradient magnitude and one estimating the edge orientation [8,11]. In spatial domain gradient at a location (m,n) is defined as , ≜ | , | Where k = 0,1,2 ………..7 Each gradient is at 450 from the previous one, the first one is the direction of North, followed by North-West, then West , South-West and so on back the North as shown in figure 3.1 Figure 3.1 Edge compass directions The direction of edge gradient magnitude is given as = 2 + 4 The operator takes a single kernel mask and rotates it through all 8 compass directions. The edge magnitude is calculated as the maximum magnitude of all directions. The edge direction is defined by the mask that produces the maximum edge magnitude. The compass edge detector is one of the ways to estimate the magnitude and orientation of an edge. Although differential gradient edge detection needs a time-consuming calculation to estimate the orientation from the magnitudes in the x- and y-directions, the compass edge detection obtains the orientation directly from the kernel with the maximum value [10,5]. The 8 possible kernel in the eight directions are as show below 1 0 −1 2 0 −2 1 0 −1 1 2 1 0 0 0 −1 −2 −1 2 1 0 1 0 −1 0 −1 −2 −2 −1 0 −1 0 1 0 1 2 WEST NORTH NORTHWEST SOUTHEAST 0 −1 −2 1 0 −1 2 1 0 0 1 2 −1 0 1 −2 −1 0 −1 0 1 −2 0 2 −1 0 1 −1 −2 −1 0 0 0 1 2 1 SOUTHWEST NORTHEAST EAST SOUTH
  • 5. Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018 5 The edge map is plotted by calculating the gradient of two orthogonal directions, for example Gx and Gy, which measure the gradients in the North and West directions; approximate the partial derivatives in order to detect edges in the x-direction and y-direction, respectively. Application of Gx and Gy to an image results in spatial differentiation in the two orthogonal directions and the edge map is plotted accordingly. The magnitude of the edge map is given as | | = | | + = + The direction of edge map is given as = !" Implementation Steps (algorithm) 1. smooth the character image with 5X5 Gaussian filter 2. Convolve the character image with each of the kernel (mask) to find gradient of each point (m,n) in all possible 8 directions. 3. Determine gradient magnitude of edges in any two orthogonal directions. 4. Determine the direction of the gradient magnitude of edge maps 5. Set threshold edge gradient magnitude 6. Apply non-maximal suppression of edge maps; suppress gradient magnitude that is less than threshold. 7. Track edges by hysteresis i.e. suppress all edges that are weak and not connected to strong edge.
  • 6. Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018 6 4. EXPERIMENTAL RESULT AND ANALYSIS The implementation of the developed algorithm was carried out on Matlab environment, several test document images were used along with graphically generated lower case Yoruba vowel letters with diacritical marks. The document images and generated character images were first converted to greyscale image using Luma correction algorithm ITU-RBT 601 version (b). The algorithm is given as Greyscale = 0.289Red(i,j) + 0.589Green(i,j) + 0.114Blue(i,j) The greyscale image was then smoothen with 5X5 Gaussian filter to reduce the effect of noise. Finally, convolution with 8 possible directional compass kernel (mask) was carried out on the document images and graphically generated Yoruba character image. The performance of the edge detection algorithm was measured using the edge detection error rate metric. #$ = " % &ℎ()( #$ − *+ ( +( (, -. ()).) ) ( " − /. .0 (+ ( 1- (23 +(,2 )(+ % − /. .0 -33(+ (+ ( 1- (23 .) (& (+ ( +(,2( )(+ 0 () ++- -. .0 .-3( The experimental results are as shown in the figures below
  • 7. Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018 7
  • 8. Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018 8 5. CONCLUSION The edge detection is very important in the process of Yoruba character recognition, the developed algorithm will enhance accurate Yoruba character recognition most especially the offline printed Yoruba characters. The compass edge detector presents a suitable method for effective edge detection in character recognition. This was shown in the edge detection error rate achieved in this work. The achieved result can be improved upon by including noise reduction step in the edge detection, segmentation and recognition algorithm.
  • 9. Advances in Vision Computing: An International Journal (AVC) Vol.5, No.1/2/3/4, December 2018 9 REFERENCES [1] Ehsan Nadenejad, “Edge detection techniques evaluation and comparison”, Applied mathematics science, Vol 2 2008, No 31, page 1507 – 1520. [2] V.B Maduria, S. Vydehi, “Edge detection techniques using character segmentation and object recognition”, International journal of science and research (IJSR) India online ISSN 2319-7064. [3] Moo-Soo Chang, Sun-Mee Kang, Woo-Sik Rho, Heok-Gu Kim, Duck-Jin Kim, “Improved binarization algorithm for document image histogram and edge detection”, 0-8186-7128-9/95 $4.00 0 1995 IEEE. [4] S.K.Thilagavathy and Dr.R.Indra Gandhi, “Recognition of Distorted Character Using Edge Detection Algorithm”, International Journal of Innovative Research in Computer and Communication Engineering Vol. 1, Issue 4, June 2013 [5] Mansi Shah And Gordhan B Jethava, “A Literature Review On Hand Written Character Recognition”, Indian Streams Research Journal Vol -3 , ISSUE –2, March.2013 ISSN:-2230-7850 . [6] YaseerAlginah, “Pre-Processing Techniques in Character Recognition”, www.intech.open, pp1-20 Aug 2010. [7] J. Mantas, “An overview of character recognition methodologies, pattern recognition”, Vol 19 Issue 6 Page 425 - 430 [8] MitraBasu, Senior Member, IEEE, “Gaussian-Based Edge-Detection Methods—A Survey”, IEEE Transactions on systems, man, and cybernetics—part c: applications and reviews, vol. 32, no. 3, august 2002. [9] Mohsen Sharifi, Mahmoud Fathy, Maryam TayefehMahmoudi, “A Classified and Comparative Study of Edge Detection Algorithms”, Proceedings of the International Conference on Information Technology: Coding and Computing (ITCC 02) 0-7695-1506-1/02 $17.00 ' 2002 IEEE [10] PetarČisar, SanjaMaravićČisar, and BrankoMarkoski “Kernel Sets in Compass Edge Detection”, CINTI 2013 • 14th IEEE International Symposium on Computational Intelligence and Informatics • 19–21 November, 2013 • Budapest, Hungary. [11] Guner S. Robinson, “Edge Detection by Compass Gradient Masks”, Computer Graphics and image processing 6, 492--501 (1977)