Iraqi Car License Plate Recognition Using OCR

Similar documents
AUTOMATIC IRAQI CARS NUMBER PLATES EXTRACTION

Automatic Licenses Plate Recognition System

Vehicle License Plate Recognition System Using LoG Operator for Edge Detection and Radon Transform for Slant Correction

An Evaluation of Automatic License Plate Recognition Vikas Kotagyale, Prof.S.D.Joshi

INDIAN VEHICLE LICENSE PLATE EXTRACTION AND SEGMENTATION

THE PROPOSED IRAQI VEHICLE LICENSE PLATE RECOGNITION SYSTEM BY USING PREWITT EDGE DETECTION ALGORITHM

VEHICLE LICENSE PLATE DETECTION ALGORITHM BASED ON STATISTICAL CHARACTERISTICS IN HSI COLOR MODEL

Keyword: Morphological operation, template matching, license plate localization, character recognition.

Implementation of License Plate Recognition System in ARM Cortex A8 Board

A Novel Morphological Method for Detection and Recognition of Vehicle License Plates

A Method of Multi-License Plate Location in Road Bayonet Image

Vehicle Number Plate Recognition with Bilinear Interpolation and Plotting Horizontal and Vertical Edge Processing Histogram with Sound Signals

Libyan Licenses Plate Recognition Using Template Matching Method

Number Plate Recognition System using OCR for Automatic Toll Collection

Detection of License Plates of Vehicles

Preprocessing and Segregating Offline Gujarati Handwritten Datasheet for Character Recognition

A Review of Optical Character Recognition System for Recognition of Printed Text

World Journal of Engineering Research and Technology WJERT

Automated Number Plate Recognition System Using Machine learning algorithms (Kstar)

Matlab Based Vehicle Number Plate Recognition

A Chinese License Plate Recognition System

An Improved Bernsen Algorithm Approaches For License Plate Recognition

Number Plate Recognition Using Segmentation

FPGA based Real-time Automatic Number Plate Recognition System for Modern License Plates in Sri Lanka

Open Access An Improved Character Recognition Algorithm for License Plate Based on BP Neural Network

A Real Time Automatic License Plate Recognition Using Optical Character Recognition

Real Time ALPR for Vehicle Identification Using Neural Network

A Simple Skew Correction Method of Sudanese License Plate

Malaysian Car Number Plate Detection System Based on Template Matching and Colour Information

Automatic Electricity Meter Reading Based on Image Processing

A NOVEL APPROACH FOR CHARACTER RECOGNITION OF VEHICLE NUMBER PLATES USING CLASSIFICATION

Efficient Car License Plate Detection and Recognition by Using Vertical Edge Based Method

Automated Number Plate Verification System based on Video Analytics

IJSRD - International Journal for Scientific Research & Development Vol. 4, Issue 05, 2016 ISSN (online):

Automatics Vehicle License Plate Recognition using MATLAB

EE 5359 MULTIMEDIA PROCESSING. Vehicle License Plate Detection Algorithm Based on Statistical Characteristics in HSI Color Model

License Plate Localisation based on Morphological Operations

Contents 1 Introduction Optical Character Recognition Systems Soft Computing Techniques for Optical Character Recognition Systems

International Journal of Scientific & Engineering Research, Volume 5, Issue 5, May ISSN

Volume 7, Issue 5, May 2017

CHARACTERS RECONGNIZATION OF AUTOMOBILE LICENSE PLATES ON THE DIGITAL IMAGE Rajasekhar Junjunuri* 1, Sandeep Kotta 1

Smart License Plate Recognition Using Optical Character Recognition Based on the Multicopter

Line Segmentation and Orientation Algorithm for Automatic Bengali License Plate Localization and Recognition

Extraction and Recognition of Text From Digital English Comic Image Using Median Filter

Automated License Plate Recognition for Toll Booth Application

An Automatic System for Detecting the Vehicle Registration Plate from Video in Foggy and Rainy Environments using Restoration Technique

USING AN EIGEN VALUES AND SPATIAL FEATURES FOR BUILDING AN IRAQI LICENSE PLATE DETECTOR AND RECOGNIZER

Automatic License Plate Recognition System using Histogram Graph Algorithm

Highly Adaptive Indian High Security Vehicle Number Plate Recognition

A SURVEY ON HAND GESTURE RECOGNITION

Automatic Vehicles Detection from High Resolution Satellite Imagery Using Morphological Neural Networks

Method for Real Time Text Extraction of Digital Manga Comic

Nigerian Vehicle License Plate Recognition System using Artificial Neural Network

