SlideShare uma empresa Scribd logo
1 de 31
Automatic Number
Plate
Recognition(ANPR)
Cognizant Project Presentation
Project
Description
Project Design and Modelling
1. System Design
Framework
Python Libraries
 We are building a python software for optical character Recognition
of the license number plate using various Python libraries and
importing various packages such as OpenCV, Matplotlib, numpy,
imutils and Pytesseract for OCR(optical Character Recognition) of
Number plate from image clicked. Let us discuss complete process
step by step in this framework diagram shown above:
Analysis
Step-1 Image will be taken by the camera(CCTV) or normal range cameras
Step-2 Selected image will be imported in our Software for pre-processing of our
image and conversion of image into gray-scale for canny edge-detection
Step-3 We have installed OpenCV library for conversion of Coloured image to black
and White image.
Step-4 We installed OpenCV package. Opencv(cv2) package is main package which
we used in this project. This is image processing library.
Step-5 We have installed Imutils package. Imutils is a package used for modification
of images . In this we use this package for change size of image.
Step-6 We have installed Pytesseract library. Pytesseract is a python library used for
extracting text from image. This is an optical character recognition(OCR) tool for
python.
Step-7 We have installed Matplotlib Library. In matplotlib library we use a package name pyplot. This library is used for
plotting the images. % matplotlib inline is used for plot the image at same place.
Step-8 Image is read by the Imread() function and after reading the image we resize the image for further processing of
image.
Step-9 Then our selected image is converted to gray-scale using below function.
# RGB to Gray scale conversion
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
plot_image(gray,"Grayscale Conversion")
Step-10 Then we find canny edges in our gray-scale image and then find contours based on edges. Then we find
the top 30 contours from our image.
Step-11 Loop over our contours to find the best possible approximate contour of number plate
Step-12 Then Draw the selected contour on the original image.
Step-13 then we will use the Pytesseract Package to convert selected contour image into String.
Step-14 After fetching the number from number plate we store it in our MySQL database and also we have
inculcated the feature of exporting data to excel sheet.
Remember: Most important feature of my project is that I can export my fetched number plate data to
Government agencies for further investigation.
3.1 Context Diagram
Admin will take input of image clicked by the authorized personnel and our proposed algorithmic machine will process
the image and perform specific operations to fetch the number plate and store it in database. This image stored in database
can be further exported to excel sheet and can be handed over to the authorized Crime departments for further
investigations.
Fig: context diagram of ANPR (Automatic Number Plate Recognition)
3.2 DFD Level-1
Step-1 Admin will take input of image clicked by the authorized personnel and our proposed algorithmic machine will process the
image and perform specific operations to fetch the number plate and store it in database.
Step-2 Then image will be processed and number will be fetched and if the fetched number matches with the society database
then the gates will open
Else
User needs to register his vehicle to gain access to entry in society.
Step-3 Vehicle Authorization is complete and data is stored in database
3.3 Sequence diagram:
4. Proposed Methodology
For number plate recognition first of all templates from A-Z and 0-9 and add them into mat file. After image is read by our OCR technique
and image is converted to grey-scale. Presently the following aim is to find the threshold estimation of image. In the wake of finding T-
esteem change over that image into binary
Project
Implementation
Automatic Number Plate Recognition algorithm (Algorithm Design)
The ANPR system consists of following steps:-
I. Vehicle image capture.
II. Preprocessing.
III. Number plate extraction.
IV. Character segmentation.
V. Character recognition
Original Image
In this we define a function plot_image. This function will show the image with title withoutshowing
coordinates axis.
Resize function is used to change the size of image. This is defined in imutils library.
Grayscale and blur image
cvtColor function is used to convert the color of image. In this we convert original image to grayscale image. This function is also defined in
opencv library.
 BilateralFilter method is used to blur the image. This remove the noise from image/
 A bilateral filter is used for smoothening images and reducing noise, while preservingedges
 BilateralFilter is highly effective in noise removal while keeping edges sharp. But theoperation is slower compared
to other filters
Canny Edge Detection
OpenCV puts all the above in single function, cv.canny() . This method is used for detection of edges of car. After appling this
function image will be seen like a drawing on black paperwith white color.
• Contours can be explained simply as a curve joining all the continuous points (along the boundary), having same color or
intensity. The contours are a useful tool for shape analysis and object detection and recognition.
• In OpenCV, finding contours is like finding white object from black background. So remember, object to be found should be
white and background should be black
Find Contours
 There are three arguments in cv2.findContours() function, first one is source image, second is contour retrieval
mode, third is contour approximation method. And it outputs the image, contours and hierarchy. contours is a
Python list of all the contours in the image. Each individual contour is a Numpy array of (x,y) coordinates of
boundary points of the object.
Draw Contours
Sort Contours
 Now we are sorting the contours in reverse order areawise .
 Cv2.contourArea method is used to find area of contours.
 We took first 30 countous out of 981 countous according to their area.
 This will decrease the time of ouput.
