gpt4 book ai didi

android - Android Studio Tesseract OCR 应用程序运行时出现 Zygote 错误

转载 作者:行者123 更新时间:2023-11-29 00:10:25 33 4
gpt4 key购买 nike

的帮助下,我在 Android Studio 中做了一个 Simple Android OCR 的变体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/:006-04 22:06:07.857 3183-3183/com.startup.vrvijay.liccamera E/﹕ appName=com.startup.vrvijay.liccamera, acAppName=/system/bin/surfaceflinger06-04 22:06:07.857 3183-3183/com.startup.vrvijay.liccamera E/﹕ 0

最佳答案

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

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

关于android - Android Studio Tesseract OCR 应用程序运行时出现 Zygote 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30640721/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com