看来,您的设备不支持摄像头(或锁定) [英] It seems that your device does not support camera(or it is locked)

查看:1846
本文介绍了看来,您的设备不支持摄像头(或锁定)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android的OpenCV的样本和教程均运行良好,突然有一天我得到这个对所有这些看来,您的设备不支持摄像头(或锁定)。应用将被关闭请帮助如何解决

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).Application will be closed" please help how to fix

我重新安装了OpenCV的又一次进口,取得了新的模拟器,但问题仍然存在。

I have reinstalled opencv and imported again and made new emulators but the problem persists

推荐答案

检查摄像机的权限在AndroidManifest.xml中。

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"/>

它为我工作。

这篇关于看来,您的设备不支持摄像头(或锁定)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