Finding number plate
 This is the main part of our project. Main logic is implemented in this loop.We
loop through all the contours and find perimeter of all contours using arcLength()
method. ApproxPolyDP method is used to detect the shape according to our
requirements
o Pytesseract library is used to convert image text to string .
There is a function name image_to_string defined in this
library. This will convert our image text to string.
o And then using print method we print this on screen
o Python-tesseract is an optical character recognition (OCR)
tool for python. That is, it will recognize and “read” the text
embedded in images.
Character segmentation:
Character segmentation is an operation that seeks to decompose an image of a sequence of
characters into subimages of individual symbols. It is one of the decision processes in a system for
optical character recognition (OCR).
Optical Character Recognition(OCR) is a process which allows us to convert text contained in
images into editable documents. OCR can extract text from a scanned document or an image of a
document; really, any image with text in it.
Number is: TN 48 AD 6592
Database Connectivity: MySQL
Database Connectivity and Table
Table
Excel sheet Export Feature
------------------ End of code ----------------
Conclusion and Future Scope:
This was great experience to make this project. We learned a lot from this project . This project can be
extended to further level. Logic applied in this project can be make accurateusing machine learning.
As a future work the developed system would be concentrated upon increasing the accuracy of text
localization and graphics removal in caption text-Images. It can be evaluated using various other available
image databases and using various other classifiers.
------------------ Thank You----------------

Mais conteúdo relacionado

Semelhante a 19BCS1815_PresentationAutomatic Number Plate Recognition(ANPR)P.pptx

IRJET- 3D Vision System using Calibrated Stereo Camera
IRJET- 3D Vision System using Calibrated Stereo CameraIRJET- 3D Vision System using Calibrated Stereo Camera
IRJET- 3D Vision System using Calibrated Stereo CameraIRJET Journal
 
Automated License Plate Recognition for Toll Booth Application
Automated License Plate Recognition for Toll Booth ApplicationAutomated License Plate Recognition for Toll Booth Application
Automated License Plate Recognition for Toll Booth ApplicationIJERA Editor
 
Performance Anaysis for Imaging System
Performance Anaysis for Imaging SystemPerformance Anaysis for Imaging System
Performance Anaysis for Imaging SystemVrushali Lanjewar
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image ProcessingAnkur Nanda
 
Tracking number plate from vehicle using
Tracking number plate from vehicle usingTracking number plate from vehicle using
Tracking number plate from vehicle usingijfcstjournal
 
Introduction to Computer graphics
Introduction to Computer graphicsIntroduction to Computer graphics
Introduction to Computer graphicsLOKESH KUMAR
 
Image processing
Image processingImage processing
Image processingkamal330
 
Coin recognition using matlab
Coin recognition using matlabCoin recognition using matlab
Coin recognition using matlabslmnsvn
 
Implementation of Computer Vision Applications using OpenCV in C++
Implementation of Computer Vision Applications using OpenCV in C++Implementation of Computer Vision Applications using OpenCV in C++
Implementation of Computer Vision Applications using OpenCV in C++IRJET Journal
 
Text Detection and Recognition in Natural Images
Text Detection and Recognition in Natural ImagesText Detection and Recognition in Natural Images
Text Detection and Recognition in Natural ImagesIRJET Journal
 
Writeup advanced lane_lines_project
Writeup advanced lane_lines_projectWriteup advanced lane_lines_project
Writeup advanced lane_lines_projectManish Jauhari
 
Image processing with matlab
Image processing with matlabImage processing with matlab
Image processing with matlabAman Gupta
 
IRJET- Designing of OCR Tool Box for Decoding Vehicle Number Plate using MATLAB
IRJET- Designing of OCR Tool Box for Decoding Vehicle Number Plate using MATLABIRJET- Designing of OCR Tool Box for Decoding Vehicle Number Plate using MATLAB
IRJET- Designing of OCR Tool Box for Decoding Vehicle Number Plate using MATLABIRJET Journal
 
Canny Edge Detection Algorithm on FPGA
Canny Edge Detection Algorithm on FPGA Canny Edge Detection Algorithm on FPGA
Canny Edge Detection Algorithm on FPGA IOSR Journals
 

Semelhante a 19BCS1815_PresentationAutomatic Number Plate Recognition(ANPR)P.pptx (20)

IRJET- 3D Vision System using Calibrated Stereo Camera
IRJET- 3D Vision System using Calibrated Stereo CameraIRJET- 3D Vision System using Calibrated Stereo Camera
IRJET- 3D Vision System using Calibrated Stereo Camera
 
Automated License Plate Recognition for Toll Booth Application
Automated License Plate Recognition for Toll Booth ApplicationAutomated License Plate Recognition for Toll Booth Application
Automated License Plate Recognition for Toll Booth Application
 
