SlideShare a Scribd company logo
Text Detection and Character Recognition from ImagesBadruzNasrin Bin Basri1051101534 Supervisor : MohdHaris Lye Abdullah1
ContentsIntroduction1Literature review  2Method Used 3Experiment and Result4Future works   52
Aims and objectivesStudent 2Recognition -Recognize each of the character in the detected text region using a suitable algorithmSegmentation -Separate the text region into its individual characters. 3The aim of this project is to detect, extract and recognize text from images, particularly license car plate.
Motivation 4Text detection and recognition in general have quite a lot of relevant application for automatic indexing or information retrieval such document indexing, content-based image retrieval, and license car plate recognition which further opens up the possibility for more improved and advanced systems.
Problem statement5To segment the image to individual characters, we need to find the characteristic to be used as boundary to segment the image. To classify, we need to use the best template to compare with the segmented image and to determine how the template will be used to compare with the image.
Literature review6SegmentationKlouverin research on recognition text in PayPal HIP [1] proposed the use of vertical projection to segment the characters in images. There are several reasons vertical segmentation been proposed by Klouver:PayPal HIP image is computer generated only minor preprocessing needed.
There are obvious separation between each character
Character size in PayPal HIP is fixedStudy on Malaysian License Plate Recognition by Othman [3] proposed a model specifically to detect and recognize the text in Malaysian license plate. For segmentation, connected components method has been proposed however this method only can use if the license plates are single row license plate and the study only been made on single row license plate. Same method also been use by Ganapathy and Lui in [4]
7Literature reviewRecognitionKlouverin research on recognition text in PayPal HIP [1] and Ho C. H. et. al in research on License Plate Recognition(LPR) [2] used Templates Matching to recognize  the characters in image. Klouver detailed the matching classifier into four types of classifier that are Pixel Counting, Horizontal Projection, Vertical Projection and Template Correlations. Klouver’s experiment proved that the best classifier is Vertical projection and Template Correlation where both of this classifier yield 100% accuracy.Fixed type of font in image(PayPal HIP) makes it very easy to distinguish between different characters using templates matching. There are no other research that yield 100% accuracy.
8Literature reviewRecognitionStudy on Malaysian License Plate Recognition by Othman [3],Ganapathy and Lui in [4], M.Fukumi et. Al  [6] , AnasJ.A. Husain et. Al [7] used Neural Network to recognized the text. Compared to templates matching, neural network consume more time. Neural network also need training before it can be used and it only can achieve high accuracy if the sampled image is almost same with the training images. Andrew Vogt and Joe G. Bared [5] concluded the disadvantages of  neural network are :Minimizing overfitting in neural networks requires a great deal of computational effort The individual relations between the input variables and the output variables are not developed by engineering judgment so the model tends to be a black box or input/output table without analytical basis and to make the accuracy level high the sample size has to be large.
9Literature reviewRecognitionJared Hopkins and Tim Anderson  in [9], used Fourier Descriptor to recognize text in image. In most of the researches, Fourier descriptor been used to recognize more complex shape such as for logo classification by Folkers and Samet [10] and for Sinhala Script by Rohana, Ruvan and Kevin [11].Basically there are no research on LPR using Fourier descriptor(FD), hence, this research will also test the usage of FD to recognize text in Malaysian License Plate.WisamAl Faqheri and SyamsiahMashohor in A Real-Time Malaysian Automatic License Plate Recognition (M-ALPR) using Hybrid Fuzzy [12] used the hybrid Fuzzy method to recognize the license number. Compared to other study previously done on license plate detection where almost all of the previous work relied on a single method like template matching or neural network Wisamand Syamsiah proposed combination of more than one method based on the type of license plate.
Approach - Flowchart to recognize the characters in image10
Make templateTo create templete.mat to be use for classification:11……Matrix size 24 X 42 X 36 Saved as template.mat36 images of charactersSize = 42 X 24
Preprocess12
Segmentation – Vertical Projections Preprocessed ImageVertical projection analysisSegmented ImageVertical Projection13
Segmentation – Vertical Projections Weaknesses14Image that failed to be segmented by vertical projection
The segmentation character involves the following steps:Scan the image from left to right to find ‘on’ pixel.If on pixel been found, all ‘on’ pixel connected to the detected on pixel will be extracted segmented as a pixel.The process will be repeated until it reach end right of the image.15Segmentation – Connected Components 
Recognition - Pixel Counting16tempSum = sum(sum(templates(:,:,j)));                inSum = sum(sum(chars(:,:,i)));                allCorrs(j) = abs(tempSum - inSum);allCorrs(j) = 1 - (allCorrs(j)/1008);
Corr2𝑟=mn𝑖𝑚𝑛−𝑖(𝑗𝑚𝑛−𝑗)(mn(𝑖mn− 𝑖)2)(mn(𝑗mn− 𝑗)2)Where 𝑖 is the mean of the input matrix i and 𝑗 is the mean of the input matrix j.0 < r < 11 mean i and j is exactly same while 0 mean the i and j not same at all. 17
Recognition - Vertical projections18tempVP = sum(templates(:,:,j));                inVP = sum(chars(:,:,i));                allCorrs(j) = corr2(tempVP, inVP);
Recognition - Horizontal projections 19tempHP = sum(templates(:,:,j)');                inHP = sum(chars(:,:,i)');                allCorrs(j) = corr2(tempHP, inHP);
20Recognition - Template Correlationstemp = templates(:,:,j);                in = chars(:,:,i);                allCorrs(j) = corr2(temp, in);
Recognition – Fourier DescriptorFollowing is the detailed steps on extracting and comparing the Fourier Descriptor (FD)Edging21U= 𝑥0𝑦0𝑥1𝑦1...𝑥𝑛𝑦𝑛 
Recognition – Fourier DescriptorExtracting FD – 1 D Discrete Fourier Transform (DFT) been done to the complex vector U to get the frequency domain of the boundaries using the following equation: 22F=𝐹𝐹𝑇𝑈=𝑘=0𝑁−1Uk− 2πN𝑘𝜇 
Recognition – Fourier DescriptorNormalize FD: Translation invariantScale invariantRotation invariant23
Recognition – Fourier DescriptorImages of ‘E’ reconstructed from (a) n = 4 (b) n = 8 (c) n = 10 (d) n = 15 (e) n = 25 (f) n = 30 (g) n = 278Resize FD – As FD contains information of all information of the ‘on’ pixel, the size of FD is number of on pixel. To make it comparable with other FD it need to be resized to predefined number of descriptor, Figure 3.9 show different shape reconstructed using different number of descriptor. As to resize the FD to n descriptor, function shiftfft in Matlab will remove low frequency descriptor leaving only n-th highest descriptor. 24
Recognition – Fourier DescriptorCompare FD – CompareFD a measure of the difference between two inputs FD. It will quantify the difference between FDs. Higher values of different mean the two FDs are far apart in shape. The extracted FD, I can be compared with using the following algorithm:CompareFD(I,T)D  ← øfor  each Templates 𝑡𝑖∈T         do diff = -1                    if length(𝑡𝑖) = length (I)                              do diff ← sum(𝑎𝑏𝑠(𝑡𝑖−𝐼)2)return k  such that 𝑟𝑘=min(𝑅) 25
Recognition – Heuristic FilterContext ApproachAfter considering all data in database, it was concluded that:First two characters are always text.Third character can be text or number.All following characters are always numbers. 26
Recognition – Heuristic FilterEuler number  - Euler number is equal to the number of connected elements (always equal to one) minus the number of holes.27
Recognition – Heuristic Filter28Notice that for ‘H’, x line passed through 2 white line and y passed through 2 white line, for’ W’, x passed 3 white line and y passed 2 white line while ‘M’ is opposite.
Experiment 1: Comparison between Different Segmentation Method and Different Templates Matching Classifier29Template with size 42 X 24 was created using images of 36 characters.To conduct the experiment, all 125 images have been renamed as their ground truth and saved in a folder. A Matlab script as included in appendices was created to load all the images in the folder as well as their name and then perform preprocess segmentation and recognition to all of the images. Then the result of the segmentation and recognition as well as time needed to recognize a number plate were recorded and calculated using following equation. The result will also be analyzed automatically by the Matlab script.Some of images that been used in the experiment
Segmentation Accuracy was calculated using formula :𝐴𝑆𝑒𝑔𝑚𝑒𝑛𝑡=𝑁𝑆𝑒𝑔𝑚𝑒𝑛𝑡𝑒𝑑𝑁𝑆𝑎𝑚𝑝𝑙𝑒𝐶h𝑎𝑟 x 100%Where  𝐴𝑆𝑒𝑔𝑚𝑒𝑛𝑡  is segmentation accuracy,  𝑁𝑆𝑒𝑔𝑚𝑒𝑛𝑡𝑒𝑑  is number of correctly segmented character and 𝑁𝑆𝑎𝑚𝑝𝑙𝑒𝐶h𝑎𝑟  is number of characters in sample.Classification Accuracy was calculated using formula :𝐴𝐶h𝑎𝑟=𝑁𝑅𝑒𝑐𝑜𝑔𝑛𝑖𝑧𝑒𝑁𝑆𝑒𝑔𝑚𝑒𝑛𝑡𝑒𝑑x 100%Where  𝐴𝐶h𝑎𝑟  is recognition accuracy,  𝑁𝑅𝑒𝑐𝑜𝑔𝑛𝑖𝑧𝑒  is number of correctly recognized character and 𝑁𝑆𝑒𝑔𝑚𝑒𝑛𝑡𝑒𝑑  is number of characters that had been correctly segmented.Classification Accuracy was calculated using formula :𝑡𝐶h𝑎𝑟=𝑇𝑁𝑆𝑎𝑚𝑝𝑙𝑒Where  𝑡𝐶h𝑎𝑟  is average recognition time,  𝑇  total running time to recognize all sample images and 𝑁𝑆𝑎𝑚𝑝𝑙𝑒  is number of sample images. 30Experiment 1: Comparison between Different Segmentation Method and Different Templates Matching Classifier
Then the experiment repeated four times using connected components as segmentation method and the following as recognition classifier:Pixel CountVertical ProjectionHorizontal ProjectionTemplates Correlation31Experiment 1: Comparison between Different Segmentation Method and Different Templates Matching Classifier
Result32Comparison on segmentation by Vertical Projection and Connected ComponentsComparison on Template Matching using different classifier
Experiment repeated two times using connected components as segmentation method and the following as recognition classifier:Templates CorrelationFourier Descriptor 33Experiment 2: Comparison between Template Correlation and Fourier Descriptor
Result34Comparison on Recognition by Templates Correlation and Fourier Descriptor
Experiment repeated with introducing context in the algorithm35Experiment 3: Improvement on LPR Using Context ApproachResultComparison on recognition by Templates Correlation after context been introduced
Experiment repeated with introducing hybrid in the algorithm36Experiment 4: Improvement on LPR Using Hybrid methodResultComparison on recognition by Templates Correlation after hybrid been introduced
Discussion37Image that failed to be segmented using connected componentsPreprocessed image after erosion
Why heuristic filters failed ?38Image that failed to be recognized due to change in Euler number
Why Fourier Descriptors failed ?39Image that failed to be recognized due to unsmoothed imageImage that failed to be recognized due to rotation invariant
ConclusionThe objective of this paper is to segment and recognize characters in image have been achieved. Even the segmentation accuracy from the experiment is 100% the result during real application may be lower due to limited set of picture used in experiment. However, this shown that segmentation using connected components is best method to segmenting the image. After several experiments been done to find the best method to recognize the characters with highest accuracy and considerable amount of time, the best way is by using templates correlations as main recognition method with Fourier Descriptor and several heuristic approach as filters. Experiments have found that this method’s recognition accuracy is 98.46%.40
References41[1]  Kurt Alfred Kluever. (2008) Digital Media Library : RIT Scholars. [Online]. https://ritdml.rit.edu/bitstream/handle/1850/7813/KKlueverTechPaper05-20-2008.pdf[2]  C. H. Ho, S. B. Koay, M. H. Lee, M. Moghavvemi, and M. Tamjis, "License Plate Recognition (Software)," Universiti Malaya, No Date.[3]  SherozKhan, Rafiqul Islam Othman khalifa, "Malaysian Vehicle License Plate Recognition," The International Arab Journal of Information Technology , pp. 359-364, 2007.[4]  VelappaGanapathy and Wen Lik Dennis Lui, "A Malaysian Vehicle License Plate Localization and Recognition System," Monash University Malaysia,.[5]  Office of Safety and Traffic, Operations Research and Development, USA. (2010, February) Literature Review : Artificial Neural Network. [Online]. http://www.tfhrc.gov/safety/98133/ch02/body_ch02_05.html[6]  M. Fukumi, Y. Takeuchi, and M. Khalid, "Neural Network Based Threshold Determination for Malaysia License Plate Character Recognition," UniversitiTechnologi Malaysia, No Date.

