資源簡(jiǎn)介
這是一個(gè)用matlab實(shí)現(xiàn)的RBF神經(jīng)網(wǎng)絡(luò)手寫數(shù)字識(shí)別算法.此算法加入相應(yīng)的手寫數(shù)字圖后可以運(yùn)行

代碼片段和文件信息
%---------------------------------------------%
% ??????%
%??????????工作室提供代做matlab仿真 ??????%
% ??????%
%??詳情請(qǐng)?jiān)L問(wèn):http://cn.mikecrm.com/DeOOXFc??%
% ??????%
%---------------------------------------------%
%主程序
%可以打開記事本result.txt查看網(wǎng)絡(luò)訓(xùn)練的日期和時(shí)間:
%樣本數(shù)據(jù)的輸入
clear;
file=fopen(‘result.txt‘‘a(chǎn)+‘);
fprintf(file‘\n手寫體數(shù)字識(shí)別(RBF神經(jīng)網(wǎng)絡(luò):)%s‘?datestr(date));
i=0;
??for?j=0:9
????array=[0;0;0;0;0;0;0;0;0;0];
????array(j+11)=1;
????str1=int2str(j);
????for?k=0:2
????????str2=int2str(k);
????????for?l=0:9
??????????str3=int2str(l);
??????????fnamestr=strcat(‘s‘str1‘0‘str2str3‘.bmp‘);
??????????fname=imread(fnamestr);
??????????fname2bw=im2bw(fname);
??????????%[rowcol]=size(fname2bw)
??????????inputvector=getfeature(fname2bw);
??????????P(:i+1)=inputvector;
??????????T(:i+1)=array;
??????????i=i+1;
??????end
????end
??end
??%用輸入的樣本對(duì)網(wǎng)絡(luò)進(jìn)行訓(xùn)練
begintime=clock;
net=newrb(PT);
%輸入測(cè)試數(shù)據(jù)并進(jìn)行仿真
str1=‘5‘;
ceshituname=imread(‘s5025.bmp‘);
ceshitu2bw=im2bw(ceshituname);
ceshituvector=getfeature(ceshitu2bw);
a=sim(netceshituvector);
ceshitu=find(compet(a)==1);
ceshitu=ceshitu-1;
ceshitu=int2str(ceshitu);
if?ceshitu==str1
????figure(1);
????imshow(ceshituname);
???ceshitunamestr=strcat(ceshitu‘.bmp‘);
?????figure(2);
?????imshow(ceshitunamestr);
?end
?????
right=0;
wrong=0;
test=0;
??for?j=0:9
????str1=int2str(j);
????for?k=2:3
????????str2=int2str(k);
????????for?l=0:9
??????????str3=int2str(l);
??????????testfnamestr=strcat(‘s‘str1‘0‘str2str3‘.bmp‘);
??????????testfname=imread(testfnamestr);
??????????testfname2bw=im2bw(testfname);
??????????testinvector=getfeature(testfname2bw);
??????????v=sim(nettestinvector);
??????????position=find(compet(v)==1);
??????????position=position-1;
??????????position=int2str(position);
??????????if?position==str1
?????????????right=right+1;
??????????else?
?????????????wrong=wrong+1;
??????????end
??????????test=test+1;
????????end
????end
end
hold?off;
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-08-12?14:59??這是一個(gè)用matlab實(shí)現(xiàn)的RBF神經(jīng)網(wǎng)絡(luò)手寫數(shù)字識(shí)別算法.此算法加入相應(yīng)的手寫數(shù)字圖后可以運(yùn)行\(zhòng)
?????目錄???????????0??2019-08-12?14:54??這是一個(gè)用matlab實(shí)現(xiàn)的RBF神經(jīng)網(wǎng)絡(luò)手寫數(shù)字識(shí)別算法.此算法加入相應(yīng)的手寫數(shù)字圖后可以運(yùn)行\(zhòng)用Matlab實(shí)現(xiàn)的RBF手寫數(shù)字識(shí)別\
?????文件????????2074??2019-08-12?14:59??這是一個(gè)用matlab實(shí)現(xiàn)的RBF神經(jīng)網(wǎng)絡(luò)手寫數(shù)字識(shí)別算法.此算法加入相應(yīng)的手寫數(shù)字圖后可以運(yùn)行\(zhòng)用Matlab實(shí)現(xiàn)的RBF手寫數(shù)字識(shí)別\chenxianghua.m
?????文件????????1365??2019-08-12?14:59??這是一個(gè)用matlab實(shí)現(xiàn)的RBF神經(jīng)網(wǎng)絡(luò)手寫數(shù)字識(shí)別算法.此算法加入相應(yīng)的手寫數(shù)字圖后可以運(yùn)行\(zhòng)用Matlab實(shí)現(xiàn)的RBF手寫數(shù)字識(shí)別\getfeature.m
?????文件??????????65??2019-08-01?15:48??【源碼使用必讀】.url
評(píng)論
共有 條評(píng)論