Effacer les filtres
Effacer les filtres

code for horizontal projection profile of an image

2 vues (au cours des 30 derniers jours)
saleem
saleem le 6 Août 2012
Commenté : Walter Roberson le 23 Jan 2016
hello friends, to perform skew detection and correction, iam using horizontal projection profile. so i need the code for horizontal projection profile to segment lines and i need the code for horizontal projection profile of each word, for image containing handwritten characters.

Réponses (4)

Image Analyst
Image Analyst le 6 Août 2012
First pick an algorithm from section 23 of the Vision Bibliography: http://iris.usc.edu/Vision-Notes/bibliography/contents.html. Then come back here with your MATLAB coding questions.

Walter Roberson
Walter Roberson le 6 Août 2012

luong v
luong v le 2 Déc 2015
Modifié(e) : luong v le 2 Déc 2015
Hi every one, I have a license plate, now I want to use horizontal projection to segment the license plate into two lines. Please help me, Thanks you
  1 commentaire
Image Analyst
Image Analyst le 2 Déc 2015
verticalProjection = mean(grayImage, 2);
horizontalProjection = mean(grayImage, 1);

Connectez-vous pour commenter.


Rujal
Rujal le 22 Jan 2016
how to plot horizontal projection horizontally ? I didn't get idea.
  5 commentaires
Image Analyst
Image Analyst le 23 Jan 2016
But what if, in handwriting, descenders in one row dip below some risers in the row below? Those two rows would not be detected as two rows with any(). And with sum() and mean(), the descenders would get clipped. So to be really robust, you'd need something more sophisticated than these simple functions. But I can't spend the time to develop a robust OCR program for anyone.
Walter Roberson
Walter Roberson le 23 Jan 2016
You need the ascenders and descenders for proper classification of the characters. Horizontal projection is simply not sufficient for the case where you do not have clean separation between the lines.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by