how to find the width and height of text block

3 vues (au cours des 30 derniers jours)
Akshatha
Akshatha le 28 Fév 2014
Commenté : Akshatha le 1 Mar 2014
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 commentaires
Dishant Arora
Dishant Arora le 28 Fév 2014
Do you mean individual letters by text block??
Akshatha
Akshatha le 1 Mar 2014
no its on word pls help me
  • Item one
  • Item two

Connectez-vous pour commenter.

Réponses (1)

Dishant Arora
Dishant Arora le 28 Fév 2014
Call in regionprops and checkout for boundingbox.
Stats = regionprops(BW , 'BoundingBox');
[width , height] = Stats(ii).BoundingBox(3:4); % ii being index of your blob.

Community Treasure Hunt

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

Start Hunting!

Translated by