Ijert Ijert: Vehicle License Plate Detection From Video Using Edge Detection and Morphological Operators
Ijert Ijert: Vehicle License Plate Detection From Video Using Edge Detection and Morphological Operators
ISSN: 2278-0181
Vol. 1 Issue 9, November- 2012
Vehicle License Plate Detection From Video Using Edge Detection And
Morphological Operators
Abstract - Road discipline is must due to growing components that are useful in representation and
number of vehicles and traffic violators on roads. In description of the object shape. It is mathematical in the
order to enhance discipline upon roads, this paper sense that analysis is based upon set theory, topology,
describes an instant and real time mobile vehicle lattice algebra, function etc.
license plate recognition system in an open
environment. License plate recognition system plays 2. Present Work
a major role in monitoring traffic rules and
maintaining law enforcement on public roads. Using The central idea of this paper is to detect
a fixed camera installed at red lights, toll plaza, vehicle number plate from video. The proposed system
border crossing, and petrol station and in parking has four modules: In first module, camera captures
areas, system capture the videos of the vehicles. video of the vehicle. In second module, video get
Using canny edge detection algorithm and converted into frames by using MATLAB operations.
morphological operators, system detects vehicle In third module, frames are converted into images.
RRTT
number plate. Experiment shows that system can Finally, in last module by using canny edge detection
effectively capture the vehicle video and detect the and morphological operator‟s vehicle number plate is
license plate whether it has been taken at day time, extracted. The main advantage of this technique is that
IIJJEE
night time or under complicated environments and from 10 sec (24fps) video, 240 frames or images are
show accuracy up to 90%. extracted. Therefore, algorithms are implemented upon
240 images one by one automatically by the system.
Keywords: LPR (License Plate Recognition), So, this work needs more computation as compared to
morphological operators, canny edge detector, video. previous work.
www.ijert.org 1
International Journal of Engineering Research & Technology (IJERT)
ISSN: 2278-0181
Vol. 1 Issue 9, November- 2012
After reading video file, convert it into frames. nearby objects and smoothing the boundaries contours
Frame rate taken is 24 fps. This is universally of the objects. In closing operation dilation followed
accepted film frame rate. There are 3 types of frames: by erosion with the same SE (Structuring element).
I-frame, P-frame, B-frame. I-frame is an intra-frame, This operation removes black holes on white objects.
coded completely by itself. P-frame depend on the last The process of erosion followed by dilation is called
P-frame or I- frame (whichever is closer) also called opening. It has the effect of eliminating small and thin
“Anchor frame”. Therefore, P-frame is constructed by points and smoothing boundaries/contours of the
predicting the difference between the current frame objects. This operation can erase white holes on dark
and closest preceding I-frame or P- frame. A B-frame objects or can remove small white objects in a dark
is constructed from the two closest I-frames or P- background. So, rectangular box whose size is same as
frames. The B-frame must be positioned between number plate area will be taken as a structuring
these I-frames or P-frames. Camera captures video of element to detect number plate area. An object will be
different vehicles continuously and later on extracts erased if the SE does not fit within it. Hence, only
video of single vehicle. MATLAB provides a function vehicle number plate is detected and remaining
to extract the frames from video and process them. vehicle is erased.
a) Dilation
Step 3
(A⊕ B) (x,y) = max {A(x-s, y-t) + B(s,t)}
Frame into image conversion
b) Erosion
Frames can be obtained from a video and
(A Ө B)(x,y) = min {A(x+s, y+t) – B(s,t)}
converted into images. To convert a video frames into
images; the MATLAB function „frame2im‟ is used.
c) Opening
The necessity of this conversion arises because in
order to detect vehicle number plate different A o B = (A Ө B) ⊕ B
algorithms must be applied, these algorithms can only
be applied upon images. One 10 sec video may d) Closing
www.ijert.org 2
International Journal of Engineering Research & Technology (IJERT)
ISSN: 2278-0181
Vol. 1 Issue 9, November- 2012
www.ijert.org 3
International Journal of Engineering Research & Technology (IJERT)
ISSN: 2278-0181
Vol. 1 Issue 9, November- 2012
Figure 1.4: Extracted number plates from video 4. Conclusion and Future work
Vehicle number plate This technique is very efficient in detecting
vehicle number plate from videos of the vehicles using
edge detector and morphological operators. It is highly
effective in security areas like border crossing, red
lights, toll plaza and petrol station etc. It shows number
plate extracted from all images one by one
automatically. Accuracy of showing vehicle number
plate from number of images in a single video is 85%
to 90%. While getting desired result of number plate
RRTT
from overall video is 99%. For example: among 240
images there is a single image present which shows the
correct and accurate result. Future work of this
Figure 1.5: Vehicle number plate
technique is to select single result automatically which
IIJJEE
www.ijert.org 4
International Journal of Engineering Research & Technology (IJERT)
ISSN: 2278-0181
Vol. 1 Issue 9, November- 2012
[12] Wing Teng Ho, Wooi Hen Yap, Yong Haur Tay,
“Learning based License Plate Detection on Edge Features”,
IEEE International Conference on Image Processing,
RRTT
Sept.2004, 900-903.
IIJJEE
www.ijert.org 5