How can I determent baseline in arabic handwriting

2 views (last 30 days)
I have problem in detect Arabic handwriting baseline . first i I used nested forloop to sum the black pixel in each line ,then the row which have max value it is baseline . so some tel me use histogram,but i don't now how to determend .
Image = imread('40-1.png');
%-----------------------------------------------
imshow(d);
BW = im2bw(d,0.8);
nelements = hist(BW)
[row,col]=size(BW)
%_______________________________
z=plot(BW)
%***********************************
c=0;
counts=0;
cou=0;
for i=1:row
for j=1:col
if (bw(i,j)==0)
c(i)=c(i)+1
end
end
s(i)=c(i)
end
V=max(s)

Answers (1)

Image Analyst
Image Analyst on 24 Mar 2014
23.4.8.2 Arabic Character Recognition
23.4.8.3 Arabic Recognition, Word Level, Word Spotting
  6 Comments
ra
ra on 28 Mar 2014
The row have maximum number of black pixel is baseline of handwriting

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!