Custom camera
In some cases, the built-in supported cameras may not meet requirements, making it necessary to consider using a custom camera. A custom camera can support obtaining image data from external sources and inputting it into the AR system for use by trackers. You can implement the image data acquisition yourself for a custom camera.
Available platforms: Unity, Native
Before you start
- Understand the camera model, parameters, and other usage considerations for physical cameras through Camera and Input Extension.
Usage scenarios for custom cameras
Custom cameras can be used in the following scenarios:
External cameras
For example, on Android, the system API does not support external cameras, which can only be accessed using libuvc.
Remote camera streaming
Video files
Head-mounted displays
Custom cameras used in the ar system
Custom cameras used in the AR system include:
AREngineInterop
Provides Huawei AR Engine support on HarmonyOS 4.x and earlier versions, utilizing a custom camera to access the motion tracking capabilities offered by the phone.
Head-mounted displays
Image input for various head-mounted displays is implemented through custom cameras.
Limitations of using custom cameras
Limitations of using custom cameras include:
On head-mounted display devices
EasyAR Sense XR License trial version
Can be used for 100 seconds per run (Mega users can adjust the duration via EasyAR Business after approval). A watermark may be displayed during operation under certain conditions, and an internet connection may be required on some devices.
EasyAR Sense XR License official version
No restrictions.
On other devices
EasyAR Sense Personal version
Can be used for 100 seconds per run (Mega users can adjust the duration via EasyAR Business after approval). A watermark may be displayed during operation under certain conditions.
EasyAR Sense Professional/Classic/Enterprise version
No restrictions.