How to segment Non-Connecting word from the segmented line. I had tried some part of the program but i could get the result. i want to segment the word as separate image and save it into a specific folder.
조회 수: 1 (최근 30일)
이전 댓글 표시
I wrote up to this. here is my code.
**character between the words are not connected.
close all;
clear all;
clc;
im=imread('Segmented_line1.jpg');
figure, imshow(im);
bw=im2bw(im);
a=~bw;
figure, imshow(a);
b=sum(a,1);
measurements = regionprops(b == 0, 'Area', 'PixelIdxList');
fiveLongRegions = find([measurements.Area] >= 20);
theIndexes = vertcat(measurements(fiveLongRegions).PixelIdxList);
c=a;
c(:,theIndexes)=1;
figure, imshow(c);
e=~c;
figure, imshow(e);
output image:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163226/image.png)
I want to segment this words which are bounded by black pixel, and save it into a specific folder. If i used bounding box it is not segmented in a order. segmented result should be in order. Example first word of the line image should be first segmented word and as on upto last
댓글 수: 0
답변 (1개)
moahaimen talib
2017년 5월 6일
dear sir i need to line segment for image then segment the words could help me with that the image is binary thank you
댓글 수: 3
sayar chit
2017년 10월 26일
Hi Sir! I want to segment four pieces. Hod do I need it? Can you help me. Help me please. Thank all!
</matlabcentral/answers/uploaded_files/92331/qa.jpg> I used @Y.L.K KHUMAN's code.
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!