How to localization the vehicle plate?

1 view (last 30 days)
farhat
farhat on 4 Aug 2013
Edited: Shraddha on 25 Mar 2014
This code is not powerfull to locaization the plate of the vehicle.
I want to do character recognition from the vehicle plate. But the first step ( To Localize the plate is error)..
The cropped image is not the plate, but the another part of the image.
Here is the code :
I = imread('DSC_0512.JPG');
r = I(:,:,1); %red plane
g = I(:,:,2); %green plane
b = I(:,:,3); %blue plane
BW = (r >= 230) & (r <= 260) & (g >= 160) & (g <= 240) & (b >= 160) & (b <= 240);
s = regionprops(BW, 'Area', 'BoundingBox');
[HH, ii] = sort([s.Area], 'descend');
out = imcrop(I, s(ii(1)).BoundingBox);
imshow(out);
How to solve it???
  1 Comment
Shraddha
Shraddha on 25 Mar 2014
Edited: Shraddha on 25 Mar 2014
please give sollution for this code. thanking you.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!