wal ie
7 Steps to Build
Automatic Number
Plate Recognition in
Pythona, 27 eu (20/7 ep ls trate Mantra Recszton ye Lote
4 Devi G article CF Fallow >
Machine Lerring Engineer efoto
arch 28,2021
open immense Reader
For Complete Video Explanation Enroll to the Couse on
Udemy
Image Processing and Object Detection is one of the areas,
of Data Science and has a wide variety of applications in the
industries in the current world. Many industries looking for
a Data Scientist with these skill
This article explains how to develop a number plate object,
detection model from scratch. We developed even
developed an API using Flask. However, in this article, we
explained how to train e customize object detection model
from scratch.
For building the license plate recognition we need data. For
that, we need to collect the vehicle images where the
number plate appears on it. Here is the sample data that |
used for building this project. You can also download it
from my google drive
out tria conputeonaicumbar caspian tapgple ng aneots naa canpaaatunberlcng
(20/7 ep ls trate Mantra Recszton ye Lote
Project Architecture:
Now, let's look into the project architecture of the number
plate recognition and OCR we follow to build
ae
In the above architecture, there are six modules. Labeling,
Training, Save Model, OCR and Pipeline, and RESTIul API
But this article limits to only the frst three modules. The
process is as follows. First, we will collect the image. Then
wwe have to label images for object detection of License
Plate or Number Plate using Image Annotation Tool which
s open-source software developed in python GUI. Then
after labeling the image we will work on date
preprocessing, build and train a deep learning object
sien aneots naa canpaaatunberlcng
(2077 Sep Bs Astra Number Pi Recon ne Lian
detection model (Inception Resnet V2) in TensorFlow 2.
Once we have done with the Object Detection model
training process, then using this model we will crop the
image which contains the license plate which is also callec
the region of interest (ROI), and pass the ROI to Optical
Character Recognition API Tesseract in Python
(PyTesseracti. In this module, we will extract text from
mages. Now, we will put it ll together and build a Pipeline
Deep Learning model. Inthe final module, we will learn to
create a web app project using FLASK Python. With that, we
are finally ready with our App
Step -1: Labeling
For building the license plate recognition we need data. For
that, we need to collect the vehicle images where the
number plate appears on it. Here is the sample data that |
Used for building this project. You can also download it
from my google drive. For label images, | used the
Labelimg image annotation tool. Download the labellmg
from GitHub and follow the instruction to install the
package. After that open, the GUI as give the instruction
sien os(20/7 ep ls trate Mantra Recszton ye Lote
and click on CreateRectBox and draw the rectangle box as
shown below and save the output in XML.
This is a manual process and you need to do it forall the
images. Be careful while doing labeling because the
ots naa canpaaatunberlcngsaucy, 13760 (07 abt rane Resa mbes
labeling process has a direct impact on the accuracy of the
model, Click here for a video tutorial
Step-2: Parsing Information from XML
Once you are done with the labeling process now we need,
to do some data preprocessing,
“ennoton
wfolder>d
“flenome> NL jpeg
path> [home /deviDesktop/ windows_projects;
giniose>nknown
Ssire>
“th 1920<;/ eth
‘height 1080
“depths dedopth>
<(size>
“segmented>O