Filter löschen
Filter löschen

segment the characters in the image

1 Ansicht (letzte 30 Tage)
Elysi Cochin
Elysi Cochin am 22 Feb. 2018
Bearbeitet: Elysi Cochin am 28 Feb. 2018
How to segment the image into line, word, and character.

Akzeptierte Antwort

KSSV
KSSV am 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.

Weitere Antworten (1)

michael scheinfeild
michael scheinfeild am 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

Community Treasure Hunt

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

Start Hunting!

Translated by