在 Play 上使用设备摄像头而不是网络摄像头
Use Device Camera instead of Webcam on Play
我已经成功下载并使用了 Vuforia,当我玩这个项目时,它使用我笔记本电脑上的网络摄像头。但是,当我在 Unity 中播放项目时,如何使用连接的 iPhone 的相机?
简单回答:你不能。
如果 Vuforia 在 API 中使用 WebCamTexture
来获取相机帧,则 Vuforia 直接使用 C++ 而不是 Unity 的 WebCamTexture
API. This would have worked with the new 访问相机硬件,但他们没有这样做,因为 WebCamTexture
图像处理速度极慢。
我已经成功下载并使用了 Vuforia,当我玩这个项目时,它使用我笔记本电脑上的网络摄像头。但是,当我在 Unity 中播放项目时,如何使用连接的 iPhone 的相机?
简单回答:你不能。
如果 Vuforia 在 API 中使用 WebCamTexture
来获取相机帧,则 Vuforia 直接使用 C++ 而不是 Unity 的 WebCamTexture
API. This would have worked with the new WebCamTexture
图像处理速度极慢。