xiangweizeng / mobile-lpr

Mobile-LPR 是一个面向移动端的准商业级车牌识别库,以NCNN作为推理后端,使用DNN作为算法核心,支持多种车牌检测算法,支持车牌识别和车牌颜色识别。
603 stars 142 forks source link

java.lang.UnsatisfiedLinkError: dlopen failed: library "libvulkan.so" not found #26

Open leo-andr opened 3 years ago

leo-andr commented 3 years ago

这个不支持低版本的手机吗 用26以下的手机会报错 java.lang.UnsatisfiedLinkError: dlopen failed: library "libvulkan.so" not found

wsb0617 commented 2 years ago

用26以下的手机会报错 java.lang.UnsatisfiedLinkError: dlopen failed: library "libvulkan.so" not found

    detector.initModel(assets, true)

也遇到了这个问题,请问是怎么解决呢

xiangweizeng commented 2 years ago

vulkan android7.0引入支持的, 较低版本可以使用cpu版ncnn, 并去掉gpu部分代码即可

  1. 可以采用cpu版的ncnn,下载地址是:https://github.com/Tencent/ncnn/releases ncnn-20211208-android.zip
  2. 可以自己交叉编译ncnn库
  3. 需要调整部分cpp代码,去掉gpu支持部分

以上可以作为参考, 谢谢!