简体   繁体   English

OCR使用tesseract编译错误的简单示例android

[英]OCR Simple example android using tesseract compilation error

I am making a library called tesstwo , and it works, but there's one problem when I'm trying to compile for Simple Android OCR. 我正在创建一个名为tesstwo的库,它可以工作,但是当我尝试编译Simple Android OCR时有一个问题。 It says: 它说:

import com.googlecode.tesseract.android.TessBaseAPI;
cannot resolve library 

Does anyone know what the problem and how to solve it? 有谁知道问题是什么以及如何解决?

Hey i found the solution for it 嘿,我找到了解决方案

all u need is to build ur Ndk and How to do that? 你需要的只是建立你的Ndk以及如何做到这一点? Its simple 这很简单

just take the path where to have saved the tess-two folder in the terminal(ubuntu) for 只需要在终端(ubuntu)中保存tess-two文件夹的路径

Ubuntu:cd /home/workspace/tess-two-master/tess-two //This is my path u will have different
 tess-two$: /(path where u have installed ur ndk)/ndk-build

Windows:cd /cygdrive/e/terril/workspace/tess-two-master/tess-two ; /cygdrive/e/terril/Libraries/android-ndk-r8b-windows/android-ndk-r8b/ndk-build

It will work 它会工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM