Explore the properties in the CameraDeviceFrameSource component window to customize camera parameters.
Default component screenshot.
Property
Description
Camera Open Method
Method used to open the physical camera. Options:
PreferredType (default): Opens the camera device based on camera device type. Will try to open the first camera device if no matching type is found.
DeviceIndex: Opens the camera device based on camera index.
SpecificType: Opens the camera device based on exact camera device type. Will fail if no matching type is found. On Mac, camera types cannot be determined.
Type
Displayed when Camera Open Method is PreferredType or SpecificType. 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. Device index used to open the physical camera.
Desired Focus Mode
Desired focus mode. Options:
Default: Uses default value. Actual selection depends on the AR feature used.
Input: Uses specified value.
Options when Input is selected:
Normal: Normal focus mode. Requires calling AutoFocus() to trigger focus in this mode.
Continousauto: Continuous auto-focus mode.
Infinity: Infinity focus mode.
Macro: Macro focus mode. Requires calling AutoFocus() to trigger focus in this mode.
Medium: Medium-distance focus mode.
Desired Size
Desired camera image size. Options:
Default: Uses default value.
Input: Uses specified value.
Advanced Options
Advanced options. Usually no modification is needed.