How to extract the numbers of an image file into a table

11 visualizaciones (últimos 30 días)
Hi, I have a table saved as filename.bmp and need to extract the values to a text file.txt. The image background is completely black and the numbers are white. The table is formed of six columns and 22 lines. There is no further characters (alphabetic or images) besides the black background and the white numbers.
I hope someone could tell me how can I do this
Thank you in advance
Emerson

Respuesta aceptada

Image Analyst
Image Analyst el 25 de Ag. de 2012
You need an "OCR" program. Try to find one in the File Exchange. It might be helpful to get rid of the grid lines first so that you have only the numbers. Post an image to tinypic.com if you want more help.
  2 comentarios
Emerson De Souza
Emerson De Souza el 25 de Ag. de 2012
Editada: Walter Roberson el 25 de Ag. de 2012
Hi Image Analyst, thank you in advance for trying to help. I did not find yet any OCR-program helpful in the File Exchange. Meanwhile I uploaded an image in tinypic.com, see the following
Hope you have any other idea that could be helpful
Thanks again
Emerson
Image Analyst
Image Analyst el 25 de Ag. de 2012
Editada: Image Analyst el 25 de Ag. de 2012
Personally, I'd just type the numbers in by hand. Is there any reason why you want to do OCR on it? If you insist, then why not use OCR programs like Adobe Acrobat? And I'm sure there are free/open source/shareware programs that could do it in a snap. And how did these numbers get into an image in the first place? Can't you have the program that made the image file export them into a text file instead? I mean, why not make it easy on yourself? Actually it looks like you have already done that, as you showed in your other post: http://www.mathworks.com/matlabcentral/answers/46732-how-to-import-an-array-separated-by-space-from-a-text-file
As a last resort, you could make your own OCR program because these numbers are so perfectly formed and contrast nicely with the background, but it would still take more work than typing them in by hand.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB 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