【问题标题】:Connect webcam to android emulator将网络摄像头连接到安卓模拟器
【发布时间】:2016-06-16 13:43:57
【问题描述】:

我一直试图让相机在模拟器上工作,但没有成功。我的模拟器有以下特点(config.ini):

Name: Samsung_Tablet_API_23

CPU/ABI: Google APIs Intel Atom (x86)

Path: C:\Users\Alvaro\.android\avd\Samsung_Tablet_API_23.avd

Target: google_apis [Google APIs] (API level 23)

Skin: 2560x1600

SD Card: C:\Users\Alvaro\.android\avd\Samsung_Tablet_API_23.avd\sdcard.img

hw.lcd.density: 280

hw.dPad: no

hw.initialOrientation: landscape

avd.ini.encoding: UTF-8

hw.camera=yes

hw.camera.back=webcam0

hw.camera.front=webcam0

disk.dataPartition.size: 800M

hw.gpu.enabled: yes

runtime.network.latency: none

hw.keyboard.lid: yes

hw.keyboard: yes

runtime.network.speed: full

hw.device.hash2: MD5:117408129c6b5b94ffcdb00df3e428c8

hw.ramSize: 1536

tag.id: google_apis

tag.display: Google APIs

hw.device.manufacturer: User

hw.sdCard: yes

hw.mainKeys: yes

skin.path.backup: _no_skin

hw.accelerometer: no

hw.trackBall: no

hw.device.name: Samsung Tablet

hw.gpu.mode: auto

hw.battery: yes

hw.sensors.proximity: no

AvdId: Samsung_Tablet_API_23

image.sysdir.1: system-images\android-23\google_apis\x86\

hw.audioInput: yes

hw.sensors.orientation: no

hw.camera.front: webcam0

hw.gps: no

avd.ini.displayname: Samsung Tablet API 23

vm.heapSize: 64

image.androidVersion.api: 23

runtime.scalefactor: auto

我每次尝试打开相机时遇到的错误如下:

相机错误:无法连接相机

我已经正确创建了模拟器(至少我认为!),因为每次我启动它都会出现以下屏幕:

此外,我已经更新了网络摄像头的所有驱动程序,它可以完美地适用于其他软件...

我错过了什么?

提前谢谢你:)

【问题讨论】:

    标签: android android-emulator webcam


    【解决方案1】:

    我通过在config.ini 中添加以下行,成功地将我的网络摄像头与模拟器连接起来:

    hw.camera=yes
    sdcard.size=100M
    

    我在您的配置中没有看到任何 sdcard.size

    【讨论】:

      猜你喜欢
      • 2012-03-13
      • 1970-01-01
      • 1970-01-01
      • 2019-09-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-18
      • 1970-01-01
      • 2022-01-07
      相关资源
      最近更新 更多