在 Android 模拟器中使用相机 [英] Using Camera in the Android emulator

查看:51
本文介绍了在 Android 模拟器中使用相机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望使用网络摄像头在安卓模拟器中模拟摄像头.基本上我只需要在模拟器中用相机拍照(不需要实时预览,即如果它更容易)

I wish to simulate camera in the android emulator using the webcam. Basically I need to only take photos with the camera in the emulator (live preview is not needed i.e if it makes it any easier)

我按照教程 here 这是我能找到的唯一一个接近的教程符合我的要求

I followed the tutorial here which is the only one I could find that was close to my requirements

但是该教程中使用的许多库(如 android.hardware.CameraDevice)在当前的 sdk 中不可用,并被新的库(如 android.hardware.camera)取代.

But many of the libraries used in that tutorial(like android.hardware.CameraDevice) are not available in present sdk and are replaced by new libraries(like android.hardware.camera).

任何有关如何在当前 sdk(2.1 或 2.2)中执行此操作的帮助将不胜感激.

Any help on how to do this in the present sdk(2.1 or 2.2) would be much appreciated.

推荐答案

更新:ICS 模拟器支持摄像头.

Update: ICS emulator supports camera.

这篇关于在 Android 模拟器中使用相机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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