下载的FaceMemberAndroid项目,导入studio中,出现是so库找不到,我想使用的是人脸识别中的连接网络摄像头(海康的摄像头),本来想看看demo是怎么写的,但是运行就出现异常了,具体如下: E/dalvikvm: dlopen("/data/app-lib/com.yijia.door-1/libFaceSDK.so") failed: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libidl_face_license.so" needed by "libFaceSDK.so"; caused by load_library(linker.cpp:745): library "libidl_face_license.so" not found java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libidl_face_license.so" needed by "libFaceSDK.so"; caused by load_library(linker.cpp:745): library "libidl_face_license.so" not found 求指教??
对于上面的问题,我又从新建了一个授权,重现导入,就好了,但是点击进入RTSP 出现如下问题: E/rtsp_native: ERROR:could not open stream E/wtf: errorFromNative-> code:10000 msg:could not open stream 请问是什么原因,端口号和ip都设置了
01-01 08:00:30.550 3475-3475/com.yijia.door E/AndroidRuntime: FATAL EXCEPTION: main java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libidl_face_license.so" needed by "libFaceSDK.so"; caused by load_library(linker.cpp:745): library "libidl_face_license.so" not found at java.lang.Runtime.loadLibrary(Runtime.java:371) at java.lang.System.loadLibrary(System.java:535) at com.baidu.idl.facesdk.FaceSDK.getInstance(FaceSDK.java:135) at com.baidu.idl.facesdk.FaceTracker.(FaceTracker.java:53) at com.baidu.aip.face.FaceDetector.(FaceDetector.java:53) at com.baidu.aip.face.FaceDetector.init(FaceDetector.java:42) at com.baidu.aip.fm.FMApplication.onCreate(FMApplication.java:32) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391) at android.app.ActivityThread.access$1300(ActivityThread.java:141) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5041) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) at dalvik.system.NativeStart.main(Native Method)
01-01 08:00:30.550 3475-3475/com.yijia.door E/AndroidRuntime: FATAL EXCEPTION: main java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libidl_face_license.so" needed by "libFaceSDK.so"; caused by load_library(linker.cpp:745): library "libidl_face_license.so" not found at java.lang.Runtime.loadLibrary(Runtime.java:371) at java.lang.System.loadLibrary(System.java:535) at com.baidu.idl.facesdk.FaceSDK.getInstance(FaceSDK.java:135) at com.baidu.idl.facesdk.FaceTracker.(FaceTracker.java:53) at com.baidu.aip.face.FaceDetector.(FaceDetector.java:53) at com.baidu.aip.face.FaceDetector.init(FaceDetector.java:42) at com.baidu.aip.fm.FMApplication.onCreate(FMApplication.java:32) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391) at android.app.ActivityThread.access$1300(ActivityThread.java:141) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5041) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) at dalvik.system.NativeStart.main(Native Method)
您能否推荐一款已经测试通过的手机啊,我这边的测试机都不行,我这边先试试。然后在按照你说的,我跟踪下。
换个手机试试
那看下jni代码打下日志,看下什么原因
我看了,cmake配置中有链接rtsp,我从官网下的FaceMemberAndroid 都没改过,只是修改了下rstp 的用户名和密码而已,能否帮忙看看到底什么原因。我目前怀疑是不是由于硬件的开发板不支持啊。我们用的是全志C20的开发板,是不是你们so库对硬件有要求???
这个尝试过了,没有问题,能访问到。
在设备上用浏览器访问下摄像头,看网络有没问题
看下cmake有没配置 rtsp so编译。再就是看下jni那块代码,那块代码是开放的
rstp协议确定是正确的,因为我用的 我用的VLC media player 连接就是正常的,这种可能想可以排除
尝试试了几种,
出现so库异常的那个机型是:
设备机型 ArmCoreEVB-C20 CPU架构 armeabi-v7a ROM softwinners/wing_mbox203 系统版本 Android 4.2.2,level 17
出现 could not open stream 机型是:
设备机型 SM-A7100 系统版本 Android 6.0.1
设备机型 努比亚Z11 系统版本 Android 6.0.1
检查下so加载配置有没问题。或者换个设备试试。手机也是可以的
rtsp的url网上找下对应的,不同的摄像头不一样
您好 我们都是集中批次处理添加哈,您看看现在已经是通过了,然后我们产品经理也在关注您这个问题 稍后具体答复您
加了,但是一直没有人同意。
你好 二八二七四四二六八 不好意思 今天比较忙 现在才看到消息 你可以加入人脸识别q群,
01-01 08:00:30.550 3475-3475/com.yijia.door E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libidl_face_license.so" needed by "libFaceSDK.so"; caused by load_library(linker.cpp:745): library "libidl_face_license.so" not found
at java.lang.Runtime.loadLibrary(Runtime.java:371)
at java.lang.System.loadLibrary(System.java:535)
at com.baidu.idl.facesdk.FaceSDK.getInstance(FaceSDK.java:135)
at com.baidu.idl.facesdk.FaceTracker.(FaceTracker.java:53)
at com.baidu.aip.face.FaceDetector.(FaceDetector.java:53)
at com.baidu.aip.face.FaceDetector.init(FaceDetector.java:42)
at com.baidu.aip.fm.FMApplication.onCreate(FMApplication.java:32)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391)
at android.app.ActivityThread.access$1300(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
01-01 08:00:30.550 3475-3475/com.yijia.door E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libidl_face_license.so" needed by "libFaceSDK.so"; caused by load_library(linker.cpp:745): library "libidl_face_license.so" not found
at java.lang.Runtime.loadLibrary(Runtime.java:371)
at java.lang.System.loadLibrary(System.java:535)
at com.baidu.idl.facesdk.FaceSDK.getInstance(FaceSDK.java:135)
at com.baidu.idl.facesdk.FaceTracker.(FaceTracker.java:53)
at com.baidu.aip.face.FaceDetector.(FaceDetector.java:53)
at com.baidu.aip.face.FaceDetector.init(FaceDetector.java:42)
at com.baidu.aip.fm.FMApplication.onCreate(FMApplication.java:32)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391)
at android.app.ActivityThread.access$1300(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
出现so库异常的那个机型是:
设备机型 ArmCoreEVB-C20 CPU架构 armeabi-v7a ROM softwinners/wing_mbox203 系统版本 Android 4.2.2,level 17
出现 could not open stream 机型是:
设备机型 SM-A7100 系统版本 Android 6.0.1
求指教,比较急!!!!
上午我又重新试了一下,同样FaceMemberAndroid 工程项目,在不同的android版本中,出现的错误不同,前者就是那个so库找不到,后者是could not open stream,求指导???是不是sdk出现了问题啊?有没有技术讨论组,或者qq群。
对于上面的问题,我又从新建了一个授权,重现导入,就好了,但是点击进入RTSP
出现如下问题:
E/rtsp_native: ERROR:could not open stream
E/wtf: errorFromNative-> code:10000 msg:could not open stream
请问是什么原因,端口号和ip都设置了
在请问一句,如果只想连接网络摄像头,分析视频流,有没有详细的集成文档,我应该导入那些库和so呢?现在比较迷茫,不知道用到那些?请赐教,万分感激