artoolkitx / arunityx

artoolkitX for Unity, providing high-performance video acquisition, marker and texture tracking and full Unity Editor support
https://www.artoolkitx.org/
Other
44 stars 23 forks source link

How to change the camera to UVCcamera for recognition? #89

Open chenxiwei1010 opened 1 year ago

chenxiwei1010 commented 1 year ago

How to use artoolkitX to call UVCcamera as a camera in Unity? How to change the camera to UVCcamera for recognition?UVCcamera is for use on Android systems.

philip-lamb commented 1 year ago

What platform? If on Windows or Mac, you can select the preferred camera from the drop-down on the ARXVideoConfig component.

chenxiwei1010 commented 1 year ago

Thank you for your reply. I am developing on the Windows platform and the software is running on the Android platform. The UVC camera is also being used on the Android platform. I tried all the options on the ARXVideoConfig component.The issue is that the software displays that there is no camera connected when running.There is only one camera in the hardware. image

philip-lamb commented 1 year ago

This document https://source.android.com/docs/core/camera/external-usb-cameras indicates that UVC cameras should be accessible to the camera2 API (and therefore supported by the NDK camera API) provided that the Android build has had the flags enabled for external camera access. Can you give any more details about the version of Android in use and/or the hardware platform?

philip-lamb commented 1 year ago

See also discussion by some users on some devices that do not support UVC cameras natively here: https://stackoverflow.com/a/68120774/316487