Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
how to segment words in an image containing paragraph? Doubt in ur previous answer
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi Image Analyst,
For the image as you discussed in earlier post,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159866/image.png)
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 Kommentare
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!