File Exchange

image thumbnail

Vehicle number plate recognition.

version 1.0 (879 KB) by

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

4.46875
34 Ratings

301 Downloads

Updated

View License

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!
Enjoy!

Comments and Ratings (54)

Annu Patil

i have a problem , when i run this code error occured...please help me.

Undefined function or variable 'templates'.

Error in readLetter (line 6)
load(templates) % Loads the templates of characters in the memory.

Error in numberPlateExtraction (line 40)
letter=readLetter(N); % Reading the letter corresponding the binary image 'N'.

Mohd Naim

i have the same problems occur when i run the program.
fprintf(fid,'%s\n',noPlate); % to the text file, if executed a notepad file with the.
please advice

ANKIT JAISWAL

sir whenever I'm running the code I'm getting this error
error using fprintf
Invalid filename.

Error using fprintf
Invalid file identifier. Use fopen to generate a valid file identifier.

Error in numberPlateExtraction (line 52)
fprintf(fid,'%s\n',noPlate); % to the text file, if executed a notepad file with the

Rya

Rya (view profile)

plz clarify me one thing that for the purpose of image segmentation, if we use matlab function ( regionprops) then is this any algorithm? or just a function

zanyar rzgar

Yusran Said

ARANYA SHANA

what will be the changes for showing the output in excel sheet???????

Sai Manish

Can u place the entire code for 10 digit number plate by making the changes in it.
Please @ Rehan Qadir

Sai Manish

hello
where this code is working for number plate with only 6 digits then how about number plate with 10 digits
can u please help is in solving this...?

Rehan Qadir

Rehan Qadir (view profile)

  • 1 file
  • 301 downloads
  • 4.46875

Thank you all for downloading this code and appreciating. I have never anticipated such an overwhelming response for this work. I'm no longer active in MATLAB or Image Processing. I would like you all to contribute and expand this algorithm furthur.

Thank you once again.

Regards,
Rehan Qadir

Hindi - Mast hai bhai Faad
English - Thanks alot brother...for my Btech final year project

umar ilyas

You can change the setting in controlling(NR).m file.
Just need to follow the authors comment:
ind=find(Q==6); % Find indices from Q corresponding to frequency '6'.
% Since the number plates of cars in Karachi have six characters so
% find(Q==6) is used. If the code is to be implemented for some other plates
% the argument to the function 'find' has to be changed accordingly.
% Q is a row vector of frequency and W is the row vector of all the mid
% points of bins. Hist automatically selects the range of W from its input
% argument.

About code is valid only for 6 characters. But in India vehicles have 10 characters numbers for eg: TN32 BZ 7701
Can you please tell me how i should modify above code.
mail id: masal.vaishali18@gmail.com

About code is valid only for 6 characters. But in India vehicles have 10 characters numbers for eg: TN32 BZ 7701
Can you please tell me how i should modify above code.
mail id: masal.vaishali18@gmail.com

obstac

obstac (view profile)

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

kishore s

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

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

Ashwini Patil

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.

maen khabbas

how to match database

muks kool

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

Good job..

prem

prem (view profile)

prem

prem (view profile)

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

varsha turkar

Good work

Ashish Tajne

vehicle detection and counting code in Matlab(IMAGE processing)

Ayaz Wazir

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

YIP

YIP (view profile)

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

kajal

kajal (view profile)

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

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

Rui LONG

very good! Thanks!

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....???

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.

SANJU

SANJU (view profile)

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

Nakk Mungofa

great stuff! could u plz help with seven characters ?

jeitem

jeitem (view profile)

thanks a lot!!

muthu

muthu (view profile)

GOOD WORK. THANKS

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.

Malu Garcia

Tevfik Yigit

Nabil

Nabil (view profile)

hi....how can I get the m files of this submission.plz help

Gajendra

Gajendra

poonam kadian

hi....how can I get the m files of this submission.plz help

Okky Eka

good

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

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.

SIM

SIM (view profile)

Hi, may I ask you one question?
about>>

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?

Rehan Qadir

Rehan Qadir (view profile)

  • 1 file
  • 301 downloads
  • 4.46875

Yes for sure. Alfian Abdul Halin

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

MATLAB Release
MATLAB 7.13 (R2011b)

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

» Watch video

Win prizes and improve your MATLAB skills

Play today