MATLAB Answers

farhat
0

How to localization the vehicle plate?

Asked by farhat
on 4 Aug 2013
Latest activity Edited by 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

please give sollution for this code. thanking you.

Sign in to comment.

0 Answers