Open GoogleCodeExporter opened 9 years ago
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 lawrence...@gmail.com
on 13 Apr 2011 at 7:54
Attachments:
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 enregist...@gmail.com
on 18 May 2011 at 3:47
hmm, No one have a solution ?
maybe could we try to catch the sigsev signal to avoid program crash
Original comment by enregist...@gmail.com
on 24 May 2011 at 10:33
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 harmeet....@gmail.com
on 6 Oct 2011 at 9:07
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 rvsce.2...@gmail.com
on 14 Aug 2012 at 10:35
Original comment by alanv@google.com
on 11 Sep 2012 at 8:14
Issue 7 has been merged into this issue.
Original comment by alanv@google.com
on 14 Sep 2012 at 6:39
Issue 12 has been merged into this issue.
Original comment by alanv@google.com
on 14 Sep 2012 at 6:39
Issue 21 has been merged into this issue.
Original comment by alanv@google.com
on 14 Sep 2012 at 6:39
thanks lawrence, i changed eng.traineddata and it worked
Original comment by balkouch...@gmail.com
on 28 May 2013 at 9:18
Original issue reported on code.google.com by
fabien.c...@gmail.com
on 22 Mar 2011 at 7:38