Info
この質問は閉じられています。 編集または回答するには再度開いてください。
character recognition problems in matlab
1 回表示 (過去 30 日間)
古いコメントを表示
I am extracting and segmenting the characters from number plate.I am facing problems with character recognition. I wish to extract the number and symbol and do not consider about alphabets.I am getting one character as output out of eight. After running this code, i got answer is'1'. I am happy on providing the matlab file for location plate, segmentation and associated image files upon need. Can anyone help me to rectify this error?
function [strPlate] = Recognition(I)
I=imread('2222.jpg');
[ImgPlate] = LocationPlate(I);
[Objects,ImgChar]=Segmentation(ImgPlate);
N=struct('Image',{});
numbers={'0','1','2','3','4','5','6','7','8','9','sign'};
N(1).Image=imresize(im2bw(uint8(imread('untitled0.bmp'))),[100 100]);
N(2).Image=imresize(im2bw(uint8(imread('untitled1.bmp'))),[100 100]);
N(3).Image=imresize(im2bw(uint8(imread('untitled2.bmp'))),[100 100]);
N(4).Image=imresize(im2bw(uint8(imread('untitled3.bmp'))),[100 100]);
N(5).Image=imresize(im2bw(uint8(imread('untitled4.bmp'))),[100 100]);
N(6).Image=imresize(im2bw(uint8(imread('untitled5.bmp'))),[100 100]);
N(7).Image=imresize(im2bw(uint8(imread('6.bmp'))),[100 100]);
N(8).Image=imresize(im2bw(uint8(imread('7.bmp'))),[100 100]);
N(9).Image=imresize(im2bw(uint8(imread('8.bmp'))),[100 100]);
N(10).Image=imresize(im2bw(uint8(imread('9.bmp'))),[100 100]);
N(11).Image=imresize(im2bw(uint8(imread('sign.jpg'))),[100 100]);
if Objects==8
strPlate=[];
for i=1:Objects
char=ImgChar(:,:,i);
if (i==2)||(i==3)||(i==4) || (i==5) || (i==6)||(i==7) ||(i==8)
list_corr=[];
for j=1:11
corr=corr2(N(j).Image,char);
list_corr=[list_corr corr];
end
f=max(list_corr);
maxcorr=find(list_corr==f);
strPlate=[strPlate numbers(maxcorr)];
end
end
end
end
0 件のコメント
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!