在模拟器相机应用中看不到虚拟场景图像 [英] Can't see virtual scene images in emulator camera app

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

问题描述

我正在使用Android模拟器(版本28.0.23-5264690)开发使用QR码的应用.仿真器上摄像机的虚拟场景"功能可以选择将自己的图像添加到场景中:

I'm using the Android Emulator (version 28.0.23-5264690) to develop an app that uses QR codes. The Virtual Scene feature for the camera on the emulator has an option to add your own images to the scene:

将仿真器与相机应用程序一起使用时,可以导入PNG或JPEG格式的图像以在虚拟场景中使用.要选择在虚拟场景中使用的图像,请在扩展控件"对话框的摄像机"->虚拟场景图像"选项卡中单击添加图像".

When using the emulator with a camera app, you can import an image in PNG or JPEG format to be used within a virtual scene. To choose an image for use in a virtual scene, click Add image in the Camera -> Virtual scene images tab in the Extended controls dialog.

此功能可用于导入自定义图像,例如QR码,以用于任何基于相机的应用程序.

This feature can be used to import custom images such as QR codes for use with any camera-based app.

但是,我尝试在仿真器"设置中同时添加JPG和PNG,但它们从未在股票相机应用程序或我自己的应用程序的虚拟场景中显示.我也尝试过重新启动仿真器,但是仍然没有运气.

However, I've tried adding both JPG's and PNG's in the Emulator settings, but they never show up in the virtual scene in either the stock camera app or my own app. I've tried restarting the emulator as well, but still no luck.

有什么主意吗?

推荐答案

我刚刚在用于增强现实的Android模拟器文档:

要查看场景中的这些图像位置,请启动模拟器,然后通过摄像机起始位置后面的门将摄像机移至饭厅区域.

To view these image locations in the scene, launch your emulator, then move the camera to the dining room area through the door behind the camera’s starting position.

因此,显然图像显示在与您开始时所在的房间不同的房间中.通过使用上面链接中描述的移动命令,您必须走进餐厅",即穿过餐厅后面的门.狗.图像显示在墙上和桌子上.

So apparently the images show up in a different room than the one you start out in. By using the movement commands described in the link above, you have to walk into the "dining room", which is through the door behind the dog. There the images are displayed on the wall and the table.

可悲的是,我正在使用的QR码扫描器Flutter库没有响应QR码,因此无论如何我都坚持使用物理设备.

Sadly, the QR code scanner Flutter library I'm using doesn't respond to the QR code, so I'm stuck on using a physical device anyway.

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

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