code for detecting license plate

7 views (last 30 days)
andry jonathan
andry jonathan on 29 Apr 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

Answers (0)

Categories

Find more on Manage Products in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!