More Related Content

What's hot (20)

PPTX
Computer Vision
Ameer Mohamed Rajah
 
PPTX
Computer vision
Kartik Kalpande Patil
 
DOCX
Hand Written Character Recognition Using Neural Networks
Chiranjeevi Adi
 
PPT
Fingerprint recognition
ranjit banshpal
 
PPTX
Handwritten Character Recognition
Constantine Priemski
 
PPTX
Image Processing and Computer Vision
Silicon Mentor
 
PPTX
Face detection presentation slide
Sanjoy Dutta
 
PPT
Face recognition ppt
Santosh Kumar
 
PPTX
Convolution Neural Network (CNN)
Suraj Aavula
 
PPTX
Computer vision ppt
geethamegharaj1
 
DOCX
Project report of OCR Recognition
Bharat Kalia
 
PPTX
Face recognition attendance system
Naomi Kulkarni
 
PPTX
offline character recognition for handwritten gujarati text
Bhumika Patel
 
PPTX
face recognition
vipin varghese
 
PPTX
Deep Learning With Neural Networks
Aniket Maurya
 
PPTX
Text detection and recognition from natural scenes
hemanthmcqueen
 
PPTX
Handwriting Recognition
Bindu Karki
 
PPT
Chapter10 image segmentation
asodariyabhavesh
 
