采用Android的tesseract OCR苔丝两叉苔丝、Android、tesseract、OCR

2023-09-06 01:11:44 作者:权控江山

我使用OCR作为在在做一个项目的模块。挖深了一个星期后,我认为我应该运行在Eclipse中测试应用程序只是为了看看如何准确它的工作原理。我发现苔丝二的tesseract的一个分支,以我的OCR支持。我下载了苔丝 - 两个来自:

https://github.com/rmtheis/tess-two/downloads

我所有的设置我进口苔丝两到我的Eclipse。我也把我的日食涉及本地code搬运和建设项目。我没有解决1或2的构建路径错误后,成功打造苔丝个。 DONE!

后来我发现这是使用相同的苔丝个简单的OCR应用程序。我从这里下载:

https://github.com/GautamGupta/Simple-Android-OCR

我导入这个项目到我的工作区。更正构建路径I包括苔丝二是在构建路径中的配套项目。当我成功打造了两个项目,我的目标设备上运行的应用程序成功运行。当我运行了相机的按钮,相机会打开,但是当我将图片保存,使得OCR上运行我得到一个异常:

 找不到类的com.google code.tesseract.android.TessBaseAPI'的方法com.datumdroid.android.ocr.simple.SimpleAndroidOCRActicity.picturetaken引用
 
Tesseract OCR引擎的安装

这是通过在Eclipse中的logcat产生的异常。任何想法,我该如何应对和消除这种异常?苔丝二是机器人的目标-8和简单的OCR应用程序为目标-10。

解决方案 打开项目房源 - 添加的必需项目苔丝个 勾选了,以便与放苔丝个的复选框;出口 现在,清洁和放大器;建立你的简单的Andr​​oid-OCR

希望这有助于

Am using OCR as a module in a project that am doing. After digging in deep for a week i thought that i should run a test application on eclipse just to see how accurately it works. i found tess-two a fork of tesseract as a support to my OCR. i downloaded tess-two from:

https://github.com/rmtheis/tess-two/downloads

I was all set i imported tess-two into my eclipse. I did set my eclipse for handling and building projects involving native code. I did build tess-two successfully after solving 1 or 2 build path errors. DONE!

Then i found a simple OCR application which was using the same tess-two. i download it from:

https://github.com/GautamGupta/Simple-Android-OCR

I imported this project into my workspace. Corrected the build path i included tess-two as a supporting project in the build path. When i successfully build the two projects and run it on my target device the application runs successfully. when i run the camera with the button the camera opens but when i save the picture so that the ocr runs on it i get an exception:

could not find class 'com.googlecode.tesseract.android.TessBaseAPI' referenced from     method com.datumdroid.android.ocr.simple.SimpleAndroidOCRActicity.picturetaken'

This was the exception generated by the logcat on eclipse. Any idea how can i deal and remove this exception?? Tess-two was android target-8 and simple ocr application was target-10.

解决方案

open the project properties add tess-two in required projects tick the checkbox for tess-two in order & export now clean & build your Simple-Android-OCR

Hope this helps