After using Edging and morphological operation i got the following Image. how can i now extract the number plate region. image is attached.
21 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ayaz Wazir
le 15 Mar 2017
Commenté : Ayaz Wazir
le 15 Mar 2017
k=rgb2gray(imread('car3.jpg'));
%figure, imshow(k);
im=imresize(k, [400, NaN]);
%figure, imshow(im);
se=strel('disk',1);
im2=imerode(im,se);
%figure, imshow(im2);
im3=imdilate(im2,se);
%figure, imshow(im3);
im4=imsubtract(im3,im2);
%figure, imshow(im4);
I=graythresh(im4);
im5=im2bw(im4,I);
%figure, imshow(im5);
im6=imfill(im5,'holes');
figure, imshow(im6);
im7=bwareaopen(im6,100);
figure, imshow(im7);
0 commentaires
Réponse acceptée
Image Analyst
le 15 Mar 2017
Fill the regions with imfill(). Then call bwareafilt(bw, 1) to extract the largest blob. Erode if a bit to get inside the outer rectangular edge, and use it as a mask on the initial binary image.
4 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!