1 Star 3 Fork 3

yanshui177 / RecPlate-lib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
select.m 593 Bytes
一键复制 编辑 原始数据 按行查看 历史
yanshui177 提交于 2017-05-17 11:24 . 车牌识别总程序
function [y,y1]=select(ImageData,h,w)
thr=0.5;delta=0.05;
%
y=(ImageData>=thr*mean(max(ImageData)));
BW2=bwareaopen(y,10);SE=strel('square',15);
IM2=imdilate(BW2,SE);
IM3=imerode(IM2,SE);
%
average=sum(sum(IM3))/(h*w);
while(average<0.03||average>0.08)%ҪԼ
% if(average<=0.005||average>=1)
% break;
%end
if(average<0.03)
thr=thr-delta;
else
thr=thr+delta;
end
y=(ImageData>=thr*mean(max(ImageData)));
BW2=bwareaopen(y,10);
IM2=imdilate(BW2,SE);
IM3=imerode(IM2,SE);
average=sum(sum(IM3))/(h*w);
end
y1=y;
y=IM3;
Matlab
1
https://gitee.com/yanshui177/RecPlate-lib.git
git@gitee.com:yanshui177/RecPlate-lib.git
yanshui177
RecPlate-lib
RecPlate-lib
master

搜索帮助