arunityx icon indicating copy to clipboard operation
arunityx copied to clipboard

How to change the camera to UVCcamera for recognition?

Open chenxiwei1010 opened this issue 2 years ago • 4 comments

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.

chenxiwei1010 avatar Jul 16 '23 05:07 chenxiwei1010

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

philip-lamb avatar Jul 16 '23 08:07 philip-lamb

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

chenxiwei1010 avatar Jul 17 '23 01:07 chenxiwei1010

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 avatar Jul 19 '23 21:07 philip-lamb

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

philip-lamb avatar Jul 19 '23 21:07 philip-lamb