code for detecting license plate

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

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Manage Products 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by