PPTX
Deep learning presentation
Tunde Ajose-Ismail
 
Computer Vision
Ameer Mohamed Rajah
 
Computer vision
Kartik Kalpande Patil
 
Hand Written Character Recognition Using Neural Networks
Chiranjeevi Adi
 
Fingerprint recognition
ranjit banshpal
 
Handwritten Character Recognition
Constantine Priemski
 
Image Processing and Computer Vision
Silicon Mentor
 
Face detection presentation slide
Sanjoy Dutta
 
Face recognition ppt
Santosh Kumar
 
Convolution Neural Network (CNN)
Suraj Aavula
 
Computer vision ppt
geethamegharaj1
 
Project report of OCR Recognition
Bharat Kalia
 
Face recognition attendance system
Naomi Kulkarni
 
offline character recognition for handwritten gujarati text
Bhumika Patel
 
face recognition
vipin varghese
 
Deep Learning With Neural Networks
Aniket Maurya
 
Text detection and recognition from natural scenes
hemanthmcqueen
 
Handwriting Recognition
Bindu Karki
 
Chapter10 image segmentation
asodariyabhavesh
 
Deep learning presentation
Tunde Ajose-Ismail
 

Viewers also liked (13)

PPT
optical character recognition system
Vijay Apurva
 
PPTX
Optical Character Recognition( OCR )
Karan Panjwani
 
