我在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

最佳答案

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

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

08-18 07:57