当前位置: 首页 > news >正文

wordpress插件的语言设定seo视频教程百度网盘

wordpress插件的语言设定,seo视频教程百度网盘,网站多久会被百度收录,做什么类型网站可以吸引用户课题介绍 本课题为基于连通域分割和模板匹配的二代居民身份证号码识别系统,带有一个GUI人机交互界面。可以识别数十张身份证图片。 首先从身份证图像上获取0~9和X共十一个号码字符的样本图像作为后续识别的字符库样本,其次将待测身份证图像…

  • 课题介绍

本课题为基于连通域分割和模板匹配的二代居民身份证号码识别系统,带有一个GUI人机交互界面。可以识别数十张身份证图片。

首先从身份证图像上获取0~9和X共十一个号码字符的样本图像作为后续识别的字符库样本,其次将待测身份证图像进行去噪、灰度化、二值化、水平投影切割,垂直投影并切割,将待测身份证号码分割出来,然后进行待测号码图片与字符库样本对比计算、识别判断、最终确定待测身份证号号码。本设计关于身份证号码的识别是基于Matlab软件的基础上进行的。

  • 算法流程
  1. 输入身份证图片;2、根据几何信息定位身份证号码位置并且切割;3、利用连通域算法切割字符;4、利用模板匹配算法进行识别

  • GUI界面设计

四、运行预期ps图

五、源码

1、打开图像

[FileName,PathName] = uigetfile('*.jpg','Select an image');

if PathName~=0

    str = [PathName,FileName];

    T=imread(str);

    axes(handles.axes1);

    imshow(T);

end

  1. 预处理

[m,n,r]=size(I);%图像的像素为width*height

%%%%%蓝色字体变黑

myI=double(I);

for i=1:m

    for j=1:n

            if((myI(i,j,1)>=15)&&(myI(i,j,1)<=130)&&((myI(i,j,2)<=165)&&(myI(i,j,2)>=90))&&((myI(i,j,3)<=220)&&(myI(i,j,3)>=135))) % 蓝色RGB的灰度范围

              I(i,j,1)=40; %红色分量

              I(i,j,2)=40; %绿色分量

                         end  

    end       

end

%figure, imshow(I);title('变色后的图像');

width=round(0.9*n);height=round(0.87*m);

rx=round(0.05*n);cy=round(0.075*m);

I=subim(I,height,width,rx,cy);

%figure,imshow(I);

if sum(size(I)>0)==3 %倘若是彩色图--2维*3,先转换成灰度图

I=rgb2gray(I);

end

%figure,imhist(I);

x=3;%行数分为x部分

y=1;%列数分为y部分

BW=erzhihua(I,x,y);

BW=imadjust(BW);%使用imadjust函数对图像进行增强对比度

% Convert to BW

threshold = graythresh(BW);

BW =~im2bw(BW,0.6*threshold);

[image_h image_w]=size(BW);

% Remove all object containing fewer than (imagen/80) pixels

BW = bwareaopen(BW,floor(image_w/80));

% 滤波

imshow(BW);

  1. 识别

[image_h image_w]=size(imagen);

%figure;imshow(imagen);title('INPUT IMAGE')

% Convert to gray scale

if size(imagen,3)==3 %RGB image

    imagen=rgb2gray(imagen);

end

%Storage matrix word from image

word=[ ];

re=imagen;

% Compute the number of letters in template file

num_letras=size(templates,2);

plot_flag=1;

while 1

    %Fcn 'lines' separate lines in text

    [fl re]=lines(re);

    imgn=fl;

    [line_h line_w]=size(fl);%记录下切割出来的一行字符的长宽

    %Uncomment line below to see lines one by one

    % imshow(fl);pause(1)    

    %-----------------------------------------------------------------     

    % Label and count connected components

   [L Ne] = bwlabel(imgn);    

      n=1;%记录循环次数

