matlab 识别汉字,如何用MATLAB仿真印刷体汉字识别系统?

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

t1=tezhengtiqu(b1);

P_test = [t1'];

y = sim(net,P_test);

word=fbmjieguoxianshi(y)

end

%--------第1个字符

if c==2

b2=d(:,(k1:k2));

imwrite(b2,'im2.jpg');

t2=tezhengtiqu(b2);

P_test = [t2];

y = sim(net,P_test');

word=fbmjieguoxianshi(y)

end

%--------第2个字符

if c==3

b3=d(:,(k1:k2));

imwrite(b3,'im3.jpg');

t3=tezhengtiqu(b3);

P_test = [t3];

y = sim(net,P_test');

word=fbmjieguoxianshi(y)

end

%--------第3个字符

if c==4

b4=d(:,(k1:k2));

imwrite(b4,'im4.jpg');

t4=tezhengtiqu(b4);

P_test = [t4];

y = sim(net,P_test');

word=fbmjieguoxianshi(y)

end

%--------第4个字符

if c==5

b5=d(:,(k1:k2));

imwrite(b5,'im5.jpg');

t5=tezhengtiqu(b5);

P_test = [t5];

y = sim(net,P_test');

word=fbmjieguoxianshi(y)

end

%--------第5个字符

if c==6

b6=d(:,(k1:k2));

imwrite(b6,'im6.jpg');

t6=tezhengtiqu(b6);

P_test = [t6];

y = sim(net,P_test');

word=fbmjieguoxianshi(y)

end

%--------第6个字符

if c==7

b7=d(:,(k1:k2));

imwrite(b7,'im7.jpg');

t7=tezhengtiqu(b7);

P_test = [t7];

y = sim(net,P_test');

word=fbmjieguoxianshi(y)

end

%--------第7个字符

if c==8

b8=d(:,(k1:k2));

imwrite(b8,'im8.jpg');

t8=tezhengtiqu(b8);

P_test = [t8];

y = sim(net,P_test');

word=fbmjieguoxianshi(y)

end

%--------第8个字符

if c==9

b9=d(:,(k1:k2));

imwrite(b9,'im9.jpg');

t9=tezhengtiqu(b9);

P_test = [t9];

y = sim(net,P_test');

word=fbmjieguoxianshi(y)

end

%--------第9个字符

if c==10

b10=d(:,(k1:k2));

imwrite(b10,'im10.jpg');

t10=tezhengtiqu(b10);

P_test = [t10];

y = sim(net,P_test');

word=fbmjieguoxianshi(y)

end

%--------第10个字符

if c==11

b11=d(:,(k1:k2));

imwrite(b11,'im11.jpg');

t11=tezhengtiqu(b11);

P_test = [t11];

y = sim(net,P_test');

word=fbmjieguoxianshi(y)

end

%--------第11个字符

if c==12

b12=d(:,(k1:k2));

imwrite(b12,'im12.jpg');

t12=tezhengtiqu(b12);

P_test = [t12];

y = sim(net,P_test');

word=fbmjieguoxianshi(y)

end

%--------第12个字符

if c==13

b13=d(:,(k1:k2));

imwrite(b13,'im13.jpg');

t13=tezhengtiqu(b13);

P_test = [t13];

y = sim(net,P_test');

word=fbmjieguoxianshi(y)

end

%--------第13个字符

if c==14

b14=d(:,(k1:k2));

imwrite(b14,'im14.jpg');

t14=tezhengtiqu(b14);

P_test = [t14];

y = sim(net,P_test');

word=fbmjieguoxianshi(y)

end

%--------第14个字符

if c==15

b15=d(:,(k1:k2));

imwrite(b15,'im15.jpg');

t15=tezhengtiqu(b15);

P_test = [t15];

y = sim(net,P_test');

word=fbmjieguoxianshi(y)

end

%--------第15个字符

if c==16

b16=d(:,(k1:k2));

imwrite(b16,'im16.jpg');

t16=tezhengtiqu(b16);

P_test = [t16];

y = sim(net,P_test');

word=fbmjieguoxianshi(y)

end

%--------第16个字符

c=c+1;

end

subplot(2,8,1),imshow('im1.jpg');

subplot(2,8,2),imshow('im2.jpg');

subplot(2,8,3),imshow('im3.jpg');

subplot(2,8,4),imshow('im4.jpg');

subplot(2,8,5),imshow('im5.jpg');

subplot(2,8,6),imshow('im6.jpg');

subplot(2,8,7),imshow('im7.jpg');

subplot(2,8,8),imshow('im8.jpg');

subplot(2,8,9),imshow('im9.jpg');

subplot(2,8,10),imshow('im10.jpg');

subplot(2,8,11),imshow('im11.jpg');

subplot(2,8,12),imshow('im12.jpg');

subplot(2,8,13),imshow('im13.jpg');

subplot(2,8,14),imshow('im14.jpg');

subplot(2,8,15),imshow('im15.jpg');

subplot(2,8,16),imshow('im16.jpg');

你可能感兴趣的:(matlab,识别汉字)