jameshan92 / tesseract-android-tools

Automatically exported from code.google.com/p/tesseract-android-tools
0 stars 0 forks source link

Application crashes on api.init(datapath, lang) #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Successful build of library ( followed the readme ) and the so files 
generated
2. copy tessdata folder that contains languages to /mnt/sdcrad/ on my galaxy s
3. call theses functions 
TessBaseAPI api = new TessBaseAPI();
api.init("/mnt/sdcard/tessdata", "eng");

What is the expected output? What do you see instead?
I expected the program to continue execting.
I get these messages in ddms : 
06-07 01:19:25.335: INFO/Tesseract(native)(32592): Attempting Init() with 
dir=/mnt/sdcard/tessdata, lang=eng
06-07 01:19:25.358: INFO/DEBUG(31742): tid 32591 does not exist in pid 32584. 
ignoring debug request
06-07 01:19:25.370: INFO/ActivityManager(311): Process yostane.android.ocr (pid 
32592) has died.

and the application is killed.

What version of the product are you using? On what operating system?
tessreact-for-andriod-1.00
used ubuntu64 11.04 to build so files
source versions as in readme file
java application compiled using eclipse on vista 64

Please provide any additional information below.
I didn't specify any permission for the application

Original issue reported on code.google.com by yassine....@gmail.com on 6 Jun 2011 at 11:28

GoogleCodeExporter commented 9 years ago
you may miss trainneddata file. please fix path of the file location in class 
com.googlecode.tesseract.android.test.TessBaseAPITest.TESSBASE_PATH. you could 
check the detail error on junit logger

Original comment by hirasirojudin@gmail.com on 22 Jul 2011 at 8:10

GoogleCodeExporter commented 9 years ago
Not enough information. Please include logcat output for log level "verbose" 
and above.

Original comment by alanv@google.com on 11 Sep 2012 at 8:33

GoogleCodeExporter commented 9 years ago

Original comment by alanv@google.com on 14 Sep 2012 at 6:39