的tesseract OCR的Andr​​oid在Windows [英] Tesseract OCR Android in Windows

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

问题描述

我读过的问题,论坛和博客这一切,但我仍然有一个问题。首先,我打勾苔丝个作为库也是我的项目的使用苔丝二作为一个库。我下载的Andr​​oid NDK,并从我的项目的属性我点击建设者,然后新的 - 那么我选择NDK的NDK-build文件>程序。顺便说一句我的项目是高塔姆·古普塔的项目。他已经给定的项目。链接: https://github.com/GautamGupta/Simple-Android-OCR 。下面当我运行该项目在我的手机,应用程序启动并拍摄照片,但是当我preSS保存然后应用程序提供了错误。 http://t1307.hizliresim.com/1c/l/qg0rl.png

I've read all of questions forums and blogs about it but i still have a problem. Firstly, i ticked tess-two as a library also my project's using tess-two as a library. I downloaded Android-NDK and from my project's properties i clicked Builders and then new -> Program then i choose ndk's ndk-build file. By the way my project is Gautam Gupta's project. He'd given project. Link: https://github.com/GautamGupta/Simple-Android-OCR. When i run that project in my phone, application starts and captures photo but when i press save then application gives error below. http://t1307.hizliresim.com/1c/l/qg0rl.png

推荐答案

看起来你需要下载只 TessTwo ,请确保您有正确设置环境变量(ANT_HOME,ANDROID_HOME和ANDROID_NDK),所以这些点,你必须的蚂蚁的Andr​​oid软件开发工具包

Looks like you need to download only TessTwo, make sure you have properly setup the environments variables (ANT_HOME, ANDROID_HOME and ANDROID_NDK) so these point to where you have Ant and Android SDKs.

然后,它通过以下TessTwo指导建设项目的问题。您设置可以导入库项目。

Then it's a matter of building the project by following TessTwo guidance. That you set up the library-project that can be imported.

不要忘记,该行命令必须在Cygwin中进行。一旦库项目建成,你应该在的库/ 的正确的的.so 的文件*。为了实际使用这些,你可以先此链接

Don't forget that the line commands must be performed in CygWin. Once the library project is built you should have correct .so files in libs/*. In order to actually use these, you could start with this link.

@Burak: 我已经解决了我的问题。对于Windows; 写codeS下面的Cygwin

@Burak: I have solved my problem. For Windows; Write the codes below to Cygwin

a.cd <project-path'i>/tess-two
b.export TESSERACT_PATH=${PWD}/external/tesseract-3.01
c.export  LEPTONICA_PATH=${PWD}/external/leptonica-1.68
d.export LIBJPEG_PATH=${PWD}/external/libjpeg
e./cygdrive/<ndk-directory>/ndk-build

写codeS下面以CMD

Write the codes below to CMD

f.android update project --target 1 --path .
g. ant release 

不要忘了。在步骤f。

Don't forget the "." at step f.

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

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