how to segment form?

1 visualización (últimos 30 días)
lamghari
lamghari el 27 de Nov. de 2014
Comentada: lamghari el 29 de Nov. de 2014
I have a form table that contains characters. how to extract these characters?
  4 comentarios
Thorsten
Thorsten el 28 de Nov. de 2014
Editada: Thorsten el 28 de Nov. de 2014
What do you mean by "extract these characters"? Select the images of the characters or do an OCR (optical character recognition) or something else?
lamghari
lamghari el 28 de Nov. de 2014
select the images of the characters

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 28 de Nov. de 2014
First I'd sum the image vertically and horizontally and look for the rows and columns where the grid lines are. Then call imcrop.
[rows, columns, numberOfColorChannels) = size(grayImage);
horizontalProfile = sum(grayImage, 1);
verticalProfile = sum(grayImage, 2);
binaryHoriz = horizontalProfile < someNumber;
and so on. Give it a try.
  3 comentarios
Image Analyst
Image Analyst el 29 de Nov. de 2014
Plot the profiles and you'll be able to tell what the number is. It might be like half the max value or something.
lamghari
lamghari el 29 de Nov. de 2014
ok thank you very much

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by