且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

OCR用的tesseract接口

更新时间:2022-06-22 22:46:21

来源$ 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.