Comments (4)
Considering this thread is 4 years old, I don't remember much about it. But it's safe to say no, I didn't since my project died.
from tess-two.
The path is for pointing to your data files. You must have a subdirectory
named "tessdata". See
.
On Mon, May 19, 2014 at 1:49 PM, Ben Painter [email protected]:
I am getting the above error message when I try to use tess-two in my
Android application. I am able use the Simple-Android-OCR application and I
have used some of the code from it in my own application. This is where I
try to initialize the API:TessBaseAPI baseApi = new TessBaseAPI();
baseApi.setDebug(true);
baseApi.init(path.getAbsolutePath(), lang);Here are the variables used:
public static File path =
getExternalFilesDir(Environment.DIRECTORY_PICTURES);
public static final String lang = "eng";I don't know why I am getting this error and I don't know how to go about
fixing it. I have done some searches but I didn't turn up anything useful.
I did look at some of the source code and I saw where this error is
printed, but I couldn't find the api.Init(c_dir, c_lang) method that it
refers to. I would appreciate any help in tracking this error down.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/48
.
from tess-two.
I see. One of the portions of code I had copied was supposed to copy the contents of the tessdata directory from my assets folder. I had assumed it worked since I didn't get the error message "Data path must contain subfolder tessdata!" I'll look over that portion again and see if I messed it up.
from tess-two.
Have you solved it?
from tess-two.
Related Issues (20)
- Initializing TessBaseAPI crashes app HOT 2
- How to build tess-two without JNI? HOT 1
- error in Android 7.0 HOT 1
- import tess two error HOT 4
- Arabic trained-data produce 20% accuracy HOT 2
- java.lang.NoSuchFieldError: no "I" field "mNativeData" in class "Lcom/googlecode/tesseract/android/TessBaseAPI;" or its superclasses HOT 2
- java.lang.NoSuchFieldError: no "I" field "mNativeData" in class "Lcom/googlecode/tesseract/android/TessBaseAPI;" or its superclasses HOT 2
- How I can init the tesseract to work only with digits? HOT 5
- tess4 on android studio HOT 1
- Tess4 initialize crash HOT 1
- Can't lanch
- Could not initialize Tesseract API with language=ces! HOT 2
- Illegible words recognition in Persian lang HOT 2
- Getting different results when using tesseract on mobile vs on PC using Python. HOT 2
- Decoding is slow when multiple languages are used HOT 2
- In versions higher than 5.4.1 TessBaseAPI.ProgressNotifier never called HOT 1
- Native crush when 'vert'.tessdata is used HOT 1
- read Jpeg and PNG produce wrong alpha in 32bpp pix HOT 4
- Crash on Android L HOT 2
- AndroidX support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tess-two.