code for detecting license plate
Afficher commentaires plus anciens
here's my code so far... i want to get the coordinate of the lp then crop the lp...
[filename,pathname]=uigetfile('*.jpeg;*.png;*.jpg;*.tif','Choose Image : ');
g= imread([pathname,filename]);
g=imresize(g,[400 NaN]);
handles.g=g;
guidata(hObject,handles); axes(handles.axes1);
imshow(g);
gray= rgb2gray(g);

axes(handles.axes2);
imshow(gray);
adjust= imadjust(gray,[0.3,0.6],[]);
axes(handles.axes3);
imshow(adjust);
filter= medfilt2(adjust);
axes(handles.axes4);
imshow(filter);
sobel= edge(filter,'sobel',0.30,'both');
axes(handles.axes5);
imshow(sobel);
se= [1;1;1];
erode= imerode(sobel,se);
axes(handles.axes6);
imshow(erode);
sa= strel('disk',11);
H= imclose(erode,sa);
axes(handles.axes7);
imshow(H);
F= bwareaopen(H,1000);
axes(handles.axes8);
imshow(F);
thanks in advance
Réponses (0)
Catégories
En savoir plus sur Manage Products dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!