equationl / paddleocr4android

A Paddle OCR sample for Android by Paddle-Lite from https://github.com/PaddlePaddle/PaddleOCR 对 PaddleOCR 的简单封装,使其能够快速上手使用而不需繁琐的配置。
120 stars 22 forks source link

v1.2.8 jitpack failed #27

Closed cagnulein closed 4 months ago

cagnulein commented 1 year ago

Hi! Thanks for your hard work, very appreciated! I would like only to remind that the v1.2.8 on jitpack failed Check https://jitpack.io/com/github/equationl/paddleocr4android/v1.2.8/build.log Thanks

equationl commented 1 year ago

Thanks for remind, Actually you can use 1.2.8 replace v1.2.8 .

1.2.8 is build successful, I can't find out why jitpack auto build 1.2.8 instead of v1.2.8 .

cagnulein commented 1 year ago

ah thanks @equationl yeah i got a similar issue too with the "v" in the version, I didn't investigate it yet neither.

cagnulein commented 1 year ago

hi again @equationl , there is something that I can't understand, forgive me if it's sound stupid

The app project of this repo works perfectly, thanks. Then I tried the fastdeploydemo and it always gives me a nosuchfileeception about the missing model. So which is the purpose of the fastdeploydemo?

Thanks and sorry again for my stupidity

equationl commented 1 year ago

@cagnulein As I said in README, I don't push model file to fastdeploydemo, because it too big, so you need download model to fastdeploydemo by yourself.

因为 Paddle 模型比较大,所以没有集成模型到 demo (fastdeploydemo)中,如果想要运行 demo,您需要自行下载模型后放入 ./fastdeploydemo/src/main/assets 中:

you can download at this link: https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.6/doc/doc_en/models_list_en.md

cagnulein commented 1 year ago

As I said in README, I don't push model file to fastdeploydemo, because it too big, so you need download model to fastdeploydemo by yourself.

hah ok sorry, I can't translate the chinese correctly with google so I didn't understand that part. Thanks for the answer, very appreciated!

cagnulein commented 1 year ago

hi @equationl fastdeploydemo now works perfectly! thanks Could I make another question? I'm trying to integrate it on my qdomyos-zwift project here on github and I'm currently figthing with this issue

08-16 11:59:42.724  7973  7973 E ScreenCaptureService: onFail: 初始化失败
08-16 11:59:42.724  7973  7973 E ScreenCaptureService: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~8vHiyc_xFS8cxp37oHQmXg==/org.cagnulen.qdomyoszwift-Bfj-9-OB43YHBt0-kR9KyA==/lib/arm64/libpaddle_full_api_shared.so"...
08-16 11:59:42.724  7973  7973 E ScreenCaptureService:  at java.lang.Runtime.loadLibrary0(Runtime.java:1082)
08-16 11:59:42.724  7973  7973 E ScreenCaptureService:  at java.lang.Runtime.loadLibrary0(Runtime.java:1003)
08-16 11:59:42.724  7973  7973 E ScreenCaptureService:  at java.lang.System.loadLibrary(System.java:1661)
08-16 11:59:42.724  7973  7973 E ScreenCaptureService:  at com.baidu.paddle.fastdeploy.FastDeployInitializer.init(FastDeployInitializer.java:19)
08-16 11:59:42.724  7973  7973 E ScreenCaptureService:  at com.baidu.paddle.fastdeploy.pipeline.PPOCRBase.<clinit>(PPOCRBase.java:176)
08-16 11:59:42.724  7973  7973 E ScreenCaptureService:  at com.equationl.fastdeployocr.OCR.initModel(OCR.kt:245)
08-16 11:59:42.724  7973  7973 E ScreenCaptureService:  at com.equationl.fastdeployocr.OCR.initModelSync-IoAF18A(OCR.kt:85)
08-16 11:59:42.724  7973  7973 E ScreenCaptureService:  at com.equationl.fastdeployocr.OCR$initModel$1.invokeSuspend(OCR.kt:102)
08-16 11:59:42.724  7973  7973 E ScreenCaptureService:  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
08-16 11:59:42.724  7973  7973 E ScreenCaptureService:  at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
08-16 11:59:42.724  7973  7973 E ScreenCaptureService:  at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
08-16 11:59:42.724  7973  7973 E ScreenCaptureService:  at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:100)
08-16 11:59:42.724  7973  7973 E ScreenCaptureService:  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
08-16 11:59:42.724  7973  7973 E ScreenCaptureService:  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
08-16 11:59:42.724  7973  7973 E ScreenCaptureService:  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
08-16 11:59:42.724  7973  7973 E ScreenCaptureService:  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

do you ever seen it? Thanks!

equationl commented 1 year ago

It's seem ndk version problem, try about this:

https://github.com/android/ndk/issues/329

cagnulein commented 1 year ago

interesting @equationl your fastdeploydemo works on the android simulator on my mac, but it does the same __emutls_get_address error on my android 14 pixel 6a.

Are you able to test it as well?

equationl commented 1 year ago

Sure, I will test it, But I don't have android 14 device, So I just test in simulator

cagnulein commented 1 year ago

nevermind @equationl I tried it again and there was a problem on my repository, i missed the libc++ shared.so

viclm commented 4 months ago

nevermind @equationl I tried it again and there was a problem on my repository, i missed the libc++ shared.so

how did u resolved?