How to localization the vehicle plate?
1 view (last 30 days)
Show older comments
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
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!