How to remove header line (Shirorekha) from devanagari word/text?

4 visualizaciones (últimos 30 días)
A B Shinde
A B Shinde el 11 de Jun. de 2014
Comentada: srijana prasad el 3 de Mayo de 2017
I was able to plot the horizontal projection of the image and came to know that where is shirorekha... but how to remove that headerline?
my code is...
I = imread('marathi_word_3.jpg'); imshow(I); title('Original Scanned Document');
level = graythresh(I); doc_binary = im2bw(I,level); % figure, imshow(doc_binary); title('Binary Document');
J = imcomplement(doc_binary); figure, imshow(J);
% horizontal projection horizontalProjection = mean(J,2); figure, plot(horizontalProjection, 'b-'); title('Horizontal Projection/Horizontal Histogram');
  3 comentarios
Image Analyst
Image Analyst el 2 de Mayo de 2017
I think the problem was/is knowing which rows are the "shirorekha row". You have not given the algorithm for that. I think you might be able to do it by
shirorekhaRows = horizontalProjection < someValue;
This relies on the fact that the row with the line that goes most of the way across the image will be the darkest rows in the vertical profile (horizontalProjection).
srijana prasad
srijana prasad el 3 de Mayo de 2017
Can I get code for removing shirorekha row..???

Iniciar sesión para comentar.

Respuestas (1)

srijana prasad
srijana prasad el 2 de Mayo de 2017
Can I get the code to remove headline

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by