How to use a PC webcam as the emulator's camera

后端 未结 4 1615
名媛妹妹
名媛妹妹 2021-01-14 10:17

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 ?

my SDK version is 4.3. I checked it out in d

相关标签:
4条回答
  • 2021-01-14 10:31

    The Android Studio virtual emulator now has virtual scene images under the camera section of the extended controls. With this you add any image to be scanned by the virtual emulator. Had a little trouble finding it though as you have to navigate into a different room to see it in the virtual scene. Can't see virtual scene images in emulator camera app

    0 讨论(0)
  • 2021-01-14 10:32

    Follow the below steps in Eclipse.

    1. Goto -> AVD Manager
    2. Create/Edit the AVD.
    3. Hardware > New:
    4. Configures camera facing back
    5. Click on the property value and choose = "webcam0".
    6. 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:

    Here

    0 讨论(0)
  • 2021-01-14 10:37

    Have you set front/Back cameras when you created the emulator like this in your AVD managerenter image description here

    0 讨论(0)
  • 2021-01-14 10:40

    Use the Camera tab in Extended controls to add or modify Scene images. There are two image locations, one on the wall and one on the table.

    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. https://developers.google.com/ar/develop/java/emulator#add_augmented_images_to_the_scene

    Sample image from my emulator:

    0 讨论(0)
提交回复
热议问题