Effacer les filtres
Effacer les filtres

How to segment an image containing text?

2 vues (au cours des 30 derniers jours)
Meghashree G
Meghashree G le 17 Nov 2015
Modifié(e) : Meghashree G le 17 Nov 2015
I have an image containing paragraph,how do i segment that paragraph into separate lines?? i mean the paragraph should be segmented into 6 lines of text.
Thank you

Réponses (1)

Image Analyst
Image Analyst le 17 Nov 2015
See if this does what you want: http://www.mathworks.com/help/vision/ref/ocr.html#bt548t1-2_1. Otherwise, if your lines are aligned with the edges of the image, get the mean horizontally:
verticalProfile = mean(grayImage, 2);
Then threshold
inALineIndexes = verticalProfile < 128; % or whatever value works.
  3 commentaires
Image Analyst
Image Analyst le 17 Nov 2015
The image doesn't come through - it pops up something asking for a login.
Meghashree G
Meghashree G le 17 Nov 2015
<<
>>
This is the image sir

Connectez-vous pour commenter.

Catégories

En savoir plus sur Image and Video Ground Truth Labeling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by