• 大小: 23.1MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-15
  • 语言: Matlab
  • 标签: MATLAB  

资源简介

基于MATLAB实现BP神经网络车牌识别系统(GUI界面),资源包括源程序,可以在识别后进行语音播报。包含整个全过程的原理和方法的详细介绍。

资源截图

代码片段和文件信息

function [X fX i] = fmincg(f X options P1 P2 P3 P4 P5)
% 最小值搜索
if exist(‘options‘ ‘var‘) && ~isempty(options) && isfield(options ‘MaxIter‘)
    length = options.MaxIter;
else
    length = 100;
end


RHO = 0.01;                            % a bunch of constants for line searches
SIG = 0.5;       % RHO and SIG are the constants in the Wolfe-Powell conditions
INT = 0.1;    % don‘t reevaluate within 0.1 of the limit of the current bracket
EXT = 3.0;                    % extrapolate maximum 3 times the current bracket
MAX = 20;                         % max 20 function evaluations per line search
RATIO = 100;                                      % maximum allowed slope ratio

argstr = [‘feval(f X‘];                      % compose string used to call function
for i = 1:(nargin - 3)
  argstr = [argstr ‘P‘ int2str(i)];
end
argstr = [argstr ‘)‘];

if max(size(length)) == 2 red=length(2); length=length(1); else red=1; end
S=[‘Iteration ‘];

i = 0;                                            % zero the run length counter
ls_failed = 0;                             % no previous line search has failed
fX = [];
[f1 df1] = eval(argstr);                      % get function value and gradient
i = i + (length<0);                                            % count epochs?!
s = -df1;                                        % search direction is steepest
d1 = -s‘*s;                                                 % this is the slope
z1 = red/(1-d1);                                  % initial step is red/(|s|+1)

while i < abs(length)                                      % while not finished
  i = i + (length>0);                                      % count iterations?!

  X0 = X; f0 = f1; df0 = df1;                   % make a copy of current values
  X = X + z1*s;                                             % begin line search
  [f2 df2] = eval(argstr);
  i = i + (length<0);                                          % count epochs?!
  d2 = df2‘*s;
  f3 = f1; d3 = d1; z3 = -z1;             % initialize point 3 equal to point 1
  if length>0 M = MAX; else M = min(MAX -length-i); end
  success = 0; limit = -1;                     % initialize quanteties
  while 1
    while ((f2 > f1+z1*RHO*d1) | (d2 > -SIG*d1)) & (M > 0) 
      limit = z1;                                         % tighten the bracket
      if f2 > f1
        z2 = z3 - (0.5*d3*z3*z3)/(d3*z3+f2-f3);                 % quadratic fit
      else
        A = 6*(f2-f3)/z3+3*(d2+d3);                                 % cubic fit
        B = 3*(f3-f2)-z3*(d3+2*d2);
        z2 = (sqrt(B*B-A*d2*z3*z3)-B)/A;       % numerical error possible - ok!
      end
      if isnan(z2) | isinf(z2)
        z2 = z3/2;                  % if we had a numerical problem then bisect
      end
      z2 = max(min(z2 INT*z3)(1-INT)*z3);  % don‘t accept too close to limits
      z1 = z1 + z2;                                           % update the step
      X = X + z2*s;
      [f2 df2] = eval(argstr);
      M = M - 1; i =

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-08-03 20:21  基于matlab BP网络车牌照识别\
     文件     1163264  2020-03-23 23:35  基于matlab BP网络车牌照识别\基于BP神经网络车牌照识别和分类方法的研究.doc
     文件     2011136  2020-03-29 11:52  基于matlab BP网络车牌照识别\基于MATLAB的车牌识别系统的设计与实现.ppt
     目录           0  2020-04-21 21:15  基于matlab BP网络车牌照识别\介绍\
     文件        8989  2020-03-23 23:35  基于matlab BP网络车牌照识别\介绍\1.jpg
     文件       84248  2020-03-23 23:35  基于matlab BP网络车牌照识别\介绍\2.jpg
     文件     2722454  2020-03-23 23:35  基于matlab BP网络车牌照识别\介绍\3.bmp
     文件       93815  2020-03-23 23:35  基于matlab BP网络车牌照识别\介绍\4.jpg
     文件     2722454  2020-03-23 23:35  基于matlab BP网络车牌照识别\介绍\5.bmp
     文件     1011224  2020-03-23 23:35  基于matlab BP网络车牌照识别\介绍\71.mp4
     目录           0  2020-04-21 21:15  基于matlab BP网络车牌照识别\源程序\
     文件       39868  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\1.jpg
     文件       38920  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\10.jpg
     文件       56181  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\11.jpg
     文件      861592  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\12.jpg
     文件       34322  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\13.jpg
     文件       84403  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\14.jpg
     文件     1446998  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\15.bmp
     文件       31142  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\2.jpg
     文件       35001  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\3.jpg
     文件       93105  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\4.jpg
     文件      128421  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\5.jpg
     文件      157711  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\6.jpg
     文件       33480  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\7.jpg
     文件       34412  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\8.jpg
     文件       35001  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\9.jpg
     文件        6215  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\fmincg.m
     文件        1418  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\nnCostFunction.m
     文件        2742  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\nnmain.m
     文件         346  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\predict.m
     文件         160  2020-03-23 23:35  基于matlab BP网络车牌照识别\源程序\randInitializeWeights.m
............此处省略5740个文件信息

评论

共有 条评论