SlideShare a Scribd company logo
1 of 40
LICENSE PLATE RECOGNITION SYSTEM
USING
MATLAB AND OPENCV
Group Members

Asiya Zafar
Iqra Farhat
Hira Batool Rizvi

Project Supervisor

Dr. Fawad Ahmed

Department of Electrical Engineering
HITEC University Taxila Cantt.
BASIC MOTIVATION
With an everyday increase in the number of cars on our
roads and highways, we are facing numerous problems, for
example:


Identification of stolen cars



Smuggling of Cars



Invalid license plates



Usage of cars in terrorist attacks/illegal activities

2
AIM
To address these issues, we intend to develop a
prototype system in MATLAB and OpenCV which
can perform license plate recognition (LPR).

3
WORKFLOW


Process Digital Images of
existing/modified algorithms.

License

Plates

using



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 and
4
OpenCV is also used for localization.
BASIC MODULES OF THE SYSTEM


License Plate Localization
Locating the license plate in an image.



Character Segmentation
Locates the alpha numeric characters on a license
plate.



Optical Character Recognition (OCR)
Translates the segmented characters into text entries.
5
Block Diagram

6
Start
Localization

Characters And Numbers Segmentation
Feature Extraction Of Segmented
Image
Recognize The Extracted Features

Show The License Plate
End

7
LICENSE PLATE LOCALIZATION

Edge Detection

Morphological
Operations
Extracting The
Plate Region

8
Flow Chart of Localization in
Matlab

9
Start
Load Image From File
Convert Image Into Grayscale
Filter To Detect Edges In The Image
Morphological Operations Are Applied On The Image
Find The Connected Objects In The Image
Determine The Rectangle In The Connected Objects
Compare The Size With The Threshold Value
Determine the Coordinates Of Rectangle Using Coordinate Geometry
Retrieve The Rectangle From The Image Using The Respective Coordinates
Show The License Plate
End

10
LOAD THE IMAGE FROM FILE

Img=imread(‘filename’)

11
CROPPING AN IMAGE
img=imcrop (img,[ymins ymins Wnew Hnew])

12
CHANGING THE TYPE

f1=rgb2gray(img);

13
EDGE DETECTION

f2=edge(f1,'sobel');

14
MORPHOLOGICAL OPERATIONS

