Comments (10)
Thanks. This is a useful test case.
Have you tried it on an AVD with a large amount of RAM installed? I'd be interested to know if that gives the same result.
from tess-two.
Hi,
before writing to you, I got this error 3-4 times. Now I'm trying to reproduce it, but it's not really easy and I'm getting really strange behaviours.
The images I'm using now are really big (1840x3264 for example). I'm loading them with this code:
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 2;
bitmap = BitmapFactory.decodeFile(path, options);
I'm using a sample size of 2 to avoid application heap to exceed the size limit.
Here it is what I get with the last tests.
HTC Sensation XE (Android 4.0.3):
on this device I get the error reported when trying to recognize text on the really first image I provide to the application. After that tess-two works without problems on any image. Plus, I can reproduce the error often only with a specific image.
AVD 1GB RAM (Android 2.3.3):
on the emulator, tess-two and my application crashes with any image I give them. But the line "A/libc(15675): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)" is not reported in LogCat. Everything crashes silently.
With Tesseract 3.01 no errors are reported in both cases.
I'm not really expert in debugging C/C++ code. I'm really sorry about that.
Some additional informations:
- I compiled tess-two under Archlinux
- I'm simply using the method getUTF8Text() on the images
Feel free to ask me for other tests. Cheers.
from tess-two.
where to download Tesseracct 3.01 library for android ??
from tess-two.
git clone git://github.com/rmtheis/tess-two tess
cd tess
git checkout 071820a324
from tess-two.
thanks, I used your command in Git Bash,
but this error 10-11 11:13:15.727: A/libc(15675): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1) still appears in my code !!
from tess-two.
Hi, so anyone got the answer for this issue? I'm trying to make an OCR application using tess-two and still stuck with this issue for a long time. I event don't know why it happened with some images, others is ok.
Thanks for help.
from tess-two.
I'm having the same error.
I believe its a memory issue, but it only crashes with eng.traineddata. With other trained files, the same image is not crashing any more (ex: spa.traineddata).
Any solution found?
Thanks!
from tess-two.
I had the exact same problem. After several hours I found, that I was using an older eng.traineddata file from Tesseract 3.00.
To solve the problem just download the latest eng.traineddata on github and replace :) - Hope that solves your problem too
from tess-two.
Thanks! I'll give it a try!
2013/9/8 JeppeLeth [email protected]
I had the exact same problem. After several hours I found, that I was
using an older eng.traineddata file from Tesseract 3.00.
To solve the problem just download the latest eng.traineddata on github
and replace :) - Hope that solves your problem too—
Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-24028974
.
Xavi Deop
from tess-two.
Hi all,
I am also running in the same issue,
i took the latest from
https://github.com/tesseract-ocr/tessdata/blob/master/eng.traineddata
but still the app is hung.
Can you please help
Thanks
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.