⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 char3.m

📁 matlab实现字符的识别
💻 M
字号:
%% Character Recognition Example (III):Training a Simple NN for
%% classification

%% Read the image
I = imread('sample.bmp');

%% Image Preprocessing
img = edu_imgpreprocess(I);
for cnt = 1:50
    bw2 = edu_imgcrop(img{cnt});
    charvec = edu_imgresize(bw2);
    out(:,cnt) = charvec;
end

%% Create Vectors for the components (objects)
P = out(:,1:40); 
T = [eye(10) eye(10) eye(10) eye(10)];
Ptest = out(:,41:50);

%% Creating and training of the Neural Network
net = edu_createnn(P,T);

%% Testing the Neural Network
[a,b]=max(sim(net,Ptest));
disp(b);


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -