标题: 屏蔽掉mipi摄像头后还是摄像头id不为0或1,程序打开手机摄像头可以,开发板不行。 [打印本页] 作者: 淼淼海洋 时间: 2022-3-25 14:25 标题: 屏蔽掉mipi摄像头后还是摄像头id不为0或1,程序打开手机摄像头可以,开发板不行。 打开摄像头报错信息如下:
com.fire.recognition E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.fire.recognition, PID: 2452
java.lang.IllegalArgumentException: No available camera can be found.
at androidx.camera.core.CameraSelector.filter(CameraSelector.java:100)
at androidx.camera.lifecycle.ProcessCameraProvider.bindToLifecycle(ProcessCameraProvider.java:389)
at androidx.camera.lifecycle.ProcessCameraProvider.bindToLifecycle(ProcessCameraProvider.java:275)
at com.fire.recognition.CameraXPreviewHelper.lambda$startCamera$3$CameraXPreviewHelper(CameraXPreviewHelper.java:144)
at com.fire.recognition.-$$Lambda$CameraXPreviewHelper$cIn9ZemiT2nGDPk_1Fby3Oi-07w.run(Unknown Source:12)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7839)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)