最好的OCR(光学字符识别),例如机器人最好的、机器人、光学、字符

2023-09-12 00:20:05 作者:老師丶作業跑啦

我想OCR在Android系统运行的例子,我做了一些研究,并找到实现OCR在Android的一个例子。

I want a running example of OCR in android, I have done some research and find an example that implements OCR in android.

https://github.com/rmtheis/tess-two 并在其中有三个项目文件..

https://github.com/rmtheis/tess-two and in it there are three projects files...

在眼里,两个 苔丝个 苔丝个测试

我已经通过导入三个项目文件,但苔丝,二,测试不包括任何活动,所以它不会运行执行的苔丝 - 双测试项目。

I have executed the "tess-two-test" project by importing the three project files but "tess-two-test" does not include any activities so it will not run.

任何人都可以建议我一个更好的例子?

Can anybody suggest me a better example?

推荐答案

和你一样我也面临着在Android中实现OCR许多问题,但经过多番谷歌搜索我找到了解决办法,而且它肯定是OCR的最好的例子。

Like you I also faced many problems implementing OCR in Android, but after much Googling I found the solution, and it surely is the best example of OCR.

让我来解释一下使用一步一步的指导。

Let me explain using step-by-step guidance.

首先,从 https://github.com/rmtheis/tess-two 下载源$ C ​​$ C

First, download the source code from https://github.com/rmtheis/tess-two.

导入所有三个项目。导入完成后,你会得到一个错误。 为了解决这个错误,你必须创建一个 RES 文件夹中的苔丝个项目

Import all three projects. After importing you will get an error. To solve the error you have to create a res folder in the tess-two project

首先,刚刚创建的 RES 文件夹中的苔丝个由苔丝 - 二> RightClick->新的文件夹 - >将它命名为资源

First, just create res folder in tess-two by tess-two->RightClick->new Folder->Name it "res"

做这在所有三个项目中的错误后,应消失。

After doing this in all three project the error should be gone.

现在从 https://github.com/rmtheis/android-ocr ,下载源$ C ​​$ C在这里,你会得到最好的例子。

Now download the source code from https://github.com/rmtheis/android-ocr, here you will get best example.

现在你只需要导入到你的工作空间,但首先你要下载的Andr​​oid NDK从该网站:

Now you just need to import it into your workspace, but first you have to download android-ndk from this site:

http://developer.android.com/tools/sdk/ndk/index.html我的Windows 7 - 32位PC,所以我有下载http://dl.google.com/android/ndk/android-ndk-r9-windows-x86.zip该文件

http://developer.android.com/tools/sdk/ndk/index.html i have windows 7 - 32 bit PC so I have download http://dl.google.com/android/ndk/android-ndk-r9-windows-x86.zip this file

现在提取它假设我有提取到 E:\ SOFTWARE \的Andr​​oid NDK-R9 所以我要把这条道路上的环境变量

Now extract it suppose I have extract it into E:\Software\android-ndk-r9 so I will set this path on Environment Variable

右键点击 MyComputer->属性 - >高级 - 系统设置 - >高级 - >环境变量 - > 找到的 PATH 在第二个框下方,并设置类似路径像下面的图片

Right Click on MyComputer->Property->Advance-System-Settings->Advance->Environment Variable-> find PATH on second below Box and set like path like below picture

做到了

现在打开CMD,进入到D:\ Android的工作区\苔丝二 像下面

Now open cmd and go to on D:\Android Workspace\tess-two like below

如果您已成功设置NDK的环境变量,然后只需键入 NDK建造就像比输入你不会得到任何类型的错误,所有文件将被成功编译上​​面的图片:

If you have successfully set up environment variable of NDK then just type ndk-build just like above picture than enter you will not get any kind of error and all file will be compiled successfully:

现在从 https://github.com/rmtheis/tess-two 下载其他来源的code也,并提取并导入它,并给它命名OCRTest,就像在我的电脑是在 D:\ Android的工作区\ OCRTest

Now download other source code also from https://github.com/rmtheis/tess-two , and extract and import it and give it name OCRTest, like in my PC which is in D:\Android Workspace\OCRTest

导入测试两本和运行OCRTest并运行它;你会得到OCR的最好的例子。

Import test-two in this and run OCRTest and run it; you will get the best example of OCR.

 
精彩推荐
图片推荐