Flood filling for number plate recognition

前端 未结 3 1892
北恋
北恋 2020-12-21 08:54

I have a number plate which is a binary image.

\"enter

I performed dilation to

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-21 09:13

    let use this code it will use for you . thanks to @ spektre .

     ab=imread('test1.png');
    
    level=graythresh(ab);
    ab=im2bw(ab,level);
    
    se=strel('disk',1);
    ab=imdilate(ab,se);
    figure();imshow(ab,[]); title('floodFilling');
    ab1=imfill(ab,'holes');
    ab1(ab==1)=0;
    figure();imshow(ab1,[]); title('floodFilling');
    

提交回复
热议问题