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

11 ビュー (過去 30 日間)
Emerson De Souza
Emerson De Souza 2012 年 8 月 25 日
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 Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by