pretty boring post. basically followed this tutorial
- make sure you have the build tools
sudo apt-get install build-essential
sudo apt-get install ia32-libs
sudo apt-get update
sudo apt-get install ia32-libs
sudo apt-get install openjdk-6-jdk
sudo apt-get install icedtea-plugin
- install android sdk
- install android ndk
- add adt tools to your path and .bashrc
- build tess-two
git clone git://github.com/rmtheis/tess-two tess
cd tess/tess-two
ndk-build
fix target in project.properties
android update project –path .
ant release - build eyes-two
cd ../eyes-two/
ndk-build
fix target in project.properties
android update project –path .
ant release - build simple-android ocr
git clone https://github.com/GautamGupta/Simple-Android-OCR.git Simple-Android-OCR
go change target version in properties file
point the project at the tess two install path - I had trouble getting my phone to allow the debug connection. “adb devices” would either return nothing or the device serial number as question marks or the status as unauthorized. I tried several combinations of restarting adb along with restarting the phone, unplugging and replugging, disabling / enabling dev mode. I think is what finally did it was removing all currently authorised computers from my phone.ANDROID_SDK_HOME=~/adt-bundle-linux-x86-20140702/sdk
export ANDROID_SDK_HOME
and add to .bashrc
2015 adb kill-server
2016 adb start-server
2017 adb devices - open eclipse, right click on simple ocr project and run as android application.
- success!
Post a Comment