Opencv: It seems that your device does not support camera(or it is locked)

后端 未结 3 593
时光取名叫无心
时光取名叫无心 2021-01-23 10:43

I use face_detection of opencv 2.4.5 with Android 4.2.2 on my samsung tablet of Android 4.0.4. The application could use the front camera to calibrate my face. However, when I u

相关标签:
3条回答
  • 2021-01-23 11:30

    I had this problem early today. Please, make sure you have placed the camera permissions on your AndroidManifest.xml.

    <uses-permission android:name="android.permission.CAMERA"/>
    
    0 讨论(0)
  • 2021-01-23 11:31

    I have solved this problem. I added a library to the face_detection codes, and something wrong in "OpenCV Library - 2.4.5/src/org.opencv.android/JavaCameraView.java" The line 127 "mCamera.setParameters(params);" failed to run, so i annotated it, and the warn disappeared.

    0 讨论(0)
  • 2021-01-23 11:36

    Just enable camera permission on the device settings. Works for Tango Device Phab2 (23API)
    Setting -> Apps -> Your App -> Enable Camera Permission.

    0 讨论(0)
提交回复
热议问题