Number plate recognition system using matlab.
-
Upload
namra-afzal -
Category
Engineering
-
view
34.592 -
download
8
Transcript of Number plate recognition system using matlab.
![Page 1: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/1.jpg)
CAR RECOGNITION SYSTEM USING
MATLABProject Supervisor
Sir Umer Javed
Group Members
Sania Arif (1547)Namra Afzal (1528)
Laraib Mumtaz (1522)
Batch F11 BSEE Faculty of Engineering and
Technology IIUI
![Page 2: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/2.jpg)
WHY DID WE CHOOSE THIS PROJECT?
Identification of stolen cars
Smuggling of Cars
Invalid license plates
Usage of cars in terrorist attacks/illegal activities
Applications in traffic systems (highway electronic toll collection, red light violation enforcement, border and customs checkpoints, etc.).
2
![Page 3: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/3.jpg)
AIM We intended to develop a system in MATLAB
which can perform detection as well as recognition of Car Number plate
The objective of this project is to recognize car number plate using serial communication.
3
![Page 4: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/4.jpg)
WORK DIVISION
Matlab code ( Namra Afzal 1528 /BSEE /FET F11)
Microcontroller interfacing (Sania Arif / 1547 /BsEE FET f11)
Hardware ( Laraib Mumtaz/ 1522/ BSEE /FET F11)
4
![Page 5: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/5.jpg)
TIME DIVISION Week 1 Studied project Project PlanningWeek 2 matlab coding Week 3 Simulation using proteus Hardware Week 4 Hardware Interfacing
5
![Page 6: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/6.jpg)
BLOCK DIAGRAM:INPUT IMAGE
ALGORITHM USING (MATLAB) OUTPUTMICROCONTROLLER
BASIC PROJECT
Input image ( from real environment)
Algorithm using (matlab) outputMicrocontroller serial interfacing with hardware.
6
![Page 7: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/7.jpg)
WORKFLOW Image was taken from real environment . Process Digital Images of License Plates using
existing/modified algorithms.
Algorithms will perform alpha numeric conversions on the captured license plate images into text entries.
System would check the extracted entries against a database in real time.
The entire system is implemented in MATLAB is used for detection and recognition . 7
![Page 8: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/8.jpg)
BASIC MODULES OF THE SYSTEM
Detection is done by Character Segmentation Locates the alpha numeric characters on a license plate.
Optical Character Recognition (OCR)Translates the segmented characters into text entries.
8
![Page 9: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/9.jpg)
Block Diagram
9
![Page 10: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/10.jpg)
Start
Localization
End
Characters And Numbers Segmentation
Feature Extraction Of Segmented Image
Recognize The Extracted Features
Show The License Plate
10
![Page 11: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/11.jpg)
LICENSE PLATE LOCALIZATION
11
Edge Detection
Morphological
OperationsExtracting The Plate
Region
![Page 12: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/12.jpg)
Flow Chart of extraction in Matlab
12
![Page 13: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/13.jpg)
13
Start
Load Image From File
Morphological Operations Are Applied On The Image
Convert Image Into Grayscale
Median Filter To remove noise in The Image
Edge enhancement In The Image
Convolution for brightening image
Intensity scaling
Show The License Plate
Filling all the regions of Image
Thinning to isolate characters
End
![Page 14: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/14.jpg)
LOAD THE IMAGE FROM FILE
14
a=imread(‘car 10.JPG’)
![Page 15: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/15.jpg)
PREPROCESSING Preprocessing is very important for the
good performance of character segmentation.
Preprocessing consists of :
Resizing image
Rgb to gray
Noise removal ( we used median filter) .
![Page 16: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/16.jpg)
CHANGING THE TYPE
16
c=rgb2gray(b);
![Page 17: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/17.jpg)
EXTRACTING PLATE REGION
It is result of dilation after noise removal .
17
![Page 18: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/18.jpg)
18
![Page 19: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/19.jpg)
EDGE ENHANCEMENT
19
gdiff=imsubtract(d,e);
where ‘d’ is dilated and ‘e’ is eroded image
![Page 20: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/20.jpg)
MORPHOLOGICAL OPERATIONS
Filling (holes ) Thinning ( for character isolation) Finding connected components of area more
than 200 pixels
20
![Page 21: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/21.jpg)
CHARACTERS SEGMENTATION
21
PreprocessingHorizontal And
Vertical Segmentation
![Page 22: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/22.jpg)
HORIZONTAL & VERTICAL
SEGMENTATION Detect the horizontal lines in the image with a
pixel value of zero.
Converting the image into binary.
Use simple “for loops” to detect the portions of the image that had connected objects with a pixel value of ‘0’ and hence accordingly, the image was read.
22
![Page 23: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/23.jpg)
CHARACTERS RECOGNITION
23
Template Matching
Template matching is one of the most common and easy
classification method for recognizing the characters.
We used code for OCR
![Page 24: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/24.jpg)
TEMPLATE MATCHINGThe used templates are given in the figure below:
24
![Page 25: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/25.jpg)
OUTPUT Correlation is used to match the image from the
license plate and the template’s image. The following figure shows the numbers in a text file.
![Page 26: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/26.jpg)
26
![Page 27: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/27.jpg)
27
![Page 28: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/28.jpg)
EXPERIMENTAL RESULTS
28
![Page 29: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/29.jpg)
WHY CHOSE MATLAB FOR PROJECT
To move to a Real Time Environment.
For fast computation.
29
![Page 30: Number plate recognition system using matlab.](https://reader033.fdocuments.in/reader033/viewer/2022061608/58f9adfa760da3da068b9dd7/html5/thumbnails/30.jpg)
PROBLEMS WITH THE MATLAB SYSTEM
The problems that we faced during Localization were:
Algorithm did not work perfectly for more than one image.
Manual Changes were required in the code every time , manually we had to change parameters in code that was kind of hit and trial method.
30