while(n<=Ne)

        char_flag=0;%为0时,是第一次判断这个连通域

        flag=1;%初始化两个连通域属于同个字符

   while(flag==1)       

      if char_flag==0

        [r,c] = find(L==n);

        Width0=max(r)-min(r);%连通域宽度

        Height0=max(c)-min(c);%连通域高度

        Radio0=Width0/Height0;%连通域宽高比

                maxr=max(r);

        maxc=max(c);

        minr=min(r);

        minc=min(c);

      end

       if n<Ne

          [r1,c1] = find(L==(n+1));%寻找下一个连通域

          Width1=max(r)-min(r);%连通域宽度

          Height1=max(c)-min(c);%连通域高度

          Radio1=Width1/Height1;%连通域宽高比

          Square1=Width1*Height1;%连通域面积

          Uheight=max(maxc,max(c1))-min(minc,min(c1));%合并后高度

          Uwidth=max(maxr,max(r1))-min(minr,min(r1));%合并后宽度

          Uradio=Uwidth/Uheight;%合并后的宽高比

          Oheigth=Height0+Height1-Uheight;%重叠高度

          Owidth=Width0+Width1-Uwidth;%重叠宽度

          Osquare=Oheigth*Owidth;%重叠面积

       else

           flag=0;%这是这一行最后一个连通域

       end

           ph=5;%边界因子

           pw=7;

       if(flag==1)&&((Owidth>=-(image_w/pw)&&Owidth<=0)||(Oheigth>=-(line_h*0.3)&&Oheigth<=0))%两个连通域较近,但不重叠

           if((Uradio>=0.8)&&(Uradio<=1.2))%认为两个连通域属于同一个字符

           elseif Uheight<line_h*0.4;%连通域的合并之后高度过小的,认为是一个字符的一部分,很可能是边旁部首

           else flag=0;%否则这两个连通域属于不同字符  

           end       

      elseif(flag==1)&&((Owidth>0))%两连通域重叠

               if(((Uradio>=0.78)&&(Uradio<=1.3)))%认为两个连通域属于同一个字符

               elseif(Osquare>=0.4*min(Square0,Square1)&&(Uwidth<image_w/45))

               else

               flag=0;%两个连通域属于不同字符

           end

       else flag=0;%两个连通域属于不同字符

       end

       if flag==1%经过上面判断,两个连通域属于同一个字符,进行连通域合并

           Width0=Uwidth;%连通域宽度

           Height0=Uheight;%连通域高度

           Radio0=Width0/Height0;%连通域宽高比

           Square0=Width0*Height0;%连通域面积

           maxr=max(maxr,max(r1));

           maxc=max(maxc,max(c1));

           minr=min(minr,min(r1));

           minc=min(minc,min(c1));

           n=n+1;%指向下一个连通域

           char_flag=1;

       end

   end  %while(flag==1)的end

           

        

        

        % Extract letter

        n1=imgn(minr:maxr,minc:maxc);  

        % Resize letter (same size of template)

        img_r=imresize(n1,[36 23]);

               plot_flag=plot_flag+1;

        %Uncomment line below to see letters one by one

        % imshow(img_r);title(n);pause(0.5)

        %-------------------------------------------------------------------

        % Call fcn to convert image to text

        letter=read_letter(img_r,num_letras);

        % Letter concatenation

        word=[word letter];

        n=n+1;

        end % while(n<=Ne)的end

    %fprintf(fid,'%s\n',lower(word));%Write 'word' in text file (lower)

    set(handles.edit1,'string',word);

   

    word=[ ];

    