A new seal verification for Chinese color seal

Vehicle Number Plate Recognition Using Hybrid Mathematical Morphological Techniques

MAV-ID card processing using camera images

IJRASET 2015: All Rights are Reserved

International Journal of Advanced Research in Computer Science and Software Engineering

Real-Time License Plate Localisation on FPGA

[Mohindra, 2(7): July, 2013] ISSN: Impact Factor: 1.852

Handwritten Character Recognition using Different Kernel based SVM Classifier and MLP Neural Network (A COMPARISON)

An Approach to Korean License Plate Recognition Based on Vertical Edge Matching

Smart Number Plate Identification Using Back Propagation Neural Network

International Conference on Computer, Communication, Control and Information Technology (C 3 IT 2009) Paper Code: DSIP-024

Proposed Method for Off-line Signature Recognition and Verification using Neural Network

Combined Approach for Face Detection, Eye Region Detection and Eye State Analysis- Extended Paper

A Smart Technique for Accurate Identification of Vehicle Number Plate Using MATLAB and Raspberry Pi 2

Colored Rubber Stamp Removal from Document Images

International Journal of Advance Engineering and Research Development

Automatic Vehicle Number Plate Recognition for Vehicle Parking Management System

Recognition Of Vehicle Number Plate Using MATLAB

Automated Car Number Plate Detection System to detect far number plates Jatinder Singh 1 Vinay Bhardwaj 2

Color Image Segmentation Using K-Means Clustering and Otsu s Adaptive Thresholding

AUTOMATIC LICENSE PLATE RECOGNITION USING PYTHON

THERMAL DETECTION OF WATER SATURATION SPOTS FOR LANDSLIDE PREDICTION

ISSN No: International Journal & Magazine of Engineering, Technology, Management and Research

中国科技论文在线. An Efficient Method of License Plate Location in Natural-scene Image. Haiqi Huang 1, Ming Gu 2,Hongyang Chao 2

Addis Ababa University School of Graduate Studies Addis Ababa Institute of Technology

Recognition Offline Handwritten Hindi Digits Using Multilayer Perceptron Neural Networks

AUTOMATIC LICENSE PLATE RECOGNITION USING IMAGE PROCESSING AND NEURAL NETWORK

IMAGE TYPE WATER METER CHARACTER RECOGNITION BASED ON EMBEDDED DSP

ENHANCHED PALM PRINT IMAGES FOR PERSONAL ACCURATE IDENTIFICATION

Systematic Toll Deduction Using Automatic Number Plate Recognition

Finger print Recognization. By M R Rahul Raj K Muralidhar A Papi Reddy

Vehicle License Plate Number Recognition and Segmentation System

License Plate Recognition Using Convolutional Neural Network

Cloud Based Real Time Anti Vehicle Theft By Using LP Recognition And OCR Recognition

Automatic Number Plate Extraction: A Review

RESEARCH PAPER FOR ARBITRARY ORIENTED TEAM TEXT DETECTION IN VIDEO IMAGES USING CONNECTED COMPONENT ANALYSIS

AUTOMATIC NUMBER PLATE DETECTION USING IMAGE PROCESSING AND PAYMENT AT TOLL PLAZA

Wheeler-Classified Vehicle Detection System using CCTV Cameras

Scrabble Board Automatic Detector for Third Party Applications

Method to acquire regions of fruit, branch and leaf from image of red apple in orchard

Study and Analysis of various preprocessing approaches to enhance Offline Handwritten Gujarati Numerals for feature extraction

International Journal of Advanced Research in Computer Science and Software Engineering

An Efficient Approach for Automatic Number Plate Recognition System under Image Processing

AN EXPANDED-HAAR WAVELET TRANSFORM AND MORPHOLOGICAL DEAL BASED APPROACH FOR VEHICLE LICENSE PLATE LOCALIZATION IN INDIAN CONDITIONS

Number Plate Detection with a Multi-Convolutional Neural Network Approach with Optical Character Recognition for Mobile Devices

Road Network Extraction and Recognition Using Color

Segmentation of Blood Vessel in Retinal Images and Detection of Glaucoma using BWAREA and SVM

Transcription:

Iraqi Car License Plate Recognition Using OCR Safaa S. Omran Computer Engineering Techniques College of Electrical and Electronic Techniques Baghdad, Iraq omran_safaa@ymail.com Jumana A. Jarallah Computer Engineering Techniques College of Electrical and Electronic Techniques Baghdad, Iraq jumanaabdulhadi@yahoo.com DOI: 10.24086/cocos17.19 Abstract License plate recognition (LPR) system is an important system in our life. LPR is an image processing and a character recognition system that used to recognize any car from the others. An automatic license plate recognition system for Iraqi car license plates is proposed in this paper. An optical character recognition (OCR) is used with correlation approach and templates matching for plate recognition in this system. The software used is MATLAB R2014a. The algorithm is successfully constructed with sample of images correctly identified. In Iraq, there are 3 styles for Iraqi car license plates written in Arabic language [1] [3], The first style is for the three rthern provinces (Erbil, Sulymania and Duhok) as shown in Fig.2a the second style is the old style (before 2003) as shown in Fig.2b, and the third style is the new style which is shown in Fig.2c. The second and third styles are used for the other fifteen provinces and each has a different size and design. Keywords license plate recognition, optical character recognition, image processing, correlation, Otsu's thresholding, tophat filtering. I. INTRODUCTION A License Plate (LP) is a rectangular metal plate contains numbers, characters and words, fixed on the car body and is used to identify the vehicles. In recent years, the importance of recognizing LP characters and numerals in an automatic manner has largely increased [1]. This research aims to recognize the numerals and characters, extracted from Iraqi LPs, into a text. The recognition of license plates is very important in many applications such as Parking, Borders control, Detect and monitor traffic, Travel and Airport parking [2]. In many countries the license plates that written in English language as samples shown in Fig.1, the English letters is separated and the LP have a similar design for all cities in the country, so that will facilitate the recognition process of the characters. Because the LP is different and specific for each country, so the algorithms used for LPR system is different and specific too. Fig. 1. Samples of some English license plates a. rthern provinces style c. New style b. Old style Fig. 2. Iraqi car license plate types This research mainly consists of the following parts: 1) Location plate part or license plate detection (LPD): Is the first part of the system where locating the license plate from the car image. 2) Distinguishing between the three styles of Iraqi LP: in this part the differentiation between the three styles of Iraqi license plates is take place. 3) Pre-processing part: Thresholding using Otsu's method and morphological operations to enhance LP image. 4) License plate character segmentation (LPCS): Segment each number, character and word into sub images. 5) OCR part: Optical character recognition method for numbers, characters and words recognition. Ng Simin [4] proposed Automatic car plate detection and recognition system for Malaysian car number plates, the algorithm constructed is to target field programmable gate 1

array FPGA as its end product. M.Gunasekaran [5] proposed OCR recognition system using feed forward and back propagation neural network. Guangmin Sun [6] proposed a new recognition method of vehicle license plate based on genetic neural network. Osslan Osiris Vergara Villegas [7] proposed License plate recognition using a novel fuzzy multilayer neural network. Pritesh Kanani [8] proposed Vehicle license plate localization using wavelets. Rachana Chahar [9] proposed an Automatic license plate reorganization system based on image processing using Lab VIEW. Eyad [10] proposed an Iraqi cars license plate detection and recognition using edge detection and templates matching correlation for the third style of LP (new style), the proposed system in this paper is designed to distinguish between the three styles of the Iraqi LP. This paper is organized as follows: The algorithm used to implement the LPR system is described in section II and Experimental results are described in section III. Finally, Conclusion is summarized in Section IV. II. LPR SYSTEM ALGORITHM The main stages of the proposed system shown in Fig.3, these stages are: B. Locating the LP from the car image After the picture is captured the system works to locate the LP from the car image. In this stage the first step is cutting and resizing the original image as shown in Fig.5b, Then Image processing performed to focus the area of number plate [11], Smooth edges and contours to delete characters as shown in Fig.5c, Subtracting the original image to obtain the information previously deleted using tophat filtering and thus stays with the characters as shown in Fig.5d. Then removing the related elements with less than 70 pixels, Remove objects that are not candidates for plate and select the largest connected component after preprocessing as shown in Fig.5e, then cutting the plate from the original image as shown in Fig.5f. C. Distinguish between the three styles of Iraqi LP After the plate position was located, in this step the distinguishing between the three styles of the LP is taken place. The basic step used in discrimination between the three styles of the Iraqi LP is from the size of the plate. The flowchart in Fig. 6 describes how to detect the size of the plate to discriminate between the three styles. Car image acquisition Locating the LP from the car image Distinguish between the three styles of Iraqi LP Binarization Image preprocessing Resizing the LP Dividing LP into parts (numbers, province and type) Recognition using (OCR) Fig. 3. The main stages of the LPR system A. Car image acquisition This is the first and the primary stage in LPR, the aim of it is to capture the front or the back side of the car where the license plate usually placed then applies the captured image to the next stage of the system. In this system the front side of the car is chosen and the database images are collected from many places like my college, parks and streets as shown in Fig.4. Fig.4 Captured images 2

