how to segment form?

1 vue (au cours des 30 derniers jours)
lamghari
lamghari le 27 Nov 2014
Commenté : lamghari le 29 Nov 2014
I have a form table that contains characters. how to extract these characters?
  4 commentaires
Thorsten
Thorsten le 28 Nov 2014
Modifié(e) : Thorsten le 28 Nov 2014
What do you mean by "extract these characters"? Select the images of the characters or do an OCR (optical character recognition) or something else?
lamghari
lamghari le 28 Nov 2014
select the images of the characters

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 28 Nov 2014
First I'd sum the image vertically and horizontally and look for the rows and columns where the grid lines are. Then call imcrop.
[rows, columns, numberOfColorChannels) = size(grayImage);
horizontalProfile = sum(grayImage, 1);
verticalProfile = sum(grayImage, 2);
binaryHoriz = horizontalProfile < someNumber;
and so on. Give it a try.
  3 commentaires
Image Analyst
Image Analyst le 29 Nov 2014
Plot the profiles and you'll be able to tell what the number is. It might be like half the max value or something.
lamghari
lamghari le 29 Nov 2014
ok thank you very much

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Read, Write, and Modify Image 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