segment the characters in the image

 採用された回答

KSSV
KSSV 2018 年 2 月 22 日

0 投票

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

その他の回答 (1 件)

michael scheinfeild
michael scheinfeild 2018 年 2 月 22 日

0 投票

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

質問済み:

2018 年 2 月 22 日

編集済み:

2018 年 2 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by