资源简介

车牌识别的一个完整程序,其中定位方式用的是形态学办法,识别部分是神经网络,程序比较简单,但能实现系统识别要求,并有数个图片示例支撑,适用于初学者弄懂程序,学习思维方法。

资源截图

代码片段和文件信息



%%%%%%%%%%%%%%%%%%%%%%%%%创建训练识别数字的BP网络
clear all
for y=1:9
 for x=0:35
  i0=imread(strcat(‘bp_train_images/‘strcat(num2str(x)strcat(num2str(y)‘.jpg‘))));
  i0=i0>100;
  for i=1:16
   top=1+floor((i-1)/4)*16;
   buttom=top+15;
   left=1+rem(i-14)*16;
   right=left+15; 
   i2=i0(top:buttomleft:right);
   s(i)=sum(sum(i2))/16/16;
  end
   s(17)=sum(s(5:8))/4;
   s(18)=sum(s(9:12))/4;
   s(19)=(s(2)+s(6)+s(10)+s(14))/4;
   s(20)=(s(3)+s(7)+s(11)+s(15))/4;
   if x<=9
      ar_num(:x+1+10*(y-1))=s;
      end
   if x<=33
      ar_num_alp(:x+1+34*(y-1))=s;
       end
   if x>9&&x<34
      ar_alp(:x-9+24*(y-1))=s;
      end
   if x>33
      ar_char(:x-33+2*(y-1))=s;
      end
  end
end
%%%%%%%%%创建训练识别字母的BP网络
ts=double(eye(2424));
for x=1:9
 TS_alp(:

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      35424  2010-06-04 20:23  yuanchuang1\alp.mat

     文件       2865  2010-06-04 20:20  yuanchuang1\bp_train.m

     文件       1408  2010-06-02 20:42  yuanchuang1\bp_train_images\01.jpg

     文件       1307  2010-06-02 20:42  yuanchuang1\bp_train_images\02.jpg

     文件       1550  2010-06-02 20:42  yuanchuang1\bp_train_images\03.jpg

     文件       1454  2010-06-02 20:42  yuanchuang1\bp_train_images\04.jpg

     文件       1575  2010-06-02 20:42  yuanchuang1\bp_train_images\05.jpg

     文件       1653  2010-06-02 20:42  yuanchuang1\bp_train_images\06.jpg

     文件       1508  2010-06-02 20:42  yuanchuang1\bp_train_images\07.jpg

     文件       1545  2010-06-02 20:42  yuanchuang1\bp_train_images\08.jpg

     文件       1548  2010-06-02 20:42  yuanchuang1\bp_train_images\09.jpg

     文件       1571  2010-06-02 20:42  yuanchuang1\bp_train_images\101.jpg

     文件       1548  2010-06-02 20:42  yuanchuang1\bp_train_images\102.jpg

     文件       1561  2010-06-02 14:58  yuanchuang1\bp_train_images\103.jpg

     文件       1594  2010-06-02 20:42  yuanchuang1\bp_train_images\104.jpg

     文件       1475  2010-06-02 20:42  yuanchuang1\bp_train_images\105.jpg

     文件       1566  2010-06-02 20:42  yuanchuang1\bp_train_images\106.jpg

     文件       1465  2010-06-02 20:42  yuanchuang1\bp_train_images\107.jpg

     文件       1558  2010-06-02 20:42  yuanchuang1\bp_train_images\108.jpg

     文件       1463  2010-06-02 20:42  yuanchuang1\bp_train_images\109.jpg

     文件       1161  2010-06-02 14:58  yuanchuang1\bp_train_images\11.jpg

     文件       1413  2010-06-02 20:42  yuanchuang1\bp_train_images\111.jpg

     文件       1587  2010-06-02 20:42  yuanchuang1\bp_train_images\112.jpg

     文件       1978  2010-06-02 20:42  yuanchuang1\bp_train_images\113.jpg

     文件       1279  2010-06-02 20:42  yuanchuang1\bp_train_images\114.jpg

     文件       2036  2010-06-02 20:42  yuanchuang1\bp_train_images\115.jpg

     文件       1629  2010-06-02 20:42  yuanchuang1\bp_train_images\116.jpg

     文件       1978  2010-06-02 20:42  yuanchuang1\bp_train_images\117.jpg

     文件       1279  2010-06-02 20:42  yuanchuang1\bp_train_images\118.jpg

     文件       1629  2010-06-02 20:42  yuanchuang1\bp_train_images\119.jpg

............此处省略387个文件信息

评论

共有 条评论