本文介绍了如何在C ++中将gif文件转换为txt文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我需要将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. 这篇关于如何在C ++中将gif文件转换为txt文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-05 23:22