Performance Anaysis for Imaging System
Performance Anaysis for Imaging SystemPerformance Anaysis for Imaging System
Performance Anaysis for Imaging System
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
Tracking number plate from vehicle using
Tracking number plate from vehicle usingTracking number plate from vehicle using
Tracking number plate from vehicle using
 
Introduction to Computer graphics
Introduction to Computer graphicsIntroduction to Computer graphics
Introduction to Computer graphics
 
Image processing
Image processingImage processing
Image processing
 
Coin recognition using matlab
Coin recognition using matlabCoin recognition using matlab
Coin recognition using matlab
 
Implementation of Computer Vision Applications using OpenCV in C++
Implementation of Computer Vision Applications using OpenCV in C++Implementation of Computer Vision Applications using OpenCV in C++
Implementation of Computer Vision Applications using OpenCV in C++
 
UNIT-4.pdf
UNIT-4.pdfUNIT-4.pdf
UNIT-4.pdf
 
UNIT-4.pdf
UNIT-4.pdfUNIT-4.pdf
UNIT-4.pdf
 
UNIT-4.pptx
UNIT-4.pptxUNIT-4.pptx
UNIT-4.pptx
 
B018110915
B018110915B018110915
B018110915
 
mini prjt
mini prjtmini prjt
mini prjt
 
Text Detection and Recognition in Natural Images
Text Detection and Recognition in Natural ImagesText Detection and Recognition in Natural Images
Text Detection and Recognition in Natural Images
 
Writeup advanced lane_lines_project
Writeup advanced lane_lines_projectWriteup advanced lane_lines_project
Writeup advanced lane_lines_project
 
Image processing with matlab
Image processing with matlabImage processing with matlab
Image processing with matlab
 
IRJET- Designing of OCR Tool Box for Decoding Vehicle Number Plate using MATLAB
IRJET- Designing of OCR Tool Box for Decoding Vehicle Number Plate using MATLABIRJET- Designing of OCR Tool Box for Decoding Vehicle Number Plate using MATLAB
IRJET- Designing of OCR Tool Box for Decoding Vehicle Number Plate using MATLAB
 
Autonomous robot
Autonomous robotAutonomous robot
Autonomous robot
 
Canny Edge Detection Algorithm on FPGA
Canny Edge Detection Algorithm on FPGA Canny Edge Detection Algorithm on FPGA
Canny Edge Detection Algorithm on FPGA
 

Último

TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Crushers to screens in aggregate production
Crushers to screens in aggregate productionCrushers to screens in aggregate production
Crushers to screens in aggregate productionChinnuNinan
 
BSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptxBSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptxNiranjanYadav41
 
Internet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxInternet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxVelmuruganTECE
 
Autonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptAutonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptbibisarnayak0
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdfHafizMudaserAhmad
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Coursebim.edu.pl
 
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfCh10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfChristianCDAM
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solidnamansinghjarodiya
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONjhunlian
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...Erbil Polytechnic University
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 

Último (20)

TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Crushers to screens in aggregate production
Crushers to screens in aggregate productionCrushers to screens in aggregate production
Crushers to screens in aggregate production
 
BSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptxBSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptx
 
Internet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxInternet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptx
 
Autonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptAutonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.ppt
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Course
 
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfCh10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdf
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solid
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 

