Android opencv
samples and tutorials were running fine and suddenly one day I get this for all of those:"It seems that your device does not support camera (or it is locked). The application will be closed"
Please help, how to I can fix it?
I have reinstalled opencv and imported again and made new emulators but the problem still persists.
Go to Settings > Apps and Notifications > See all X apps > Camera app > Permissions > Camera > See all apps with this permissions. You'll see two lists: one with apps that have permission to your Android device's camera and the one that doesn't.
Go to your device settings -> apps -> YOUR APP -> Permissions -> turn on camera permission..
Worked for me..
Check the camera permission in AndroidManifest.xml.
<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera"/>
<uses-feature android:name="android.hardware.camera.autofocus"/>
<uses-feature android:name="android.hardware.camera.front"/>
<uses-feature android:name="android.hardware.camera.front.autofocus"/>
Its working for me..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With