How to localization the vehicle plate?

1 Ansicht (letzte 30 Tage)
farhat
farhat am 4 Aug. 2013
Bearbeitet: Shraddha am 25 Mär. 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 Kommentar
Shraddha
Shraddha am 25 Mär. 2014
Bearbeitet: Shraddha am 25 Mär. 2014
please give sollution for this code. thanking you.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by