说明:A1.bmp图片为手写B的图片,其余为26个字母标准图片;draw_outline.m,Feature_Building.m,fsd.m,outline.m为主程序所调用的子程序。
字母识别顺序结构程序如下:
clc
clear
RGB1=imread('D:A1.bmp');
RGB2=imread('D:A.bmp');
RGB3=imread('D:B.bmp');
RGB4=imread('D:C.bmp');
RGB5=imread('D:D.bmp');
RGB6=imread('D:E.bmp');
RGB7=imread('D:F.bmp');
RGB8=imread('D:G.bmp');
RGB9=imread('D:H.bmp');
RGB10=imread('D:I.bmp');
RGB11=imread('D:J.bmp');
RGB12=imread('D:K.bmp');
RGB13=imread('D:L.bmp');
RGB14=imread('D:M.bmp');
RGB15=imread('D:N.bmp');
RGB16=imread('D:O.bmp');
RGB17=imread('D:P.bmp');
RGB18=imread('D:Q.bmp');
RGB19=imread('D:R.bmp');
RGB20=imread('D:S.bmp');
RGB21=imread('D:T.bmp');
RGB22=imread('D:U.bmp');
RGB23=imread('D:V.bmp');
RGB24=imread('D:W.bmp');
RGB25=imread('D:X.bmp');
RGB26=imread('D:Y.bmp');
RGB27=imread('D:Z.bmp');
FD1=Feature_Building(RGB1);
FD2=Feature_Building(RGB2);
FD3=Feature_Building(RGB3);
FD4=Feature_Building(RGB4);
FD5=Feature_Building(RGB5);
FD6=Feature_Building(RGB6);
FD7=Feature_Building(RGB7);
FD8=Feature_Building(RGB8);
FD9=Feature_Building(RGB9);
FD10=Feature_Building(RGB10);