I am unable to bound the text lines in a rectangle

조회 수: 3 (최근 30일)
suvendra sahoo
suvendra sahoo 2014년 1월 9일
댓글: md mizan chowdhury 2017년 10월 16일
Hi Imageanalyst,
I want to bind my text lines in a rectangle and want to store that rectangle for use. This is my code , can you rectify my code.
a=imread('sample.jpg'); figure,imshow(a) b=rgb2gray(a); Ibw= b<128; Ibw = imclose(Ibw, true(7)); [Ilabel num] = bwlabel(Ibw); Iprops = regionprops(Ilabel); Ibox = [Iprops.BoundingBox]; imshow(Ibw) rectangle('position',Ibox,'edgecolor','r');
Thanks

답변 (1개)

md mizan chowdhury
md mizan chowdhury 2017년 10월 16일
bound box text image ...not non text...

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by