Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Jun 11, 2015 · 2 comments
Closed

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Please include logcat output for your application.

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

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant