Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片文字识别怎么不能使用,一点就崩溃,缺少.so文件 #61

Open
900326 opened this issue Sep 23, 2022 · 5 comments
Open

Comments

@900326
Copy link

900326 commented Sep 23, 2022

No description provided.

@shouzhong
Copy link
Owner

你是用依赖还是直接编这个项目,如果直接编译的,是会确实

@shouzhong
Copy link
Owner

你可以从依赖里面把so包复制出来

@900326
Copy link
Author

900326 commented Sep 26, 2022

报错日志是这样的 ,从依赖里面把so包复制出来---------这个是从哪里复制到哪里,除了复制外,还需要修改什么地方吗
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.shouzhong.scanner.demo-NpGd_F9PNabwwj4FMSXjjQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.shouzhong.scanner.demo-NpGd_F9PNabwwj4FMSXjjQ==/lib/arm, /data/app/com.shouzhong.scanner.demo-NpGd_F9PNabwwj4FMSXjjQ==/base.apk!/lib/armeabi-v7a, /system/lib, /hw_product/lib, /system/product/lib]]] couldn't find "libTextRecognition.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:1067)
at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
at java.lang.System.loadLibrary(System.java:1668)
at com.shouzhong.text.TextRecognition.(TextRecognition.java:6)
at com.shouzhong.text.TextRecognition.recognize(Native Method)
at com.shouzhong.scanner.ScannerUtils.decodeText(ScannerUtils.java:263)
at com.shouzhong.scanner.demo.MainActivity$1.run(MainActivity.java:45)
at java.lang.Thread.run(Thread.java:929)

@900326
Copy link
Author

900326 commented Sep 26, 2022

libTextRecognition.so,没找到有这样名字的.so

@shouzhong
Copy link
Owner

你自己本地加我依赖写个demo,然后打个apk,用压缩软件打开apk就能找到

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants