使用带有 Android 4.0 模拟器的笔记本电脑网络摄像头
我正在开发头部跟踪 3D 应用程序(请查看此处如果有兴趣)。由于我只有一台没有前置摄像头的 Nexus One,所以无法真正对其进行测试。大多数时候我都在使用手机并镜像图像,我还借用了朋友的摩托罗拉 Xoom 一段时间,但这些都是有点不舒服的解决方案。
自 r14 以来,模拟器支持网络摄像头模拟摄像头,但我尚未成功使其工作。大多数时候模拟器根本不会启动(这可能是性能问题)。当它出现时,网络摄像头选择对话框会弹出,我看到我的网络摄像头 LED 闪烁了一会儿(这意味着它已打开),但使用摄像头的应用程序仅显示移动的立方体(或者只是崩溃......)。有一次我可以在模拟器中看到相机图像,但无法重现它。
您能给我指出任何好的分步指南吗?
注意:我知道过去曾提出过多个类似的问题,但是当时还没有对网络摄像头模拟的官方支持,所以这是一个非常不同的情况。我不想使用第三方库(或以其他方式修改我的应用程序)来完成这项工作。
I'm working on a head tracking 3D application (take a look here if interested). Since I only have a Nexus One which doesn't have a front camera, I can't really test it. Most of the time I'm using my phone and mirroring the image, and I also borrowed a friend's Motorola Xoom for some time but these are a bit uncomfortable solutions.
The emulator supports camera emulation by webcam since r14 but I haven't succeeded in making it work. Most of the time the emulator won't start at all (this might be a performance problem). When it does, the webcam selection dialog pops up and I see my webcam LED flash for a moment (which means it's turned on) but apps using the camera just show the moving cubes (or simply crash...). There was one single occasion when I could see the camera image in the emulator but I couldn't reproduce it.
Could you please point me to any good step-by-step guides for setting this up?
NOTE: I'm aware that multiple similar questions have been asked in the past but there was no official support for webcam emulation back then so it's a very different situation. I don't want to use third party libraries (or otherwise modify my app) to make this work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将 SDK 工具更新为今天发布的新 r16 版本,现在相机可以工作了对我来说,所有虚拟设备设置均为默认值。在我的笔记本电脑上速度非常慢,但总比没有好。
I updated the SDK Tools to the new r16 version released today and now the camera works for me with all virtual device settings on default values. It's very slow on my laptop but still better than nothing.