Table of Contents

CameraDeviceFrameSource component reference

Switch to API

Explore the properties in the CameraDeviceFrameSource component window to customize camera parameters.

alt text

Default component screenshot.

Property Description
Camera open method The method used to open the physical camera. Options:
  • PreferredType (default): Opens the camera device according to the camera device type. If there is no matching type, it will try to open the first camera device.
  • DeviceIndex: Opens the camera device according to the camera index.
  • SpecificType: Opens the camera device according to the exact camera device type. If there is no matching type, it will fail. On Mac, the camera type cannot be determined.
        Type Displayed when Camera Open Method is PreferredType or SpecificType.
The camera type used to open the physical camera. Options:
  • Back (default): Rear camera.
  • Front: Front camera.
  • Unknown: Unknown position.
        Index Displayed when Camera Open Method is DeviceIndex.
The device index used to open the physical camera.
Desired focus mode The desired focus mode. Options:
  • Default: Uses the default value, the actual selection depends on the AR feature used.
  • Input: Uses the specified value.
When Input is selected, options:
  • Normal: Normal focus mode. In this mode, AutoFocus() needs to be called to trigger focus.
  • Continousauto: Continuous auto-focus mode.
  • Infinity: Infinity focus mode.
  • Macro: Macro focus mode. In this mode, AutoFocus() needs to be called to trigger focus.
  • Medium: Medium-distance focus mode.
Desired size The desired camera image size. Options:
  • Default: Uses the default value.
  • Input: Uses the specified value.
Advanced options Advanced options. In most cases, no modification is needed.
        Desired camera preference The desired CameraDevicePreference. Options:
  • Default: Uses the default value.
  • Input: Uses the specified value.
When Input is selected, options:
  • PreferObjectSensing: Optimized for image tracking and object tracking.
  • PreferSurfaceTracking: Optimized for surface tracking.
  • PreferMotionTracking: Optimized for motion tracking.
                Desired android camera api The desired Android Camera API. Options:
  • Default: Uses the default value.
  • Input: Uses the specified value.
When Input is selected, options:
  • Camera1: Android Camera1 API.
  • Camera2: Android Camera2 API.
        Camera candidate The alternative for Camera. If not set, Camera.main will be used.