If any of the three styles of LP was found, the process of the recognition will follow the process shown in Fig.7 with some differences explained later in each stage. LP a. Original image b. Cutting and resizing Binarization Pre-processing (dilation and remove small objects) c. Smooth edges and contours d. Tophat filtering Resizing the LP Dividing the LP into parts Optical Character Recognition e. Selecting the largest connected component Fig. 5. Locating the LP f. Image plate Result Fig. 7. Preparing and Recognition the LP If size>= 156 && <=280 If size>= 121 && <=155 Size not in the range Start Iraqi LP If size >= 40 && <= 120 New style recognition Old style recognition D. Binarization After distinguishing between the three styles of the license plates now is the time of converting the gray image (gray LP image from the locating LP stage) to a binary image as shown in Fig.8a and this is done by using Otsu's thresholding [12], it is used to automatically perform clustering based image thresholding, or the reduction of a gray level image to a binary image. The algorithm of this method calculates the optimum threshold separating the two classes (foreground and background). The pseudo-code can be translated in MATLAB such as using the two following instructions: level = graythresh(i) %find the optimum threshold for the image. BW= im2bw (I, level); %convert image to binary based on level. rthern LP style recognition End Afterwards, complement of binary image takes place as shown in Fig.8b, because the background of the image is white and the foreground is black and the required is opposite to perform the recognition correctly. Fig. 6. Flowchart for distinguish between the three styles of Iraqi LP 3

a. Binary image b. Complement image Fig. 8. Binarization E. Image Preprocessing Image preprocessing stage is necessary to prepare the image for recognition; first using mathematical morphological (image dilation), the algorithm expands or thickens foreground objects in an image as shown in Fig.9a. Then the lines and the small objects less than 50 pixels where removed to make the LP clearer for dividing stage for correctly recognition which is shown in Fig.9b. H. Recognition Using OCR OCR is the process of converting an image into a computer editable text. The text and numbers in an image is not editable, the letters, characters and numbers are made of tiny dots (pixels) that together form a picture of text and numbers. OCR is classified into two types, offline recognition and online recognition. In offline recognition the source is either an image or a scanned form of the document whereas in online recognition the successive points are represented as a function of time and the order of strokes are also available. Here in this paper only offline recognition is used [4][13]. In this stage, first the numbers are segmented (each number into sub-image) by using labeling connected components [9] as shown in Fig.11. Each number, letter, province and type should be resized to the size of the preloaded templates. Fig. 11. labeling the numbers a. Dilation image b. Remove small objects Fig. 9. Image pre-processing F. Resizing The LP In this stage the resizing of the license plate image into a constant size for every input image to the system to make a correct dividing in the next stage. The pseudo-code can be translated in MATLAB such as the following instruction: B = imresize (A, scale) % resize an image. G. Dividing LP into Parts (Numbers, Province and Type) w the time of partitioning the LP image into parts, there is a difference in this stage for the three styles: Number and province parts for the two styles (rthern Province style and old style). Number, province, type and letter parts for new style as shown in Fig. 10. Images of numbers from 0 to 9, Iraq provinces, letters and types of cars in Iraqi LP all these variables are stored in the form of cell in which each matrix represents a character, all the model inputs are saved under the name 'TEMPLATES'. The separated images of numbers, letters, provinces and type are correlated with templates (each part with its saved templates) which are reloaded into the system. Once the correlation is completed, the template with the maximum correlated value is declared as the character present in the image and prints it into a text file. In the new style of the LP there is a difference in the type and province recognition. Before the dividing process of the type and province, first cutting the type and province together to decide if the car type is government or not. This is done by counting the number of labeling connected components objects. If the number of objects is less than or equal to five then the car type is government, else the dividing process and recognition for type and province is taking place as shown in Fig.12. This procedure were required because the government LP has only one word (ةيموكح) while the other LPs have two words as shown in table II. a. Number b. Letter c. Province d. Type Fig. 10. Dividing the LP 4

