如何在C ++中将gif文件转换为txt文件 [英] How to convert gif file to txt file in C++

查看:100
本文介绍了如何在C ++中将gif文件转换为txt文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将250 gif图像转换为文本文件。 gif文件格式的字母是非标准的手写文本。请帮我一些示例代码。我的gif文件是:



I need to convert 250 gif images into text files. The letters in gif file format is non-standard hand-written texts. Please help me with some sample codes. My gif file is :

<a href="http://tinypic.com?ref=f03cx5" target="_blank"><img src="http://i68.tinypic.com/f03cx5.gif" border="0" alt="Image and video hosting by TinyPic"></a>





我尝试过的事情:



我是新来的。请帮我完成我的项目。



What I have tried:

I am new to this. Kindly help me to complete my project.

推荐答案

Quote:

gif文件格式是非标准的手写文本。

The letters in gif file format is non-standard hand-written texts.



如果仔细查看GIF,你会发现它根本不是手写的。

这是一个用文本处理器编写的文本,文本是合理的,字体远程看起来像手写,你看到相同字母出现之间的差异是因为图片质量低。


If you look carefully the GIF, you will see that it is not hand-written at all.
It is a text written in a text processor, the text is justified, the font remotely look like hand-writing, the difference you see between occurrences of same letter is because of low quality of pictures.

Quote:

我需要将250 gif图像转换为文本文件。

I need to convert 250 gif images into text files.



正如Richard所说, OCR是唯一的方法。


As Richard said, OCR is the only way.

Quote:

我尝试过OCR。它正在转换不可读的格式。你可以帮我这个吗?

I tried with OCR. It's converting unreadable format. Can you help me on this?



问题是图片质量低,解决方案质量更好。训练OCR软件将改善结果,但你必须检查一切。



另一种方式:

一开始,这些图片从文本处理器文档中获取,看看你是否可以把手放在那个文件上。


The problem is the low quality of pictures, and the solution is better quality. Training the OCR software will improve the result, but you will have to check everything.

The other way:
At beginning, those pictures are taken from a text processor document, see if you can put your hands on that file.


我相信你正在寻找OCR(光学字符识别)软件。



也许尝试类似:

免费在线OCR - 转换JPEG,PNG,GIF ,BMP,TIFF,PDF,DjVu to Text [ ^ ] < br $> b $ b或

我的免费OCR |转换.jpg .png .gif&免费下载文本 [ ^ ]
I believe you are looking for OCR (optical character recognition) software.

Maybe try something like :
Free Online OCR - Convert JPEG, PNG, GIF, BMP, TIFF, PDF, DjVu to Text[^]
or
My Free OCR | Convert .jpg .png .gif & Download Free as Text[^]


这篇关于如何在C ++中将gif文件转换为txt文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