资源简介
matlab车牌识别完整程序
代码片段和文件信息
%---------------------------------------------%
% %
% 工作室提供代做matlab仿真 %
% %
% 详情请访问:http://cn.mikecrm.com/5k6v1DP %
% %
%---------------------------------------------%
function [seg] = character_segmentation(bw);
% character_segmentation: Returns the digit segments in the supplied binary image.
% The function uses the “segment“ function keeping only the seven
% segments in the result with largest area and in case less than seven
% segments were found it attempts to recall the function making the
% separation between the already found segments clearer (by cleaning the
% bits which are there.
DIGIT_WIDTH = 18;
MIN_AREA = 250;
load global_var.mat;
plot_vector(sum(bw) 4 ‘Character Segmentation - Columns Sum Graph:‘ debug2);
seg = segment(bw DIGIT_WIDTH MIN_AREA);
[x y] = size(seg);
% If we got less than 7 digits we try to make the sepration between them
% clearer by cleaning the bits between them and we call the “segment“
% function again:
if x < 7
for i = 1 : x
bw(:seg(i2))=0;
end;
seg = segment(bw DIGIT_WIDTH MIN_AREA);
end;
% Keeping in the results the seven segments with the largest area:
area = [];
for i = 1 : x
pic = bw(: seg(i1) : seg(i2) :);
area(i) = bwarea(pic);
end;
area1 = sort(area);
seg = seg‘;
for j = 1:(length(area1)-7)
i = find(area == area1(j));
len = length(area);
if i == 1
area = [area(2:len)];
seg = [seg(:2:len)];
elseif i == len
area = [area(1:i-1)];
seg = [seg(:1:i-1)];
else
area = [area(1:i-1) area(i+1:len)];
seg = [seg(:1:i-1) seg(:i+1:len)];
end;
end;
seg = seg‘;
return;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [segmentation] = segment(im digit_width min_area);
% segment: Segment the pictures in digit images according to the variable
% “digit_width“ and returns a matrix containing the two bounds of the each
% digit segment. The function keeps in the result only segment whose
% “rectangular“ areas is more than “min_area“.
segmentation = [];
% Summing the colums of the pic:
t = sum(im);
% Getting the segments in the pic:
seg = clean(find_valleys(t 2 1 digit_width) 3);
% Keeping in the result only the segments whose rectangular areas is more than min_area:
j = 1;
for i = 1 : (length(seg) - 1)
band_width = seg(i+1) - seg(i);
maxi = max(t(1 seg(i):seg(i+1)));
if(maxi * band_width > min_area)
segmentation(j 1) = seg(i);
segmentation(j 2) = seg(i+1);
j = j + 1;
end;
end;
return;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [s] = find_valleys(t val offset digit_width);
% find_valleys: Uses the method named peak-to-valleyin order to segment the
% pictures in digit images getting the two bounds of the each digit segment
% accord
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-09-19 13:05 matlab车牌识别完整程序\
目录 0 2018-09-19 13:07 matlab车牌识别完整程序\matlab车牌识别完整程序\
文件 55 2018-08-27 11:33 matlab车牌识别完整程序\matlab车牌识别完整程序\【源码使用必读】.url
文件 6767 2018-09-19 13:12 matlab车牌识别完整程序\matlab车牌识别完整程序\character_segmentation.m
文件 517 2018-09-19 13:12 matlab车牌识别完整程序\matlab车牌识别完整程序\cleanScreen.m
文件 1145 2018-09-19 13:12 matlab车牌识别完整程序\matlab车牌识别完整程序\cut_bw_img.m
文件 696 2018-09-19 13:12 matlab车牌识别完整程序\matlab车牌识别完整程序\display_picture.m
文件 845 2018-09-19 13:12 matlab车牌识别完整程序\matlab车牌识别完整程序\draw_lines.m
文件 10373 2018-09-19 13:12 matlab车牌识别完整程序\matlab车牌识别完整程序\extract_LP.m
文件 1367 2018-09-19 13:12 matlab车牌识别完整程序\matlab车牌识别完整程序\extract_yellow_region.m
文件 1340 2018-09-19 13:12 matlab车牌识别完整程序\matlab车牌识别完整程序\find_angle.m
文件 2345 2018-09-19 13:12 matlab车牌识别完整程序\matlab车牌识别完整程序\find_optimal_threshold.m
文件 536 2018-09-19 13:12 matlab车牌识别完整程序\matlab车牌识别完整程序\global_var.mat
文件 1291 2018-09-19 13:12 matlab车牌识别完整程序\matlab车牌识别完整程序\go.m
文件 2003 2018-09-19 13:12 matlab车牌识别完整程序\matlab车牌识别完整程序\horizontal_crop.m
目录 0 2018-09-19 13:05 matlab车牌识别完整程序\matlab车牌识别完整程序\images\
文件 75168 2003-03-29 15:09 matlab车牌识别完整程序\matlab车牌识别完整程序\images\car.jpeg
文件 22853 2008-10-22 09:47 matlab车牌识别完整程序\matlab车牌识别完整程序\images\im0.jpg
文件 96755 2003-04-07 17:30 matlab车牌识别完整程序\matlab车牌识别完整程序\images\im1.jpg
文件 63827 2003-04-10 05:08 matlab车牌识别完整程序\matlab车牌识别完整程序\images\im10.JPG
文件 25273 2003-04-10 06:02 matlab车牌识别完整程序\matlab车牌识别完整程序\images\im11.JPG
文件 35405 2003-04-05 12:45 matlab车牌识别完整程序\matlab车牌识别完整程序\images\im12.jpg
文件 58831 2003-04-10 05:13 matlab车牌识别完整程序\matlab车牌识别完整程序\images\im13.JPG
文件 25668 2003-04-10 06:07 matlab车牌识别完整程序\matlab车牌识别完整程序\images\im14.JPG
文件 64864 2003-04-10 05:19 matlab车牌识别完整程序\matlab车牌识别完整程序\images\im15.JPG
文件 18661 2003-04-10 05:25 matlab车牌识别完整程序\matlab车牌识别完整程序\images\im16.JPG
文件 74308 2003-04-06 04:01 matlab车牌识别完整程序\matlab车牌识别完整程序\images\im17.jpg
文件 76512 2003-04-10 06:41 matlab车牌识别完整程序\matlab车牌识别完整程序\images\im18.JPG
文件 147055 2003-04-11 04:23 matlab车牌识别完整程序\matlab车牌识别完整程序\images\im19.jpg
文件 60150 2003-04-05 12:43 matlab车牌识别完整程序\matlab车牌识别完整程序\images\im2.jpg
文件 40198 2003-04-06 04:07 matlab车牌识别完整程序\matlab车牌识别完整程序\images\im20.jpg
............此处省略43个文件信息
- 上一篇:MATLAB43案例
- 下一篇:《Matlab遗传算法工具箱及应用》源码
相关资源
- 《Matlab遗传算法工具箱及应用》源码
- MATLAB43案例
- 数字信号处理及其Matlab的实现
- vhdl 16位乘法器
- 遥感数字图像处理-matlab-主成份及穗帽
- ECO配置好的MATLAB版本
- 基于核回归kernel regression方法的去模糊
- 音乐检索系统MATLAB程序.zip
- MATLAB生成各类LPI雷达信号
- MATLAB实现语音信号的仿真以及软件界
- matlab 2019a中文版文档清晰pdf
- 基于MATLAB的车牌定位.zip
- EWT 经验小波分解 matlab工具箱 toolbox
- 图像复原技术及其MATLAB实现
- 多智能体的编队控制matlab程序.zip
- RNN算法推导过程及代码.zip
- DACE和OODACE,krigingMATLAB工具箱.zip
- 基于运动想象脑电信号的多特征融合
- 姿态测量MATLAB程序
- Mathematica完美教程 - 从入门到精通
- 最优化方法及其matlab程序实现.zip
- matlab的cvx安装包
- 滑模控制及观测器设计
- 容积卡尔曼ckf——基站测距定位解算
- AVL CRUISE_MATLAB联合仿真配置.pdf
- 链路调度matlab程序适合初学者
- 马尔科夫链MATLAB和PPT
- Model Predictive Control System Design and Imp
- matlab智能优化算法30个案例代码
- 最优化方法及MATLAB的实现最优化技术
评论
共有 条评论