se=strel('rectangle',[15 17]);
se=strel(‘disk',20);
img=imfill(img,'holes');
img=imdilate(img,se);
d1-imopen(img,se);

15
EXTRACTING PLATE REGION
Labeling and detecting the rectangle with the set

threshold, the threshold was determined by the distance
between the car and the camera.

LP=imcrop(lp1,[xmin ymin ow oh])

16
CHARACTERS SEGMENTATION

Preprocessing

Horizontal And
Vertical Segmentation

17
PREPROCESSING
Preprocessing is very important for the good
performance of character segmentation.
Preprocessing consists of :


Determination of the image type.



Mode conversion.



Clearing objects less than a threshold value.
18
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.
19
CHARACTERS RECOGNITION
Template Matching

Template matching is one of the most
common and easy classification method
for recognizing the characters.
20
TEMPLATE MATCHING
The used templates are given in the figure below:

21
CONTI….
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 files.

22
EXPERIMENTAL RESULTS

23
24
WHY CHOSE OPENCV FOR PROJECT


To move to a Real Time Environment.



The problem of manual editing of Localization was
even fixed in OpenCV and it worked well for cars at
varying distances.

25
WHAT IS OPENCV


OpenCV is an open source computer vision library.



It is a collection of C functions and a few C++ classes that can
be used to implement some popular Image Processing and
Computer Vision algorithms.



OpenCV has cross-platform means It can implemented on
multiple computer platforms.



It runs on Windows and Linux. Its mainly focuses towards
real-time image processing.
26
Flow Chart of Localization in
OpenCV

27
Start
Load Image From File
Convert Image Into Grayscale

Convert Image Into Binary Image
Filter To Detect Edges In The Image
Morphological Operations Are Applied On The Image

Find The Contours In The Image
Detect The Rectangle In The Image
Retrieve The Rectangle From The Image Using The
Respective Coordinates
Show The License Plate Image
28

End
LOAD THE IMAGE FROM FILE

img=cvLoadImage (fileName);

29
CONVERT THE IMAGE INTO
GRAYSCALE IMAGE
cvCvtColor( src,dst, CV_RGB2GRAY );

30
CONVERT THE IMAGE INTO BINARY
IMAGE
cvThreshold(src, dst, threshold, maxValue,
CV_THRESH_BINARY);

31
EDGE DETECTION
cvCanny( binaryImage ,edgImage,50, 255,3)
.

32
MORPHOLOGICAL OPERATIONS
cvDilate( edgImage ,dImage,NULL,1);

33
FIND THE CONTOUR IN THE
IMAGE


cvFindContours(dImage, storage1, &contour, sizeof(CvCont
our), mode, CV_CHAIN_APPROX_SIMPLE, cvPoint(0,0));

cvDrawContours(contourImg, contour, CV_RGB(255,255,255),
CV_RGB(0, 0, 0),2,2, 8,cvPoint(0,0));


cvDrawContours(contourImg, contour, CV_RGB(255,255,25
5), CV_RGB(0, 0, 0),2,CV_FILLED, 8,cvPoint(0,0));

34
DETECT RECTANGLE
drawSquares( img, findSquares4( img, storage ) );

35
EXTRACTING PLATE REGION

36
RESULTS

37
PROBLEMS WITH THE MATLAB
SYSTEM
The problems that we faced during Localization were:


Issues of time management



Manual Changes in the code every time there is a
change in the orientation of the camera

38
PROBLEMS WITH THE OPENCV
SYSTEM
The problem that we faced during Localization was


On some Cars the morphological operations used in
this algorithm are insufficient to remove noise therefore
it is difficult to extract the license plate.

39
40

More Related Content

What's hot

AUTOMATIC LICENSE PLATE RECOGNITION SYSTEM FOR INDIAN VEHICLE IDENTIFICATION ...
AUTOMATIC LICENSE PLATE RECOGNITION SYSTEM FOR INDIAN VEHICLE IDENTIFICATION ...AUTOMATIC LICENSE PLATE RECOGNITION SYSTEM FOR INDIAN VEHICLE IDENTIFICATION ...
AUTOMATIC LICENSE PLATE RECOGNITION SYSTEM FOR INDIAN VEHICLE IDENTIFICATION ...Kuntal Bhowmick
 
Vehicle number plate recognition using matlab
Vehicle number plate recognition using matlabVehicle number plate recognition using matlab
Vehicle number plate recognition using matlabKongara Sudharshan
 
car number plate detection using matlab image & video processing
car number plate detection using matlab image & video processingcar number plate detection using matlab image & video processing
car number plate detection using matlab image & video processingKesava Korukonda
 
Automatic Number Plate Recognition(ANPR) System Project
Automatic Number Plate Recognition(ANPR) System  Project Automatic Number Plate Recognition(ANPR) System  Project
Automatic Number Plate Recognition(ANPR) System Project Gulraiz Javaid
 
Vehicle registration plate recognition system
Vehicle registration plate recognition systemVehicle registration plate recognition system
Vehicle registration plate recognition systemshailendra92
 
Automatic no. plate recognition
Automatic no. plate recognitionAutomatic no. plate recognition
Automatic no. plate recognitionAnjali Mehra
 
Traffic sign detection
Traffic sign detectionTraffic sign detection
Traffic sign detectionAvijit Rai
 
Automatic number-plate-recognition
Automatic number-plate-recognitionAutomatic number-plate-recognition
Automatic number-plate-recognitionDevang Tailor
 
Automatic Car Number Plate Detection and Recognition using MATLAB
Automatic Car Number Plate Detection and Recognition using MATLABAutomatic Car Number Plate Detection and Recognition using MATLAB
Automatic Car Number Plate Detection and Recognition using MATLABHimanshiSingh71
 
Automated Number Plate Recognition
Automated Number Plate RecognitionAutomated Number Plate Recognition
Automated Number Plate RecognitionShwetank Sharma
 
automatic number plate recognition
automatic number plate recognitionautomatic number plate recognition
automatic number plate recognitionSairam Taduvai
 
Traffic sign recognition
Traffic sign recognitionTraffic sign recognition
Traffic sign recognitionAKR Education
 
License plate recognition
License plate recognitionLicense plate recognition
License plate recognitionslmnsvn
 
Vehicle counting for traffic management
Vehicle counting for traffic management Vehicle counting for traffic management
Vehicle counting for traffic management ADEEBANADEEM
 
Recognition and enhancement of traffic sign for computer generated images
Recognition and enhancement of traffic sign for computer generated imagesRecognition and enhancement of traffic sign for computer generated images
Recognition and enhancement of traffic sign for computer generated imagesShailesh kumar
 
Interpixel redundancy
Interpixel redundancyInterpixel redundancy
Interpixel redundancyNaveen Kumar
 
Face detection and recognition
Face detection and recognitionFace detection and recognition
Face detection and recognitionPankaj Thakur
 

What's hot (20)

AUTOMATIC LICENSE PLATE RECOGNITION SYSTEM FOR INDIAN VEHICLE IDENTIFICATION ...
AUTOMATIC LICENSE PLATE RECOGNITION SYSTEM FOR INDIAN VEHICLE IDENTIFICATION ...AUTOMATIC LICENSE PLATE RECOGNITION SYSTEM FOR INDIAN VEHICLE IDENTIFICATION ...
AUTOMATIC LICENSE PLATE RECOGNITION SYSTEM FOR INDIAN VEHICLE IDENTIFICATION ...
 
Vehicle number plate recognition using matlab
Vehicle number plate recognition using matlabVehicle number plate recognition using matlab
Vehicle number plate recognition using matlab
 
car number plate detection using matlab image & video processing
car number plate detection using matlab image & video processingcar number plate detection using matlab image & video processing
car number plate detection using matlab image & video processing
 
Automatic Number Plate Recognition(ANPR) System Project
Automatic Number Plate Recognition(ANPR) System  Project Automatic Number Plate Recognition(ANPR) System  Project
Automatic Number Plate Recognition(ANPR) System Project
 
License Plate recognition
License Plate recognitionLicense Plate recognition
License Plate recognition
 
Vehicle registration plate recognition system
Vehicle registration plate recognition systemVehicle registration plate recognition system
Vehicle registration plate recognition system
 
Automatic no. plate recognition
Automatic no. plate recognitionAutomatic no. plate recognition
Automatic no. plate recognition
 
Traffic sign detection
Traffic sign detectionTraffic sign detection
Traffic sign detection
 
Automatic number-plate-recognition
Automatic number-plate-recognitionAutomatic number-plate-recognition
Automatic number-plate-recognition
 
Automatic Car Number Plate Detection and Recognition using MATLAB
Automatic Car Number Plate Detection and Recognition using MATLABAutomatic Car Number Plate Detection and Recognition using MATLAB
Automatic Car Number Plate Detection and Recognition using MATLAB
 
Automated Number Plate Recognition
Automated Number Plate RecognitionAutomated Number Plate Recognition
Automated Number Plate Recognition
 
automatic number plate recognition
automatic number plate recognitionautomatic number plate recognition
automatic number plate recognition
 
Lpr2003
Lpr2003Lpr2003
Lpr2003
 
Traffic sign recognition
Traffic sign recognitionTraffic sign recognition
Traffic sign recognition
 
License plate recognition
License plate recognitionLicense plate recognition
License plate recognition
 
Vehicle counting for traffic management
Vehicle counting for traffic management Vehicle counting for traffic management
Vehicle counting for traffic management
 
Recognition and enhancement of traffic sign for computer generated images
Recognition and enhancement of traffic sign for computer generated imagesRecognition and enhancement of traffic sign for computer generated images
Recognition and enhancement of traffic sign for computer generated images
 
Interpixel redundancy
Interpixel redundancyInterpixel redundancy
Interpixel redundancy
 
Face detection and recognition
Face detection and recognitionFace detection and recognition
Face detection and recognition
 
Computer Vision Introduction
Computer Vision IntroductionComputer Vision Introduction
Computer Vision Introduction
 

Similar to License Plate Recognition System

426 lecture 4: AR Developer Tools
426 lecture 4: AR Developer Tools426 lecture 4: AR Developer Tools
426 lecture 4: AR Developer ToolsMark Billinghurst
 
COSC 426 Lect. 3 -AR Developer Tools
COSC 426 Lect. 3 -AR Developer ToolsCOSC 426 Lect. 3 -AR Developer Tools
COSC 426 Lect. 3 -AR Developer ToolsMark Billinghurst
 
20110220 computer vision_eruhimov_lecture02
20110220 computer vision_eruhimov_lecture0220110220 computer vision_eruhimov_lecture02
20110220 computer vision_eruhimov_lecture02Computer Science Club
 
Computer graphics practical(jainam)
Computer graphics practical(jainam)Computer graphics practical(jainam)
Computer graphics practical(jainam)JAINAM KAPADIYA
 
Android based application for graph analysis final report
Android based application for graph analysis final reportAndroid based application for graph analysis final report
Android based application for graph analysis final reportPallab Sarkar
 
Keynote (Mike Muller) - Is There Anything New in Heterogeneous Computing - by...
Keynote (Mike Muller) - Is There Anything New in Heterogeneous Computing - by...Keynote (Mike Muller) - Is There Anything New in Heterogeneous Computing - by...
Keynote (Mike Muller) - Is There Anything New in Heterogeneous Computing - by...AMD Developer Central
 
Circles graphic
Circles graphicCircles graphic
Circles graphicalldesign
 
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD Editor
 
Open Standards for ADAS: Andrew Richards, Codeplay, at AutoSens 2016
Open Standards for ADAS: Andrew Richards, Codeplay, at AutoSens 2016Open Standards for ADAS: Andrew Richards, Codeplay, at AutoSens 2016
Open Standards for ADAS: Andrew Richards, Codeplay, at AutoSens 2016Andrew Richards
 
Computer graphics
Computer graphicsComputer graphics
Computer graphicsamitsarda3
 
openGL basics for sample program (1).ppt
openGL basics for sample program (1).pptopenGL basics for sample program (1).ppt
openGL basics for sample program (1).pptHIMANKMISHRA2
 
openGL basics for sample program.ppt
openGL basics for sample program.pptopenGL basics for sample program.ppt
openGL basics for sample program.pptHIMANKMISHRA2
 
Vehicle license plate recognition
Vehicle license plate recognitionVehicle license plate recognition
Vehicle license plate recognitionEng Ansam Hadi
 
Build Your Own 3D Scanner: 3D Scanning with Structured Lighting
Build Your Own 3D Scanner: 3D Scanning with Structured LightingBuild Your Own 3D Scanner: 3D Scanning with Structured Lighting
Build Your Own 3D Scanner: 3D Scanning with Structured LightingDouglas Lanman
 
Computer Graphics Practical
Computer Graphics PracticalComputer Graphics Practical
Computer Graphics PracticalNeha Sharma
 

Similar to License Plate Recognition System (20)

426 lecture 4: AR Developer Tools
426 lecture 4: AR Developer Tools426 lecture 4: AR Developer Tools
426 lecture 4: AR Developer Tools
 
COSC 426 Lect. 3 -AR Developer Tools
COSC 426 Lect. 3 -AR Developer ToolsCOSC 426 Lect. 3 -AR Developer Tools
COSC 426 Lect. 3 -AR Developer Tools
 
20110220 computer vision_eruhimov_lecture02
20110220 computer vision_eruhimov_lecture0220110220 computer vision_eruhimov_lecture02
20110220 computer vision_eruhimov_lecture02
 
Computer graphics practical(jainam)
Computer graphics practical(jainam)Computer graphics practical(jainam)
Computer graphics practical(jainam)
 
Android based application for graph analysis final report
Android based application for graph analysis final reportAndroid based application for graph analysis final report
Android based application for graph analysis final report
 
Keynote (Mike Muller) - Is There Anything New in Heterogeneous Computing - by...
Keynote (Mike Muller) - Is There Anything New in Heterogeneous Computing - by...Keynote (Mike Muller) - Is There Anything New in Heterogeneous Computing - by...
Keynote (Mike Muller) - Is There Anything New in Heterogeneous Computing - by...
 
Circles graphic
Circles graphicCircles graphic
Circles graphic
 
iOS OpenGL
iOS OpenGLiOS OpenGL
iOS OpenGL
 
Introduction to 2D/3D Graphics
Introduction to 2D/3D GraphicsIntroduction to 2D/3D Graphics
Introduction to 2D/3D Graphics
 
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
 
Graphics in C++
Graphics in C++Graphics in C++
Graphics in C++
 
Open Standards for ADAS: Andrew Richards, Codeplay, at AutoSens 2016
Open Standards for ADAS: Andrew Richards, Codeplay, at AutoSens 2016Open Standards for ADAS: Andrew Richards, Codeplay, at AutoSens 2016
Open Standards for ADAS: Andrew Richards, Codeplay, at AutoSens 2016
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
 
Drone ppt
Drone pptDrone ppt
Drone ppt
 
openGL basics for sample program (1).ppt
openGL basics for sample program (1).pptopenGL basics for sample program (1).ppt
openGL basics for sample program (1).ppt
 
openGL basics for sample program.ppt
openGL basics for sample program.pptopenGL basics for sample program.ppt
openGL basics for sample program.ppt
 
Vehicle license plate recognition
Vehicle license plate recognitionVehicle license plate recognition
Vehicle license plate recognition
 
Build Your Own 3D Scanner: 3D Scanning with Structured Lighting
Build Your Own 3D Scanner: 3D Scanning with Structured LightingBuild Your Own 3D Scanner: 3D Scanning with Structured Lighting
Build Your Own 3D Scanner: 3D Scanning with Structured Lighting
 
Ijetr011814
Ijetr011814Ijetr011814
Ijetr011814
 
Computer Graphics Practical
Computer Graphics PracticalComputer Graphics Practical
Computer Graphics Practical
 

More from Hira Rizvi

More from Hira Rizvi (13)

Paper 2
Paper 2Paper 2
Paper 2
 
Solution-Paper 1
Solution-Paper 1 Solution-Paper 1
Solution-Paper 1
 
9702 w11 ms_23
9702 w11 ms_239702 w11 ms_23
9702 w11 ms_23
 
9702 w11 ms_22
9702 w11 ms_229702 w11 ms_22
9702 w11 ms_22
 
9702 w11 ms_21
9702 w11 ms_219702 w11 ms_21
9702 w11 ms_21
 
9702 w11 ms_12
9702 w11 ms_129702 w11 ms_12
9702 w11 ms_12
 
9702 w11 ms_13
9702 w11 ms_139702 w11 ms_13
9702 w11 ms_13
 
9702 w11 ms_11
9702 w11 ms_119702 w11 ms_11
9702 w11 ms_11
 
9702 w11 qp_23
9702 w11 qp_239702 w11 qp_23
9702 w11 qp_23
 
9702 w11 qp_22
9702 w11 qp_229702 w11 qp_22
9702 w11 qp_22
 
9702 w11 qp_21
9702 w11 qp_219702 w11 qp_21
9702 w11 qp_21
 
9702 w11 qp_12
9702 w11 qp_129702 w11 qp_12
9702 w11 qp_12
 
9702 w11 qp_11
9702 w11 qp_119702 w11 qp_11
9702 w11 qp_11
 

Recently uploaded

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 

Recently uploaded (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 

License Plate Recognition System

  • 1. LICENSE PLATE RECOGNITION SYSTEM USING MATLAB AND OPENCV Group Members Asiya Zafar Iqra Farhat Hira Batool Rizvi Project Supervisor Dr. Fawad Ahmed Department of Electrical Engineering HITEC University Taxila Cantt.
  • 2. BASIC MOTIVATION With an everyday increase in the number of cars on our roads and highways, we are facing numerous problems, for example:  Identification of stolen cars  Smuggling of Cars  Invalid license plates  Usage of cars in terrorist attacks/illegal activities 2
  • 3. AIM To address these issues, we intend to develop a prototype system in MATLAB and OpenCV which can perform license plate recognition (LPR). 3
  • 4. WORKFLOW  Process Digital Images of existing/modified algorithms. License Plates using  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 and 4 OpenCV is also used for localization.
  • 5. BASIC MODULES OF THE SYSTEM  License Plate Localization Locating the license plate in an image.  Character Segmentation Locates the alpha numeric characters on a license plate.  Optical Character Recognition (OCR) Translates the segmented characters into text entries. 5
  • 7. Start Localization Characters And Numbers Segmentation Feature Extraction Of Segmented Image Recognize The Extracted Features Show The License Plate End 7
  • 8. LICENSE PLATE LOCALIZATION Edge Detection Morphological Operations Extracting The Plate Region 8
  • 9. Flow Chart of Localization in Matlab 9
  • 10. Start Load Image From File Convert Image Into Grayscale Filter To Detect Edges In The Image Morphological Operations Are Applied On The Image Find The Connected Objects In The Image Determine The Rectangle In The Connected Objects Compare The Size With The Threshold Value Determine the Coordinates Of Rectangle Using Coordinate Geometry Retrieve The Rectangle From The Image Using The Respective Coordinates Show The License Plate End 10
  • 11. LOAD THE IMAGE FROM FILE Img=imread(‘filename’) 11
  • 12. CROPPING AN IMAGE img=imcrop (img,[ymins ymins Wnew Hnew]) 12
  • 16. EXTRACTING PLATE REGION Labeling and detecting the rectangle with the set threshold, the threshold was determined by the distance between the car and the camera. LP=imcrop(lp1,[xmin ymin ow oh]) 16
  • 18. PREPROCESSING Preprocessing is very important for the good performance of character segmentation. Preprocessing consists of :  Determination of the image type.  Mode conversion.  Clearing objects less than a threshold value. 18
  • 19. 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. 19
  • 20. CHARACTERS RECOGNITION Template Matching Template matching is one of the most common and easy classification method for recognizing the characters. 20
  • 21. TEMPLATE MATCHING The used templates are given in the figure below: 21
  • 22. CONTI…. 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 files. 22
  • 24. 24
  • 25. WHY CHOSE OPENCV FOR PROJECT  To move to a Real Time Environment.  The problem of manual editing of Localization was even fixed in OpenCV and it worked well for cars at varying distances. 25
  • 26. WHAT IS OPENCV  OpenCV is an open source computer vision library.  It is a collection of C functions and a few C++ classes that can be used to implement some popular Image Processing and Computer Vision algorithms.  OpenCV has cross-platform means It can implemented on multiple computer platforms.  It runs on Windows and Linux. Its mainly focuses towards real-time image processing. 26
  • 27. Flow Chart of Localization in OpenCV 27
  • 28. Start Load Image From File Convert Image Into Grayscale Convert Image Into Binary Image Filter To Detect Edges In The Image Morphological Operations Are Applied On The Image Find The Contours In The Image Detect The Rectangle In The Image Retrieve The Rectangle From The Image Using The Respective Coordinates Show The License Plate Image 28 End
  • 29. LOAD THE IMAGE FROM FILE img=cvLoadImage (fileName); 29
  • 30. CONVERT THE IMAGE INTO GRAYSCALE IMAGE cvCvtColor( src,dst, CV_RGB2GRAY ); 30
  • 31. CONVERT THE IMAGE INTO BINARY IMAGE cvThreshold(src, dst, threshold, maxValue, CV_THRESH_BINARY); 31
  • 32. EDGE DETECTION cvCanny( binaryImage ,edgImage,50, 255,3) . 32
  • 34. FIND THE CONTOUR IN THE IMAGE  cvFindContours(dImage, storage1, &contour, sizeof(CvCont our), mode, CV_CHAIN_APPROX_SIMPLE, cvPoint(0,0)); cvDrawContours(contourImg, contour, CV_RGB(255,255,255), CV_RGB(0, 0, 0),2,2, 8,cvPoint(0,0));  cvDrawContours(contourImg, contour, CV_RGB(255,255,25 5), CV_RGB(0, 0, 0),2,CV_FILLED, 8,cvPoint(0,0)); 34
  • 35. DETECT RECTANGLE drawSquares( img, findSquares4( img, storage ) ); 35
  • 38. PROBLEMS WITH THE MATLAB SYSTEM The problems that we faced during Localization were:  Issues of time management  Manual Changes in the code every time there is a change in the orientation of the camera 38
  • 39. PROBLEMS WITH THE OPENCV SYSTEM The problem that we faced during Localization was  On some Cars the morphological operations used in this algorithm are insufficient to remove noise therefore it is difficult to extract the license plate. 39
  • 40. 40