Comments (10)
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.
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.
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.
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.
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.
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.
Issue 7 has been merged into this issue.
Original comment by [email protected]
on 14 Sep 2012 at 6:39
from tesseract-android-tools.
Issue 12 has been merged into this issue.
Original comment by [email protected]
on 14 Sep 2012 at 6:39
from tesseract-android-tools.
Issue 21 has been merged into this issue.
Original comment by [email protected]
on 14 Sep 2012 at 6:39
from tesseract-android-tools.
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)
- PSM constants are incorrect HOT 1
- Add tests for Bitmap <=> Pix conversion
- Error in loading eng.traineddata (3.01) using com.android.content.res.AssetManager() HOT 6
- Can not figure out which word corresponds to which confidence value. Hope the output api is as rich as in tesseract C++ API. HOT 1
- Getting Fatal signal 11 error while capture line of numbers HOT 1
- Update to Tesseract 3.02 HOT 1
- Missing files for native build HOT 1
- Binarize Image in tesseract
- How do I use tesseract-andriod-tools?
- WriteFile don't work as expected
- ndk-build fail allheaders.h missing HOT 4
- ndk-build failure due to unsafe fprintf usage in tesseract source. HOT 1
- Assert failed when using tesseract with PSM_OSD_ONLY flag
- nativeSetImage not found
- ChoiceIterator
- Getting result words array
- javax.imageio.IIOException: ICC APP2 encountered without prior JFIF in Tesseract OCR
- root galaxy centra sch-7
- how to Image binarization
- error on compiling tessaract-android-tools ndk-build fails HOT 1
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 tesseract-android-tools.