Character Recognition for License Plate Recognition Sysytem

HELLO. i have completed the process of character segmentation for my project License Plate Recognition System. I am having difficulty regarding character recognition. Kindly help accordingly. My program till char segmentation is written below. The figure im working on is: http://tinyurl.com/cl7arkp
PROGRAM:
imagen=imread('D:\images working\b.jpg');
figure(1)
imshow(imagen);
title('INPUT IMAGE WITH NOISE')
%%Convert to gray scale
if size(imagen,3)==3 % RGB image
imagen=rgb2gray(imagen);
end
%%Convert to binary image
threshold = graythresh(imagen);
imagen =~im2bw(imagen,threshold);
%%Remove all object containing fewer than 30 pixels
imagen = bwareaopen(imagen,30);
pause(1)
%%Show image binary image
figure(2)
imshow(~imagen);
title('INPUT IMAGE WITHOUT NOISE')
%%Label connected components
[L Ne]=bwlabel(imagen);
%%Measure properties of image regions
propied=regionprops(L,'BoundingBox');
hold on
%%Plot Bounding Box
for n=1:size(propied,1)
rectangle('Position',propied(n).BoundingBox,'EdgeColor','g','LineWidth',2)
end
hold off
pause (1)
%%Objects extraction
figure
for n=1:Ne
[r,c] = find(L==n);
n1=imagen(min(r):max(r),min(c):max(c));
imshow(~n1);
figure
pause(0.5)
end

4 件のコメント

Kevin
Kevin 2012 年 11 月 15 日
Thank You very much for sharing this code
Kevin
Kevin 2012 年 11 月 15 日
I tried this on my own photos and it extracts even non letters and non-numbers, how can I fix this?
Muddasir Aziz
Muddasir Aziz 2021 年 12 月 31 日
how can we print in text without ocr?
Amira BELAS
Amira BELAS 2022 年 7 月 13 日
please I have a problem with the segmentation of the characters I can't do it

サインインしてコメントする。

回答 (4 件)

mahjoub el attar
mahjoub el attar 2012 年 4 月 6 日

1 投票

Hello there are many topics on OCR. I use CORR2 built-in function, to process OCR, ANN is better. I red your code... Smart! You grabbed the right approach, but not complete. You need to work on a hundred image snapshots sample to find out many kinds of problem you can face regarding vehicles picture capture. Front, Back, Noise, illumination, Motion blur, background, etc...

1 件のコメント

puneet singh
puneet singh 2012 年 4 月 9 日
hello mahjoub. kindly check your e-mail. many thanks.

サインインしてコメントする。

safiya sulthana
safiya sulthana 2017 年 4 月 1 日

0 投票

thanks alot sir..cleared my worries..
Jeeva
Jeeva 2017 年 9 月 28 日

0 投票

Here is the free matlab source code for license plate recognition nased on ocr and correlation Matlab code for License plate recognition
Pushkar Kadam
Pushkar Kadam 2017 年 10 月 14 日

0 投票

Hi Puneet,
I am working on number plate identification code. I think I saw your video on YouTube recently. Good to know you finally implemented it successfully. Is there any possibility that you may provide me with the code. I am really stuck with the bounding box step.
Thanks.

質問済み:

2012 年 4 月 6 日

コメント済み:

2022 年 7 月 13 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by