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 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