Explore the properties in the CameraDeviceFrameSource component window to customize camera parameters.
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.