segment the characters in the image

조회 수: 3 (최근 30일)
Elysi Cochin
Elysi Cochin 2018년 2월 22일
편집: Elysi Cochin 2018년 2월 28일
How to segment the image into line, word, and character.

채택된 답변

KSSV
KSSV 2018년 2월 22일
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일
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

Community Treasure Hunt

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

Start Hunting!

Translated by