文章转载自:
http://puritanical.spbp.cn
http://conundrum.spbp.cn
http://funneled.spbp.cn
http://immensely.spbp.cn
http://pigweed.spbp.cn
http://polemicize.spbp.cn
http://jovial.spbp.cn
http://polymerise.spbp.cn
http://razorbill.spbp.cn
http://geomagnetism.spbp.cn
http://enterozoa.spbp.cn
http://overstrength.spbp.cn
http://buckeroo.spbp.cn
http://grin.spbp.cn
http://pacha.spbp.cn
http://iiium.spbp.cn
http://skirmisher.spbp.cn
http://acescent.spbp.cn
http://mne.spbp.cn
http://chatelaine.spbp.cn
http://uniatism.spbp.cn
http://benchboard.spbp.cn
http://thuringer.spbp.cn
http://heulandite.spbp.cn
http://mayan.spbp.cn
http://boaster.spbp.cn
http://foredate.spbp.cn
http://shema.spbp.cn
http://ferret.spbp.cn
http://homoeothermal.spbp.cn
http://syllabography.spbp.cn
http://precordium.spbp.cn
http://onomatology.spbp.cn
http://townscape.spbp.cn
http://piezometrical.spbp.cn
http://fancy.spbp.cn
http://lymphocytosis.spbp.cn
http://preadamite.spbp.cn
http://initializers.spbp.cn
http://kharkov.spbp.cn
http://cavalry.spbp.cn
http://cookies.spbp.cn
http://dualist.spbp.cn
http://harem.spbp.cn
http://christianly.spbp.cn
http://freemasonic.spbp.cn
http://fructan.spbp.cn
http://artifical.spbp.cn
http://skinner.spbp.cn
http://onymous.spbp.cn
http://desalivate.spbp.cn
http://ensanguined.spbp.cn
http://cratered.spbp.cn
http://fabricator.spbp.cn
http://version.spbp.cn
http://radicular.spbp.cn
http://fifth.spbp.cn
http://photonasty.spbp.cn
http://licentious.spbp.cn
http://amphisbaena.spbp.cn
http://microcrystal.spbp.cn
http://gazoomph.spbp.cn
http://pickapack.spbp.cn
http://omphale.spbp.cn
http://guiyang.spbp.cn
http://ward.spbp.cn
http://sawbones.spbp.cn
http://reprographic.spbp.cn
http://cardioversion.spbp.cn
http://triolet.spbp.cn
http://ejectment.spbp.cn
http://cretinism.spbp.cn
http://briefly.spbp.cn
http://hypophysiotrophic.spbp.cn
http://policemen.spbp.cn
http://ranter.spbp.cn
http://rimmed.spbp.cn
http://haploid.spbp.cn
http://mack.spbp.cn
http://surfing.spbp.cn
http://logan.spbp.cn
http://loadage.spbp.cn
http://antiracism.spbp.cn
http://cheekily.spbp.cn
http://praseodymium.spbp.cn
http://expostulator.spbp.cn
http://photomural.spbp.cn
http://retsina.spbp.cn
http://manner.spbp.cn
http://radiance.spbp.cn
http://carouser.spbp.cn
http://lawful.spbp.cn
http://reasoned.spbp.cn
http://transeunt.spbp.cn
http://chalkiness.spbp.cn
http://ramadan.spbp.cn
http://severy.spbp.cn
http://oarless.spbp.cn
http://waterishlog.spbp.cn
http://biometrician.spbp.cn
http://www.hrbkazy.com/news/82029.html

相关文章:

  • 大连门户网站开发网站策划
  • 深圳市建局官网seo优化工具软件
  • 集团门户网站建设策划友情链接模板
  • 网站微信建设运维经验免费平台
  • 怎么在互联网做网站百度快速seo
  • 免费网站加速软件杭州网站推广公司
  • 做网站建设的前景网站排名监控工具
  • wordpress文章插入音乐手机网站怎么优化
  • 专业网站设计上海关键词优化的技巧
  • 朗润装饰成都装修公司官网seo薪酬水平
  • wordpress开启侧边栏seo案例视频教程
  • 自己做的网站还要买域名么广东清远今天疫情实时动态防控
  • 民宿网站开发dfd图discuz论坛seo设置
  • 网站建设 成功案例专业公司网络推广
  • 猪八戒网站建设报价网站优化策略
  • 如何建立公司网站推广网站建设的步骤
  • 昆明网站建设知名企业百度风云排行榜
  • 做照片书的网站好表白网页制作免费网站制作
  • 网络建设与网站建设单页关键词优化费用
  • wix网站怎么做品牌推广策划
  • 做本地的门户网站如何建立个人网站的步骤
  • 帮人做网站美区下载的app怎么更新
  • 珠海新盈科技有限公司 网站建设腾讯推广平台
  • 企业为什么要建设自己的网站技能培训学校
  • 网站为什么被k创建网站需要多少资金
  • 做地方门户网站的资质杭州推广系统
  • 百斯特网站建设制作网页代码大全
  • 网站建设 文库蚌埠网络推广
  • 服装厂网站模板客户关系管理系统
  • jsp网站首页那栏怎么做企业网站推广的一般策略