19BCS1815_PresentationAutomatic Number Plate Recognition(ANPR)P.pptx

  • 3. Project Design and Modelling 1. System Design Framework
  • 4. Python Libraries  We are building a python software for optical character Recognition of the license number plate using various Python libraries and importing various packages such as OpenCV, Matplotlib, numpy, imutils and Pytesseract for OCR(optical Character Recognition) of Number plate from image clicked. Let us discuss complete process step by step in this framework diagram shown above:
  • 5. Analysis Step-1 Image will be taken by the camera(CCTV) or normal range cameras Step-2 Selected image will be imported in our Software for pre-processing of our image and conversion of image into gray-scale for canny edge-detection Step-3 We have installed OpenCV library for conversion of Coloured image to black and White image. Step-4 We installed OpenCV package. Opencv(cv2) package is main package which we used in this project. This is image processing library. Step-5 We have installed Imutils package. Imutils is a package used for modification of images . In this we use this package for change size of image. Step-6 We have installed Pytesseract library. Pytesseract is a python library used for extracting text from image. This is an optical character recognition(OCR) tool for python.
  • 6. Step-7 We have installed Matplotlib Library. In matplotlib library we use a package name pyplot. This library is used for plotting the images. % matplotlib inline is used for plot the image at same place. Step-8 Image is read by the Imread() function and after reading the image we resize the image for further processing of image. Step-9 Then our selected image is converted to gray-scale using below function. # RGB to Gray scale conversion gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) plot_image(gray,"Grayscale Conversion")
  • 7. Step-10 Then we find canny edges in our gray-scale image and then find contours based on edges. Then we find the top 30 contours from our image. Step-11 Loop over our contours to find the best possible approximate contour of number plate Step-12 Then Draw the selected contour on the original image. Step-13 then we will use the Pytesseract Package to convert selected contour image into String. Step-14 After fetching the number from number plate we store it in our MySQL database and also we have inculcated the feature of exporting data to excel sheet. Remember: Most important feature of my project is that I can export my fetched number plate data to Government agencies for further investigation.
  • 8. 3.1 Context Diagram Admin will take input of image clicked by the authorized personnel and our proposed algorithmic machine will process the image and perform specific operations to fetch the number plate and store it in database. This image stored in database can be further exported to excel sheet and can be handed over to the authorized Crime departments for further investigations. Fig: context diagram of ANPR (Automatic Number Plate Recognition)
  • 9. 3.2 DFD Level-1 Step-1 Admin will take input of image clicked by the authorized personnel and our proposed algorithmic machine will process the image and perform specific operations to fetch the number plate and store it in database.
  • 10. Step-2 Then image will be processed and number will be fetched and if the fetched number matches with the society database then the gates will open Else User needs to register his vehicle to gain access to entry in society. Step-3 Vehicle Authorization is complete and data is stored in database 3.3 Sequence diagram:
  • 11. 4. Proposed Methodology For number plate recognition first of all templates from A-Z and 0-9 and add them into mat file. After image is read by our OCR technique and image is converted to grey-scale. Presently the following aim is to find the threshold estimation of image. In the wake of finding T- esteem change over that image into binary
  • 13. Automatic Number Plate Recognition algorithm (Algorithm Design) The ANPR system consists of following steps:- I. Vehicle image capture. II. Preprocessing. III. Number plate extraction. IV. Character segmentation. V. Character recognition
  • 14. Original Image In this we define a function plot_image. This function will show the image with title withoutshowing coordinates axis. Resize function is used to change the size of image. This is defined in imutils library.
  • 15. Grayscale and blur image cvtColor function is used to convert the color of image. In this we convert original image to grayscale image. This function is also defined in opencv library.
  • 16.  BilateralFilter method is used to blur the image. This remove the noise from image/  A bilateral filter is used for smoothening images and reducing noise, while preservingedges  BilateralFilter is highly effective in noise removal while keeping edges sharp. But theoperation is slower compared to other filters
  • 17.
  • 18. Canny Edge Detection OpenCV puts all the above in single function, cv.canny() . This method is used for detection of edges of car. After appling this function image will be seen like a drawing on black paperwith white color. • Contours can be explained simply as a curve joining all the continuous points (along the boundary), having same color or intensity. The contours are a useful tool for shape analysis and object detection and recognition. • In OpenCV, finding contours is like finding white object from black background. So remember, object to be found should be white and background should be black
  • 19. Find Contours  There are three arguments in cv2.findContours() function, first one is source image, second is contour retrieval mode, third is contour approximation method. And it outputs the image, contours and hierarchy. contours is a Python list of all the contours in the image. Each individual contour is a Numpy array of (x,y) coordinates of boundary points of the object.
  • 21. Sort Contours  Now we are sorting the contours in reverse order areawise .  Cv2.contourArea method is used to find area of contours.  We took first 30 countous out of 981 countous according to their area.  This will decrease the time of ouput.
  • 22.
  • 23. Finding number plate  This is the main part of our project. Main logic is implemented in this loop.We loop through all the contours and find perimeter of all contours using arcLength() method. ApproxPolyDP method is used to detect the shape according to our requirements
  • 24. o Pytesseract library is used to convert image text to string . There is a function name image_to_string defined in this library. This will convert our image text to string. o And then using print method we print this on screen o Python-tesseract is an optical character recognition (OCR) tool for python. That is, it will recognize and “read” the text embedded in images.
  • 25. Character segmentation: Character segmentation is an operation that seeks to decompose an image of a sequence of characters into subimages of individual symbols. It is one of the decision processes in a system for optical character recognition (OCR). Optical Character Recognition(OCR) is a process which allows us to convert text contained in images into editable documents. OCR can extract text from a scanned document or an image of a document; really, any image with text in it.
  • 26. Number is: TN 48 AD 6592 Database Connectivity: MySQL
  • 27.
  • 30. ------------------ End of code ----------------
  • 31. Conclusion and Future Scope: This was great experience to make this project. We learned a lot from this project . This project can be extended to further level. Logic applied in this project can be make accurateusing machine learning. As a future work the developed system would be concentrated upon increasing the accuracy of text localization and graphics removal in caption text-Images. It can be evaluated using various other available image databases and using various other classifiers. ------------------ Thank You----------------