OCR用的tesseract接口 [英] OCR with the Tesseract interface

查看:209
本文介绍了OCR用的tesseract接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你如何使用OCR的tesseract的接口在C#中的TIFF文件?目前,我只知道如何使用可执行做到这一点。

How do you OCR an tiff file using Tesseract's interface in c#? Currently I only know how to do it using the executable.

推荐答案

来源$ C ​​$ C似乎能胜任的可执行文件,则可能需要重新布线的东西了一点,所以它会建立,而不是作为一个DLL。我没有用Visual C太多的经验+ +,但我认为它不应该有一些研究是太辛苦了。我的猜测是有人可能犯了一个库版本已经,你应该尝试谷歌。

The source code seemed to be geared for an executable, you might need to rewire stuffs a bit so it would build as a DLL instead. I don't have much experience with Visual C++ but I think it shouldn't be too hard with some research. My guess is that someone might have had made a library version already, you should try Google.

一旦你的tesseract-OCR code在一个DLL文件,然后你可以将文件导入通过Visual Studio的C#项目,并将它创建包装类,并为你做所有的东西编组。如果您不能导入然后的DllImport 会让你调用函数从C#的DLL code。

Once you have tesseract-ocr code in a DLL file, you can then import the file into your C# project via Visual Studio and have it create wrapper classes and do all the marshaling stuffs for you. If you can't import then DllImport will let you call the functions in the DLL from C# code.

然后,你可以看看原始的可执行找上叫什么功能正常OCR TIFF图像的线索。

Then you can take a look at the original executable to find clues on what functions to call to properly OCR a tiff image.

这篇关于OCR用的tesseract接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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