code for horizontal projection profile of an image

조회 수: 4 (최근 30일)
saleem
saleem 2012년 8월 6일
댓글: Walter Roberson 2016년 1월 23일
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.

답변 (4개)

Image Analyst
Image Analyst 2012년 8월 6일
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 2012년 8월 6일

luong v
luong v 2015년 12월 2일
편집: luong v 2015년 12월 2일
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
Image Analyst
Image Analyst 2015년 12월 2일
verticalProjection = mean(grayImage, 2);
horizontalProjection = mean(grayImage, 1);

댓글을 달려면 로그인하십시오.


Rujal
Rujal 2016년 1월 22일
how to plot horizontal projection horizontally ? I didn't get idea.
  댓글 수: 5
Image Analyst
Image Analyst 2016년 1월 23일
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 2016년 1월 23일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Scripts에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by