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

11 次查看(过去 30 天)
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

采纳的回答

Image Analyst
Image Analyst 2012-8-25
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 个评论
Emerson De Souza
Emerson De Souza 2012-8-25
编辑:Walter Roberson 2012-8-25
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 2012-8-25
编辑:Image Analyst 2012-8-25
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by