Android OCR using tess-two - a fork of tesseract

I am using OCR as a module in a project I am doing. After a deep dash for a week, I thought I should run a test app on eclipse to see how accurate it is. I found a tess-two fork of tesseract as my OCR support. I downloaded tess-two from:

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

I installed everything, I imported tess-two in my eclipse. I have set my eclipse to handle and build projects using my own code. I successfully created tess-two after solving 1 or 2 build path errors. DONE!

Then I found a simple OCR application that used the same tess-two. i load it from:

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

I have imported this project into my workspace. Fixed the build path in which I included tess-two as a supporting project in the build path. When I successfully create two projects and run them on my target device, the application works successfully. when I start the camera with a button that the camera opens, but when I save the image so that the ocr works 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 an exception thrown by logcat on eclipse. Any idea how I can handle and remove this exception? Tess-2 was target android-8 and the simple ocr app was targeting 10.

+3


source to share


2 answers


  • open project properties
  • add tess-two

    to required projects
  • check the box tess-two

    in order and export
  • now clear and build Simple-Android-OCR



Hope it helps

+7


source


make sure you mark tess-two as a library in properties then right click your simple ocr and in properties add tess two library and apply



0


source







All Articles