View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Vehicle number plate recognition.

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

4.5 | 26 ratings Rate this file 147 Downloads (last 30 days) File Size: 879 KB File ID: #40426 Version: 1.0

Vehicle number plate recognition.


Rehan Qadir (view profile)


Extracts the characters from the vehicle's number plate image, using Templates matching.

| Watch this File

File Information

It is a vehicle's number/license plate recognition algorithm based on the very elementary technique of Templates matching. The algorithm takes an input image of the number plate (number plate should be dominant in the image) and after filtering the image, it performs region based operations. Then it tries to capture the characters regions in a processed binary image and with the aid of template matching outputs the string of number plate characters.

It's a very basic approach to the problem but still produces the appropriate results. Must check out READ_ME.txt file before going to the command prompt.

Your feedback will meant a lot to me. Your suggestions and criticism will be warmly welcomed!

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.13 (R2011b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (38)
02 Oct 2016 obstac

obstac (view profile)

Guys , i want to know what method template matching he using ? Thanks

16 Sep 2016 kishore s

can u help me how to change the argument and number in controlling function and guessthesix function

09 Aug 2016 Sai Yashwanth Reddy Kovvuri

Guys, I'm new to MATLAB and have zero basic's. Can anyone help me run the code? I have downloaded the file but don't know which file to open like newtemplates.mat or readletter.m or something else. Please help me guys

Comment only
25 Jul 2016 Ashwini Patil  
30 Apr 2016 shristy gupta

One can extend the number of letters extracted by changing the argument of find in controlling function and changing the number of arguments in guessthesix function.

Comment only
07 Apr 2016 maen khabbas  
04 Apr 2016 Deepak Pandit

how to match database

Comment only
29 Mar 2016 muks kool

Sir , i am trying to understand your code. where and how to change the code to obtain more characters from image.

08 Mar 2016 Abhishek Bhalani

Good job..

25 Feb 2016 prem

prem (view profile)

25 Feb 2016 prem

prem (view profile)

we need the program for extracting 10 characters from the, please send me the information about what are the changes to be made for your program

Comment only
10 Feb 2016 varsha turkar

Good work

10 Feb 2016 Ashish Tajne

vehicle detection and counting code in Matlab(IMAGE processing)

Comment only
30 Jan 2016 Ayaz Wazir

Tanks, Dear Rehan i am working on ANPR and i found your code as guide for my work

Comment only
01 Jan 2015 YIP

YIP (view profile)

May I know how to extract the image in the folder" Character images"?

Comment only
25 Sep 2014 kajal

kajal (view profile)

thanx sir your code give relevant information but please send me the code for two line number plate extraction

07 Jun 2014 Prashnna Gyawali

This is very great work and has really help me to understand the practical implementation of Image Processing. But I couldn't put other image for the templates in already given Templates file. Can anybody help me to replace or use some other image file in the templates????

04 Jun 2014 Rui LONG

very good! Thanks!

12 May 2014 Ahsin Ali Khan

Good Show of Image Processing and recognition...!!!....keep it up...!!!.what steps must be taken so as to take it on application level in daily life....???

22 Mar 2014 JITENDRA kumar

i have follwing doubts:-
1)How to extract number plate with two lines of numbers with total 10 digits?
2)how to make database "DB" in matlab.
3)if letter is stylish then what will be the changes

I appreciate u r doing very well.
please help me by clearing my doubts.

17 Mar 2014 SANJU

SANJU (view profile)

How to extract number plate with two lines of numbers with total 10 digits?

Comment only
10 Mar 2014 Nakk Mungofa

great stuff! could u plz help with seven characters ?

02 Feb 2014 jeitem

jeitem (view profile)

thanks a lot!!

22 Jan 2014 muthu

muthu (view profile)


17 Nov 2013 Rajat

Rajat (view profile)

Hi Rehan.. I would like to thank you for sharing your work.
I have a small query. How can i update this code for detecting 10 character?
Your early response will be highly appreciated.

04 Nov 2013 Malu Garcia  
02 Nov 2013 Tevfik Yigit  
29 Aug 2013 Nabil

Nabil (view profile) can I get the m files of this submission.plz help

09 Aug 2013 Gajendra  
09 Aug 2013 Gajendra  
23 Jul 2013 poonam kadian can I get the m files of this submission.plz help

Comment only
21 May 2013 Okky Eka


20 May 2013 Waqar Mirza Muhammad

It is very much useful for me. could you please help me?
have you any research paper or documentation relevant to this Application?

03 May 2013 leo

leo (view profile)

Hi.. According to you, what method is used to extracting number plate with best result?
I'm work with final project using threshold,but this method is not effective, it depends much on the bright or light outside... please, give me an advice. Thanks.

Comment only
21 Apr 2013 SIM

SIM (view profile)

Hi, may I ask you one question?

I would like to extract 7 character from the car plate. I have to determine the bounding box first. But based on your code, I don't know how to do it. Could you guide me?

07 Apr 2013 Caped Crusader  
06 Mar 2013 Rehan Qadir

Rehan Qadir (view profile)

Yes for sure. Alfian Abdul Halin

Comment only
05 Mar 2013 Alfian Abdul Halin

Hi! Will this work in MATLAB R2009b? Thanks! :D

Comment only

Contact us