Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't see virtual scene images in emulator camera app

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:

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.

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

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.

Any idea what could be wrong?

like image 618
Magnus Avatar asked Feb 01 '19 10:02

Magnus


People also ask

How do I add pictures to my emulator camera?

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 window.

Why app is not showing in emulator?

If an app uses CPU specific native libraries it needs to include one version them for each CPU architecture it plans to support. Therefore if the app you want to install in the emulator only has native libraries for ARM then it can not be executed on an x86 emulator and thus will not be shown in Play Store.


1 Answers

I just found this piece of text at the Android emulator documentation for augmented reality:

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.

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.

like image 180
Magnus Avatar answered Oct 20 '22 22:10

Magnus