Start Province & type segment together Labeling connected components There are 30 from total 35 images that the LP extracted the recognition is correct, the 5 images are correctly extracted the LP but the recognition failed, that because the LP is not divided correctly in the dividing stage to preparing the LP for recognition stage. For example, in the number part there are more objects not the numbers only that makes the recognition process failed as shown in Fig.14. Dividing province & type separately If no. of objects <=5 Print government to text file Recognition separately End Fig. 12. Flowchart for government, type and province recognition III. EXPERIMENTAL RESULTS Experiments have been performed to test the proposed system, the recognition of sample images and to measure the accuracy of the system. The system is designed in MATLAB R2014a for recognition of Iraqi license plates. The images for the input to the system are colored images with variable sizes. The test images were taken under various illumination conditions. The measurements of accuracy are given by Table I. Fig. 14. Incorrect dividing The results of the recognition for some samples of cars are given by Table II. TABLE II. EXPERIMENTAL RESULTS OF RECOGNITION Car image Image plate Results (text file) TABLE I. EXPERIMENTAL RESULTS OF ACCURACY Unit of LPR system Number of accuracy Percentage of accuracy Extraction of plate region 35/40 87.5 % Recognition 30/35 85.7 % The database that used to test the system is 40 images, only 35 LP are extracted correctly. The main reasons that the 5 images are not extracted are: either image is unclear or the process of clean up the unwanted objects in some images will wiped out some important information and that cause the crop of the LP is incorrect as shown in Fig.13. Fig. 13. Incorrect crop of LP 5

IV. CONCLUSION In this paper, the application software for the recognition of car license plate is designed. Firstly we extracted the plate location, and then separate the plate characters individually by segmentation and finally applying template matching with the use of correlation for recognition of plate characters. This system is designed for the identification for Iraqi license plates and the system is tested over a 40 images. Finally it is proved to be 87.5% for extraction of plate region and 85.7% for the recognition unit accurate, giving the overall system performance of 86.6% recognition rate. REFERENCES [1] N. Najeel Kamal and L. E. George, "License Plate Numerics and Characters Recognition," International Journal of Advanced Research in Computer Science and Software Engineering, vol. 4, no. 4, pp. 824-835, April 2014. [2] R. Bhat and B. Mehandia, "Recognition of Vehicle Number Plate Using Matlab," International Journal of Innovative Research in Electrical, Electronics, Instrumentation and Control Engineering, vol. 2, no. 8, pp. 1899-1903, August 2014. [3] S. D. Mohammed, "Iraqi License Plate Recognition System," Journal of International Academic Research for Multidisciplinary, vol. 1, no. 11, pp. 386-400, december 2013. [4] N. Simin and F. Choong Chiao Mei, "Automatic Car-plate Detection and Recognition System," EURECA, pp. 113-114, 2013. [5] M.Gunasekaran and S.Ganeshmoorthy, "OCR Recognition System Using Feed Forward and Back Propagation Neural Network," Second National Conference on Signal Processing, Communications and VLSI Design NCSCV 10, pp. 345-350, January 2010. [6] C. Zhang, W. Zou, G. Yu and G. Sun, "A New Recognition Method of Vehicle License Plate Based on Genetic Neural Network," 5th IEEE Conference on Industrial Electronics and Applicationsis, pp. 1662-1666, 2010. [7] D. González Balderrama, H. de Jesús Ochoa Domínguez, V. Guadalupe Cruz Sánchez and O. Osiris Vergara Villegas, "License Plate Recognition Using a vel Fuzzy Multilayer Neural Network," International Journal of Computers, vol. 3, no. 1, pp. 32-40, 2009. [8] A. Gupta, D. Yadav, R. Bodade, R. Bilas Pachori and P. Kanani, "Vehicle License Plate Localization Using Wavelets," IEEE Conference on Information and Communication Technologies, April 2013. [9] J. Kumawat, H. G. Bhavsar and R. Chahar, "Automatic License Plate Recoganization System Based on Based on Image Processing Using LabVIEW," International Journal of Advanced Research in Computer Science and Software Engineering, vol. 4, no. 4, pp. 999-1002, April 2014. [10] E. I. Abbas and T. A. Hashim, "Iraqi Cars License Plate Detection and Recognition System using Edge Detection and Template Matching Correlation," Eng. &Tech.Journal, vol. 34, pp. 257-271, 2016. [11] S. L. Eddins, R. E. Woods and R. C. Gonzalez, Digital Image Processing Using Matlab, Second Edition ed. United States of America: Gatesmark Publishing, LLC, 2009. [12] V. Ganapathy and W. Lik Dennis Lui, "A Malaysian Vehicle License Plate Localization and Recognition System," Systemics, Cybernetics and Informatics, vol. 6, pp. 13-20, January 2008. [13] V.Harish, M.Swathi, CH. Deepthi and P. K Charles, "A Review on the Various Techniques used for Optical Character Recognition," International Journal of Engineering, vol. 2, no. 1, pp. 659-662, January- February 2012. 6