Skip to content

Starting out with Simple-Android-OCR on ubuntu

pretty boring post. basically followed this tutorial

  1. make sure you have the build toolssudo 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
  2. install android sdk
  3. install android ndk
  4. add adt tools to your path and .bashrc
  5. 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
  6. build eyes-two
    cd ../eyes-two/
    ndk-build
    fix target in project.properties
    android update project –path .
    ant release
  7. 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
  8. 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

  9. open eclipse, right click on simple ocr project and run as android application.
  10. success!
    dev

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*