code for detecting license plate

6 visualizaciones (últimos 30 días)
andry jonathan
andry jonathan el 29 de Abr. de 2015
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

Respuestas (0)

Categorías

Más información sobre Manage Products en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by