I am unable to bound the text lines in a rectangle

1 回表示 (過去 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...
  1 件のコメント
md mizan chowdhury
md mizan chowdhury 2017 年 10 月 16 日
plz give me the code

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by