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 number plate recognition (anpr)
Automatic number plate recognition (anpr)Automatic number plate recognition (anpr)
Automatic number plate recognition (anpr)AbhishekChoudhary464889
 
Number plate recognition system using matlab.
Number plate recognition system using matlab.Number plate recognition system using matlab.
Number plate recognition system using matlab.Namra Afzal
 
License Plate Recognition System using Python and OpenCV
License Plate Recognition System using Python and OpenCVLicense Plate Recognition System using Python and OpenCV
License Plate Recognition System using Python and OpenCVVishal Polley
 
Automatic Number Plate Recognition (ANPR)
Automatic Number Plate Recognition (ANPR)Automatic Number Plate Recognition (ANPR)
Automatic Number Plate Recognition (ANPR)Vidyut Singhania
 
Vehicle registration plate recognition system
Vehicle registration plate recognition systemVehicle registration plate recognition system
Vehicle registration plate recognition systemshailendra92
 
Vehicle Number Plate Recognition System
Vehicle Number Plate Recognition SystemVehicle Number Plate Recognition System
Vehicle Number Plate Recognition Systemprashantdahake
 
Vehicle detection through image processing
Vehicle detection through image processingVehicle detection through image processing
Vehicle detection through image processingGhazalpreet Kaur
 
An Introduction to Image Processing and Artificial Intelligence
An Introduction to Image Processing and Artificial IntelligenceAn Introduction to Image Processing and Artificial Intelligence
An Introduction to Image Processing and Artificial IntelligenceWasif Altaf
 
automatic number plate recognition
automatic number plate recognitionautomatic number plate recognition
automatic number plate recognitionSairam Taduvai
 
AUTOMATIC CAR LICENSE PLATE RECOGNITION USING VEDA
AUTOMATIC CAR LICENSE PLATE RECOGNITION USING VEDAAUTOMATIC CAR LICENSE PLATE RECOGNITION USING VEDA
AUTOMATIC CAR LICENSE PLATE RECOGNITION USING VEDAMuhammed Sahal c
 
Face detection presentation slide
Face detection  presentation slideFace detection  presentation slide
Face detection presentation slideSanjoy Dutta
 
Number plate recogition
Number plate recogitionNumber plate recogition
Number plate recogitionhetvi naik
 
Facial Emotion Recognition: A Deep Learning approach
Facial Emotion Recognition: A Deep Learning approachFacial Emotion Recognition: A Deep Learning approach
Facial Emotion Recognition: A Deep Learning approachAshwinRachha
 
Detection and recognition of face using neural network
Detection and recognition of face using neural networkDetection and recognition of face using neural network
Detection and recognition of face using neural networkSmriti Tikoo
 
Attendance Management System using Face Recognition
Attendance Management System using Face RecognitionAttendance Management System using Face Recognition
Attendance Management System using Face RecognitionNanditaDutta4
 
Machine learning in image processing
Machine learning in image processingMachine learning in image processing
Machine learning in image processingData Science Thailand
 
Vehicle number plate recognition using matlab
Vehicle number plate recognition using matlabVehicle number plate recognition using matlab
Vehicle number plate recognition using matlabKongara Sudharshan
 

What's hot (20)

Automatic number plate recognition (anpr)
Automatic number plate recognition (anpr)Automatic number plate recognition (anpr)
Automatic number plate recognition (anpr)
 
Number plate recognition system using matlab.
Number plate recognition system using matlab.Number plate recognition system using matlab.
Number plate recognition system using matlab.
 
License Plate Recognition System using Python and OpenCV
License Plate Recognition System using Python and OpenCVLicense Plate Recognition System using Python and OpenCV
License Plate Recognition System using Python and OpenCV
 
Automatic Number Plate Recognition (ANPR)
Automatic Number Plate Recognition (ANPR)Automatic Number Plate Recognition (ANPR)
Automatic Number Plate Recognition (ANPR)
 
Vehicle registration plate recognition system
Vehicle registration plate recognition systemVehicle registration plate recognition system
Vehicle registration plate recognition system
 
Vehicle Number Plate Recognition System
Vehicle Number Plate Recognition SystemVehicle Number Plate Recognition System
Vehicle Number Plate Recognition System
 
Vehicle detection through image processing
Vehicle detection through image processingVehicle detection through image processing
Vehicle detection through image processing
 
An Introduction to Image Processing and Artificial Intelligence
An Introduction to Image Processing and Artificial IntelligenceAn Introduction to Image Processing and Artificial Intelligence
An Introduction to Image Processing and Artificial Intelligence
 
automatic number plate recognition
automatic number plate recognitionautomatic number plate recognition
automatic number plate recognition
 
AUTOMATIC CAR LICENSE PLATE RECOGNITION USING VEDA
AUTOMATIC CAR LICENSE PLATE RECOGNITION USING VEDAAUTOMATIC CAR LICENSE PLATE RECOGNITION USING VEDA
AUTOMATIC CAR LICENSE PLATE RECOGNITION USING VEDA
 
Face detection presentation slide
Face detection  presentation slideFace detection  presentation slide
Face detection presentation slide
 
Number plate recogition
Number plate recogitionNumber plate recogition
Number plate recogition
 
Image recognition
Image recognitionImage recognition
Image recognition
 
Facial Emotion Recognition: A Deep Learning approach
Facial Emotion Recognition: A Deep Learning approachFacial Emotion Recognition: A Deep Learning approach
Facial Emotion Recognition: A Deep Learning approach
 
Detection and recognition of face using neural network
Detection and recognition of face using neural networkDetection and recognition of face using neural network
Detection and recognition of face using neural network
 
Attendance Management System using Face Recognition
Attendance Management System using Face RecognitionAttendance Management System using Face Recognition
Attendance Management System using Face Recognition
 
Machine learning in image processing
Machine learning in image processingMachine learning in image processing
Machine learning in image processing
 
Face recognisation system
Face recognisation systemFace recognisation system
Face recognisation system
 
Computer Vision
Computer VisionComputer Vision
Computer Vision
 
Vehicle number plate recognition using matlab
Vehicle number plate recognition using matlabVehicle number plate recognition using matlab
Vehicle number plate recognition using matlab
 

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
 
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
 
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
 

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
 
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
 
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
 

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

Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 

Recently uploaded (20)

Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 

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