Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to segment words in an image containing paragraph? Doubt in ur previous answer

조회 수: 1 (최근 30일)
Divya
Divya 2017년 1월 17일
마감: John D'Errico 2017년 1월 17일
Hi Image Analyst,
For the image as you discussed in earlier post,
In your code for segmenting lines,
grayImage = imread('line.png');
horizontalProfile = mean(grayImage, 1);
darkColumns = horizontalProfile < 210;
labeledColumns = bwlabel(darkColumns);
word3 = ismember(labeledColumns, 3);
wordNumber3 = grayImage(:, word3);
I'm unable to segment lines with this code.
the statement "darkColumns = horizontalProfile < 210; " gives zero column.
And when labeling such column doesn't give any result.
I tried changing threshold values. But I am getting stuck in labeling the columns. Can you please help me

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by