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
0 个评论
采纳的回答
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 个评论
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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!