Open liuweixue001 opened 2 years ago
@liuweixue001 只有一个摄像头是吗?改一下代码吧 https://github.com/FeiGeChuanShu/ncnn_Android_blazeface/blob/main/ncnn_Android_mediapipe_blazeface/app/src/main/java/com/tencent/blazefacencnn/MainActivity.java#L72
是的,只有一个前置摄像头,这里new_facing设置为0和1都是一样的错误;用android studio的模拟器测试时,夜神一个摄像头,把facing的初始值改为1是可以用的,有可能是权限获取的问题吗,还是说设备的camera id不是0,1之类的整型,我注释掉这两行代码 if (facing < 0 || facing > 1) return JNI_FALSE; 从-1,到1001都试过,报一样的错误,谢谢谢谢
使用模拟器时,前置摄像头可以正常运行程序,切换到不存在的后置摄像头时,报下面的错误,但程序仍不会挂掉,切会前置,还是可以运行的。 E/ACameraManager: Get camera characteristics from camera service failed: Status(-8, EX_SERVICE_SPECIFIC): '10: getCameraCharacteristics:674: Unable to retrieve cameracharacteristics for system only device : ' E/ACameraManager: openCamera: cannot get camera characteristics for camera . err -10000 E/NdkCameraDevice: ACameraDevice_createCaptureRequest: invalid argument! device 0x0 request 0xe8592b70 E/NdkCaptureRequest: ACaptureRequest_addTarget: Error: invalid input: req 0x0, req-targets 0x0, target 0xb8543b90 E/NdkCameraDevice: ACameraDevice_createCaptureSession: Error: invalid input: device 0x0, outputs 0xb8543c90, callbacks 0xff9848c0, session 0xe8592b7c E/NdkCameraCaptureSession: ACameraCaptureSession_setRepeatingRequest: Error: invalid input: session 0x0, numRequest 1, requests 0xe8592b70 I/Choreographer: Skipped 50 frames! The application may be doing too much work on its main thread.
你好,你知道要怎么改吗,我也是这个错误
您好,我在模拟器上测试,没有问题 ,使用移远的SC20报如下错误,app之间显示 blazeface has stooped,请问是什么原因导致的,谢谢 E/ACameraManager: getCameraCharacteristics: Camera ID does not exist! openCamera: cannot get camera characteristics for camera . err -10001 E/NdkCameraDevice: ACameraDevice_createCaptureRequest: invalid argument! device 0x0 request 0x99b7b430 A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 14121 (t.blazefacencnn)