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

Vehicle registration plate recognition system
Vehicle registration plate recognition systemVehicle registration plate recognition system
Vehicle registration plate recognition system
shailendra92
 
License plate recognition
License plate recognitionLicense plate recognition
License plate recognition
slmnsvn
 
Vehicle Number Plate Recognition System
Vehicle Number Plate Recognition SystemVehicle Number Plate Recognition System
Vehicle Number Plate Recognition System
prashantdahake
 
Automatic number plate recognition
Automatic number plate recognitionAutomatic number plate recognition
Automatic number plate recognition
Saifullah Malik
 
Automatic number plate recognition
Automatic number plate recognitionAutomatic number plate recognition
Automatic number plate recognition
Saifullah Malik
 

What's hot (20)

ANPR
ANPRANPR
ANPR
 
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
 
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
 
Lpr2003
Lpr2003Lpr2003
Lpr2003
 
License plate recognition
License plate recognitionLicense plate recognition
License plate recognition
 
Automatic number-plate-recognition
Automatic number-plate-recognitionAutomatic number-plate-recognition
Automatic number-plate-recognition
 
Vehicle Number Plate Recognition System
Vehicle Number Plate Recognition SystemVehicle Number Plate Recognition System
Vehicle Number Plate Recognition System
 
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
Automatic number plate recognitionAutomatic number plate recognition
Automatic number plate recognition
 
Automatic number plate recognition using matlab
Automatic number plate recognition using matlabAutomatic number plate recognition using matlab
Automatic number plate recognition using matlab
 
Number plate recognition system using matlab.
Number plate recognition system using matlab.Number plate recognition system using matlab.
Number plate recognition system using matlab.
 
Automatic number plate recognition
Automatic number plate recognitionAutomatic number plate recognition
Automatic number plate recognition
 
Automatic Number Plate Recognition
Automatic Number Plate RecognitionAutomatic Number Plate Recognition
Automatic Number Plate Recognition
 
automatic number plate recognition
automatic number plate recognitionautomatic number plate recognition
automatic number plate recognition
 
Automatic number plate recognition (anpr)
Automatic number plate recognition (anpr)Automatic number plate recognition (anpr)
Automatic number plate recognition (anpr)
 
Face detection and recognition
Face detection and recognitionFace detection and recognition
Face detection and recognition
 
Number plate recognition using matlab
Number plate recognition using matlabNumber plate recognition using matlab
Number plate recognition using matlab
 
Final year ppt
Final year pptFinal year ppt
Final year ppt
 
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
 

Similar to License Plate Recognition System

20110220 computer vision_eruhimov_lecture02
20110220 computer vision_eruhimov_lecture0220110220 computer vision_eruhimov_lecture02
20110220 computer vision_eruhimov_lecture02
Computer Science Club
 
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
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
amitsarda3
 

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

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Recently uploaded (20)

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
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
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
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
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 

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