如何使用电脑摄像头作为模拟器的摄像头摄像头、模拟器、如何使用、电脑

2023-09-05 04:58:32 作者:别拿精子射爱情

我正在开发一个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:

这里