Tesseract Android 工具崩溃错误
我在 TessBaseAPI
类中的 init 方法上遇到崩溃错误,请帮助我解决这个问题,下面是日志文件:
D/dalvikvm(26619): Trying to load lib /data/data/com.appname.../lib/liblept.so 0x40513f58
D/dalvikvm(26619): Added shared lib /data/data/com.appname.../lib/liblept.so 0x40513f58
D/dalvikvm(26619): Trying to load lib /data/data/com.appname...t/lib/libtess.so 0x40513f58
D/dalvikvm(26619): Added shared lib /data/data/com.appname.../lib/libtess.so 0x40513f58
V/Tesseract(native)(26619): Java_com_googlecode_tesseract_android_TessBaseAPI_nativeClassInit
V/Tesseract(native)(26619): Java_com_googlecode_tesseract_android_TessBaseAPI_nativeConstruct
V/Tesseract(native)(26619): Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInit
I/Tesseract(native)(26619): Attempting Init() with dir=/mnt/sdcard/tessdata/, lang=eng
I/ActivityManager( 107): Process com.appname....tesseract (pid 26619) has died.
I'm having a crash error on init method in TessBaseAPI
class, please help me on this one, below is the log file:
D/dalvikvm(26619): Trying to load lib /data/data/com.appname.../lib/liblept.so 0x40513f58
D/dalvikvm(26619): Added shared lib /data/data/com.appname.../lib/liblept.so 0x40513f58
D/dalvikvm(26619): Trying to load lib /data/data/com.appname...t/lib/libtess.so 0x40513f58
D/dalvikvm(26619): Added shared lib /data/data/com.appname.../lib/libtess.so 0x40513f58
V/Tesseract(native)(26619): Java_com_googlecode_tesseract_android_TessBaseAPI_nativeClassInit
V/Tesseract(native)(26619): Java_com_googlecode_tesseract_android_TessBaseAPI_nativeConstruct
V/Tesseract(native)(26619): Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInit
I/Tesseract(native)(26619): Attempting Init() with dir=/mnt/sdcard/tessdata/, lang=eng
I/ActivityManager( 107): Process com.appname....tesseract (pid 26619) has died.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您一定使用了错误版本的语言数据文件。
请参阅我的评论 -
http://code.google。 com/p/tesseract-android-tools/issues/detail?id=3
错误报告中还附加了两个版本的 eng.traineddata 文件。对于 Tesseract Android Tools,您需要两者中较小的一个。更大的一个是针对最新版本的 Tesseract
You must be using the wrong version of language data file.
See my comment here -
http://code.google.com/p/tesseract-android-tools/issues/detail?id=3
There are also two versions of eng.traineddata file attached to the bug report. You need the smaller of the two for Tesseract Android Tools. Bigger one is for the recent version of Tesseract