Android 带 NDK 的 Tesseract OCR (c++)

Android Tesseract OCR with NDK (c++)

是否可以通过 NDK 在 android 中使用 google tesseract OCR?

所以我有一些使用 tesseract OCR 的 C++ 代码,现在我不想将它移动到 Android,因为它与使用 openCV 的代码相关联,而我在 C++ 中有这个。

非常感谢您的建议和链接以及我如何使用和构建它。

当然可以通过 NDK 在您自己的 Android 应用程序中使用 Tesseract OCR 库。但是,您必须将 Tesseract 库与另一个名为 Leptonica Image Processing Library 的库一起编译,它们需要花费大量时间进行编译。

一个叫 Robert Theis 的人创建了一个 GitHub 项目(名为 tess-two) that would allow you to call the Tesseract API using Java through the Android Java Native Interface (JNI). You can read a bit more about that here

我建议您遵循 this Gautam Gupta 编写的有关如何设置的特定教程。

在该教程的同一页上,还有一个解释性 comment 为您提供了使用 [=25] 配置 Tesseract OCR 库所需遵循的分步说明列表=] 在 Android Studio 中的应用程序。

编辑:评论 URL 似乎并不总是直接进入评论,因此要查找的评论来自用户 Matz(2015 年 4 月 21 日),并以“对于 ANDROID STUDIO 开发人员,这是我在 Windows 8.1 机器上所做的。"