how to segment connected letters in a word by using its vertical profile?

1 view (last 30 days)
Hi..
I would like to segment connected letters in a word by using the vertical profile of that word.
I've produced the Vertical profile of that word & I need to segment the letters to separated images.
please can any one help me??
there will be no thinning to the word image the only thing I apply is im2bw().

Answers (2)

Walter Roberson
Walter Roberson on 10 Sep 2013
Ideally, you put boundaries where the profile goes from 0 to non-zero, and from non-zero to 0.

Image Analyst
Image Analyst on 10 Sep 2013
You can sum the image horizontally, across columns, to get the vertical profile. Then you can threshold that to get the lines of text. I believe I did that for you or someone a few weeks ago. Once you have a line of text, you can look for word separators (spaces) by looking at the horizontal profile (sum vertically along rows). The spaces between words will be large and the spaces between characters in a single word will be smaller. That algorithm seems fairly straightforward to program up. Is that what you were wanting to do? If so, start programming.
  7 Comments

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!