MATLAB Answers

segment the characters in the image

10 views (last 30 days)
Elysi Cochin
Elysi Cochin on 22 Feb 2018
Edited: Elysi Cochin on 28 Feb 2018
How to segment the image into line, word, and character.

  0 Comments

Sign in to comment.

Accepted Answer

KSSV
KSSV on 22 Feb 2018
I = imread('BW1.bmp') ;
I = ~I ;
s = sum(I,2) ;
idx = find(s) ;
idx gives you the rows which have the characters.

  0 Comments

Sign in to comment.

More Answers (1)

michael scheinfeild
michael scheinfeild on 22 Feb 2018
try use properties and take bounding boxes the seperete by witdh , maybe you need also erosion/dilation to separate https://www.mathworks.com/help/images/ref/regionprops.html

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!