line word and character segmentation matlab code
#1

text segmentation (line, word, character) with matlab cod
Reply
#2
line word and character segmentation matlab code

I=imread('1line.tif'); %% Read Image

figure(1) imshow(I); title('INPUT IMAGE WITH NOISE');

if size(I,3)==3 I=rgb2gray(I); end threshold = graythresh(I); I =~im2bw(I,threshold); I = bwareaopen(I,60); figure(2) imshow(~I); title('INPUT IMAGE WITHOUT NOISE')

Iedge=edge(uint8(I)); figure(3), imshow(Iedge); title('EDGE ONLY')

se=strel('square',1); Iedge2=imdilate(Iedge,se); figure(4), imshow(Iedge2); title('DILATED IMAGE')

seD = strel('diamond',1); BWfinal = imerode(Iedge2,seD); l BWfinal = imerode(BWfinal,seD);

BWoutline = bwperim(BWfinal); Segout = I; Segout(BWoutline) = 255; figure(5), imshow(Segout), title('SEGMENTED IMAGE');

[L, a,]=bwlabel(Segout); propied=regionprops(L,'BoundingBox'); for n=1Confusedize(propied,1) rectangle('Position',propied(n).BoundingBox,'EdgeColor','g','LineWidth',1); end for n=1:a [r,c] = find(L==n); n1=Segout(min®:max®,min©:max©); figure, subimage(~n1); pause(0.5) imsave(); end

Segmenting the Hindi text into number of lines and words and characters

clc;
clear all;
a=imread('D:/sahoo/sample.jpg');
%figure,imshow(a)
b=rgb2gray(a);
%Igray1=medfilt2(b);
Ibw = im2bw(b,graythresh(b));
[m n] = size(Ibw);
Ibw2=~Ibw;
Iedge = edge(uint8(Ibw));
imshow(Iedge)
se = strel('square',2);
Iedge2 = imdilate(Iedge, se);
imshow(Iedge2);
%Image Filling
Ifill= imfill(Iedge2,'holes');
imshow(Ifill)
Ilabel = bwlabel(Ifill);
%disp(num);
Ibox = regionprops(Ilabel,'BoundingBox');
Ibox(1)
%Ibox = [Iprops.BoundingBox];
%Ibox = reshape(Ibox,[4 15]);
imshow(Ibw2)
hold on;
for cnt = 1:53
rectangle('position',Ibox(:,cnt),'edgecolor','r');
end
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Tagged Pages: code matlab for segmentation text line in word,
Popular Searches: character education songs and poems, character segmentation, segmentation of line word, matlab code for line follwer, line segmentation matlab code, line segmentation, matlab code for word segmentation,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  slam book in word doc 1 1,901 20-09-2018, 07:14 AM
Last Post: Guest
  volvo bus ticket format in word download 7 15,969 27-08-2018, 09:27 AM
Last Post: annish_m
  how to calculate distance in heed protocol by using matlab 1 1,868 15-06-2018, 03:54 PM
Last Post: Guest
  matlab code for incremental conductance mppt 1 1,410 02-05-2018, 02:28 PM
Last Post: eksi
  anomaly detection code in matlab 3 2,074 23-04-2018, 12:04 AM
Last Post: Guest
  matlab code for liver tumor segmentation 2 1,574 01-04-2018, 06:29 PM
Last Post: [email protected]
  matlab code for vehicle tracking using unscented kalman filter 3 16,666 26-03-2018, 08:57 PM
Last Post: fodayj
  source code in php for online training and placement cell management 1 6,665 23-03-2018, 09:06 AM
Last Post: ritzi
  matlab code for facial expression recognition using frequency domain 1 2,663 19-02-2018, 06:03 PM
Last Post: Guest
  fake irctc e ticket in word format download 7 8,246 18-02-2018, 03:16 PM
Last Post: [email protected]

Forum Jump: