如何使用电脑摄像头作为模拟器的摄像头 [英] How to use a PC webcam as the emulator's camera
本文介绍了如何使用电脑摄像头作为模拟器的摄像头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个QR code阅读器应用程序。如何使用我的摄像头作为一个摄像头扫描QR code在仿真器?
I'm developing a qr code reader application. How can I use my webcam as a camera to scan the qr code in the emulator ?
我的SDK版本是4.3。我检查出来的developer.android网站,他们说,你必须选择webcam0作为一个背面的摄像头。我试过,但没有成功,并显示很抱歉,您的应用程序已经停止。
my SDK version is 4.3. I checked it out in developer.android site and they said that you have to select webcam0 as a back camera. I tried but it didn't work, and shows "unfortunately your app has been stopped".
推荐答案
请在Eclipse下面的步骤。
Follow the below steps in Eclipse.
- 转到 - > AVD管理
- 创建/编辑AVD。
- 硬件>新:
- 配置摄像头对着背
- 点击的属性值,然后选择=webcam0。
- 一旦完成所有的摄像头上面应连接。如果它不 那么你需要检查你的摄像头驱动程序。
- Goto -> AVD Manager
- Create/Edit the AVD.
- Hardware > New:
- Configures camera facing back
- Click on the property value and choose = "webcam0".
- Once done all the above the webcam should be connected. If it doesnt then you need to check your WebCam drivers.
检查这个答案的图像和放大器;进一步链接:
check this answer for the image & a further link:
这篇关于如何使用电脑摄像头作为模拟器的摄像头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文