kraib / tesseract-android-tools

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

Force closed when running app use tesseract-android-tools #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build library successfully
2. Use TessBaseAPI in my app
3. Here is the code:

                TessBaseAPI baseApi = new TessBaseAPI();
                File file = new File(link.getText().toString());
                baseApi.init("/mnt/sdcard/", "eng"); // myDir + "/tessdata/eng.traineddata" must be present
                baseApi.setImage(file);
                String recognizedText = baseApi.getUTF8Text(); // Log or otherwise display this string...
                baseApi.end();               
                content.setText(recognizedText);

What is the expected output? What do you see instead?
The content of image file must display in the EditText view, but the app was 
force closed.
And I don't know how to find out the error.

What version of the product are you using? On what operating system?
I use eclipse Eclipse IDE for Java Developers, tesseract android tools 1.00, 
API 8 android 2.2.

Please provide any additional information below.
I don't have file buld.xml in my tesseract-android-tools-1.00,

Original issue reported on code.google.com by fantasy1...@gmail.com on 22 Aug 2011 at 3:36

GoogleCodeExporter commented 9 years ago
Please include logcat output for your application.

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

GoogleCodeExporter commented 9 years ago

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