Coder Social home page Coder Social logo

Comments (10)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
I was having the same issue and then I decided to try fiddling with the 
language files. I remembered that the iOS project pocketOCR had an english 
traineddata file that supposedly worked. I switched that one with the one I was 
using (it's about 2/3 the size of the one I was using) and it initialized fine.

Though I'm not sure what the difference is, I'm also not exactly sure how to 
obtain these language files. The one I had originally used was from a 
failed/partial compile for the iOS library (which I can't seem to successfully 
compile :[ )

Attached is the file it worked with and the one that it did not work with. 
Smaller of the two is the valid one.

Original comment by [email protected] on 13 Apr 2011 at 7:54

Attachments:

from tesseract-android-tools.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
hmm, i also have the sigsev signal.

i tried both of your traineddata file lawrence, but i always have the signal.

anyone have a solution ?

Thanks

Original comment by [email protected] on 18 May 2011 at 3:47

from tesseract-android-tools.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
hmm, No one have a solution ?

maybe could we try to catch the sigsev signal to avoid program crash

Original comment by [email protected] on 24 May 2011 at 10:33

from tesseract-android-tools.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
This is not a bug!

Open tessdatamanager.h and check the value of TESSDATA_NUM_ENTRIES.

Now check the first 4 bytes of the data file. If the 4 byte integer value is 
same as TESSDATA_NUM_ENTRIES, then it's good file. Otherwise there will be a 
size mismatch and you will get a crash!

tesseract-android-tools has TESSDATA_NUM_ENTRIES = 10. So, the first 4 bytes 
should be 0A 00 00 00.

In recent versions of tesseract, TESSDATA_NUM_ENTRIES = 13. So, the recent data 
files have the first 4 bytes as 0D 00 00 00

Again, this is not a bug. You need to use the right data file for your version 
of tesseract!

Original comment by [email protected] on 6 Oct 2011 at 9:07

from tesseract-android-tools.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
i am use  second 3.0MB file and application is not crash but .... output is not 
good compare with 1.8MB traineddata file....

Original comment by [email protected] on 14 Aug 2012 at 10:35

from tesseract-android-tools.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024

Original comment by [email protected] on 11 Sep 2012 at 8:14

  • Changed title: Check Tesseract data files for version compatibility
  • Added labels: Priority-Low, Type-Enhancement
  • Removed labels: Priority-Medium, Type-Defect

from tesseract-android-tools.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
Issue 7 has been merged into this issue.

Original comment by [email protected] on 14 Sep 2012 at 6:39

from tesseract-android-tools.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
Issue 12 has been merged into this issue.

Original comment by [email protected] on 14 Sep 2012 at 6:39

from tesseract-android-tools.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
Issue 21 has been merged into this issue.

Original comment by [email protected] on 14 Sep 2012 at 6:39

from tesseract-android-tools.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
thanks lawrence, i changed eng.traineddata  and it worked

Original comment by [email protected] on 28 May 2013 at 9:18

from tesseract-android-tools.

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.