how to find the width and height of text block

plz help me to find the width and height of a text block. m doing project on text detection using canny edge detector. as a post processing step, i need to perform false positive elimination,to remove unwanted image parts.

2 件のコメント

Dishant Arora
Dishant Arora 2014 年 2 月 28 日
Do you mean individual letters by text block??
Akshatha
Akshatha 2014 年 3 月 1 日
no its on word pls help me
  • Item one
  • Item two

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

回答 (1 件)

Dishant Arora
Dishant Arora 2014 年 2 月 28 日

0 投票

Call in regionprops and checkout for boundingbox.
Stats = regionprops(BW , 'BoundingBox');
[width , height] = Stats(ii).BoundingBox(3:4); % ii being index of your blob.

カテゴリ

ヘルプ センター および File ExchangeVehicle Dynamics Blockset についてさらに検索

質問済み:

2014 年 2 月 28 日

コメント済み:

2014 年 3 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by