PPTX
Optical Character Recognition (OCR)
Vidyut Singhania
 
PDF
Optical Character Recognition (OCR) System
iosrjce
 
PPTX
SPARK16 Presentation: Measuring for Results: Data and the Changing Energy Lan...
Urjanet
 
PPTX
Final Report on Optical Character Recognition
Vidyut Singhania
 
PPTX
SPARK16 Presentation: Urjanet Product Vision
Urjanet
 
PDF
OCR vs. Urjanet
Urjanet
 
PDF
How to Access Utility Data
Urjanet
 
PDF
Spark 2017 Key Takeaways
Urjanet
 
PPTX
SPARK15: Architecting The Future of Energy & Sustainability
Urjanet
 
PDF
The Credit Score Present and Future
Urjanet
 
PDF
SPARK15: Simplifying Sustainability Through Gamification
Urjanet
 
optical character recognition system
Vijay Apurva
 
Optical Character Recognition( OCR )
Karan Panjwani
 
Optical Character Recognition (OCR)
Vidyut Singhania
 
Optical Character Recognition (OCR) System
iosrjce
 
SPARK16 Presentation: Measuring for Results: Data and the Changing Energy Lan...
Urjanet
 
Final Report on Optical Character Recognition
Vidyut Singhania
 
SPARK16 Presentation: Urjanet Product Vision
Urjanet
 
OCR vs. Urjanet
Urjanet
 
How to Access Utility Data
Urjanet
 
Spark 2017 Key Takeaways
Urjanet
 
SPARK15: Architecting The Future of Energy & Sustainability
Urjanet
 
The Credit Score Present and Future
Urjanet
 
SPARK15: Simplifying Sustainability Through Gamification
Urjanet
 
Ad

Similar to Text Detection and Recognition (20)

PPT
Character recognition from number plate written in assamese language
Subhash Basistha
 
PDF
Recognition of Numerals Using Neural Network
IOSR Journals
 
