资源简介

下载可以直接运行看结果的MATLAB代码,可作为毕设参考

资源截图

代码片段和文件信息

function[wordresult]=getword(d)
word=[];
flag=0;
y1=8;
y2=0.5;
while flag==0
    [mn]=size(d);
    wide=0;
    while sum(d(:wide+1))~=0 && wide<=n-2
        wide=wide+1;
    end
    temp=qiege(imcrop(d[1 1 wide m]));%用于返回图像的一个裁剪区域
    [m1n1]=size(temp);
    if widey2
        d(:[1:wide])=0;
        if sum(sum(d))~=0
            d=qiege(d);%切割出最小范围
        else word=[];flag=1;
        end
    else
        word=qiege(imcrop(d[1 1 wide m]));
        d(:[1:wide])=0;
        if sum(sum(d))~=0;
            d=qiege(d);
            flag=1;
        else d=[];
        end
    end
end
result=d;

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

     文件        801  2019-03-11 14:53  LicensePlateRecognition-master\1.jpg

     文件        704  2019-03-11 14:53  LicensePlateRecognition-master\2.jpg

     文件        758  2019-03-11 14:53  LicensePlateRecognition-master\3.jpg

     文件        800  2019-03-11 14:53  LicensePlateRecognition-master\4.jpg

     文件        818  2019-03-11 14:53  LicensePlateRecognition-master\5.jpg

     文件        767  2019-03-11 14:53  LicensePlateRecognition-master\6.jpg

     文件        797  2019-03-11 14:53  LicensePlateRecognition-master\7.jpg

     文件       6114  2019-03-11 14:53  LicensePlateRecognition-master\dw.jpg

    .......       631  2018-04-19 18:14  LicensePlateRecognition-master\getword.m

    .......      8342  2018-04-19 18:14  LicensePlateRecognition-master\gui.fig

     文件       6781  2019-03-10 17:13  LicensePlateRecognition-master\gui.m

    .......     73564  2018-04-19 18:14  LicensePlateRecognition-master\images\1.jpg

    .......       358  2018-04-19 18:14  LicensePlateRecognition-master\qiege.m

    .......        72  2018-04-19 18:14  LicensePlateRecognition-master\README.md

     文件       6686  2019-03-11 14:53  LicensePlateRecognition-master\二值化.jpg

     文件       6434  2019-03-11 14:53  LicensePlateRecognition-master\均值滤波.jpg

    .......       622  2018-04-19 18:14  LicensePlateRecognition-master\字符模板\0.jpg

    .......     18188  2018-04-19 18:14  LicensePlateRecognition-master\字符模板\1.jpg

    .......     19038  2018-04-19 18:14  LicensePlateRecognition-master\字符模板\2.jpg

    .......     18972  2018-04-19 18:14  LicensePlateRecognition-master\字符模板\3.jpg

    .......       792  2018-04-19 18:14  LicensePlateRecognition-master\字符模板\4.jpg

    .......       799  2018-04-19 18:14  LicensePlateRecognition-master\字符模板\5.jpg

    .......     18887  2018-04-19 18:14  LicensePlateRecognition-master\字符模板\6.jpg

    .......     18643  2018-04-19 18:14  LicensePlateRecognition-master\字符模板\7.jpg

    .......       888  2018-04-19 18:14  LicensePlateRecognition-master\字符模板\8.jpg

    .......       778  2018-04-19 18:14  LicensePlateRecognition-master\字符模板\9.jpg

    .......       792  2018-04-19 18:14  LicensePlateRecognition-master\字符模板\A.jpg

    .......     19455  2018-04-19 18:14  LicensePlateRecognition-master\字符模板\B.jpg

    .......     19585  2018-04-19 18:14  LicensePlateRecognition-master\字符模板\C.jpg

    .......       798  2018-04-19 18:14  LicensePlateRecognition-master\字符模板\D.jpg

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

评论

共有 条评论