Tesseract OCR Android in Windows

前端 未结 1 434
既然无缘
既然无缘 2021-01-14 15:27

I\'ve read all of questions forums and blogs about it but i still have a problem. Firstly, i ticked tess-two as a library also my project\'s using tess-two as a library. I d

1条回答
  •  被撕碎了的回忆
    2021-01-14 16:10

    Looks like you need to download only TessTwo, make sure you have properly setup the environments variables (ANT_HOME, ANDROID_HOME and ANDROID_NDK) so these point to where you have Ant and Android SDKs.

    Then it's a matter of building the project by following TessTwo guidance. That you set up the library-project that can be imported.

    Don't forget that the line commands must be performed in CygWin. Once the library project is built you should have correct .so files in libs/*. In order to actually use these, you could start with this link.


    @Burak: I have solved my problem. For Windows; Write the codes below to Cygwin

    a.cd /tess-two
    b.export TESSERACT_PATH=${PWD}/external/tesseract-3.01
    c.export  LEPTONICA_PATH=${PWD}/external/leptonica-1.68
    d.export LIBJPEG_PATH=${PWD}/external/libjpeg
    e./cygdrive//ndk-build
    

    Write the codes below to CMD

    f.android update project --target 1 --path .
    g. ant release 
    

    Don't forget the "." at step f.

    0 讨论(0)
提交回复
热议问题