PDF
Off-line English Character Recognition: A Comparative Survey
idescitation
 
PDF
Devnagari handwritten numeral recognition using geometric features and statis...
Vikas Dongre
 
PDF
Seminar5
Snehil Rastogi
 
PPTX
Representation and recognition of handwirten digits using deformable templates
Ahmed Abd-Elwasaa
 
PDF
Iisrt subha guru
IISRT
 
PPTX
Presentation.pptx
AANUSRIRAMESH1
 
DOCX
Licence plate recognition using matlab programming
somchaturvedi
 
PDF
journal nakk
Tanaka Ronald Mungofa
 
PDF
A case study in computer
csandit
 
PDF
A design of license plate recognition system using convolutional neural network
IJECEIAES
 
PDF
Automatic License Plate Recognition Using Optical Character Recognition Based...
IJARIIE JOURNAL
 
PDF
Ijetcas14 399
Iasir Journals
 
PDF
An Efficient Model to Identify A Vehicle by Recognizing the Alphanumeric Char...
IJMTST Journal
 
PDF
Welcome to International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
PDF
Final Thesis Presentation Licenseplaterecognitionincomplexscenes
dswazalwar
 
PDF
IRJET- Features Extraction OCR Algorithm in Indian License Plates
IRJET Journal
 
PDF
A feature based approach for license plate
p_manimozhi
 
PPTX
Vehicle number plate recognition using matlab
Kongara Sudharshan
 
Character recognition from number plate written in assamese language
Subhash Basistha
 
Recognition of Numerals Using Neural Network
IOSR Journals
 
Off-line English Character Recognition: A Comparative Survey
idescitation
 
Devnagari handwritten numeral recognition using geometric features and statis...
Vikas Dongre
 
Seminar5
Snehil Rastogi
 
Representation and recognition of handwirten digits using deformable templates
Ahmed Abd-Elwasaa
 
Iisrt subha guru
IISRT
 
Presentation.pptx
AANUSRIRAMESH1
 
Licence plate recognition using matlab programming
somchaturvedi
 
journal nakk
Tanaka Ronald Mungofa
 
A case study in computer
csandit
 
A design of license plate recognition system using convolutional neural network
IJECEIAES
 
Automatic License Plate Recognition Using Optical Character Recognition Based...
IJARIIE JOURNAL
 
Ijetcas14 399
Iasir Journals
 
An Efficient Model to Identify A Vehicle by Recognizing the Alphanumeric Char...
IJMTST Journal
 
Welcome to International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
Final Thesis Presentation Licenseplaterecognitionincomplexscenes
dswazalwar
 
IRJET- Features Extraction OCR Algorithm in Indian License Plates
IRJET Journal
 
A feature based approach for license plate
p_manimozhi
 
Vehicle number plate recognition using matlab
Kongara Sudharshan
 
Ad

Recently uploaded (20)

PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 

