Coder Social home page Coder Social logo

Comments (10)

rmtheis avatar rmtheis commented on July 18, 2024

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.

TheWall89 avatar TheWall89 commented on July 18, 2024

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.

falmanna avatar falmanna commented on July 18, 2024

where to download Tesseracct 3.01 library for android ??

from tess-two.

rmtheis avatar rmtheis commented on July 18, 2024

@Abol3z:

git clone git://github.com/rmtheis/tess-two tess
cd tess
git checkout 071820a324

from tess-two.

falmanna avatar falmanna commented on July 18, 2024

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.

anhndt3 avatar anhndt3 commented on July 18, 2024

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.

xdeop avatar xdeop commented on July 18, 2024

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.

JeppeLeth avatar JeppeLeth commented on July 18, 2024

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.

xdeop avatar xdeop commented on July 18, 2024

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.

maneeshbhunwal avatar maneeshbhunwal commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.