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 个评论

Do you mean individual letters by text block??
no its on word pls help me
  • Item one
  • Item two

请先登录,再进行评论。

回答(1 个)

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 Exchange 中查找有关 Vehicle 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