Text Detection and Recognition

  • 1. Text Detection and Character Recognition from ImagesBadruzNasrin Bin Basri1051101534 Supervisor : MohdHaris Lye Abdullah1
  • 3. Aims and objectivesStudent 2Recognition -Recognize each of the character in the detected text region using a suitable algorithmSegmentation -Separate the text region into its individual characters. 3The aim of this project is to detect, extract and recognize text from images, particularly license car plate.
  • 4. Motivation 4Text detection and recognition in general have quite a lot of relevant application for automatic indexing or information retrieval such document indexing, content-based image retrieval, and license car plate recognition which further opens up the possibility for more improved and advanced systems.
  • 5. Problem statement5To segment the image to individual characters, we need to find the characteristic to be used as boundary to segment the image. To classify, we need to use the best template to compare with the segmented image and to determine how the template will be used to compare with the image.
  • 6. Literature review6SegmentationKlouverin research on recognition text in PayPal HIP [1] proposed the use of vertical projection to segment the characters in images. There are several reasons vertical segmentation been proposed by Klouver:PayPal HIP image is computer generated only minor preprocessing needed.
  • 7. There are obvious separation between each character
  • 8. Character size in PayPal HIP is fixedStudy on Malaysian License Plate Recognition by Othman [3] proposed a model specifically to detect and recognize the text in Malaysian license plate. For segmentation, connected components method has been proposed however this method only can use if the license plates are single row license plate and the study only been made on single row license plate. Same method also been use by Ganapathy and Lui in [4]
  • 9. 7Literature reviewRecognitionKlouverin research on recognition text in PayPal HIP [1] and Ho C. H. et. al in research on License Plate Recognition(LPR) [2] used Templates Matching to recognize the characters in image. Klouver detailed the matching classifier into four types of classifier that are Pixel Counting, Horizontal Projection, Vertical Projection and Template Correlations. Klouver’s experiment proved that the best classifier is Vertical projection and Template Correlation where both of this classifier yield 100% accuracy.Fixed type of font in image(PayPal HIP) makes it very easy to distinguish between different characters using templates matching. There are no other research that yield 100% accuracy.
  • 10. 8Literature reviewRecognitionStudy on Malaysian License Plate Recognition by Othman [3],Ganapathy and Lui in [4], M.Fukumi et. Al [6] , AnasJ.A. Husain et. Al [7] used Neural Network to recognized the text. Compared to templates matching, neural network consume more time. Neural network also need training before it can be used and it only can achieve high accuracy if the sampled image is almost same with the training images. Andrew Vogt and Joe G. Bared [5] concluded the disadvantages of neural network are :Minimizing overfitting in neural networks requires a great deal of computational effort The individual relations between the input variables and the output variables are not developed by engineering judgment so the model tends to be a black box or input/output table without analytical basis and to make the accuracy level high the sample size has to be large.
  • 11. 9Literature reviewRecognitionJared Hopkins and Tim Anderson in [9], used Fourier Descriptor to recognize text in image. In most of the researches, Fourier descriptor been used to recognize more complex shape such as for logo classification by Folkers and Samet [10] and for Sinhala Script by Rohana, Ruvan and Kevin [11].Basically there are no research on LPR using Fourier descriptor(FD), hence, this research will also test the usage of FD to recognize text in Malaysian License Plate.WisamAl Faqheri and SyamsiahMashohor in A Real-Time Malaysian Automatic License Plate Recognition (M-ALPR) using Hybrid Fuzzy [12] used the hybrid Fuzzy method to recognize the license number. Compared to other study previously done on license plate detection where almost all of the previous work relied on a single method like template matching or neural network Wisamand Syamsiah proposed combination of more than one method based on the type of license plate.
  • 12. Approach - Flowchart to recognize the characters in image10
  • 13. Make templateTo create templete.mat to be use for classification:11……Matrix size 24 X 42 X 36 Saved as template.mat36 images of charactersSize = 42 X 24
  • 15. Segmentation – Vertical Projections Preprocessed ImageVertical projection analysisSegmented ImageVertical Projection13
  • 16. Segmentation – Vertical Projections Weaknesses14Image that failed to be segmented by vertical projection
  • 17. The segmentation character involves the following steps:Scan the image from left to right to find ‘on’ pixel.If on pixel been found, all ‘on’ pixel connected to the detected on pixel will be extracted segmented as a pixel.The process will be repeated until it reach end right of the image.15Segmentation – Connected Components 
  • 18. Recognition - Pixel Counting16tempSum = sum(sum(templates(:,:,j))); inSum = sum(sum(chars(:,:,i))); allCorrs(j) = abs(tempSum - inSum);allCorrs(j) = 1 - (allCorrs(j)/1008);
  • 19. Corr2𝑟=mn𝑖𝑚𝑛−𝑖(𝑗𝑚𝑛−𝑗)(mn(𝑖mn− 𝑖)2)(mn(𝑗mn− 𝑗)2)Where 𝑖 is the mean of the input matrix i and 𝑗 is the mean of the input matrix j.0 < r < 11 mean i and j is exactly same while 0 mean the i and j not same at all. 17
  • 20. Recognition - Vertical projections18tempVP = sum(templates(:,:,j)); inVP = sum(chars(:,:,i)); allCorrs(j) = corr2(tempVP, inVP);
  • 21. Recognition - Horizontal projections 19tempHP = sum(templates(:,:,j)'); inHP = sum(chars(:,:,i)'); allCorrs(j) = corr2(tempHP, inHP);
  • 22. 20Recognition - Template Correlationstemp = templates(:,:,j); in = chars(:,:,i); allCorrs(j) = corr2(temp, in);
  • 23. Recognition – Fourier DescriptorFollowing is the detailed steps on extracting and comparing the Fourier Descriptor (FD)Edging21U= 𝑥0𝑦0𝑥1𝑦1...𝑥𝑛𝑦𝑛 
  • 24. Recognition – Fourier DescriptorExtracting FD – 1 D Discrete Fourier Transform (DFT) been done to the complex vector U to get the frequency domain of the boundaries using the following equation: 22F=𝐹𝐹𝑇𝑈=𝑘=0𝑁−1Uk− 2πN𝑘𝜇 
  • 25. Recognition – Fourier DescriptorNormalize FD: Translation invariantScale invariantRotation invariant23
  • 26. Recognition – Fourier DescriptorImages of ‘E’ reconstructed from (a) n = 4 (b) n = 8 (c) n = 10 (d) n = 15 (e) n = 25 (f) n = 30 (g) n = 278Resize FD – As FD contains information of all information of the ‘on’ pixel, the size of FD is number of on pixel. To make it comparable with other FD it need to be resized to predefined number of descriptor, Figure 3.9 show different shape reconstructed using different number of descriptor. As to resize the FD to n descriptor, function shiftfft in Matlab will remove low frequency descriptor leaving only n-th highest descriptor. 24
  • 27. Recognition – Fourier DescriptorCompare FD – CompareFD a measure of the difference between two inputs FD. It will quantify the difference between FDs. Higher values of different mean the two FDs are far apart in shape. The extracted FD, I can be compared with using the following algorithm:CompareFD(I,T)D ← øfor each Templates 𝑡𝑖∈T do diff = -1 if length(𝑡𝑖) = length (I) do diff ← sum(𝑎𝑏𝑠(𝑡𝑖−𝐼)2)return k such that 𝑟𝑘=min(𝑅) 25
  • 28. Recognition – Heuristic FilterContext ApproachAfter considering all data in database, it was concluded that:First two characters are always text.Third character can be text or number.All following characters are always numbers. 26
  • 29. Recognition – Heuristic FilterEuler number - Euler number is equal to the number of connected elements (always equal to one) minus the number of holes.27
  • 30. Recognition – Heuristic Filter28Notice that for ‘H’, x line passed through 2 white line and y passed through 2 white line, for’ W’, x passed 3 white line and y passed 2 white line while ‘M’ is opposite.
  • 31. Experiment 1: Comparison between Different Segmentation Method and Different Templates Matching Classifier29Template with size 42 X 24 was created using images of 36 characters.To conduct the experiment, all 125 images have been renamed as their ground truth and saved in a folder. A Matlab script as included in appendices was created to load all the images in the folder as well as their name and then perform preprocess segmentation and recognition to all of the images. Then the result of the segmentation and recognition as well as time needed to recognize a number plate were recorded and calculated using following equation. The result will also be analyzed automatically by the Matlab script.Some of images that been used in the experiment
  • 32. Segmentation Accuracy was calculated using formula :𝐴𝑆𝑒𝑔𝑚𝑒𝑛𝑡=𝑁𝑆𝑒𝑔𝑚𝑒𝑛𝑡𝑒𝑑𝑁𝑆𝑎𝑚𝑝𝑙𝑒𝐶h𝑎𝑟 x 100%Where 𝐴𝑆𝑒𝑔𝑚𝑒𝑛𝑡 is segmentation accuracy, 𝑁𝑆𝑒𝑔𝑚𝑒𝑛𝑡𝑒𝑑 is number of correctly segmented character and 𝑁𝑆𝑎𝑚𝑝𝑙𝑒𝐶h𝑎𝑟 is number of characters in sample.Classification Accuracy was calculated using formula :𝐴𝐶h𝑎𝑟=𝑁𝑅𝑒𝑐𝑜𝑔𝑛𝑖𝑧𝑒𝑁𝑆𝑒𝑔𝑚𝑒𝑛𝑡𝑒𝑑x 100%Where 𝐴𝐶h𝑎𝑟 is recognition accuracy, 𝑁𝑅𝑒𝑐𝑜𝑔𝑛𝑖𝑧𝑒 is number of correctly recognized character and 𝑁𝑆𝑒𝑔𝑚𝑒𝑛𝑡𝑒𝑑 is number of characters that had been correctly segmented.Classification Accuracy was calculated using formula :𝑡𝐶h𝑎𝑟=𝑇𝑁𝑆𝑎𝑚𝑝𝑙𝑒Where 𝑡𝐶h𝑎𝑟 is average recognition time, 𝑇 total running time to recognize all sample images and 𝑁𝑆𝑎𝑚𝑝𝑙𝑒 is number of sample images. 30Experiment 1: Comparison between Different Segmentation Method and Different Templates Matching Classifier
  • 33. Then the experiment repeated four times using connected components as segmentation method and the following as recognition classifier:Pixel CountVertical ProjectionHorizontal ProjectionTemplates Correlation31Experiment 1: Comparison between Different Segmentation Method and Different Templates Matching Classifier
  • 34. Result32Comparison on segmentation by Vertical Projection and Connected ComponentsComparison on Template Matching using different classifier
  • 35. Experiment repeated two times using connected components as segmentation method and the following as recognition classifier:Templates CorrelationFourier Descriptor 33Experiment 2: Comparison between Template Correlation and Fourier Descriptor
  • 36. Result34Comparison on Recognition by Templates Correlation and Fourier Descriptor
  • 37. Experiment repeated with introducing context in the algorithm35Experiment 3: Improvement on LPR Using Context ApproachResultComparison on recognition by Templates Correlation after context been introduced
  • 38. Experiment repeated with introducing hybrid in the algorithm36Experiment 4: Improvement on LPR Using Hybrid methodResultComparison on recognition by Templates Correlation after hybrid been introduced
  • 39. Discussion37Image that failed to be segmented using connected componentsPreprocessed image after erosion
  • 40. Why heuristic filters failed ?38Image that failed to be recognized due to change in Euler number
  • 41. Why Fourier Descriptors failed ?39Image that failed to be recognized due to unsmoothed imageImage that failed to be recognized due to rotation invariant
  • 42. ConclusionThe objective of this paper is to segment and recognize characters in image have been achieved. Even the segmentation accuracy from the experiment is 100% the result during real application may be lower due to limited set of picture used in experiment. However, this shown that segmentation using connected components is best method to segmenting the image. After several experiments been done to find the best method to recognize the characters with highest accuracy and considerable amount of time, the best way is by using templates correlations as main recognition method with Fourier Descriptor and several heuristic approach as filters. Experiments have found that this method’s recognition accuracy is 98.46%.40
  • 43. References41[1] Kurt Alfred Kluever. (2008) Digital Media Library : RIT Scholars. [Online]. https://ritdml.rit.edu/bitstream/handle/1850/7813/KKlueverTechPaper05-20-2008.pdf[2] C. H. Ho, S. B. Koay, M. H. Lee, M. Moghavvemi, and M. Tamjis, "License Plate Recognition (Software)," Universiti Malaya, No Date.[3] SherozKhan, Rafiqul Islam Othman khalifa, "Malaysian Vehicle License Plate Recognition," The International Arab Journal of Information Technology , pp. 359-364, 2007.[4] VelappaGanapathy and Wen Lik Dennis Lui, "A Malaysian Vehicle License Plate Localization and Recognition System," Monash University Malaysia,.[5] Office of Safety and Traffic, Operations Research and Development, USA. (2010, February) Literature Review : Artificial Neural Network. [Online]. http://www.tfhrc.gov/safety/98133/ch02/body_ch02_05.html[6] M. Fukumi, Y. Takeuchi, and M. Khalid, "Neural Network Based Threshold Determination for Malaysia License Plate Character Recognition," UniversitiTechnologi Malaysia, No Date.
  • 44. References42[7] K. Saleh Ali Al-Omari, Putra Sumari, A. Sadik Al-Taweel, and J.A. AnasHussain, "Digital Recognition using Neural Network," Journal of Computer Science, vol. 5, no. 6, pp. 427-434, 2009.[8] VelappaGanapathy and Leong LiewKok, "Handwritten Character Recognition Using Multiscale Neural Network Training Technique," World Academy of Science, Engineering and Technology, vol. 39, 2008.[9] Jared Hopskins and Tim Anderson, "A Fourier Descriptor Based Character Recognition Engine Implemented under the GameraOpen-Source Document Processing Framework," No Date.[10] Andre Folkers and SametHanan, "Content-based Image Retrieval Using Fourier Descriptors on a Logo Database," in Proc of the 16th Int. Conf. on Pattern Recognition, vol. III, Quebec City, Canada, 2002, pp. 521-524.[11] RajapakseK Rohana, Ruvan A Weerasinghe, and Kevin E Seneviratne, "A Neural Network Based Character Recognition System For Sinhala Script," Department of Statistics and Computer Science, University of Colombo, Colombo, No Date.[12] WisamAl Faqheri and SyamsiahMashohor, "A Real-Time Malaysian Automatic License Plate Recognition (M-ALPR) using Hybrid Fuzzy," IJCSNS International Journal of Computer Science and Network Security, vol. VOL.9, no. No.2, pp. 333-340, February 2009.