필터 지우기
필터 지우기

How to segment an image containing text?

조회 수: 2 (최근 30일)
Meghashree G
Meghashree G 2015년 11월 17일
편집: Meghashree G 2015년 11월 17일
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

답변 (1개)

Image Analyst
Image Analyst 2015년 11월 17일
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
Image Analyst
Image Analyst 2015년 11월 17일
The image doesn't come through - it pops up something asking for a login.
Meghashree G
Meghashree G 2015년 11월 17일
<<
>>
This is the image sir

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

카테고리

Help CenterFile Exchange에서 Image and Video Ground Truth Labeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by