在Android Studio Tesseract OCR应用程序中运行时Zygote错误

时间:2015-06-04 09:56:12

标签: android android-studio tesseract

我在Simple的帮助下,在Android中对OCR Android Studio Tesseract OCR进行了变体处理。使用相机后,应用程序停止并给出以下错误..

如何解决?

E/Zygote﹕ Zygote:  error closing descriptor
libcore.io.ErrnoException: close failed: EBADF (Bad file number)
        at libcore.io.Posix.close(Native Method)
        at libcore.io.BlockGuardOs.close(BlockGuardOs.java:75)
        at com.android.internal.os.ZygoteInit.closeServerSocket(ZygoteInit.java:224)
        at com.android.internal.os.ZygoteConnection.handleChildProc(ZygoteConnection.java:879)
        at com.android.internal.os.ZygoteConnection.runOnce(ZygoteConnection.java:242)
        at com.android.internal.os.ZygoteInit.runSelectLoop(ZygoteInit.java:704)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
        at dalvik.system.NativeStart.main(Native Method)

Also these
06-04 22:06:07.857    3183-3183/com.startup.vrvijay.liccamera E/﹕ appName=com.startup.vrvijay.liccamera, acAppName=/system/bin/surfaceflinger

06-04 22:06:07.857 3183-3183 / com.startup.vrvijay.liccamera E /:0 06-04 22:06:07.857 3183-3183 / com.startup.vrvijay.liccamera E /:appName = com.startup.vrvijay.liccamera,acAppName = / system / bin / surfaceflinger 06-04 22:06:07.857 3183-3183 / com.startup.vrvijay.liccamera E /:0

1 个答案:

答案 0 :(得分:2)

您需要下载培训数据并将其放入正确的目录(根据您传递给TessBaseApi.init()的内容)。

您可以从此处下载:https://code.google.com/p/tesseract-ocr/downloads/list